create_graph
async
¶
create_graph(
graph_name: GraphName,
provisioned_memory: ProvisionedMemory,
*,
config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
tags: Optional[TagMap] = None,
public_connectivity: Optional[bool] = None,
kms_key_identifier: Optional[KmsKeyArn] = None,
vector_search_configuration: Optional[VectorSearchConfiguration] = None,
replica_count: Optional[ReplicaCount] = None,
deletion_protection: Optional[bool] = None,
) -> CreateGraphOutput
Creates a new Neptune Analytics graph.
Parameters:
-
graph_name(GraphName) –A name for the new Neptune Analytics graph to be created.
The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens. Only lowercase letters are allowed.
-
tags(Optional[TagMap], default:None) –Adds metadata tags to the new graph. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.
-
public_connectivity(Optional[bool], default:None) –Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (
trueto enable, orfalseto disable. -
kms_key_identifier(Optional[KmsKeyArn], default:None) –Specifies a KMS key to use to encrypt data in the new graph.
-
vector_search_configuration(Optional[VectorSearchConfiguration], default:None) –Specifies the number of dimensions for vector embeddings that will be loaded into the graph. The value is specified as
dimension=value. Max = 65,535 -
replica_count(Optional[ReplicaCount], default:None) –The number of replicas in other AZs. Min =0, Max = 2, Default = 1.
Additional charges equivalent to the m-NCUs selected for the graph apply for each replica.
-
deletion_protection(Optional[bool], default:None) –Indicates whether or not to enable deletion protection on the graph. The graph can’t be deleted when deletion protection is enabled. (
trueorfalse). -
provisioned_memory(ProvisionedMemory) –The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 16
Raises:
-
ConflictException–Raised when a conflict is encountered.
-
InternalServerException–A failure occurred on the server.
-
ServiceQuotaExceededException–A service quota was exceeded.
-
ThrottlingException–The exception was interrupted by throttling.
-
ValidationException–A resource could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune_graph/_services/async_neptune_graph.py
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 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 | |