Skip to content

Gets code to perform a specified mapping

Description

Gets code to perform a specified mapping.

Usage

glue_get_plan(Mapping, Source, Sinks, Location, Language,
  AdditionalPlanOptionsMap)

Arguments

  • Mapping

    [required] The list of mappings from a source table to target tables.

  • Source

    [required] The source table.

  • Sinks

    The target tables.

  • Location

    The parameters for the mapping.

  • Language

    The programming language of the code to perform the mapping.

  • AdditionalPlanOptionsMap

    A map to hold additional optional key-value parameters.

    Currently, these key-value pairs are supported:

    • inferSchema — Specifies whether to set inferSchema to true or false for the default script generated by an Glue job. For example, to set inferSchema to true, pass the following key value pair:

      --additional-plan-options-map '{"inferSchema":"true"}'

Value

A list with the following syntax:

list(
  PythonScript = "string",
  ScalaCode = "string"
)

Request syntax

svc$get_plan(
  Mapping = list(
    list(
      SourceTable = "string",
      SourcePath = "string",
      SourceType = "string",
      TargetTable = "string",
      TargetPath = "string",
      TargetType = "string"
    )
  ),
  Source = list(
    DatabaseName = "string",
    TableName = "string"
  ),
  Sinks = list(
    list(
      DatabaseName = "string",
      TableName = "string"
    )
  ),
  Location = list(
    Jdbc = list(
      list(
        Name = "string",
        Value = "string",
        Param = TRUE|FALSE
      )
    ),
    S3 = list(
      list(
        Name = "string",
        Value = "string",
        Param = TRUE|FALSE
      )
    ),
    DynamoDB = list(
      list(
        Name = "string",
        Value = "string",
        Param = TRUE|FALSE
      )
    )
  ),
  Language = "PYTHON"|"SCALA",
  AdditionalPlanOptionsMap = list(
    "string"
  )
)