-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Amazon RDS DataService SDK. -- -- Derived from API version 2018-08-01 of the AWS service -- descriptions, licensed under Apache 2.0. -- -- The types from this library are intended to be used with -- amazonka, which provides mechanisms for specifying AuthN/AuthZ -- information, sending requests, and receiving responses. -- -- It is recommended to use generic lenses or optics from packages such -- as generic-lens or optics to modify optional fields and -- deconstruct responses. -- -- Generated lenses can be found in Amazonka.RDSData.Lens and are -- suitable for use with a lens package such as lens or -- lens-family-core. -- -- See Amazonka.RDSData and the AWS documentation to get -- started. @package amazonka-rds-data @version 2.0 module Amazonka.RDSData.Types.ArrayValue -- | Contains an array. -- -- See: newArrayValue smart constructor. data ArrayValue ArrayValue' :: Maybe [ArrayValue] -> Maybe [Bool] -> Maybe [Double] -> Maybe [Integer] -> Maybe [Text] -> ArrayValue -- | An array of arrays. [$sel:arrayValues:ArrayValue'] :: ArrayValue -> Maybe [ArrayValue] -- | An array of Boolean values. [$sel:booleanValues:ArrayValue'] :: ArrayValue -> Maybe [Bool] -- | An array of floating-point numbers. [$sel:doubleValues:ArrayValue'] :: ArrayValue -> Maybe [Double] -- | An array of integers. [$sel:longValues:ArrayValue'] :: ArrayValue -> Maybe [Integer] -- | An array of strings. [$sel:stringValues:ArrayValue'] :: ArrayValue -> Maybe [Text] -- | Create a value of ArrayValue with all optional fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayValues:ArrayValue', arrayValue_arrayValues - -- An array of arrays. -- -- $sel:booleanValues:ArrayValue', arrayValue_booleanValues -- - An array of Boolean values. -- -- $sel:doubleValues:ArrayValue', arrayValue_doubleValues - -- An array of floating-point numbers. -- -- $sel:longValues:ArrayValue', arrayValue_longValues - An -- array of integers. -- -- $sel:stringValues:ArrayValue', arrayValue_stringValues - -- An array of strings. newArrayValue :: ArrayValue -- | An array of arrays. arrayValue_arrayValues :: Lens' ArrayValue (Maybe [ArrayValue]) -- | An array of Boolean values. arrayValue_booleanValues :: Lens' ArrayValue (Maybe [Bool]) -- | An array of floating-point numbers. arrayValue_doubleValues :: Lens' ArrayValue (Maybe [Double]) -- | An array of integers. arrayValue_longValues :: Lens' ArrayValue (Maybe [Integer]) -- | An array of strings. arrayValue_stringValues :: Lens' ArrayValue (Maybe [Text]) instance GHC.Generics.Generic Amazonka.RDSData.Types.ArrayValue.ArrayValue instance GHC.Show.Show Amazonka.RDSData.Types.ArrayValue.ArrayValue instance GHC.Read.Read Amazonka.RDSData.Types.ArrayValue.ArrayValue instance GHC.Classes.Eq Amazonka.RDSData.Types.ArrayValue.ArrayValue instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.RDSData.Types.ArrayValue.ArrayValue instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.ArrayValue.ArrayValue instance Control.DeepSeq.NFData Amazonka.RDSData.Types.ArrayValue.ArrayValue instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.Types.ArrayValue.ArrayValue module Amazonka.RDSData.Types.ColumnMetadata -- | Contains the metadata for a column. -- -- See: newColumnMetadata smart constructor. data ColumnMetadata ColumnMetadata' :: Maybe Int -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Text -> ColumnMetadata -- | The type of the column. [$sel:arrayBaseColumnType:ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | A value that indicates whether the column increments automatically. [$sel:isAutoIncrement:ColumnMetadata'] :: ColumnMetadata -> Maybe Bool -- | A value that indicates whether the column is case-sensitive. [$sel:isCaseSensitive:ColumnMetadata'] :: ColumnMetadata -> Maybe Bool -- | A value that indicates whether the column contains currency values. [$sel:isCurrency:ColumnMetadata'] :: ColumnMetadata -> Maybe Bool -- | A value that indicates whether an integer column is signed. [$sel:isSigned:ColumnMetadata'] :: ColumnMetadata -> Maybe Bool -- | The label for the column. [$sel:label:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | The name of the column. [$sel:name:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | A value that indicates whether the column is nullable. [$sel:nullable:ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | The precision value of a decimal number column. [$sel:precision:ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | The scale value of a decimal number column. [$sel:scale:ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | The name of the schema that owns the table that includes the column. [$sel:schemaName:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | The name of the table that includes the column. [$sel:tableName:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | The type of the column. [$sel:type':ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | The database-specific data type of the column. [$sel:typeName:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | Create a value of ColumnMetadata with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayBaseColumnType:ColumnMetadata', -- columnMetadata_arrayBaseColumnType - The type of the column. -- -- $sel:isAutoIncrement:ColumnMetadata', -- columnMetadata_isAutoIncrement - A value that indicates whether -- the column increments automatically. -- -- $sel:isCaseSensitive:ColumnMetadata', -- columnMetadata_isCaseSensitive - A value that indicates whether -- the column is case-sensitive. -- -- $sel:isCurrency:ColumnMetadata', -- columnMetadata_isCurrency - A value that indicates whether the -- column contains currency values. -- -- $sel:isSigned:ColumnMetadata', columnMetadata_isSigned - -- A value that indicates whether an integer column is signed. -- -- $sel:label:ColumnMetadata', columnMetadata_label - The -- label for the column. -- -- $sel:name:ColumnMetadata', columnMetadata_name - The -- name of the column. -- -- $sel:nullable:ColumnMetadata', columnMetadata_nullable - -- A value that indicates whether the column is nullable. -- -- $sel:precision:ColumnMetadata', columnMetadata_precision -- - The precision value of a decimal number column. -- -- $sel:scale:ColumnMetadata', columnMetadata_scale - The -- scale value of a decimal number column. -- -- $sel:schemaName:ColumnMetadata', -- columnMetadata_schemaName - The name of the schema that owns -- the table that includes the column. -- -- $sel:tableName:ColumnMetadata', columnMetadata_tableName -- - The name of the table that includes the column. -- -- $sel:type':ColumnMetadata', columnMetadata_type - The -- type of the column. -- -- $sel:typeName:ColumnMetadata', columnMetadata_typeName - -- The database-specific data type of the column. newColumnMetadata :: ColumnMetadata -- | The type of the column. columnMetadata_arrayBaseColumnType :: Lens' ColumnMetadata (Maybe Int) -- | A value that indicates whether the column increments automatically. columnMetadata_isAutoIncrement :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether the column is case-sensitive. columnMetadata_isCaseSensitive :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether the column contains currency values. columnMetadata_isCurrency :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether an integer column is signed. columnMetadata_isSigned :: Lens' ColumnMetadata (Maybe Bool) -- | The label for the column. columnMetadata_label :: Lens' ColumnMetadata (Maybe Text) -- | The name of the column. columnMetadata_name :: Lens' ColumnMetadata (Maybe Text) -- | A value that indicates whether the column is nullable. columnMetadata_nullable :: Lens' ColumnMetadata (Maybe Int) -- | The precision value of a decimal number column. columnMetadata_precision :: Lens' ColumnMetadata (Maybe Int) -- | The scale value of a decimal number column. columnMetadata_scale :: Lens' ColumnMetadata (Maybe Int) -- | The name of the schema that owns the table that includes the column. columnMetadata_schemaName :: Lens' ColumnMetadata (Maybe Text) -- | The name of the table that includes the column. columnMetadata_tableName :: Lens' ColumnMetadata (Maybe Text) -- | The type of the column. columnMetadata_type :: Lens' ColumnMetadata (Maybe Int) -- | The database-specific data type of the column. columnMetadata_typeName :: Lens' ColumnMetadata (Maybe Text) instance GHC.Generics.Generic Amazonka.RDSData.Types.ColumnMetadata.ColumnMetadata instance GHC.Show.Show Amazonka.RDSData.Types.ColumnMetadata.ColumnMetadata instance GHC.Read.Read Amazonka.RDSData.Types.ColumnMetadata.ColumnMetadata instance GHC.Classes.Eq Amazonka.RDSData.Types.ColumnMetadata.ColumnMetadata instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.RDSData.Types.ColumnMetadata.ColumnMetadata instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.ColumnMetadata.ColumnMetadata instance Control.DeepSeq.NFData Amazonka.RDSData.Types.ColumnMetadata.ColumnMetadata module Amazonka.RDSData.Types.DecimalReturnType newtype DecimalReturnType DecimalReturnType' :: Text -> DecimalReturnType [fromDecimalReturnType] :: DecimalReturnType -> Text pattern DecimalReturnType_DOUBLE_OR_LONG :: DecimalReturnType pattern DecimalReturnType_STRING :: DecimalReturnType instance Amazonka.Data.XML.ToXML Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Amazonka.Data.XML.FromXML Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Amazonka.Data.Headers.ToHeader Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Amazonka.Data.Log.ToLog Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Amazonka.Data.ByteString.ToByteString Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Amazonka.Data.Text.ToText Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Amazonka.Data.Text.FromText Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Control.DeepSeq.NFData Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance GHC.Generics.Generic Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance GHC.Classes.Ord Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance GHC.Classes.Eq Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance GHC.Read.Read Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType instance GHC.Show.Show Amazonka.RDSData.Types.DecimalReturnType.DecimalReturnType module Amazonka.RDSData.Types.Field -- | Contains a value. -- -- See: newField smart constructor. data Field Field' :: Maybe ArrayValue -> Maybe Base64 -> Maybe Bool -> Maybe Double -> Maybe Bool -> Maybe Integer -> Maybe Text -> Field -- | An array of values. [$sel:arrayValue:Field'] :: Field -> Maybe ArrayValue -- | A value of BLOB data type. [$sel:blobValue:Field'] :: Field -> Maybe Base64 -- | A value of Boolean data type. [$sel:booleanValue:Field'] :: Field -> Maybe Bool -- | A value of double data type. [$sel:doubleValue:Field'] :: Field -> Maybe Double -- | A NULL value. [$sel:isNull:Field'] :: Field -> Maybe Bool -- | A value of long data type. [$sel:longValue:Field'] :: Field -> Maybe Integer -- | A value of string data type. [$sel:stringValue:Field'] :: Field -> Maybe Text -- | Create a value of Field with all optional fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayValue:Field', field_arrayValue - An array of -- values. -- -- $sel:blobValue:Field', field_blobValue - A value of BLOB -- data type.-- -- Note: This Lens automatically encodes -- and decodes Base64 data. -- The underlying isomorphism will encode to -- Base64 representation during -- serialisation, and decode from Base64 -- representation during deserialisation. -- This Lens accepts -- and returns only raw unencoded data. -- -- $sel:booleanValue:Field', field_booleanValue - A value -- of Boolean data type. -- -- $sel:doubleValue:Field', field_doubleValue - A value of -- double data type. -- -- $sel:isNull:Field', field_isNull - A NULL value. -- -- $sel:longValue:Field', field_longValue - A value of long -- data type. -- -- $sel:stringValue:Field', field_stringValue - A value of -- string data type. newField :: Field -- | An array of values. field_arrayValue :: Lens' Field (Maybe ArrayValue) -- | A value of BLOB data type.-- -- Note: This Lens -- automatically encodes and decodes Base64 data. -- The underlying -- isomorphism will encode to Base64 representation during -- -- serialisation, and decode from Base64 representation during -- deserialisation. -- This Lens accepts and returns only raw -- unencoded data. field_blobValue :: Lens' Field (Maybe ByteString) -- | A value of Boolean data type. field_booleanValue :: Lens' Field (Maybe Bool) -- | A value of double data type. field_doubleValue :: Lens' Field (Maybe Double) -- | A NULL value. field_isNull :: Lens' Field (Maybe Bool) -- | A value of long data type. field_longValue :: Lens' Field (Maybe Integer) -- | A value of string data type. field_stringValue :: Lens' Field (Maybe Text) instance GHC.Generics.Generic Amazonka.RDSData.Types.Field.Field instance GHC.Show.Show Amazonka.RDSData.Types.Field.Field instance GHC.Read.Read Amazonka.RDSData.Types.Field.Field instance GHC.Classes.Eq Amazonka.RDSData.Types.Field.Field instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.RDSData.Types.Field.Field instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.Field.Field instance Control.DeepSeq.NFData Amazonka.RDSData.Types.Field.Field instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.Types.Field.Field module Amazonka.RDSData.Types.LongReturnType newtype LongReturnType LongReturnType' :: Text -> LongReturnType [fromLongReturnType] :: LongReturnType -> Text pattern LongReturnType_LONG :: LongReturnType pattern LongReturnType_STRING :: LongReturnType instance Amazonka.Data.XML.ToXML Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Amazonka.Data.XML.FromXML Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Amazonka.Data.Headers.ToHeader Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Amazonka.Data.Log.ToLog Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Amazonka.Data.ByteString.ToByteString Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Amazonka.Data.Text.ToText Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Amazonka.Data.Text.FromText Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Control.DeepSeq.NFData Amazonka.RDSData.Types.LongReturnType.LongReturnType instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.LongReturnType.LongReturnType instance GHC.Generics.Generic Amazonka.RDSData.Types.LongReturnType.LongReturnType instance GHC.Classes.Ord Amazonka.RDSData.Types.LongReturnType.LongReturnType instance GHC.Classes.Eq Amazonka.RDSData.Types.LongReturnType.LongReturnType instance GHC.Read.Read Amazonka.RDSData.Types.LongReturnType.LongReturnType instance GHC.Show.Show Amazonka.RDSData.Types.LongReturnType.LongReturnType module Amazonka.RDSData.Types.RecordsFormatType newtype RecordsFormatType RecordsFormatType' :: Text -> RecordsFormatType [fromRecordsFormatType] :: RecordsFormatType -> Text pattern RecordsFormatType_JSON :: RecordsFormatType pattern RecordsFormatType_NONE :: RecordsFormatType instance Amazonka.Data.XML.ToXML Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Amazonka.Data.XML.FromXML Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Amazonka.Data.Headers.ToHeader Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Amazonka.Data.Log.ToLog Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Amazonka.Data.ByteString.ToByteString Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Amazonka.Data.Text.ToText Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Amazonka.Data.Text.FromText Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Control.DeepSeq.NFData Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance GHC.Generics.Generic Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance GHC.Classes.Ord Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance GHC.Classes.Eq Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance GHC.Read.Read Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType instance GHC.Show.Show Amazonka.RDSData.Types.RecordsFormatType.RecordsFormatType module Amazonka.RDSData.Types.ResultSetOptions -- | Options that control how the result set is returned. -- -- See: newResultSetOptions smart constructor. data ResultSetOptions ResultSetOptions' :: Maybe DecimalReturnType -> Maybe LongReturnType -> ResultSetOptions -- | A value that indicates how a field of DECIMAL type is -- represented in the response. The value of STRING, the -- default, specifies that it is converted to a String value. The value -- of DOUBLE_OR_LONG specifies that it is converted to a Long -- value if its scale is 0, or to a Double value otherwise. -- -- Conversion to Double or Long can result in roundoff errors due to -- precision loss. We recommend converting to String, especially when -- working with currency values. [$sel:decimalReturnType:ResultSetOptions'] :: ResultSetOptions -> Maybe DecimalReturnType -- | A value that indicates how a field of LONG type is -- represented. Allowed values are LONG and STRING. The -- default is LONG. Specify STRING if the length or -- precision of numeric values might cause truncation or rounding errors. [$sel:longReturnType:ResultSetOptions'] :: ResultSetOptions -> Maybe LongReturnType -- | Create a value of ResultSetOptions with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:decimalReturnType:ResultSetOptions', -- resultSetOptions_decimalReturnType - A value that indicates how -- a field of DECIMAL type is represented in the response. The -- value of STRING, the default, specifies that it is converted -- to a String value. The value of DOUBLE_OR_LONG specifies that -- it is converted to a Long value if its scale is 0, or to a Double -- value otherwise. -- -- Conversion to Double or Long can result in roundoff errors due to -- precision loss. We recommend converting to String, especially when -- working with currency values. -- -- $sel:longReturnType:ResultSetOptions', -- resultSetOptions_longReturnType - A value that indicates how a -- field of LONG type is represented. Allowed values are -- LONG and STRING. The default is LONG. -- Specify STRING if the length or precision of numeric values -- might cause truncation or rounding errors. newResultSetOptions :: ResultSetOptions -- | A value that indicates how a field of DECIMAL type is -- represented in the response. The value of STRING, the -- default, specifies that it is converted to a String value. The value -- of DOUBLE_OR_LONG specifies that it is converted to a Long -- value if its scale is 0, or to a Double value otherwise. -- -- Conversion to Double or Long can result in roundoff errors due to -- precision loss. We recommend converting to String, especially when -- working with currency values. resultSetOptions_decimalReturnType :: Lens' ResultSetOptions (Maybe DecimalReturnType) -- | A value that indicates how a field of LONG type is -- represented. Allowed values are LONG and STRING. The -- default is LONG. Specify STRING if the length or -- precision of numeric values might cause truncation or rounding errors. resultSetOptions_longReturnType :: Lens' ResultSetOptions (Maybe LongReturnType) instance GHC.Generics.Generic Amazonka.RDSData.Types.ResultSetOptions.ResultSetOptions instance GHC.Show.Show Amazonka.RDSData.Types.ResultSetOptions.ResultSetOptions instance GHC.Read.Read Amazonka.RDSData.Types.ResultSetOptions.ResultSetOptions instance GHC.Classes.Eq Amazonka.RDSData.Types.ResultSetOptions.ResultSetOptions instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.ResultSetOptions.ResultSetOptions instance Control.DeepSeq.NFData Amazonka.RDSData.Types.ResultSetOptions.ResultSetOptions instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.Types.ResultSetOptions.ResultSetOptions module Amazonka.RDSData.Types.TypeHint newtype TypeHint TypeHint' :: Text -> TypeHint [fromTypeHint] :: TypeHint -> Text pattern TypeHint_DATE :: TypeHint pattern TypeHint_DECIMAL :: TypeHint pattern TypeHint_JSON :: TypeHint pattern TypeHint_TIME :: TypeHint pattern TypeHint_TIMESTAMP :: TypeHint pattern TypeHint_UUID :: TypeHint instance Amazonka.Data.XML.ToXML Amazonka.RDSData.Types.TypeHint.TypeHint instance Amazonka.Data.XML.FromXML Amazonka.RDSData.Types.TypeHint.TypeHint instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.RDSData.Types.TypeHint.TypeHint instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.Types.TypeHint.TypeHint instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.RDSData.Types.TypeHint.TypeHint instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.RDSData.Types.TypeHint.TypeHint instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.Types.TypeHint.TypeHint instance Amazonka.Data.Headers.ToHeader Amazonka.RDSData.Types.TypeHint.TypeHint instance Amazonka.Data.Log.ToLog Amazonka.RDSData.Types.TypeHint.TypeHint instance Amazonka.Data.ByteString.ToByteString Amazonka.RDSData.Types.TypeHint.TypeHint instance Amazonka.Data.Text.ToText Amazonka.RDSData.Types.TypeHint.TypeHint instance Amazonka.Data.Text.FromText Amazonka.RDSData.Types.TypeHint.TypeHint instance Control.DeepSeq.NFData Amazonka.RDSData.Types.TypeHint.TypeHint instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.TypeHint.TypeHint instance GHC.Generics.Generic Amazonka.RDSData.Types.TypeHint.TypeHint instance GHC.Classes.Ord Amazonka.RDSData.Types.TypeHint.TypeHint instance GHC.Classes.Eq Amazonka.RDSData.Types.TypeHint.TypeHint instance GHC.Read.Read Amazonka.RDSData.Types.TypeHint.TypeHint instance GHC.Show.Show Amazonka.RDSData.Types.TypeHint.TypeHint module Amazonka.RDSData.Types.SqlParameter -- | A parameter used in a SQL statement. -- -- See: newSqlParameter smart constructor. data SqlParameter SqlParameter' :: Maybe Text -> Maybe TypeHint -> Maybe Field -> SqlParameter -- | The name of the parameter. [$sel:name:SqlParameter'] :: SqlParameter -> Maybe Text -- | A hint that specifies the correct object type for data type mapping. -- Possible values are as follows: -- -- [$sel:typeHint:SqlParameter'] :: SqlParameter -> Maybe TypeHint -- | The value of the parameter. [$sel:value:SqlParameter'] :: SqlParameter -> Maybe Field -- | Create a value of SqlParameter with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:name:SqlParameter', sqlParameter_name - The name of -- the parameter. -- -- $sel:typeHint:SqlParameter', sqlParameter_typeHint - A -- hint that specifies the correct object type for data type mapping. -- Possible values are as follows: -- -- -- -- $sel:value:SqlParameter', sqlParameter_value - The value -- of the parameter. newSqlParameter :: SqlParameter -- | The name of the parameter. sqlParameter_name :: Lens' SqlParameter (Maybe Text) -- | A hint that specifies the correct object type for data type mapping. -- Possible values are as follows: -- -- sqlParameter_typeHint :: Lens' SqlParameter (Maybe TypeHint) -- | The value of the parameter. sqlParameter_value :: Lens' SqlParameter (Maybe Field) instance GHC.Generics.Generic Amazonka.RDSData.Types.SqlParameter.SqlParameter instance GHC.Show.Show Amazonka.RDSData.Types.SqlParameter.SqlParameter instance GHC.Read.Read Amazonka.RDSData.Types.SqlParameter.SqlParameter instance GHC.Classes.Eq Amazonka.RDSData.Types.SqlParameter.SqlParameter instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.SqlParameter.SqlParameter instance Control.DeepSeq.NFData Amazonka.RDSData.Types.SqlParameter.SqlParameter instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.Types.SqlParameter.SqlParameter module Amazonka.RDSData.Types.UpdateResult -- | The response elements represent the results of an update. -- -- See: newUpdateResult smart constructor. data UpdateResult UpdateResult' :: Maybe [Field] -> UpdateResult -- | Values for fields generated during the request. [$sel:generatedFields:UpdateResult'] :: UpdateResult -> Maybe [Field] -- | Create a value of UpdateResult with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:generatedFields:UpdateResult', -- updateResult_generatedFields - Values for fields generated -- during the request. newUpdateResult :: UpdateResult -- | Values for fields generated during the request. updateResult_generatedFields :: Lens' UpdateResult (Maybe [Field]) instance GHC.Generics.Generic Amazonka.RDSData.Types.UpdateResult.UpdateResult instance GHC.Show.Show Amazonka.RDSData.Types.UpdateResult.UpdateResult instance GHC.Read.Read Amazonka.RDSData.Types.UpdateResult.UpdateResult instance GHC.Classes.Eq Amazonka.RDSData.Types.UpdateResult.UpdateResult instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.RDSData.Types.UpdateResult.UpdateResult instance Data.Hashable.Class.Hashable Amazonka.RDSData.Types.UpdateResult.UpdateResult instance Control.DeepSeq.NFData Amazonka.RDSData.Types.UpdateResult.UpdateResult module Amazonka.RDSData.Types -- | API version 2018-08-01 of the Amazon RDS DataService SDK -- configuration. defaultService :: Service -- | You do not have sufficient access to perform this action. _AccessDeniedException :: AsError a => Fold a ServiceError -- | There is an error in the call or in a SQL statement. _BadRequestException :: AsError a => Fold a ServiceError -- | There are insufficient privileges to make the call. _ForbiddenException :: AsError a => Fold a ServiceError -- | An internal error occurred. _InternalServerErrorException :: AsError a => Fold a ServiceError -- | The resourceArn, secretArn, or -- transactionId value can't be found. _NotFoundException :: AsError a => Fold a ServiceError -- | The service specified by the resourceArn parameter is not -- available. _ServiceUnavailableError :: AsError a => Fold a ServiceError -- | The execution of the SQL statement timed out. _StatementTimeoutException :: AsError a => Fold a ServiceError newtype DecimalReturnType DecimalReturnType' :: Text -> DecimalReturnType [fromDecimalReturnType] :: DecimalReturnType -> Text pattern DecimalReturnType_DOUBLE_OR_LONG :: DecimalReturnType pattern DecimalReturnType_STRING :: DecimalReturnType newtype LongReturnType LongReturnType' :: Text -> LongReturnType [fromLongReturnType] :: LongReturnType -> Text pattern LongReturnType_LONG :: LongReturnType pattern LongReturnType_STRING :: LongReturnType newtype RecordsFormatType RecordsFormatType' :: Text -> RecordsFormatType [fromRecordsFormatType] :: RecordsFormatType -> Text pattern RecordsFormatType_JSON :: RecordsFormatType pattern RecordsFormatType_NONE :: RecordsFormatType newtype TypeHint TypeHint' :: Text -> TypeHint [fromTypeHint] :: TypeHint -> Text pattern TypeHint_DATE :: TypeHint pattern TypeHint_DECIMAL :: TypeHint pattern TypeHint_JSON :: TypeHint pattern TypeHint_TIME :: TypeHint pattern TypeHint_TIMESTAMP :: TypeHint pattern TypeHint_UUID :: TypeHint -- | Contains an array. -- -- See: newArrayValue smart constructor. data ArrayValue ArrayValue' :: Maybe [ArrayValue] -> Maybe [Bool] -> Maybe [Double] -> Maybe [Integer] -> Maybe [Text] -> ArrayValue -- | An array of arrays. [$sel:arrayValues:ArrayValue'] :: ArrayValue -> Maybe [ArrayValue] -- | An array of Boolean values. [$sel:booleanValues:ArrayValue'] :: ArrayValue -> Maybe [Bool] -- | An array of floating-point numbers. [$sel:doubleValues:ArrayValue'] :: ArrayValue -> Maybe [Double] -- | An array of integers. [$sel:longValues:ArrayValue'] :: ArrayValue -> Maybe [Integer] -- | An array of strings. [$sel:stringValues:ArrayValue'] :: ArrayValue -> Maybe [Text] -- | Create a value of ArrayValue with all optional fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayValues:ArrayValue', arrayValue_arrayValues - -- An array of arrays. -- -- $sel:booleanValues:ArrayValue', arrayValue_booleanValues -- - An array of Boolean values. -- -- $sel:doubleValues:ArrayValue', arrayValue_doubleValues - -- An array of floating-point numbers. -- -- $sel:longValues:ArrayValue', arrayValue_longValues - An -- array of integers. -- -- $sel:stringValues:ArrayValue', arrayValue_stringValues - -- An array of strings. newArrayValue :: ArrayValue -- | An array of arrays. arrayValue_arrayValues :: Lens' ArrayValue (Maybe [ArrayValue]) -- | An array of Boolean values. arrayValue_booleanValues :: Lens' ArrayValue (Maybe [Bool]) -- | An array of floating-point numbers. arrayValue_doubleValues :: Lens' ArrayValue (Maybe [Double]) -- | An array of integers. arrayValue_longValues :: Lens' ArrayValue (Maybe [Integer]) -- | An array of strings. arrayValue_stringValues :: Lens' ArrayValue (Maybe [Text]) -- | Contains the metadata for a column. -- -- See: newColumnMetadata smart constructor. data ColumnMetadata ColumnMetadata' :: Maybe Int -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Text -> ColumnMetadata -- | The type of the column. [$sel:arrayBaseColumnType:ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | A value that indicates whether the column increments automatically. [$sel:isAutoIncrement:ColumnMetadata'] :: ColumnMetadata -> Maybe Bool -- | A value that indicates whether the column is case-sensitive. [$sel:isCaseSensitive:ColumnMetadata'] :: ColumnMetadata -> Maybe Bool -- | A value that indicates whether the column contains currency values. [$sel:isCurrency:ColumnMetadata'] :: ColumnMetadata -> Maybe Bool -- | A value that indicates whether an integer column is signed. [$sel:isSigned:ColumnMetadata'] :: ColumnMetadata -> Maybe Bool -- | The label for the column. [$sel:label:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | The name of the column. [$sel:name:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | A value that indicates whether the column is nullable. [$sel:nullable:ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | The precision value of a decimal number column. [$sel:precision:ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | The scale value of a decimal number column. [$sel:scale:ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | The name of the schema that owns the table that includes the column. [$sel:schemaName:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | The name of the table that includes the column. [$sel:tableName:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | The type of the column. [$sel:type':ColumnMetadata'] :: ColumnMetadata -> Maybe Int -- | The database-specific data type of the column. [$sel:typeName:ColumnMetadata'] :: ColumnMetadata -> Maybe Text -- | Create a value of ColumnMetadata with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayBaseColumnType:ColumnMetadata', -- columnMetadata_arrayBaseColumnType - The type of the column. -- -- $sel:isAutoIncrement:ColumnMetadata', -- columnMetadata_isAutoIncrement - A value that indicates whether -- the column increments automatically. -- -- $sel:isCaseSensitive:ColumnMetadata', -- columnMetadata_isCaseSensitive - A value that indicates whether -- the column is case-sensitive. -- -- $sel:isCurrency:ColumnMetadata', -- columnMetadata_isCurrency - A value that indicates whether the -- column contains currency values. -- -- $sel:isSigned:ColumnMetadata', columnMetadata_isSigned - -- A value that indicates whether an integer column is signed. -- -- $sel:label:ColumnMetadata', columnMetadata_label - The -- label for the column. -- -- $sel:name:ColumnMetadata', columnMetadata_name - The -- name of the column. -- -- $sel:nullable:ColumnMetadata', columnMetadata_nullable - -- A value that indicates whether the column is nullable. -- -- $sel:precision:ColumnMetadata', columnMetadata_precision -- - The precision value of a decimal number column. -- -- $sel:scale:ColumnMetadata', columnMetadata_scale - The -- scale value of a decimal number column. -- -- $sel:schemaName:ColumnMetadata', -- columnMetadata_schemaName - The name of the schema that owns -- the table that includes the column. -- -- $sel:tableName:ColumnMetadata', columnMetadata_tableName -- - The name of the table that includes the column. -- -- $sel:type':ColumnMetadata', columnMetadata_type - The -- type of the column. -- -- $sel:typeName:ColumnMetadata', columnMetadata_typeName - -- The database-specific data type of the column. newColumnMetadata :: ColumnMetadata -- | The type of the column. columnMetadata_arrayBaseColumnType :: Lens' ColumnMetadata (Maybe Int) -- | A value that indicates whether the column increments automatically. columnMetadata_isAutoIncrement :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether the column is case-sensitive. columnMetadata_isCaseSensitive :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether the column contains currency values. columnMetadata_isCurrency :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether an integer column is signed. columnMetadata_isSigned :: Lens' ColumnMetadata (Maybe Bool) -- | The label for the column. columnMetadata_label :: Lens' ColumnMetadata (Maybe Text) -- | The name of the column. columnMetadata_name :: Lens' ColumnMetadata (Maybe Text) -- | A value that indicates whether the column is nullable. columnMetadata_nullable :: Lens' ColumnMetadata (Maybe Int) -- | The precision value of a decimal number column. columnMetadata_precision :: Lens' ColumnMetadata (Maybe Int) -- | The scale value of a decimal number column. columnMetadata_scale :: Lens' ColumnMetadata (Maybe Int) -- | The name of the schema that owns the table that includes the column. columnMetadata_schemaName :: Lens' ColumnMetadata (Maybe Text) -- | The name of the table that includes the column. columnMetadata_tableName :: Lens' ColumnMetadata (Maybe Text) -- | The type of the column. columnMetadata_type :: Lens' ColumnMetadata (Maybe Int) -- | The database-specific data type of the column. columnMetadata_typeName :: Lens' ColumnMetadata (Maybe Text) -- | Contains a value. -- -- See: newField smart constructor. data Field Field' :: Maybe ArrayValue -> Maybe Base64 -> Maybe Bool -> Maybe Double -> Maybe Bool -> Maybe Integer -> Maybe Text -> Field -- | An array of values. [$sel:arrayValue:Field'] :: Field -> Maybe ArrayValue -- | A value of BLOB data type. [$sel:blobValue:Field'] :: Field -> Maybe Base64 -- | A value of Boolean data type. [$sel:booleanValue:Field'] :: Field -> Maybe Bool -- | A value of double data type. [$sel:doubleValue:Field'] :: Field -> Maybe Double -- | A NULL value. [$sel:isNull:Field'] :: Field -> Maybe Bool -- | A value of long data type. [$sel:longValue:Field'] :: Field -> Maybe Integer -- | A value of string data type. [$sel:stringValue:Field'] :: Field -> Maybe Text -- | Create a value of Field with all optional fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayValue:Field', field_arrayValue - An array of -- values. -- -- $sel:blobValue:Field', field_blobValue - A value of BLOB -- data type.-- -- Note: This Lens automatically encodes -- and decodes Base64 data. -- The underlying isomorphism will encode to -- Base64 representation during -- serialisation, and decode from Base64 -- representation during deserialisation. -- This Lens accepts -- and returns only raw unencoded data. -- -- $sel:booleanValue:Field', field_booleanValue - A value -- of Boolean data type. -- -- $sel:doubleValue:Field', field_doubleValue - A value of -- double data type. -- -- $sel:isNull:Field', field_isNull - A NULL value. -- -- $sel:longValue:Field', field_longValue - A value of long -- data type. -- -- $sel:stringValue:Field', field_stringValue - A value of -- string data type. newField :: Field -- | An array of values. field_arrayValue :: Lens' Field (Maybe ArrayValue) -- | A value of BLOB data type.-- -- Note: This Lens -- automatically encodes and decodes Base64 data. -- The underlying -- isomorphism will encode to Base64 representation during -- -- serialisation, and decode from Base64 representation during -- deserialisation. -- This Lens accepts and returns only raw -- unencoded data. field_blobValue :: Lens' Field (Maybe ByteString) -- | A value of Boolean data type. field_booleanValue :: Lens' Field (Maybe Bool) -- | A value of double data type. field_doubleValue :: Lens' Field (Maybe Double) -- | A NULL value. field_isNull :: Lens' Field (Maybe Bool) -- | A value of long data type. field_longValue :: Lens' Field (Maybe Integer) -- | A value of string data type. field_stringValue :: Lens' Field (Maybe Text) -- | Options that control how the result set is returned. -- -- See: newResultSetOptions smart constructor. data ResultSetOptions ResultSetOptions' :: Maybe DecimalReturnType -> Maybe LongReturnType -> ResultSetOptions -- | A value that indicates how a field of DECIMAL type is -- represented in the response. The value of STRING, the -- default, specifies that it is converted to a String value. The value -- of DOUBLE_OR_LONG specifies that it is converted to a Long -- value if its scale is 0, or to a Double value otherwise. -- -- Conversion to Double or Long can result in roundoff errors due to -- precision loss. We recommend converting to String, especially when -- working with currency values. [$sel:decimalReturnType:ResultSetOptions'] :: ResultSetOptions -> Maybe DecimalReturnType -- | A value that indicates how a field of LONG type is -- represented. Allowed values are LONG and STRING. The -- default is LONG. Specify STRING if the length or -- precision of numeric values might cause truncation or rounding errors. [$sel:longReturnType:ResultSetOptions'] :: ResultSetOptions -> Maybe LongReturnType -- | Create a value of ResultSetOptions with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:decimalReturnType:ResultSetOptions', -- resultSetOptions_decimalReturnType - A value that indicates how -- a field of DECIMAL type is represented in the response. The -- value of STRING, the default, specifies that it is converted -- to a String value. The value of DOUBLE_OR_LONG specifies that -- it is converted to a Long value if its scale is 0, or to a Double -- value otherwise. -- -- Conversion to Double or Long can result in roundoff errors due to -- precision loss. We recommend converting to String, especially when -- working with currency values. -- -- $sel:longReturnType:ResultSetOptions', -- resultSetOptions_longReturnType - A value that indicates how a -- field of LONG type is represented. Allowed values are -- LONG and STRING. The default is LONG. -- Specify STRING if the length or precision of numeric values -- might cause truncation or rounding errors. newResultSetOptions :: ResultSetOptions -- | A value that indicates how a field of DECIMAL type is -- represented in the response. The value of STRING, the -- default, specifies that it is converted to a String value. The value -- of DOUBLE_OR_LONG specifies that it is converted to a Long -- value if its scale is 0, or to a Double value otherwise. -- -- Conversion to Double or Long can result in roundoff errors due to -- precision loss. We recommend converting to String, especially when -- working with currency values. resultSetOptions_decimalReturnType :: Lens' ResultSetOptions (Maybe DecimalReturnType) -- | A value that indicates how a field of LONG type is -- represented. Allowed values are LONG and STRING. The -- default is LONG. Specify STRING if the length or -- precision of numeric values might cause truncation or rounding errors. resultSetOptions_longReturnType :: Lens' ResultSetOptions (Maybe LongReturnType) -- | A parameter used in a SQL statement. -- -- See: newSqlParameter smart constructor. data SqlParameter SqlParameter' :: Maybe Text -> Maybe TypeHint -> Maybe Field -> SqlParameter -- | The name of the parameter. [$sel:name:SqlParameter'] :: SqlParameter -> Maybe Text -- | A hint that specifies the correct object type for data type mapping. -- Possible values are as follows: -- -- [$sel:typeHint:SqlParameter'] :: SqlParameter -> Maybe TypeHint -- | The value of the parameter. [$sel:value:SqlParameter'] :: SqlParameter -> Maybe Field -- | Create a value of SqlParameter with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:name:SqlParameter', sqlParameter_name - The name of -- the parameter. -- -- $sel:typeHint:SqlParameter', sqlParameter_typeHint - A -- hint that specifies the correct object type for data type mapping. -- Possible values are as follows: -- -- -- -- $sel:value:SqlParameter', sqlParameter_value - The value -- of the parameter. newSqlParameter :: SqlParameter -- | The name of the parameter. sqlParameter_name :: Lens' SqlParameter (Maybe Text) -- | A hint that specifies the correct object type for data type mapping. -- Possible values are as follows: -- -- sqlParameter_typeHint :: Lens' SqlParameter (Maybe TypeHint) -- | The value of the parameter. sqlParameter_value :: Lens' SqlParameter (Maybe Field) -- | The response elements represent the results of an update. -- -- See: newUpdateResult smart constructor. data UpdateResult UpdateResult' :: Maybe [Field] -> UpdateResult -- | Values for fields generated during the request. [$sel:generatedFields:UpdateResult'] :: UpdateResult -> Maybe [Field] -- | Create a value of UpdateResult with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:generatedFields:UpdateResult', -- updateResult_generatedFields - Values for fields generated -- during the request. newUpdateResult :: UpdateResult -- | Values for fields generated during the request. updateResult_generatedFields :: Lens' UpdateResult (Maybe [Field]) -- | Performs a rollback of a transaction. Rolling back a transaction -- cancels its changes. module Amazonka.RDSData.RollbackTransaction -- | The request parameters represent the input of a request to perform a -- rollback of a transaction. -- -- See: newRollbackTransaction smart constructor. data RollbackTransaction RollbackTransaction' :: Text -> Text -> Text -> RollbackTransaction -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. [$sel:resourceArn:RollbackTransaction'] :: RollbackTransaction -> Text -- | The name or ARN of the secret that enables access to the DB cluster. [$sel:secretArn:RollbackTransaction'] :: RollbackTransaction -> Text -- | The identifier of the transaction to roll back. [$sel:transactionId:RollbackTransaction'] :: RollbackTransaction -> Text -- | Create a value of RollbackTransaction with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:resourceArn:RollbackTransaction', -- rollbackTransaction_resourceArn - The Amazon Resource Name -- (ARN) of the Aurora Serverless DB cluster. -- -- $sel:secretArn:RollbackTransaction', -- rollbackTransaction_secretArn - The name or ARN of the secret -- that enables access to the DB cluster. -- -- $sel:transactionId:RollbackTransaction', -- rollbackTransaction_transactionId - The identifier of the -- transaction to roll back. newRollbackTransaction :: Text -> Text -> Text -> RollbackTransaction -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. rollbackTransaction_resourceArn :: Lens' RollbackTransaction Text -- | The name or ARN of the secret that enables access to the DB cluster. rollbackTransaction_secretArn :: Lens' RollbackTransaction Text -- | The identifier of the transaction to roll back. rollbackTransaction_transactionId :: Lens' RollbackTransaction Text -- | The response elements represent the output of a request to perform a -- rollback of a transaction. -- -- See: newRollbackTransactionResponse smart constructor. data RollbackTransactionResponse RollbackTransactionResponse' :: Maybe Text -> Int -> RollbackTransactionResponse -- | The status of the rollback operation. [$sel:transactionStatus:RollbackTransactionResponse'] :: RollbackTransactionResponse -> Maybe Text -- | The response's http status code. [$sel:httpStatus:RollbackTransactionResponse'] :: RollbackTransactionResponse -> Int -- | Create a value of RollbackTransactionResponse with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:transactionStatus:RollbackTransactionResponse', -- rollbackTransactionResponse_transactionStatus - The status of -- the rollback operation. -- -- $sel:httpStatus:RollbackTransactionResponse', -- rollbackTransactionResponse_httpStatus - The response's http -- status code. newRollbackTransactionResponse :: Int -> RollbackTransactionResponse -- | The status of the rollback operation. rollbackTransactionResponse_transactionStatus :: Lens' RollbackTransactionResponse (Maybe Text) -- | The response's http status code. rollbackTransactionResponse_httpStatus :: Lens' RollbackTransactionResponse Int instance GHC.Generics.Generic Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance GHC.Show.Show Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance GHC.Read.Read Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance GHC.Classes.Eq Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance GHC.Generics.Generic Amazonka.RDSData.RollbackTransaction.RollbackTransactionResponse instance GHC.Show.Show Amazonka.RDSData.RollbackTransaction.RollbackTransactionResponse instance GHC.Read.Read Amazonka.RDSData.RollbackTransaction.RollbackTransactionResponse instance GHC.Classes.Eq Amazonka.RDSData.RollbackTransaction.RollbackTransactionResponse instance Amazonka.Types.AWSRequest Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance Control.DeepSeq.NFData Amazonka.RDSData.RollbackTransaction.RollbackTransactionResponse instance Data.Hashable.Class.Hashable Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance Control.DeepSeq.NFData Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance Amazonka.Data.Headers.ToHeaders Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance Amazonka.Data.Path.ToPath Amazonka.RDSData.RollbackTransaction.RollbackTransaction instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.RollbackTransaction.RollbackTransaction -- | Runs a SQL statement against a database. -- -- If a call isn't part of a transaction because it doesn't include the -- transactionID parameter, changes that result from the call -- are committed automatically. -- -- If the binary response data from the database is more than 1 MB, the -- call is terminated. module Amazonka.RDSData.ExecuteStatement -- | The request parameters represent the input of a request to run a SQL -- statement against a database. -- -- See: newExecuteStatement smart constructor. data ExecuteStatement ExecuteStatement' :: Maybe Bool -> Maybe Text -> Maybe RecordsFormatType -> Maybe Bool -> Maybe [SqlParameter] -> Maybe ResultSetOptions -> Maybe Text -> Maybe Text -> Text -> Text -> Text -> ExecuteStatement -- | A value that indicates whether to continue running the statement after -- the call times out. By default, the statement stops running when the -- call times out. -- -- For DDL statements, we recommend continuing to run the statement after -- the call times out. When a DDL statement terminates before it is -- finished running, it can result in errors and possibly corrupted data -- structures. [$sel:continueAfterTimeout:ExecuteStatement'] :: ExecuteStatement -> Maybe Bool -- | The name of the database. [$sel:database:ExecuteStatement'] :: ExecuteStatement -> Maybe Text -- | A value that indicates whether to format the result set as a single -- JSON string. This parameter only applies to SELECT statements -- and is ignored for other types of statements. Allowed values are -- NONE and JSON. The default value is NONE. -- The result is returned in the formattedRecords field. -- -- For usage information about the JSON format for result sets, see -- Using the Data API in the Amazon Aurora User Guide. [$sel:formatRecordsAs:ExecuteStatement'] :: ExecuteStatement -> Maybe RecordsFormatType -- | A value that indicates whether to include metadata in the results. [$sel:includeResultMetadata:ExecuteStatement'] :: ExecuteStatement -> Maybe Bool -- | The parameters for the SQL statement. -- -- Array parameters are not supported. [$sel:parameters:ExecuteStatement'] :: ExecuteStatement -> Maybe [SqlParameter] -- | Options that control how the result set is returned. [$sel:resultSetOptions:ExecuteStatement'] :: ExecuteStatement -> Maybe ResultSetOptions -- | The name of the database schema. -- -- Currently, the schema parameter isn't supported. [$sel:schema:ExecuteStatement'] :: ExecuteStatement -> Maybe Text -- | The identifier of a transaction that was started by using the -- BeginTransaction operation. Specify the transaction ID of the -- transaction that you want to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. [$sel:transactionId:ExecuteStatement'] :: ExecuteStatement -> Maybe Text -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. [$sel:resourceArn:ExecuteStatement'] :: ExecuteStatement -> Text -- | The ARN of the secret that enables access to the DB cluster. Enter the -- database user name and password for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. [$sel:secretArn:ExecuteStatement'] :: ExecuteStatement -> Text -- | The SQL statement to run. [$sel:sql:ExecuteStatement'] :: ExecuteStatement -> Text -- | Create a value of ExecuteStatement with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:continueAfterTimeout:ExecuteStatement', -- executeStatement_continueAfterTimeout - A value that indicates -- whether to continue running the statement after the call times out. By -- default, the statement stops running when the call times out. -- -- For DDL statements, we recommend continuing to run the statement after -- the call times out. When a DDL statement terminates before it is -- finished running, it can result in errors and possibly corrupted data -- structures. -- -- $sel:database:ExecuteStatement', -- executeStatement_database - The name of the database. -- -- $sel:formatRecordsAs:ExecuteStatement', -- executeStatement_formatRecordsAs - A value that indicates -- whether to format the result set as a single JSON string. This -- parameter only applies to SELECT statements and is ignored -- for other types of statements. Allowed values are NONE and -- JSON. The default value is NONE. The result is -- returned in the formattedRecords field. -- -- For usage information about the JSON format for result sets, see -- Using the Data API in the Amazon Aurora User Guide. -- -- $sel:includeResultMetadata:ExecuteStatement', -- executeStatement_includeResultMetadata - A value that indicates -- whether to include metadata in the results. -- -- $sel:parameters:ExecuteStatement', -- executeStatement_parameters - The parameters for the SQL -- statement. -- -- Array parameters are not supported. -- -- $sel:resultSetOptions:ExecuteStatement', -- executeStatement_resultSetOptions - Options that control how -- the result set is returned. -- -- $sel:schema:ExecuteStatement', executeStatement_schema - -- The name of the database schema. -- -- Currently, the schema parameter isn't supported. -- -- $sel:transactionId:ExecuteStatement', -- executeStatement_transactionId - The identifier of a -- transaction that was started by using the BeginTransaction -- operation. Specify the transaction ID of the transaction that you want -- to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. -- -- $sel:resourceArn:ExecuteStatement', -- executeStatement_resourceArn - The Amazon Resource Name (ARN) -- of the Aurora Serverless DB cluster. -- -- $sel:secretArn:ExecuteStatement', -- executeStatement_secretArn - The ARN of the secret that enables -- access to the DB cluster. Enter the database user name and password -- for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. -- -- $sel:sql:ExecuteStatement', executeStatement_sql - The -- SQL statement to run. newExecuteStatement :: Text -> Text -> Text -> ExecuteStatement -- | A value that indicates whether to continue running the statement after -- the call times out. By default, the statement stops running when the -- call times out. -- -- For DDL statements, we recommend continuing to run the statement after -- the call times out. When a DDL statement terminates before it is -- finished running, it can result in errors and possibly corrupted data -- structures. executeStatement_continueAfterTimeout :: Lens' ExecuteStatement (Maybe Bool) -- | The name of the database. executeStatement_database :: Lens' ExecuteStatement (Maybe Text) -- | A value that indicates whether to format the result set as a single -- JSON string. This parameter only applies to SELECT statements -- and is ignored for other types of statements. Allowed values are -- NONE and JSON. The default value is NONE. -- The result is returned in the formattedRecords field. -- -- For usage information about the JSON format for result sets, see -- Using the Data API in the Amazon Aurora User Guide. executeStatement_formatRecordsAs :: Lens' ExecuteStatement (Maybe RecordsFormatType) -- | A value that indicates whether to include metadata in the results. executeStatement_includeResultMetadata :: Lens' ExecuteStatement (Maybe Bool) -- | The parameters for the SQL statement. -- -- Array parameters are not supported. executeStatement_parameters :: Lens' ExecuteStatement (Maybe [SqlParameter]) -- | Options that control how the result set is returned. executeStatement_resultSetOptions :: Lens' ExecuteStatement (Maybe ResultSetOptions) -- | The name of the database schema. -- -- Currently, the schema parameter isn't supported. executeStatement_schema :: Lens' ExecuteStatement (Maybe Text) -- | The identifier of a transaction that was started by using the -- BeginTransaction operation. Specify the transaction ID of the -- transaction that you want to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. executeStatement_transactionId :: Lens' ExecuteStatement (Maybe Text) -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. executeStatement_resourceArn :: Lens' ExecuteStatement Text -- | The ARN of the secret that enables access to the DB cluster. Enter the -- database user name and password for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. executeStatement_secretArn :: Lens' ExecuteStatement Text -- | The SQL statement to run. executeStatement_sql :: Lens' ExecuteStatement Text -- | The response elements represent the output of a request to run a SQL -- statement against a database. -- -- See: newExecuteStatementResponse smart constructor. data ExecuteStatementResponse ExecuteStatementResponse' :: Maybe [ColumnMetadata] -> Maybe Text -> Maybe [Field] -> Maybe Integer -> Maybe [[Field]] -> Int -> ExecuteStatementResponse -- | Metadata for the columns included in the results. This field is blank -- if the formatRecordsAs parameter is set to JSON. [$sel:columnMetadata:ExecuteStatementResponse'] :: ExecuteStatementResponse -> Maybe [ColumnMetadata] -- | A string value that represents the result set of a SELECT -- statement in JSON format. This value is only present when the -- formatRecordsAs parameter is set to JSON. -- -- The size limit for this field is currently 10 MB. If the -- JSON-formatted string representing the result set requires more than -- 10 MB, the call returns an error. [$sel:formattedRecords:ExecuteStatementResponse'] :: ExecuteStatementResponse -> Maybe Text -- | Values for fields generated during a DML request. -- --
--   <note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
--   
[$sel:generatedFields:ExecuteStatementResponse'] :: ExecuteStatementResponse -> Maybe [Field] -- | The number of records updated by the request. [$sel:numberOfRecordsUpdated:ExecuteStatementResponse'] :: ExecuteStatementResponse -> Maybe Integer -- | The records returned by the SQL statement. This field is blank if the -- formatRecordsAs parameter is set to JSON. [$sel:records:ExecuteStatementResponse'] :: ExecuteStatementResponse -> Maybe [[Field]] -- | The response's http status code. [$sel:httpStatus:ExecuteStatementResponse'] :: ExecuteStatementResponse -> Int -- | Create a value of ExecuteStatementResponse with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:columnMetadata:ExecuteStatementResponse', -- executeStatementResponse_columnMetadata - Metadata for the -- columns included in the results. This field is blank if the -- formatRecordsAs parameter is set to JSON. -- -- $sel:formattedRecords:ExecuteStatementResponse', -- executeStatementResponse_formattedRecords - A string value that -- represents the result set of a SELECT statement in JSON -- format. This value is only present when the formatRecordsAs -- parameter is set to JSON. -- -- The size limit for this field is currently 10 MB. If the -- JSON-formatted string representing the result set requires more than -- 10 MB, the call returns an error. -- -- ExecuteStatementResponse, -- executeStatementResponse_generatedFields - Values for fields -- generated during a DML request. -- --
--   <note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
--   
-- -- $sel:numberOfRecordsUpdated:ExecuteStatementResponse', -- executeStatementResponse_numberOfRecordsUpdated - The number of -- records updated by the request. -- -- $sel:records:ExecuteStatementResponse', -- executeStatementResponse_records - The records returned by the -- SQL statement. This field is blank if the formatRecordsAs -- parameter is set to JSON. -- -- $sel:httpStatus:ExecuteStatementResponse', -- executeStatementResponse_httpStatus - The response's http -- status code. newExecuteStatementResponse :: Int -> ExecuteStatementResponse -- | Metadata for the columns included in the results. This field is blank -- if the formatRecordsAs parameter is set to JSON. executeStatementResponse_columnMetadata :: Lens' ExecuteStatementResponse (Maybe [ColumnMetadata]) -- | A string value that represents the result set of a SELECT -- statement in JSON format. This value is only present when the -- formatRecordsAs parameter is set to JSON. -- -- The size limit for this field is currently 10 MB. If the -- JSON-formatted string representing the result set requires more than -- 10 MB, the call returns an error. executeStatementResponse_formattedRecords :: Lens' ExecuteStatementResponse (Maybe Text) -- | Values for fields generated during a DML request. -- --
--   <note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
--   
executeStatementResponse_generatedFields :: Lens' ExecuteStatementResponse (Maybe [Field]) -- | The number of records updated by the request. executeStatementResponse_numberOfRecordsUpdated :: Lens' ExecuteStatementResponse (Maybe Integer) -- | The records returned by the SQL statement. This field is blank if the -- formatRecordsAs parameter is set to JSON. executeStatementResponse_records :: Lens' ExecuteStatementResponse (Maybe [[Field]]) -- | The response's http status code. executeStatementResponse_httpStatus :: Lens' ExecuteStatementResponse Int instance GHC.Generics.Generic Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance GHC.Show.Show Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance GHC.Read.Read Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance GHC.Classes.Eq Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance GHC.Generics.Generic Amazonka.RDSData.ExecuteStatement.ExecuteStatementResponse instance GHC.Show.Show Amazonka.RDSData.ExecuteStatement.ExecuteStatementResponse instance GHC.Read.Read Amazonka.RDSData.ExecuteStatement.ExecuteStatementResponse instance GHC.Classes.Eq Amazonka.RDSData.ExecuteStatement.ExecuteStatementResponse instance Amazonka.Types.AWSRequest Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance Control.DeepSeq.NFData Amazonka.RDSData.ExecuteStatement.ExecuteStatementResponse instance Data.Hashable.Class.Hashable Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance Control.DeepSeq.NFData Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance Amazonka.Data.Headers.ToHeaders Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance Amazonka.Data.Path.ToPath Amazonka.RDSData.ExecuteStatement.ExecuteStatement instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.ExecuteStatement.ExecuteStatement -- | Ends a SQL transaction started with the BeginTransaction -- operation and commits the changes. module Amazonka.RDSData.CommitTransaction -- | The request parameters represent the input of a commit transaction -- request. -- -- See: newCommitTransaction smart constructor. data CommitTransaction CommitTransaction' :: Text -> Text -> Text -> CommitTransaction -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. [$sel:resourceArn:CommitTransaction'] :: CommitTransaction -> Text -- | The name or ARN of the secret that enables access to the DB cluster. [$sel:secretArn:CommitTransaction'] :: CommitTransaction -> Text -- | The identifier of the transaction to end and commit. [$sel:transactionId:CommitTransaction'] :: CommitTransaction -> Text -- | Create a value of CommitTransaction with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:resourceArn:CommitTransaction', -- commitTransaction_resourceArn - The Amazon Resource Name (ARN) -- of the Aurora Serverless DB cluster. -- -- $sel:secretArn:CommitTransaction', -- commitTransaction_secretArn - The name or ARN of the secret -- that enables access to the DB cluster. -- -- $sel:transactionId:CommitTransaction', -- commitTransaction_transactionId - The identifier of the -- transaction to end and commit. newCommitTransaction :: Text -> Text -> Text -> CommitTransaction -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. commitTransaction_resourceArn :: Lens' CommitTransaction Text -- | The name or ARN of the secret that enables access to the DB cluster. commitTransaction_secretArn :: Lens' CommitTransaction Text -- | The identifier of the transaction to end and commit. commitTransaction_transactionId :: Lens' CommitTransaction Text -- | The response elements represent the output of a commit transaction -- request. -- -- See: newCommitTransactionResponse smart constructor. data CommitTransactionResponse CommitTransactionResponse' :: Maybe Text -> Int -> CommitTransactionResponse -- | The status of the commit operation. [$sel:transactionStatus:CommitTransactionResponse'] :: CommitTransactionResponse -> Maybe Text -- | The response's http status code. [$sel:httpStatus:CommitTransactionResponse'] :: CommitTransactionResponse -> Int -- | Create a value of CommitTransactionResponse with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:transactionStatus:CommitTransactionResponse', -- commitTransactionResponse_transactionStatus - The status of the -- commit operation. -- -- $sel:httpStatus:CommitTransactionResponse', -- commitTransactionResponse_httpStatus - The response's http -- status code. newCommitTransactionResponse :: Int -> CommitTransactionResponse -- | The status of the commit operation. commitTransactionResponse_transactionStatus :: Lens' CommitTransactionResponse (Maybe Text) -- | The response's http status code. commitTransactionResponse_httpStatus :: Lens' CommitTransactionResponse Int instance GHC.Generics.Generic Amazonka.RDSData.CommitTransaction.CommitTransaction instance GHC.Show.Show Amazonka.RDSData.CommitTransaction.CommitTransaction instance GHC.Read.Read Amazonka.RDSData.CommitTransaction.CommitTransaction instance GHC.Classes.Eq Amazonka.RDSData.CommitTransaction.CommitTransaction instance GHC.Generics.Generic Amazonka.RDSData.CommitTransaction.CommitTransactionResponse instance GHC.Show.Show Amazonka.RDSData.CommitTransaction.CommitTransactionResponse instance GHC.Read.Read Amazonka.RDSData.CommitTransaction.CommitTransactionResponse instance GHC.Classes.Eq Amazonka.RDSData.CommitTransaction.CommitTransactionResponse instance Amazonka.Types.AWSRequest Amazonka.RDSData.CommitTransaction.CommitTransaction instance Control.DeepSeq.NFData Amazonka.RDSData.CommitTransaction.CommitTransactionResponse instance Data.Hashable.Class.Hashable Amazonka.RDSData.CommitTransaction.CommitTransaction instance Control.DeepSeq.NFData Amazonka.RDSData.CommitTransaction.CommitTransaction instance Amazonka.Data.Headers.ToHeaders Amazonka.RDSData.CommitTransaction.CommitTransaction instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.CommitTransaction.CommitTransaction instance Amazonka.Data.Path.ToPath Amazonka.RDSData.CommitTransaction.CommitTransaction instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.CommitTransaction.CommitTransaction -- | Starts a SQL transaction. -- -- A transaction can run for a maximum of 24 hours. A transaction is -- terminated and rolled back automatically after 24 hours. -- -- A transaction times out if no calls use its transaction ID in three -- minutes. If a transaction times out before it's committed, it's rolled -- back automatically. -- -- DDL statements inside a transaction cause an implicit commit. We -- recommend that you run each DDL statement in a separate -- ExecuteStatement call with continueAfterTimeout -- enabled. module Amazonka.RDSData.BeginTransaction -- | The request parameters represent the input of a request to start a SQL -- transaction. -- -- See: newBeginTransaction smart constructor. data BeginTransaction BeginTransaction' :: Maybe Text -> Maybe Text -> Text -> Text -> BeginTransaction -- | The name of the database. [$sel:database:BeginTransaction'] :: BeginTransaction -> Maybe Text -- | The name of the database schema. [$sel:schema:BeginTransaction'] :: BeginTransaction -> Maybe Text -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. [$sel:resourceArn:BeginTransaction'] :: BeginTransaction -> Text -- | The name or ARN of the secret that enables access to the DB cluster. [$sel:secretArn:BeginTransaction'] :: BeginTransaction -> Text -- | Create a value of BeginTransaction with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:database:BeginTransaction', -- beginTransaction_database - The name of the database. -- -- $sel:schema:BeginTransaction', beginTransaction_schema - -- The name of the database schema. -- -- $sel:resourceArn:BeginTransaction', -- beginTransaction_resourceArn - The Amazon Resource Name (ARN) -- of the Aurora Serverless DB cluster. -- -- $sel:secretArn:BeginTransaction', -- beginTransaction_secretArn - The name or ARN of the secret that -- enables access to the DB cluster. newBeginTransaction :: Text -> Text -> BeginTransaction -- | The name of the database. beginTransaction_database :: Lens' BeginTransaction (Maybe Text) -- | The name of the database schema. beginTransaction_schema :: Lens' BeginTransaction (Maybe Text) -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. beginTransaction_resourceArn :: Lens' BeginTransaction Text -- | The name or ARN of the secret that enables access to the DB cluster. beginTransaction_secretArn :: Lens' BeginTransaction Text -- | The response elements represent the output of a request to start a SQL -- transaction. -- -- See: newBeginTransactionResponse smart constructor. data BeginTransactionResponse BeginTransactionResponse' :: Maybe Text -> Int -> BeginTransactionResponse -- | The transaction ID of the transaction started by the call. [$sel:transactionId:BeginTransactionResponse'] :: BeginTransactionResponse -> Maybe Text -- | The response's http status code. [$sel:httpStatus:BeginTransactionResponse'] :: BeginTransactionResponse -> Int -- | Create a value of BeginTransactionResponse with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:transactionId:BeginTransactionResponse', -- beginTransactionResponse_transactionId - The transaction ID of -- the transaction started by the call. -- -- $sel:httpStatus:BeginTransactionResponse', -- beginTransactionResponse_httpStatus - The response's http -- status code. newBeginTransactionResponse :: Int -> BeginTransactionResponse -- | The transaction ID of the transaction started by the call. beginTransactionResponse_transactionId :: Lens' BeginTransactionResponse (Maybe Text) -- | The response's http status code. beginTransactionResponse_httpStatus :: Lens' BeginTransactionResponse Int instance GHC.Generics.Generic Amazonka.RDSData.BeginTransaction.BeginTransaction instance GHC.Show.Show Amazonka.RDSData.BeginTransaction.BeginTransaction instance GHC.Read.Read Amazonka.RDSData.BeginTransaction.BeginTransaction instance GHC.Classes.Eq Amazonka.RDSData.BeginTransaction.BeginTransaction instance GHC.Generics.Generic Amazonka.RDSData.BeginTransaction.BeginTransactionResponse instance GHC.Show.Show Amazonka.RDSData.BeginTransaction.BeginTransactionResponse instance GHC.Read.Read Amazonka.RDSData.BeginTransaction.BeginTransactionResponse instance GHC.Classes.Eq Amazonka.RDSData.BeginTransaction.BeginTransactionResponse instance Amazonka.Types.AWSRequest Amazonka.RDSData.BeginTransaction.BeginTransaction instance Control.DeepSeq.NFData Amazonka.RDSData.BeginTransaction.BeginTransactionResponse instance Data.Hashable.Class.Hashable Amazonka.RDSData.BeginTransaction.BeginTransaction instance Control.DeepSeq.NFData Amazonka.RDSData.BeginTransaction.BeginTransaction instance Amazonka.Data.Headers.ToHeaders Amazonka.RDSData.BeginTransaction.BeginTransaction instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.BeginTransaction.BeginTransaction instance Amazonka.Data.Path.ToPath Amazonka.RDSData.BeginTransaction.BeginTransaction instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.BeginTransaction.BeginTransaction -- | Runs a batch SQL statement over an array of data. -- -- You can run bulk update and insert operations for multiple records -- using a DML statement with different parameter sets. Bulk operations -- can provide a significant performance improvement over individual -- insert and update operations. -- -- If a call isn't part of a transaction because it doesn't include the -- transactionID parameter, changes that result from the call -- are committed automatically. -- -- There isn't a fixed upper limit on the number of parameter sets. -- However, the maximum size of the HTTP request submitted through the -- Data API is 4 MiB. If the request exceeds this limit, the Data API -- returns an error and doesn't process the request. This 4-MiB limit -- includes the size of the HTTP headers and the JSON notation in the -- request. Thus, the number of parameter sets that you can include -- depends on a combination of factors, such as the size of the SQL -- statement and the size of each parameter set. -- -- The response size limit is 1 MiB. If the call returns more than 1 MiB -- of response data, the call is terminated. module Amazonka.RDSData.BatchExecuteStatement -- | The request parameters represent the input of a SQL statement over an -- array of data. -- -- See: newBatchExecuteStatement smart constructor. data BatchExecuteStatement BatchExecuteStatement' :: Maybe Text -> Maybe [[SqlParameter]] -> Maybe Text -> Maybe Text -> Text -> Text -> Text -> BatchExecuteStatement -- | The name of the database. [$sel:database:BatchExecuteStatement'] :: BatchExecuteStatement -> Maybe Text -- | The parameter set for the batch operation. -- -- The SQL statement is executed as many times as the number of parameter -- sets provided. To execute a SQL statement with no parameters, use one -- of the following options: -- -- -- -- Array parameters are not supported. [$sel:parameterSets:BatchExecuteStatement'] :: BatchExecuteStatement -> Maybe [[SqlParameter]] -- | The name of the database schema. -- -- Currently, the schema parameter isn't supported. [$sel:schema:BatchExecuteStatement'] :: BatchExecuteStatement -> Maybe Text -- | The identifier of a transaction that was started by using the -- BeginTransaction operation. Specify the transaction ID of the -- transaction that you want to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. [$sel:transactionId:BatchExecuteStatement'] :: BatchExecuteStatement -> Maybe Text -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. [$sel:resourceArn:BatchExecuteStatement'] :: BatchExecuteStatement -> Text -- | The ARN of the secret that enables access to the DB cluster. Enter the -- database user name and password for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. [$sel:secretArn:BatchExecuteStatement'] :: BatchExecuteStatement -> Text -- | The SQL statement to run. Don't include a semicolon (;) at the end of -- the SQL statement. [$sel:sql:BatchExecuteStatement'] :: BatchExecuteStatement -> Text -- | Create a value of BatchExecuteStatement with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:database:BatchExecuteStatement', -- batchExecuteStatement_database - The name of the database. -- -- $sel:parameterSets:BatchExecuteStatement', -- batchExecuteStatement_parameterSets - The parameter set for the -- batch operation. -- -- The SQL statement is executed as many times as the number of parameter -- sets provided. To execute a SQL statement with no parameters, use one -- of the following options: -- -- -- -- Array parameters are not supported. -- -- $sel:schema:BatchExecuteStatement', -- batchExecuteStatement_schema - The name of the database schema. -- -- Currently, the schema parameter isn't supported. -- -- $sel:transactionId:BatchExecuteStatement', -- batchExecuteStatement_transactionId - The identifier of a -- transaction that was started by using the BeginTransaction -- operation. Specify the transaction ID of the transaction that you want -- to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. -- -- $sel:resourceArn:BatchExecuteStatement', -- batchExecuteStatement_resourceArn - The Amazon Resource Name -- (ARN) of the Aurora Serverless DB cluster. -- -- $sel:secretArn:BatchExecuteStatement', -- batchExecuteStatement_secretArn - The ARN of the secret that -- enables access to the DB cluster. Enter the database user name and -- password for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. -- -- $sel:sql:BatchExecuteStatement', -- batchExecuteStatement_sql - The SQL statement to run. Don't -- include a semicolon (;) at the end of the SQL statement. newBatchExecuteStatement :: Text -> Text -> Text -> BatchExecuteStatement -- | The name of the database. batchExecuteStatement_database :: Lens' BatchExecuteStatement (Maybe Text) -- | The parameter set for the batch operation. -- -- The SQL statement is executed as many times as the number of parameter -- sets provided. To execute a SQL statement with no parameters, use one -- of the following options: -- -- -- -- Array parameters are not supported. batchExecuteStatement_parameterSets :: Lens' BatchExecuteStatement (Maybe [[SqlParameter]]) -- | The name of the database schema. -- -- Currently, the schema parameter isn't supported. batchExecuteStatement_schema :: Lens' BatchExecuteStatement (Maybe Text) -- | The identifier of a transaction that was started by using the -- BeginTransaction operation. Specify the transaction ID of the -- transaction that you want to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. batchExecuteStatement_transactionId :: Lens' BatchExecuteStatement (Maybe Text) -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. batchExecuteStatement_resourceArn :: Lens' BatchExecuteStatement Text -- | The ARN of the secret that enables access to the DB cluster. Enter the -- database user name and password for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. batchExecuteStatement_secretArn :: Lens' BatchExecuteStatement Text -- | The SQL statement to run. Don't include a semicolon (;) at the end of -- the SQL statement. batchExecuteStatement_sql :: Lens' BatchExecuteStatement Text -- | The response elements represent the output of a SQL statement over an -- array of data. -- -- See: newBatchExecuteStatementResponse smart constructor. data BatchExecuteStatementResponse BatchExecuteStatementResponse' :: Maybe [UpdateResult] -> Int -> BatchExecuteStatementResponse -- | The execution results of each batch entry. [$sel:updateResults:BatchExecuteStatementResponse'] :: BatchExecuteStatementResponse -> Maybe [UpdateResult] -- | The response's http status code. [$sel:httpStatus:BatchExecuteStatementResponse'] :: BatchExecuteStatementResponse -> Int -- | Create a value of BatchExecuteStatementResponse with all -- optional fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:updateResults:BatchExecuteStatementResponse', -- batchExecuteStatementResponse_updateResults - The execution -- results of each batch entry. -- -- $sel:httpStatus:BatchExecuteStatementResponse', -- batchExecuteStatementResponse_httpStatus - The response's http -- status code. newBatchExecuteStatementResponse :: Int -> BatchExecuteStatementResponse -- | The execution results of each batch entry. batchExecuteStatementResponse_updateResults :: Lens' BatchExecuteStatementResponse (Maybe [UpdateResult]) -- | The response's http status code. batchExecuteStatementResponse_httpStatus :: Lens' BatchExecuteStatementResponse Int instance GHC.Generics.Generic Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance GHC.Show.Show Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance GHC.Read.Read Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance GHC.Classes.Eq Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance GHC.Generics.Generic Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatementResponse instance GHC.Show.Show Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatementResponse instance GHC.Read.Read Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatementResponse instance GHC.Classes.Eq Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatementResponse instance Amazonka.Types.AWSRequest Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance Control.DeepSeq.NFData Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatementResponse instance Data.Hashable.Class.Hashable Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance Control.DeepSeq.NFData Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance Amazonka.Data.Headers.ToHeaders Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance Amazonka.Data.Path.ToPath Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement instance Amazonka.Data.Query.ToQuery Amazonka.RDSData.BatchExecuteStatement.BatchExecuteStatement module Amazonka.RDSData.Lens -- | The name of the database. batchExecuteStatement_database :: Lens' BatchExecuteStatement (Maybe Text) -- | The parameter set for the batch operation. -- -- The SQL statement is executed as many times as the number of parameter -- sets provided. To execute a SQL statement with no parameters, use one -- of the following options: -- -- -- -- Array parameters are not supported. batchExecuteStatement_parameterSets :: Lens' BatchExecuteStatement (Maybe [[SqlParameter]]) -- | The name of the database schema. -- -- Currently, the schema parameter isn't supported. batchExecuteStatement_schema :: Lens' BatchExecuteStatement (Maybe Text) -- | The identifier of a transaction that was started by using the -- BeginTransaction operation. Specify the transaction ID of the -- transaction that you want to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. batchExecuteStatement_transactionId :: Lens' BatchExecuteStatement (Maybe Text) -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. batchExecuteStatement_resourceArn :: Lens' BatchExecuteStatement Text -- | The ARN of the secret that enables access to the DB cluster. Enter the -- database user name and password for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. batchExecuteStatement_secretArn :: Lens' BatchExecuteStatement Text -- | The SQL statement to run. Don't include a semicolon (;) at the end of -- the SQL statement. batchExecuteStatement_sql :: Lens' BatchExecuteStatement Text -- | The execution results of each batch entry. batchExecuteStatementResponse_updateResults :: Lens' BatchExecuteStatementResponse (Maybe [UpdateResult]) -- | The response's http status code. batchExecuteStatementResponse_httpStatus :: Lens' BatchExecuteStatementResponse Int -- | The name of the database. beginTransaction_database :: Lens' BeginTransaction (Maybe Text) -- | The name of the database schema. beginTransaction_schema :: Lens' BeginTransaction (Maybe Text) -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. beginTransaction_resourceArn :: Lens' BeginTransaction Text -- | The name or ARN of the secret that enables access to the DB cluster. beginTransaction_secretArn :: Lens' BeginTransaction Text -- | The transaction ID of the transaction started by the call. beginTransactionResponse_transactionId :: Lens' BeginTransactionResponse (Maybe Text) -- | The response's http status code. beginTransactionResponse_httpStatus :: Lens' BeginTransactionResponse Int -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. commitTransaction_resourceArn :: Lens' CommitTransaction Text -- | The name or ARN of the secret that enables access to the DB cluster. commitTransaction_secretArn :: Lens' CommitTransaction Text -- | The identifier of the transaction to end and commit. commitTransaction_transactionId :: Lens' CommitTransaction Text -- | The status of the commit operation. commitTransactionResponse_transactionStatus :: Lens' CommitTransactionResponse (Maybe Text) -- | The response's http status code. commitTransactionResponse_httpStatus :: Lens' CommitTransactionResponse Int -- | A value that indicates whether to continue running the statement after -- the call times out. By default, the statement stops running when the -- call times out. -- -- For DDL statements, we recommend continuing to run the statement after -- the call times out. When a DDL statement terminates before it is -- finished running, it can result in errors and possibly corrupted data -- structures. executeStatement_continueAfterTimeout :: Lens' ExecuteStatement (Maybe Bool) -- | The name of the database. executeStatement_database :: Lens' ExecuteStatement (Maybe Text) -- | A value that indicates whether to format the result set as a single -- JSON string. This parameter only applies to SELECT statements -- and is ignored for other types of statements. Allowed values are -- NONE and JSON. The default value is NONE. -- The result is returned in the formattedRecords field. -- -- For usage information about the JSON format for result sets, see -- Using the Data API in the Amazon Aurora User Guide. executeStatement_formatRecordsAs :: Lens' ExecuteStatement (Maybe RecordsFormatType) -- | A value that indicates whether to include metadata in the results. executeStatement_includeResultMetadata :: Lens' ExecuteStatement (Maybe Bool) -- | The parameters for the SQL statement. -- -- Array parameters are not supported. executeStatement_parameters :: Lens' ExecuteStatement (Maybe [SqlParameter]) -- | Options that control how the result set is returned. executeStatement_resultSetOptions :: Lens' ExecuteStatement (Maybe ResultSetOptions) -- | The name of the database schema. -- -- Currently, the schema parameter isn't supported. executeStatement_schema :: Lens' ExecuteStatement (Maybe Text) -- | The identifier of a transaction that was started by using the -- BeginTransaction operation. Specify the transaction ID of the -- transaction that you want to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. executeStatement_transactionId :: Lens' ExecuteStatement (Maybe Text) -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. executeStatement_resourceArn :: Lens' ExecuteStatement Text -- | The ARN of the secret that enables access to the DB cluster. Enter the -- database user name and password for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. executeStatement_secretArn :: Lens' ExecuteStatement Text -- | The SQL statement to run. executeStatement_sql :: Lens' ExecuteStatement Text -- | Metadata for the columns included in the results. This field is blank -- if the formatRecordsAs parameter is set to JSON. executeStatementResponse_columnMetadata :: Lens' ExecuteStatementResponse (Maybe [ColumnMetadata]) -- | A string value that represents the result set of a SELECT -- statement in JSON format. This value is only present when the -- formatRecordsAs parameter is set to JSON. -- -- The size limit for this field is currently 10 MB. If the -- JSON-formatted string representing the result set requires more than -- 10 MB, the call returns an error. executeStatementResponse_formattedRecords :: Lens' ExecuteStatementResponse (Maybe Text) -- | Values for fields generated during a DML request. -- --
--   <note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
--   
executeStatementResponse_generatedFields :: Lens' ExecuteStatementResponse (Maybe [Field]) -- | The number of records updated by the request. executeStatementResponse_numberOfRecordsUpdated :: Lens' ExecuteStatementResponse (Maybe Integer) -- | The records returned by the SQL statement. This field is blank if the -- formatRecordsAs parameter is set to JSON. executeStatementResponse_records :: Lens' ExecuteStatementResponse (Maybe [[Field]]) -- | The response's http status code. executeStatementResponse_httpStatus :: Lens' ExecuteStatementResponse Int -- | The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster. rollbackTransaction_resourceArn :: Lens' RollbackTransaction Text -- | The name or ARN of the secret that enables access to the DB cluster. rollbackTransaction_secretArn :: Lens' RollbackTransaction Text -- | The identifier of the transaction to roll back. rollbackTransaction_transactionId :: Lens' RollbackTransaction Text -- | The status of the rollback operation. rollbackTransactionResponse_transactionStatus :: Lens' RollbackTransactionResponse (Maybe Text) -- | The response's http status code. rollbackTransactionResponse_httpStatus :: Lens' RollbackTransactionResponse Int -- | An array of arrays. arrayValue_arrayValues :: Lens' ArrayValue (Maybe [ArrayValue]) -- | An array of Boolean values. arrayValue_booleanValues :: Lens' ArrayValue (Maybe [Bool]) -- | An array of floating-point numbers. arrayValue_doubleValues :: Lens' ArrayValue (Maybe [Double]) -- | An array of integers. arrayValue_longValues :: Lens' ArrayValue (Maybe [Integer]) -- | An array of strings. arrayValue_stringValues :: Lens' ArrayValue (Maybe [Text]) -- | The type of the column. columnMetadata_arrayBaseColumnType :: Lens' ColumnMetadata (Maybe Int) -- | A value that indicates whether the column increments automatically. columnMetadata_isAutoIncrement :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether the column is case-sensitive. columnMetadata_isCaseSensitive :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether the column contains currency values. columnMetadata_isCurrency :: Lens' ColumnMetadata (Maybe Bool) -- | A value that indicates whether an integer column is signed. columnMetadata_isSigned :: Lens' ColumnMetadata (Maybe Bool) -- | The label for the column. columnMetadata_label :: Lens' ColumnMetadata (Maybe Text) -- | The name of the column. columnMetadata_name :: Lens' ColumnMetadata (Maybe Text) -- | A value that indicates whether the column is nullable. columnMetadata_nullable :: Lens' ColumnMetadata (Maybe Int) -- | The precision value of a decimal number column. columnMetadata_precision :: Lens' ColumnMetadata (Maybe Int) -- | The scale value of a decimal number column. columnMetadata_scale :: Lens' ColumnMetadata (Maybe Int) -- | The name of the schema that owns the table that includes the column. columnMetadata_schemaName :: Lens' ColumnMetadata (Maybe Text) -- | The name of the table that includes the column. columnMetadata_tableName :: Lens' ColumnMetadata (Maybe Text) -- | The type of the column. columnMetadata_type :: Lens' ColumnMetadata (Maybe Int) -- | The database-specific data type of the column. columnMetadata_typeName :: Lens' ColumnMetadata (Maybe Text) -- | An array of values. field_arrayValue :: Lens' Field (Maybe ArrayValue) -- | A value of BLOB data type.-- -- Note: This Lens -- automatically encodes and decodes Base64 data. -- The underlying -- isomorphism will encode to Base64 representation during -- -- serialisation, and decode from Base64 representation during -- deserialisation. -- This Lens accepts and returns only raw -- unencoded data. field_blobValue :: Lens' Field (Maybe ByteString) -- | A value of Boolean data type. field_booleanValue :: Lens' Field (Maybe Bool) -- | A value of double data type. field_doubleValue :: Lens' Field (Maybe Double) -- | A NULL value. field_isNull :: Lens' Field (Maybe Bool) -- | A value of long data type. field_longValue :: Lens' Field (Maybe Integer) -- | A value of string data type. field_stringValue :: Lens' Field (Maybe Text) -- | A value that indicates how a field of DECIMAL type is -- represented in the response. The value of STRING, the -- default, specifies that it is converted to a String value. The value -- of DOUBLE_OR_LONG specifies that it is converted to a Long -- value if its scale is 0, or to a Double value otherwise. -- -- Conversion to Double or Long can result in roundoff errors due to -- precision loss. We recommend converting to String, especially when -- working with currency values. resultSetOptions_decimalReturnType :: Lens' ResultSetOptions (Maybe DecimalReturnType) -- | A value that indicates how a field of LONG type is -- represented. Allowed values are LONG and STRING. The -- default is LONG. Specify STRING if the length or -- precision of numeric values might cause truncation or rounding errors. resultSetOptions_longReturnType :: Lens' ResultSetOptions (Maybe LongReturnType) -- | The name of the parameter. sqlParameter_name :: Lens' SqlParameter (Maybe Text) -- | A hint that specifies the correct object type for data type mapping. -- Possible values are as follows: -- -- sqlParameter_typeHint :: Lens' SqlParameter (Maybe TypeHint) -- | The value of the parameter. sqlParameter_value :: Lens' SqlParameter (Maybe Field) -- | Values for fields generated during the request. updateResult_generatedFields :: Lens' UpdateResult (Maybe [Field]) module Amazonka.RDSData.Waiters -- | Derived from API version 2018-08-01 of the AWS service -- descriptions, licensed under Apache 2.0. -- -- Amazon RDS Data Service -- -- Amazon RDS provides an HTTP endpoint to run SQL statements on an -- Amazon Aurora Serverless v1 DB cluster. To run these statements, you -- work with the Data Service API. -- -- The Data Service API isn't supported on Amazon Aurora Serverless v2 DB -- clusters. -- -- For more information about the Data Service API, see Using the Data -- API in the Amazon Aurora User Guide. module Amazonka.RDSData -- | API version 2018-08-01 of the Amazon RDS DataService SDK -- configuration. defaultService :: Service -- | You do not have sufficient access to perform this action. _AccessDeniedException :: AsError a => Fold a ServiceError -- | There is an error in the call or in a SQL statement. _BadRequestException :: AsError a => Fold a ServiceError -- | There are insufficient privileges to make the call. _ForbiddenException :: AsError a => Fold a ServiceError -- | An internal error occurred. _InternalServerErrorException :: AsError a => Fold a ServiceError -- | The resourceArn, secretArn, or -- transactionId value can't be found. _NotFoundException :: AsError a => Fold a ServiceError -- | The service specified by the resourceArn parameter is not -- available. _ServiceUnavailableError :: AsError a => Fold a ServiceError -- | The execution of the SQL statement timed out. _StatementTimeoutException :: AsError a => Fold a ServiceError -- | The request parameters represent the input of a SQL statement over an -- array of data. -- -- See: newBatchExecuteStatement smart constructor. data BatchExecuteStatement BatchExecuteStatement' :: Maybe Text -> Maybe [[SqlParameter]] -> Maybe Text -> Maybe Text -> Text -> Text -> Text -> BatchExecuteStatement -- | Create a value of BatchExecuteStatement with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:database:BatchExecuteStatement', -- batchExecuteStatement_database - The name of the database. -- -- $sel:parameterSets:BatchExecuteStatement', -- batchExecuteStatement_parameterSets - The parameter set for the -- batch operation. -- -- The SQL statement is executed as many times as the number of parameter -- sets provided. To execute a SQL statement with no parameters, use one -- of the following options: -- -- -- -- Array parameters are not supported. -- -- $sel:schema:BatchExecuteStatement', -- batchExecuteStatement_schema - The name of the database schema. -- -- Currently, the schema parameter isn't supported. -- -- $sel:transactionId:BatchExecuteStatement', -- batchExecuteStatement_transactionId - The identifier of a -- transaction that was started by using the BeginTransaction -- operation. Specify the transaction ID of the transaction that you want -- to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. -- -- $sel:resourceArn:BatchExecuteStatement', -- batchExecuteStatement_resourceArn - The Amazon Resource Name -- (ARN) of the Aurora Serverless DB cluster. -- -- $sel:secretArn:BatchExecuteStatement', -- batchExecuteStatement_secretArn - The ARN of the secret that -- enables access to the DB cluster. Enter the database user name and -- password for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. -- -- $sel:sql:BatchExecuteStatement', -- batchExecuteStatement_sql - The SQL statement to run. Don't -- include a semicolon (;) at the end of the SQL statement. newBatchExecuteStatement :: Text -> Text -> Text -> BatchExecuteStatement -- | The response elements represent the output of a SQL statement over an -- array of data. -- -- See: newBatchExecuteStatementResponse smart constructor. data BatchExecuteStatementResponse BatchExecuteStatementResponse' :: Maybe [UpdateResult] -> Int -> BatchExecuteStatementResponse -- | Create a value of BatchExecuteStatementResponse with all -- optional fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:updateResults:BatchExecuteStatementResponse', -- batchExecuteStatementResponse_updateResults - The execution -- results of each batch entry. -- -- $sel:httpStatus:BatchExecuteStatementResponse', -- batchExecuteStatementResponse_httpStatus - The response's http -- status code. newBatchExecuteStatementResponse :: Int -> BatchExecuteStatementResponse -- | The request parameters represent the input of a request to start a SQL -- transaction. -- -- See: newBeginTransaction smart constructor. data BeginTransaction BeginTransaction' :: Maybe Text -> Maybe Text -> Text -> Text -> BeginTransaction -- | Create a value of BeginTransaction with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:database:BeginTransaction', -- beginTransaction_database - The name of the database. -- -- $sel:schema:BeginTransaction', beginTransaction_schema - -- The name of the database schema. -- -- $sel:resourceArn:BeginTransaction', -- beginTransaction_resourceArn - The Amazon Resource Name (ARN) -- of the Aurora Serverless DB cluster. -- -- $sel:secretArn:BeginTransaction', -- beginTransaction_secretArn - The name or ARN of the secret that -- enables access to the DB cluster. newBeginTransaction :: Text -> Text -> BeginTransaction -- | The response elements represent the output of a request to start a SQL -- transaction. -- -- See: newBeginTransactionResponse smart constructor. data BeginTransactionResponse BeginTransactionResponse' :: Maybe Text -> Int -> BeginTransactionResponse -- | Create a value of BeginTransactionResponse with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:transactionId:BeginTransactionResponse', -- beginTransactionResponse_transactionId - The transaction ID of -- the transaction started by the call. -- -- $sel:httpStatus:BeginTransactionResponse', -- beginTransactionResponse_httpStatus - The response's http -- status code. newBeginTransactionResponse :: Int -> BeginTransactionResponse -- | The request parameters represent the input of a commit transaction -- request. -- -- See: newCommitTransaction smart constructor. data CommitTransaction CommitTransaction' :: Text -> Text -> Text -> CommitTransaction -- | Create a value of CommitTransaction with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:resourceArn:CommitTransaction', -- commitTransaction_resourceArn - The Amazon Resource Name (ARN) -- of the Aurora Serverless DB cluster. -- -- $sel:secretArn:CommitTransaction', -- commitTransaction_secretArn - The name or ARN of the secret -- that enables access to the DB cluster. -- -- $sel:transactionId:CommitTransaction', -- commitTransaction_transactionId - The identifier of the -- transaction to end and commit. newCommitTransaction :: Text -> Text -> Text -> CommitTransaction -- | The response elements represent the output of a commit transaction -- request. -- -- See: newCommitTransactionResponse smart constructor. data CommitTransactionResponse CommitTransactionResponse' :: Maybe Text -> Int -> CommitTransactionResponse -- | Create a value of CommitTransactionResponse with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:transactionStatus:CommitTransactionResponse', -- commitTransactionResponse_transactionStatus - The status of the -- commit operation. -- -- $sel:httpStatus:CommitTransactionResponse', -- commitTransactionResponse_httpStatus - The response's http -- status code. newCommitTransactionResponse :: Int -> CommitTransactionResponse -- | The request parameters represent the input of a request to run a SQL -- statement against a database. -- -- See: newExecuteStatement smart constructor. data ExecuteStatement ExecuteStatement' :: Maybe Bool -> Maybe Text -> Maybe RecordsFormatType -> Maybe Bool -> Maybe [SqlParameter] -> Maybe ResultSetOptions -> Maybe Text -> Maybe Text -> Text -> Text -> Text -> ExecuteStatement -- | Create a value of ExecuteStatement with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:continueAfterTimeout:ExecuteStatement', -- executeStatement_continueAfterTimeout - A value that indicates -- whether to continue running the statement after the call times out. By -- default, the statement stops running when the call times out. -- -- For DDL statements, we recommend continuing to run the statement after -- the call times out. When a DDL statement terminates before it is -- finished running, it can result in errors and possibly corrupted data -- structures. -- -- $sel:database:ExecuteStatement', -- executeStatement_database - The name of the database. -- -- $sel:formatRecordsAs:ExecuteStatement', -- executeStatement_formatRecordsAs - A value that indicates -- whether to format the result set as a single JSON string. This -- parameter only applies to SELECT statements and is ignored -- for other types of statements. Allowed values are NONE and -- JSON. The default value is NONE. The result is -- returned in the formattedRecords field. -- -- For usage information about the JSON format for result sets, see -- Using the Data API in the Amazon Aurora User Guide. -- -- $sel:includeResultMetadata:ExecuteStatement', -- executeStatement_includeResultMetadata - A value that indicates -- whether to include metadata in the results. -- -- $sel:parameters:ExecuteStatement', -- executeStatement_parameters - The parameters for the SQL -- statement. -- -- Array parameters are not supported. -- -- $sel:resultSetOptions:ExecuteStatement', -- executeStatement_resultSetOptions - Options that control how -- the result set is returned. -- -- $sel:schema:ExecuteStatement', executeStatement_schema - -- The name of the database schema. -- -- Currently, the schema parameter isn't supported. -- -- $sel:transactionId:ExecuteStatement', -- executeStatement_transactionId - The identifier of a -- transaction that was started by using the BeginTransaction -- operation. Specify the transaction ID of the transaction that you want -- to include the SQL statement in. -- -- If the SQL statement is not part of a transaction, don't set this -- parameter. -- -- $sel:resourceArn:ExecuteStatement', -- executeStatement_resourceArn - The Amazon Resource Name (ARN) -- of the Aurora Serverless DB cluster. -- -- $sel:secretArn:ExecuteStatement', -- executeStatement_secretArn - The ARN of the secret that enables -- access to the DB cluster. Enter the database user name and password -- for the credentials in the secret. -- -- For information about creating the secret, see Create a database -- secret. -- -- $sel:sql:ExecuteStatement', executeStatement_sql - The -- SQL statement to run. newExecuteStatement :: Text -> Text -> Text -> ExecuteStatement -- | The response elements represent the output of a request to run a SQL -- statement against a database. -- -- See: newExecuteStatementResponse smart constructor. data ExecuteStatementResponse ExecuteStatementResponse' :: Maybe [ColumnMetadata] -> Maybe Text -> Maybe [Field] -> Maybe Integer -> Maybe [[Field]] -> Int -> ExecuteStatementResponse -- | Create a value of ExecuteStatementResponse with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:columnMetadata:ExecuteStatementResponse', -- executeStatementResponse_columnMetadata - Metadata for the -- columns included in the results. This field is blank if the -- formatRecordsAs parameter is set to JSON. -- -- $sel:formattedRecords:ExecuteStatementResponse', -- executeStatementResponse_formattedRecords - A string value that -- represents the result set of a SELECT statement in JSON -- format. This value is only present when the formatRecordsAs -- parameter is set to JSON. -- -- The size limit for this field is currently 10 MB. If the -- JSON-formatted string representing the result set requires more than -- 10 MB, the call returns an error. -- -- ExecuteStatementResponse, -- executeStatementResponse_generatedFields - Values for fields -- generated during a DML request. -- --
--   <note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
--   
-- -- $sel:numberOfRecordsUpdated:ExecuteStatementResponse', -- executeStatementResponse_numberOfRecordsUpdated - The number of -- records updated by the request. -- -- $sel:records:ExecuteStatementResponse', -- executeStatementResponse_records - The records returned by the -- SQL statement. This field is blank if the formatRecordsAs -- parameter is set to JSON. -- -- $sel:httpStatus:ExecuteStatementResponse', -- executeStatementResponse_httpStatus - The response's http -- status code. newExecuteStatementResponse :: Int -> ExecuteStatementResponse -- | The request parameters represent the input of a request to perform a -- rollback of a transaction. -- -- See: newRollbackTransaction smart constructor. data RollbackTransaction RollbackTransaction' :: Text -> Text -> Text -> RollbackTransaction -- | Create a value of RollbackTransaction with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:resourceArn:RollbackTransaction', -- rollbackTransaction_resourceArn - The Amazon Resource Name -- (ARN) of the Aurora Serverless DB cluster. -- -- $sel:secretArn:RollbackTransaction', -- rollbackTransaction_secretArn - The name or ARN of the secret -- that enables access to the DB cluster. -- -- $sel:transactionId:RollbackTransaction', -- rollbackTransaction_transactionId - The identifier of the -- transaction to roll back. newRollbackTransaction :: Text -> Text -> Text -> RollbackTransaction -- | The response elements represent the output of a request to perform a -- rollback of a transaction. -- -- See: newRollbackTransactionResponse smart constructor. data RollbackTransactionResponse RollbackTransactionResponse' :: Maybe Text -> Int -> RollbackTransactionResponse -- | Create a value of RollbackTransactionResponse with all optional -- fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:transactionStatus:RollbackTransactionResponse', -- rollbackTransactionResponse_transactionStatus - The status of -- the rollback operation. -- -- $sel:httpStatus:RollbackTransactionResponse', -- rollbackTransactionResponse_httpStatus - The response's http -- status code. newRollbackTransactionResponse :: Int -> RollbackTransactionResponse newtype DecimalReturnType DecimalReturnType' :: Text -> DecimalReturnType [fromDecimalReturnType] :: DecimalReturnType -> Text pattern DecimalReturnType_DOUBLE_OR_LONG :: DecimalReturnType pattern DecimalReturnType_STRING :: DecimalReturnType newtype LongReturnType LongReturnType' :: Text -> LongReturnType [fromLongReturnType] :: LongReturnType -> Text pattern LongReturnType_LONG :: LongReturnType pattern LongReturnType_STRING :: LongReturnType newtype RecordsFormatType RecordsFormatType' :: Text -> RecordsFormatType [fromRecordsFormatType] :: RecordsFormatType -> Text pattern RecordsFormatType_JSON :: RecordsFormatType pattern RecordsFormatType_NONE :: RecordsFormatType newtype TypeHint TypeHint' :: Text -> TypeHint [fromTypeHint] :: TypeHint -> Text pattern TypeHint_DATE :: TypeHint pattern TypeHint_DECIMAL :: TypeHint pattern TypeHint_JSON :: TypeHint pattern TypeHint_TIME :: TypeHint pattern TypeHint_TIMESTAMP :: TypeHint pattern TypeHint_UUID :: TypeHint -- | Contains an array. -- -- See: newArrayValue smart constructor. data ArrayValue ArrayValue' :: Maybe [ArrayValue] -> Maybe [Bool] -> Maybe [Double] -> Maybe [Integer] -> Maybe [Text] -> ArrayValue -- | Create a value of ArrayValue with all optional fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayValues:ArrayValue', arrayValue_arrayValues - -- An array of arrays. -- -- $sel:booleanValues:ArrayValue', arrayValue_booleanValues -- - An array of Boolean values. -- -- $sel:doubleValues:ArrayValue', arrayValue_doubleValues - -- An array of floating-point numbers. -- -- $sel:longValues:ArrayValue', arrayValue_longValues - An -- array of integers. -- -- $sel:stringValues:ArrayValue', arrayValue_stringValues - -- An array of strings. newArrayValue :: ArrayValue -- | Contains the metadata for a column. -- -- See: newColumnMetadata smart constructor. data ColumnMetadata ColumnMetadata' :: Maybe Int -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Text -> ColumnMetadata -- | Create a value of ColumnMetadata with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayBaseColumnType:ColumnMetadata', -- columnMetadata_arrayBaseColumnType - The type of the column. -- -- $sel:isAutoIncrement:ColumnMetadata', -- columnMetadata_isAutoIncrement - A value that indicates whether -- the column increments automatically. -- -- $sel:isCaseSensitive:ColumnMetadata', -- columnMetadata_isCaseSensitive - A value that indicates whether -- the column is case-sensitive. -- -- $sel:isCurrency:ColumnMetadata', -- columnMetadata_isCurrency - A value that indicates whether the -- column contains currency values. -- -- $sel:isSigned:ColumnMetadata', columnMetadata_isSigned - -- A value that indicates whether an integer column is signed. -- -- $sel:label:ColumnMetadata', columnMetadata_label - The -- label for the column. -- -- $sel:name:ColumnMetadata', columnMetadata_name - The -- name of the column. -- -- $sel:nullable:ColumnMetadata', columnMetadata_nullable - -- A value that indicates whether the column is nullable. -- -- $sel:precision:ColumnMetadata', columnMetadata_precision -- - The precision value of a decimal number column. -- -- $sel:scale:ColumnMetadata', columnMetadata_scale - The -- scale value of a decimal number column. -- -- $sel:schemaName:ColumnMetadata', -- columnMetadata_schemaName - The name of the schema that owns -- the table that includes the column. -- -- $sel:tableName:ColumnMetadata', columnMetadata_tableName -- - The name of the table that includes the column. -- -- $sel:type':ColumnMetadata', columnMetadata_type - The -- type of the column. -- -- $sel:typeName:ColumnMetadata', columnMetadata_typeName - -- The database-specific data type of the column. newColumnMetadata :: ColumnMetadata -- | Contains a value. -- -- See: newField smart constructor. data Field Field' :: Maybe ArrayValue -> Maybe Base64 -> Maybe Bool -> Maybe Double -> Maybe Bool -> Maybe Integer -> Maybe Text -> Field -- | Create a value of Field with all optional fields omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:arrayValue:Field', field_arrayValue - An array of -- values. -- -- $sel:blobValue:Field', field_blobValue - A value of BLOB -- data type.-- -- Note: This Lens automatically encodes -- and decodes Base64 data. -- The underlying isomorphism will encode to -- Base64 representation during -- serialisation, and decode from Base64 -- representation during deserialisation. -- This Lens accepts -- and returns only raw unencoded data. -- -- $sel:booleanValue:Field', field_booleanValue - A value -- of Boolean data type. -- -- $sel:doubleValue:Field', field_doubleValue - A value of -- double data type. -- -- $sel:isNull:Field', field_isNull - A NULL value. -- -- $sel:longValue:Field', field_longValue - A value of long -- data type. -- -- $sel:stringValue:Field', field_stringValue - A value of -- string data type. newField :: Field -- | Options that control how the result set is returned. -- -- See: newResultSetOptions smart constructor. data ResultSetOptions ResultSetOptions' :: Maybe DecimalReturnType -> Maybe LongReturnType -> ResultSetOptions -- | Create a value of ResultSetOptions with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:decimalReturnType:ResultSetOptions', -- resultSetOptions_decimalReturnType - A value that indicates how -- a field of DECIMAL type is represented in the response. The -- value of STRING, the default, specifies that it is converted -- to a String value. The value of DOUBLE_OR_LONG specifies that -- it is converted to a Long value if its scale is 0, or to a Double -- value otherwise. -- -- Conversion to Double or Long can result in roundoff errors due to -- precision loss. We recommend converting to String, especially when -- working with currency values. -- -- $sel:longReturnType:ResultSetOptions', -- resultSetOptions_longReturnType - A value that indicates how a -- field of LONG type is represented. Allowed values are -- LONG and STRING. The default is LONG. -- Specify STRING if the length or precision of numeric values -- might cause truncation or rounding errors. newResultSetOptions :: ResultSetOptions -- | A parameter used in a SQL statement. -- -- See: newSqlParameter smart constructor. data SqlParameter SqlParameter' :: Maybe Text -> Maybe TypeHint -> Maybe Field -> SqlParameter -- | Create a value of SqlParameter with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:name:SqlParameter', sqlParameter_name - The name of -- the parameter. -- -- $sel:typeHint:SqlParameter', sqlParameter_typeHint - A -- hint that specifies the correct object type for data type mapping. -- Possible values are as follows: -- -- -- -- $sel:value:SqlParameter', sqlParameter_value - The value -- of the parameter. newSqlParameter :: SqlParameter -- | The response elements represent the results of an update. -- -- See: newUpdateResult smart constructor. data UpdateResult UpdateResult' :: Maybe [Field] -> UpdateResult -- | Create a value of UpdateResult with all optional fields -- omitted. -- -- Use generic-lens or optics to modify other optional -- fields. -- -- The following record fields are available, with the corresponding -- lenses provided for backwards compatibility: -- -- $sel:generatedFields:UpdateResult', -- updateResult_generatedFields - Values for fields generated -- during the request. newUpdateResult :: UpdateResult