amazonka-glue-2.0: Amazon Glue SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Glue.Types.S3JsonSource

Description

 
Synopsis

Documentation

data S3JsonSource Source #

Specifies a JSON data store stored in Amazon S3.

See: newS3JsonSource smart constructor.

Constructors

S3JsonSource' 

Fields

  • additionalOptions :: Maybe S3DirectSourceAdditionalOptions

    Specifies additional connection options.

  • compressionType :: Maybe CompressionType

    Specifies how the data is compressed. This is generally not necessary if the data has a standard file extension. Possible values are "gzip" and "bzip").

  • exclusions :: Maybe [Text]

    A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]" excludes all PDF files.

  • groupFiles :: Maybe Text

    Grouping files is turned on by default when the input contains more than 50,000 files. To turn on grouping with fewer than 50,000 files, set this parameter to "inPartition". To disable grouping when there are more than 50,000 files, set this parameter to "none".

  • groupSize :: Maybe Text

    The target group size in bytes. The default is computed based on the input data size and the size of your cluster. When there are fewer than 50,000 input files, "groupFiles" must be set to "inPartition" for this to take effect.

  • jsonPath :: Maybe Text

    A JsonPath string defining the JSON data.

  • maxBand :: Maybe Natural

    This option controls the duration in milliseconds after which the s3 listing is likely to be consistent. Files with modification timestamps falling within the last maxBand milliseconds are tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users don't need to set this option. The default is 900000 milliseconds, or 15 minutes.

  • maxFilesInBand :: Maybe Natural

    This option specifies the maximum number of files to save from the last maxBand seconds. If this number is exceeded, extra files are skipped and only processed in the next job run.

  • multiline :: Maybe Bool

    A Boolean value that specifies whether a single record can span multiple lines. This can occur when a field contains a quoted new-line character. You must set this option to True if any record spans multiple lines. The default value is False, which allows for more aggressive file-splitting during parsing.

  • outputSchemas :: Maybe [GlueSchema]

    Specifies the data schema for the S3 JSON source.

  • recurse :: Maybe Bool

    If set to true, recursively reads files in all subdirectories under the specified paths.

  • name :: Text

    The name of the data store.

  • paths :: [Text]

    A list of the Amazon S3 paths to read from.

Instances

Instances details
FromJSON S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

ToJSON S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

Generic S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

Associated Types

type Rep S3JsonSource :: Type -> Type #

Read S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

Show S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

NFData S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

Methods

rnf :: S3JsonSource -> () #

Eq S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

Hashable S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

type Rep S3JsonSource Source # 
Instance details

Defined in Amazonka.Glue.Types.S3JsonSource

type Rep S3JsonSource = D1 ('MetaData "S3JsonSource" "Amazonka.Glue.Types.S3JsonSource" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "S3JsonSource'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "additionalOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe S3DirectSourceAdditionalOptions)) :*: (S1 ('MetaSel ('Just "compressionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CompressionType)) :*: S1 ('MetaSel ('Just "exclusions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "groupFiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "groupSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "jsonPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "maxBand") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "maxFilesInBand") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "multiline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "outputSchemas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GlueSchema])) :*: S1 ('MetaSel ('Just "recurse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "paths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))))

newS3JsonSource Source #

Create a value of S3JsonSource 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:additionalOptions:S3JsonSource', s3JsonSource_additionalOptions - Specifies additional connection options.

$sel:compressionType:S3JsonSource', s3JsonSource_compressionType - Specifies how the data is compressed. This is generally not necessary if the data has a standard file extension. Possible values are "gzip" and "bzip").

$sel:exclusions:S3JsonSource', s3JsonSource_exclusions - A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]" excludes all PDF files.

$sel:groupFiles:S3JsonSource', s3JsonSource_groupFiles - Grouping files is turned on by default when the input contains more than 50,000 files. To turn on grouping with fewer than 50,000 files, set this parameter to "inPartition". To disable grouping when there are more than 50,000 files, set this parameter to "none".

