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.Mapping

Description

 
Synopsis

Documentation

data Mapping Source #

Specifies the mapping of data property keys.

See: newMapping smart constructor.

Constructors

Mapping' 

Fields

  • children :: Maybe [Mapping]

    Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is also Mapping, but its FromPath will be the parent's FromPath plus the FromPath from this structure.

    For the children part, suppose you have the structure:

    { "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }

    You can specify a Mapping that looks like:

    { "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
  • dropped :: Maybe Bool

    If true, then the column is removed.

  • fromPath :: Maybe [Text]

    The table or column to be modified.

  • fromType :: Maybe Text

    The type of the data to be modified.

  • toKey :: Maybe Text

    After the apply mapping, what the name of the column should be. Can be the same as FromPath.

  • toType :: Maybe Text

    The data type that the data is to be modified to.

Instances

Instances details
FromJSON Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

ToJSON Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

Generic Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

Associated Types

type Rep Mapping :: Type -> Type #

Methods

from :: Mapping -> Rep Mapping x #

to :: Rep Mapping x -> Mapping #

Read Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

Show Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

NFData Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

Methods

rnf :: Mapping -> () #

Eq Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

Methods

(==) :: Mapping -> Mapping -> Bool #

(/=) :: Mapping -> Mapping -> Bool #

Hashable Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

Methods

hashWithSalt :: Int -> Mapping -> Int #

hash :: Mapping -> Int #

type Rep Mapping Source # 
Instance details

Defined in Amazonka.Glue.Types.Mapping

newMapping :: Mapping Source #

Create a value of Mapping 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:children:Mapping', mapping_children - Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is also Mapping, but its FromPath will be the parent's FromPath plus the FromPath from this structure.

For the children part, suppose you have the structure:

{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }

You can specify a Mapping that looks like:

{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }

$sel:dropped:Mapping', mapping_dropped - If true, then the column is removed.

$sel:fromPath:Mapping', mapping_fromPath - The table or column to be modified.

$sel:fromType:Mapping', mapping_fromType - The type of the data to be modified.

$sel:toKey:Mapping', mapping_toKey - After the apply mapping, what the name of the column should be. Can be the same as FromPath.

$sel:toType:Mapping', mapping_toType - The data type that the data is to be modified to.

mapping_children :: Lens' Mapping (Maybe [Mapping]) Source #

Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is also Mapping, but its FromPath will be the parent's FromPath plus the FromPath from this structure.

For the children part, suppose you have the structure:

{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }

You can specify a Mapping that looks like:

{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }

mapping_dropped :: Lens' Mapping (Maybe Bool) Source #

If true, then the column is removed.

mapping_fromPath :: Lens' Mapping (Maybe [Text]) Source #

The table or column to be modified.

mapping_fromType :: Lens' Mapping (Maybe Text) Source #

The type of the data to be modified.

mapping_toKey :: Lens' Mapping (Maybe Text) Source #

After the apply mapping, what the name of the column should be. Can be the same as FromPath.

mapping_toType :: Lens' Mapping (Maybe Text) Source #

The data type that the data is to be modified to.