create_data_set
async
¶
create_data_set(
aws_account_id: AwsAccountId,
data_set_id: ResourceId,
name: ResourceName,
physical_table_map: PhysicalTableMap,
import_mode: DataSetImportMode,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
logical_table_map: Optional[LogicalTableMap] = None,
column_groups: Optional[ColumnGroupList] = None,
field_folders: Optional[FieldFolderMap] = None,
permissions: Optional[ResourcePermissionList] = None,
row_level_permission_data_set: Optional[RowLevelPermissionDataSet] = None,
row_level_permission_tag_configuration: Optional[
RowLevelPermissionTagConfiguration
] = None,
column_level_permission_rules: Optional[ColumnLevelPermissionRuleList] = None,
tags: Optional[TagList] = None,
data_set_usage_configuration: Optional[DataSetUsageConfiguration] = None,
dataset_parameters: Optional[DatasetParameterList] = None,
folder_arns: Optional[FolderArnList] = None,
performance_configuration: Optional[PerformanceConfiguration] = None,
use_as: Optional[DataSetUseAs] = None,
data_prep_configuration: Optional[DataPrepConfiguration] = None,
semantic_model_configuration: Optional[SemanticModelConfiguration] = None,
unmaterialized_calculated_columns: Optional[
UnmaterializedCalculatedColumnList
] = None,
) -> CreateDataSetResponse
Creates a dataset.
Parameters:
-
aws_account_id(AwsAccountId) –The Amazon Web Services account ID.
-
data_set_id(ResourceId) –An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
-
name(ResourceName) –The display name for the dataset.
-
physical_table_map(PhysicalTableMap) –Declares the physical tables that are available in the underlying data sources.
-
logical_table_map(Optional[LogicalTableMap], default:None) –Configures the combination and transformation of the data from the physical tables. This parameter is used with the legacy data preparation experience.
-
import_mode(DataSetImportMode) –Indicates whether you want to import the data into SPICE.
-
column_groups(Optional[ColumnGroupList], default:None) –Groupings of columns that work together in certain Amazon Quick Sight features. Currently, only geospatial hierarchy is supported.
-
field_folders(Optional[FieldFolderMap], default:None) –The folder that contains fields and nested subfolders for your dataset.
-
permissions(Optional[ResourcePermissionList], default:None) –A list of resource permissions on the dataset.
-
row_level_permission_data_set(Optional[RowLevelPermissionDataSet], default:None) –The row-level security configuration for the data that you want to create. This parameter is used with the legacy data preparation experience.
-
row_level_permission_tag_configuration(Optional[RowLevelPermissionTagConfiguration], default:None) –The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only. This parameter is used with the legacy data preparation experience.
-
column_level_permission_rules(Optional[ColumnLevelPermissionRuleList], default:None) –A set of one or more definitions of a
ColumnLevelPermissionRule. -
tags(Optional[TagList], default:None) –Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.
-
dataset_parameters(Optional[DatasetParameterList], default:None) –The parameter declarations of the dataset.
-
folder_arns(Optional[FolderArnList], default:None) –When you create the dataset, Amazon Quick Sight adds the dataset to these folders.
-
performance_configuration(Optional[PerformanceConfiguration], default:None) –The configuration for the performance optimization of the dataset that contains a
UniqueKeyconfiguration. -
use_as(Optional[DataSetUseAs], default:None) –The usage of the dataset.
RLS_RULESmust be specified for RLS permission datasets. -
data_prep_configuration(Optional[DataPrepConfiguration], default:None) –The data preparation configuration for the dataset. This configuration defines the source tables, transformation steps, and destination tables used to prepare the data. Required when using the new data preparation experience.
-
semantic_model_configuration(Optional[SemanticModelConfiguration], default:None) –The semantic model configuration for the dataset. This configuration defines how the prepared data is structured for an analysis, including table mappings and row-level security configurations. Required when using the new data preparation experience.
-
unmaterialized_calculated_columns(Optional[UnmaterializedCalculatedColumnList], default:None) –A list of unmaterialized calculated columns for the dataset. These columns are computed at analysis time and are not stored in the prepared data. You can only use this with the new data preparation experience.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidDataSetParameterValueException–An exception thrown when an invalid parameter value is provided for dataset operations.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnsupportedUserEditionException–This error indicates that you are calling an operation on an Amazon Quick Suite subscription where the edition doesn't include support for that operation. Amazon Quick Suite currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 | |