$sel:groupSize:S3JsonSource', s3JsonSource_groupSize - The target group size in bytes. The default is computed based on the input data size and the size of your cluster. When there are fewer than 50,000 input files, "groupFiles" must be set to "inPartition" for this to take effect.

$sel:jsonPath:S3JsonSource', s3JsonSource_jsonPath - A JsonPath string defining the JSON data.

$sel:maxBand:S3JsonSource', s3JsonSource_maxBand - This option controls the duration in milliseconds after which the s3 listing is likely to be consistent. Files with modification timestamps falling within the last maxBand milliseconds are tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users don't need to set this option. The default is 900000 milliseconds, or 15 minutes.

$sel:maxFilesInBand:S3JsonSource', s3JsonSource_maxFilesInBand - This option specifies the maximum number of files to save from the last maxBand seconds. If this number is exceeded, extra files are skipped and only processed in the next job run.

$sel:multiline:S3JsonSource', s3JsonSource_multiline - A Boolean value that specifies whether a single record can span multiple lines. This can occur when a field contains a quoted new-line character. You must set this option to True if any record spans multiple lines. The default value is False, which allows for more aggressive file-splitting during parsing.

$sel:outputSchemas:S3JsonSource', s3JsonSource_outputSchemas - Specifies the data schema for the S3 JSON source.

$sel:recurse:S3JsonSource', s3JsonSource_recurse - If set to true, recursively reads files in all subdirectories under the specified paths.

$sel:name:S3JsonSource', s3JsonSource_name - The name of the data store.

$sel:paths:S3JsonSource', s3JsonSource_paths - A list of the Amazon S3 paths to read from.

s3JsonSource_compressionType :: Lens' S3JsonSource (Maybe CompressionType) Source #

Specifies how the data is compressed. This is generally not necessary if the data has a standard file extension. Possible values are "gzip" and "bzip").

s3JsonSource_exclusions :: Lens' S3JsonSource (Maybe [Text]) Source #

A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]" excludes all PDF files.

s3JsonSource_groupFiles :: Lens' S3JsonSource (Maybe Text) Source #

Grouping files is turned on by default when the input contains more than 50,000 files. To turn on grouping with fewer than 50,000 files, set this parameter to "inPartition". To disable grouping when there are more than 50,000 files, set this parameter to "none".

s3JsonSource_groupSize :: Lens' S3JsonSource (Maybe Text) Source #

The target group size in bytes. The default is computed based on the input data size and the size of your cluster. When there are fewer than 50,000 input files, "groupFiles" must be set to "inPartition" for this to take effect.

s3JsonSource_jsonPath :: Lens' S3JsonSource (Maybe Text) Source #

A JsonPath string defining the JSON data.

s3JsonSource_maxBand :: Lens' S3JsonSource (Maybe Natural) Source #

This option controls the duration in milliseconds after which the s3 listing is likely to be consistent. Files with modification timestamps falling within the last maxBand milliseconds are tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users don't need to set this option. The default is 900000 milliseconds, or 15 minutes.

s3JsonSource_maxFilesInBand :: Lens' S3JsonSource (Maybe Natural) Source #

This option specifies the maximum number of files to save from the last maxBand seconds. If this number is exceeded, extra files are skipped and only processed in the next job run.

s3JsonSource_multiline :: Lens' S3JsonSource (Maybe Bool) Source #

A Boolean value that specifies whether a single record can span multiple lines. This can occur when a field contains a quoted new-line character. You must set this option to True if any record spans multiple lines. The default value is False, which allows for more aggressive file-splitting during parsing.

s3JsonSource_outputSchemas :: Lens' S3JsonSource (Maybe [GlueSchema]) Source #

Specifies the data schema for the S3 JSON source.

s3JsonSource_recurse :: Lens' S3JsonSource (Maybe Bool) Source #

If set to true, recursively reads files in all subdirectories under the specified paths.

s3JsonSource_name :: Lens' S3JsonSource Text Source #

The name of the data store.

s3JsonSource_paths :: Lens' S3JsonSource [Text] Source #

A list of the Amazon S3 paths to read from.