[ aws . quicksight ]
Updates a dataset.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
update-data-set
--aws-account-id <value>
--data-set-id <value>
--name <value>
--physical-table-map <value>
[--logical-table-map <value>]
--import-mode <value>
[--column-groups <value>]
[--row-level-permission-data-set <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--cli-auto-prompt <value>]
--aws-account-id
(string)
The AWS account ID.
--data-set-id
(string)
The ID for the dataset that you want to update. This ID is unique per AWS Region for each AWS account.
--name
(string)
The display name for the dataset.
--physical-table-map
(map)
Declares the physical tables that are available in the underlying data sources.
key -> (string)
value -> (structure)
A view of a data source that contains information about the shape of the data in the underlying source. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.
RelationalTable -> (structure)
A physical table type for relational data sources.
DataSourceArn -> (string)
The Amazon Resource Name (ARN) for the data source.
Schema -> (string)
The schema name. This name applies to certain relational database engines.
Name -> (string)
The name of the relational table.
InputColumns -> (list)
The column schema of the table.
(structure)
Metadata for a column that is used as the input of a transform operation.
Name -> (string)
The name of this column in the underlying data source.
Type -> (string)
The data type of the column.
CustomSql -> (structure)
A physical table type built from the results of the custom SQL query.
DataSourceArn -> (string)
The Amazon Resource Name (ARN) of the data source.
Name -> (string)
A display name for the SQL query result.
SqlQuery -> (string)
The SQL query.
Columns -> (list)
The column schema from the SQL query result set.
(structure)
Metadata for a column that is used as the input of a transform operation.
Name -> (string)
The name of this column in the underlying data source.
Type -> (string)
The data type of the column.
S3Source -> (structure)
A physical table type for as S3 data source.
DataSourceArn -> (string)
The amazon Resource Name (ARN) for the data source.
UploadSettings -> (structure)
Information about the format for the S3 source file or files.
Format -> (string)
File format.
StartFromRow -> (integer)
A row number to start reading data from.
ContainsHeader -> (boolean)
Whether the file has a header row, or the files each have a header row.
TextQualifier -> (string)
Text qualifier.
Delimiter -> (string)
The delimiter between values in the file.
InputColumns -> (list)
A physical table type for as S3 data source.
(structure)
Metadata for a column that is used as the input of a transform operation.
Name -> (string)
The name of this column in the underlying data source.
Type -> (string)
The data type of the column.
JSON Syntax:
{"string": {
"RelationalTable": {
"DataSourceArn": "string",
"Schema": "string",
"Name": "string",
"InputColumns": [
{
"Name": "string",
"Type": "STRING"|"INTEGER"|"DECIMAL"|"DATETIME"|"BIT"|"BOOLEAN"|"JSON"
}
...
]
},
"CustomSql": {
"DataSourceArn": "string",
"Name": "string",
"SqlQuery": "string",
"Columns": [
{
"Name": "string",
"Type": "STRING"|"INTEGER"|"DECIMAL"|"DATETIME"|"BIT"|"BOOLEAN"|"JSON"
}
...
]
},
"S3Source": {
"DataSourceArn": "string",
"UploadSettings": {
"Format": "CSV"|"TSV"|"CLF"|"ELF"|"XLSX"|"JSON",
"StartFromRow": integer,
"ContainsHeader": true|false,
"TextQualifier": "DOUBLE_QUOTE"|"SINGLE_QUOTE",
"Delimiter": "string"
},
"InputColumns": [
{
"Name": "string",
"Type": "STRING"|"INTEGER"|"DECIMAL"|"DATETIME"|"BIT"|"BOOLEAN"|"JSON"
}
...
]
}
}
...}
--logical-table-map
(map)
Configures the combination and transformation of the data from the physical tables.
key -> (string)
value -> (structure)
A logical table is a unit that joins and that data transformations operate on. A logical table has a source, which can be either a physical table or result of a join. When a logical table points to a physical table, the logical table acts as a mutable copy of that physical table through transform operations.
Alias -> (string)
A display name for the logical table.
DataTransforms -> (list)
Transform operations that act on this logical table.
(structure)
A data transformation on a logical table. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.
ProjectOperation -> (structure)
An operation that projects columns. Operations that come after a projection can only refer to projected columns.
ProjectedColumns -> (list)
Projected columns.
(string)
FilterOperation -> (structure)
An operation that filters rows based on some condition.
ConditionExpression -> (string)
An expression that must evaluate to a Boolean value. Rows for which the expression evaluates to true are kept in the dataset.
CreateColumnsOperation -> (structure)
An operation that creates calculated columns. Columns created in one such operation form a lexical closure.
Columns -> (list)
Calculated columns to create.
(structure)
A calculated column for a dataset.
ColumnName -> (string)
Column name.
ColumnId -> (string)
A unique ID to identify a calculated column. During a dataset update, if the column ID of a calculated column matches that of an existing calculated column, Amazon QuickSight preserves the existing calculated column.
Expression -> (string)
An expression that defines the calculated column.
RenameColumnOperation -> (structure)
An operation that renames a column.
ColumnName -> (string)
The name of the column to be renamed.
NewColumnName -> (string)
The new name for the column.
CastColumnTypeOperation -> (structure)
A transform operation that casts a column to a different type.
ColumnName -> (string)
Column name.
NewColumnType -> (string)
New column data type.
Format -> (string)
When casting a column from string to datetime type, you can supply a string in a format supported by Amazon QuickSight to denote the source data format.
TagColumnOperation -> (structure)
An operation that tags a column with additional information.
ColumnName -> (string)
The column that this operation acts on.
Tags -> (list)
The dataset column tag, currently only used for geospatial type tagging. .
Note
This is not tags for the AWS tagging feature. .
(structure)
A tag for a column in a TagColumnOperation structure. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.
ColumnGeographicRole -> (string)
A geospatial role for a column.
Source -> (structure)
Source of this logical table.
JoinInstruction -> (structure)
Specifies the result of a join of two logical tables.
LeftOperand -> (string)
Left operand.
RightOperand -> (string)
Right operand.
Type -> (string)
Type.
OnClause -> (string)
On Clause.
PhysicalTableId -> (string)
Physical table ID.
JSON Syntax:
{"string": {
"Alias": "string",
"DataTransforms": [
{
"ProjectOperation": {
"ProjectedColumns": ["string", ...]
},
"FilterOperation": {
"ConditionExpression": "string"
},
"CreateColumnsOperation": {
"Columns": [
{
"ColumnName": "string",
"ColumnId": "string",
"Expression": "string"
}
...
]
},
"RenameColumnOperation": {
"ColumnName": "string",
"NewColumnName": "string"
},
"CastColumnTypeOperation": {
"ColumnName": "string",
"NewColumnType": "STRING"|"INTEGER"|"DECIMAL"|"DATETIME",
"Format": "string"
},
"TagColumnOperation": {
"ColumnName": "string",
"Tags": [
{
"ColumnGeographicRole": "COUNTRY"|"STATE"|"COUNTY"|"CITY"|"POSTCODE"|"LONGITUDE"|"LATITUDE"
}
...
]
}
}
...
],
"Source": {
"JoinInstruction": {
"LeftOperand": "string",
"RightOperand": "string",
"Type": "INNER"|"OUTER"|"LEFT"|"RIGHT",
"OnClause": "string"
},
"PhysicalTableId": "string"
}
}
...}
--import-mode
(string)
Indicates whether you want to import the data into SPICE.
Possible values:
SPICE
DIRECT_QUERY
--column-groups
(list)
Groupings of columns that work together in certain QuickSight features. Currently, only geospatial hierarchy is supported.
(structure)
Groupings of columns that work together in certain Amazon QuickSight features. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.
GeoSpatialColumnGroup -> (structure)
Geospatial column group that denotes a hierarchy.
Name -> (string)
A display name for the hierarchy.
CountryCode -> (string)
Country code.
Columns -> (list)
Columns in this hierarchy.
(string)
Shorthand Syntax:
GeoSpatialColumnGroup={Name=string,CountryCode=string,Columns=[string,string]} ...
JSON Syntax:
[
{
"GeoSpatialColumnGroup": {
"Name": "string",
"CountryCode": "US",
"Columns": ["string", ...]
}
}
...
]
--row-level-permission-data-set
(structure)
The row-level security configuration for the data you want to create.
Arn -> (string)
The Amazon Resource Name (ARN) of the permission dataset.
PermissionPolicy -> (string)
Permission policy.
Shorthand Syntax:
Arn=string,PermissionPolicy=string
JSON Syntax:
{
"Arn": "string",
"PermissionPolicy": "GRANT_ACCESS"|"DENY_ACCESS"
}
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
--cli-auto-prompt
(boolean)
Automatically prompt for CLI input parameters.
See ‘aws help’ for descriptions of global parameters.
Arn -> (string)
The Amazon Resource Name (ARN) of the dataset.
DataSetId -> (string)
The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.
IngestionArn -> (string)
The ARN for the ingestion, which is triggered as a result of dataset creation if the import mode is SPICE.
IngestionId -> (string)
The ID of the ingestion, which is triggered as a result of dataset creation if the import mode is SPICE.
RequestId -> (string)
The AWS request ID for this operation.
Status -> (integer)
The HTTP status of the request.