Skip to content

Create Table Optimizer

glue_create_table_optimizer R Documentation

Creates a new table optimizer for a specific function

Description

Creates a new table optimizer for a specific function.

Usage

glue_create_table_optimizer(CatalogId, DatabaseName, TableName, Type,
  TableOptimizerConfiguration)

Arguments

CatalogId

[required] The Catalog ID of the table.

DatabaseName

[required] The name of the database in the catalog in which the table resides.

TableName

[required] The name of the table.

Type

[required] The type of table optimizer.

TableOptimizerConfiguration

[required] A TableOptimizerConfiguration object representing the configuration of a table optimizer.

Value

An empty list.

Request syntax

svc$create_table_optimizer(
  CatalogId = "string",
  DatabaseName = "string",
  TableName = "string",
  Type = "compaction"|"retention"|"orphan_file_deletion",
  TableOptimizerConfiguration = list(
    roleArn = "string",
    enabled = TRUE|FALSE,
    vpcConfiguration = list(
      glueConnectionName = "string"
    ),
    retentionConfiguration = list(
      icebergConfiguration = list(
        snapshotRetentionPeriodInDays = 123,
        numberOfSnapshotsToRetain = 123,
        cleanExpiredFiles = TRUE|FALSE
      )
    ),
    orphanFileDeletionConfiguration = list(
      icebergConfiguration = list(
        orphanFileRetentionPeriodInDays = 123,
        location = "string"
      )
    )
  )
)