create_kx_dataview
async
¶
create_kx_dataview(
environment_id: EnvironmentId,
database_name: DatabaseName,
dataview_name: KxDataviewName,
az_mode: KxAzMode,
client_token: ClientTokenString,
*,
config_overrides: Optional[AsyncfinspaceClientConfig] = None,
availability_zone_id: Optional[AvailabilityZoneId] = None,
changeset_id: Optional[ChangesetId] = None,
segment_configurations: Optional[KxDataviewSegmentConfigurationList] = None,
auto_update: Optional[booleanValue] = None,
read_write: Optional[booleanValue] = None,
description: Optional[Description] = None,
tags: Optional[TagMap] = None,
) -> CreateKxDataviewResponse
Creates a snapshot of kdb database with tiered storage capabilities and a pre-warmed cache, ready for mounting on kdb clusters. Dataviews are only available for clusters running on a scaling group. They are not supported on dedicated clusters.
Parameters:
-
environment_id(EnvironmentId) –A unique identifier for the kdb environment, where you want to create the dataview.
-
database_name(DatabaseName) –The name of the database where you want to create a dataview.
-
dataview_name(KxDataviewName) –A unique identifier for the dataview.
-
az_mode(KxAzMode) –The number of availability zones you want to assign per volume. Currently, FinSpace only supports
SINGLEfor volumes. This places dataview in a single AZ. -
availability_zone_id(Optional[AvailabilityZoneId], default:None) –The identifier of the availability zones.
-
changeset_id(Optional[ChangesetId], default:None) –A unique identifier of the changeset that you want to use to ingest data.
-
segment_configurations(Optional[KxDataviewSegmentConfigurationList], default:None) –The configuration that contains the database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume. If you do not explicitly specify any database path for a volume, they are accessible from the cluster through the default S3/object store segment.
-
auto_update(Optional[booleanValue], default:None) –The option to specify whether you want to apply all the future additions and corrections automatically to the dataview, when you ingest new changesets. The default value is false.
-
read_write(Optional[booleanValue], default:None) –The option to specify whether you want to make the dataview writable to perform database maintenance. The following are some considerations related to writable dataviews.
-
You cannot create partial writable dataviews. When you create writeable dataviews you must provide the entire database path.
-
You cannot perform updates on a writeable dataview. Hence,
autoUpdatemust be set as False ifreadWriteis True for a dataview. -
You must also use a unique volume for creating a writeable dataview. So, if you choose a volume that is already in use by another dataview, the dataview creation fails.
-
Once you create a dataview as writeable, you cannot change it to read-only. So, you cannot update the
readWriteparameter later.
-
-
description(Optional[Description], default:None) –A description of the dataview.
-
tags(Optional[TagMap], default:None) –A list of key-value pairs to label the dataview. You can add up to 50 tags to a dataview.
-
client_token(ClientTokenString) –A token that ensures idempotency. This token expires in 10 minutes.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–There was a conflict with this action, and it could not be completed.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
LimitExceededException–A service limit or quota is exceeded.
-
ResourceAlreadyExistsException–The specified resource group already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_finspace/_services/async_finspace.py
685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 | |