- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
UpdateColumnStatisticsTaskSettingsCommand
Updates settings for a column statistics task.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { GlueClient, UpdateColumnStatisticsTaskSettingsCommand } from "@aws-sdk/client-glue"; // ES Modules import
// const { GlueClient, UpdateColumnStatisticsTaskSettingsCommand } = require("@aws-sdk/client-glue"); // CommonJS import
const client = new GlueClient(config);
const input = { // UpdateColumnStatisticsTaskSettingsRequest
DatabaseName: "STRING_VALUE", // required
TableName: "STRING_VALUE", // required
Role: "STRING_VALUE",
Schedule: "STRING_VALUE",
ColumnNameList: [ // ColumnNameList
"STRING_VALUE",
],
SampleSize: Number("double"),
CatalogID: "STRING_VALUE",
SecurityConfiguration: "STRING_VALUE",
};
const command = new UpdateColumnStatisticsTaskSettingsCommand(input);
const response = await client.send(command);
// {};
UpdateColumnStatisticsTaskSettingsCommand Input
See UpdateColumnStatisticsTaskSettingsCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DatabaseName Required | string | undefined | The name of the database where the table resides. |
TableName Required | string | undefined | The name of the table for which to generate column statistics. |
CatalogID | string | undefined | The ID of the Data Catalog in which the database resides. |
ColumnNameList | string[] | undefined | A list of column names for which to run statistics. |
Role | string | undefined | The role used for running the column statistics. |
SampleSize | number | undefined | The percentage of data to sample. |
Schedule | string | undefined | A schedule for running the column statistics, specified in CRON syntax. |
SecurityConfiguration | string | undefined | Name of the security configuration that is used to encrypt CloudWatch logs. |
UpdateColumnStatisticsTaskSettingsCommand Output
See UpdateColumnStatisticsTaskSettingsCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | Access to a resource was denied. |
EntityNotFoundException | client | A specified entity does not exist |
InvalidInputException | client | The input provided was not valid. |
OperationTimeoutException | client | The operation timed out. |
VersionMismatchException | client | There was a version conflict. |
GlueServiceException | Base exception class for all service exceptions from Glue service. |