CfnGraphProps Struct
Properties for defining a CfnGraph.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_neptunegraph as neptunegraph } from 'aws-cdk-lib';
const cfnGraphProps: neptunegraph.CfnGraphProps = {
provisionedMemory: 123,
// the properties below are optional
deletionProtection: false,
graphName: 'graphName',
importTask: {
roleArn: 'roleArn',
source: 'source',
// the properties below are optional
blankNodeHandling: 'blankNodeHandling',
failOnError: false,
format: 'format',
importOptions: {
neptune: {
s3ExportKmsKeyId: 's3ExportKmsKeyId',
s3ExportPath: 's3ExportPath',
// the properties below are optional
preserveDefaultVertexLabels: false,
preserveEdgeIds: false,
},
},
maxProvisionedMemory: 123,
minProvisionedMemory: 123,
parquetType: 'parquetType',
},
kmsKeyIdentifier: 'kmsKeyIdentifier',
publicConnectivity: false,
replicaCount: 123,
tags: [{
key: 'key',
value: 'value',
}],
vectorSearchConfiguration: {
vectorSearchDimension: 123,
},
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_neptunegraph as neptunegraph
cfn_graph_props = neptunegraph.CfnGraphProps(
provisioned_memory=123,
# the properties below are optional
deletion_protection=False,
graph_name="graphName",
import_task=neptunegraph.CfnGraph.ImportTaskProperty(
role_arn="roleArn",
source="source",
# the properties below are optional
blank_node_handling="blankNodeHandling",
fail_on_error=False,
format="format",
import_options=neptunegraph.CfnGraph.ImportOptionsProperty(
neptune=neptunegraph.CfnGraph.NeptuneImportOptionsProperty(
s3_export_kms_key_id="s3ExportKmsKeyId",
s3_export_path="s3ExportPath",
# the properties below are optional
preserve_default_vertex_labels=False,
preserve_edge_ids=False
)
),
max_provisioned_memory=123,
min_provisioned_memory=123,
parquet_type="parquetType"
),
kms_key_identifier="kmsKeyIdentifier",
public_connectivity=False,
replica_count=123,
tags=[CfnTag(
key="key",
value="value"
)],
vector_search_configuration=neptunegraph.CfnGraph.VectorSearchConfigurationProperty(
vector_search_dimension=123
)
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.neptunegraph.*;
CfnGraphProps cfnGraphProps = CfnGraphProps.builder()
.provisionedMemory(123)
// the properties below are optional
.deletionProtection(false)
.graphName("graphName")
.importTask(ImportTaskProperty.builder()
.roleArn("roleArn")
.source("source")
// the properties below are optional
.blankNodeHandling("blankNodeHandling")
.failOnError(false)
.format("format")
.importOptions(ImportOptionsProperty.builder()
.neptune(NeptuneImportOptionsProperty.builder()
.s3ExportKmsKeyId("s3ExportKmsKeyId")
.s3ExportPath("s3ExportPath")
// the properties below are optional
.preserveDefaultVertexLabels(false)
.preserveEdgeIds(false)
.build())
.build())
.maxProvisionedMemory(123)
.minProvisionedMemory(123)
.parquetType("parquetType")
.build())
.kmsKeyIdentifier("kmsKeyIdentifier")
.publicConnectivity(false)
.replicaCount(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vectorSearchConfiguration(VectorSearchConfigurationProperty.builder()
.vectorSearchDimension(123)
.build())
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NeptuneGraph;
var cfnGraphProps = new CfnGraphProps {
ProvisionedMemory = 123,
// the properties below are optional
DeletionProtection = false,
GraphName = "graphName",
ImportTask = new ImportTaskProperty {
RoleArn = "roleArn",
Source = "source",
// the properties below are optional
BlankNodeHandling = "blankNodeHandling",
FailOnError = false,
Format = "format",
ImportOptions = new ImportOptionsProperty {
Neptune = new NeptuneImportOptionsProperty {
S3ExportKmsKeyId = "s3ExportKmsKeyId",
S3ExportPath = "s3ExportPath",
// the properties below are optional
PreserveDefaultVertexLabels = false,
PreserveEdgeIds = false
}
},
MaxProvisionedMemory = 123,
MinProvisionedMemory = 123,
ParquetType = "parquetType"
},
KmsKeyIdentifier = "kmsKeyIdentifier",
PublicConnectivity = false,
ReplicaCount = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VectorSearchConfiguration = new VectorSearchConfigurationProperty {
VectorSearchDimension = 123
}
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnGraphProps := &CfnGraphProps{
ProvisionedMemory: jsii.Number(123),
// the properties below are optional
DeletionProtection: jsii.Boolean(false),
GraphName: jsii.String("graphName"),
ImportTask: &ImportTaskProperty{
RoleArn: jsii.String("roleArn"),
Source: jsii.String("source"),
// the properties below are optional
BlankNodeHandling: jsii.String("blankNodeHandling"),
FailOnError: jsii.Boolean(false),
Format: jsii.String("format"),
ImportOptions: &ImportOptionsProperty{
Neptune: &NeptuneImportOptionsProperty{
S3ExportKmsKeyId: jsii.String("s3ExportKmsKeyId"),
S3ExportPath: jsii.String("s3ExportPath"),
// the properties below are optional
PreserveDefaultVertexLabels: jsii.Boolean(false),
PreserveEdgeIds: jsii.Boolean(false),
},
},
MaxProvisionedMemory: jsii.Number(123),
MinProvisionedMemory: jsii.Number(123),
ParquetType: jsii.String("parquetType"),
},
KmsKeyIdentifier: jsii.String("kmsKeyIdentifier"),
PublicConnectivity: jsii.Boolean(false),
ReplicaCount: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VectorSearchConfiguration: &VectorSearchConfigurationProperty{
VectorSearchDimension: jsii.Number(123),
},
}
Properties
deletionProtectionoptionalboolean | IResolvabledeletion_protectionoptionaltyping.Union[bool, IResolvable]deletionProtectionoptionalBooleanDeletionProtectionoptionalboolDeletionProtectionoptionalinterface{} #The graph can't be deleted when deletion protection is enabled.
graphNameoptionalstringgraph_nameoptionalstrgraphNameoptionalStringGraphNameoptionalstringGraphNameoptional*string #notes
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.
If you don't specify a graph name, a unique graph name is generated for you using the prefix graph-for , followed by a combination of Stack Name and a UUID .
importTaskoptionalIResolvable | CfnGraph.ImportTaskPropertyimport_taskoptionaltyping.Union[IResolvable, ImportTaskProperty]importTaskoptionalIResolvableImportTaskoptionalIResolvableImportTaskoptionalinterface{} #kmsKeyIdentifieroptionalstringkms_key_identifieroptionalstrkmsKeyIdentifieroptionalStringKmsKeyIdentifieroptionalstringKmsKeyIdentifieroptional*string #If not specified, the graph is encrypted with an AWS managed key.
provisionedMemorynumberprovisioned_memoryint | floatprovisionedMemoryNumberProvisionedMemorydoubleProvisionedMemory*float64 required #Min = 16
publicConnectivityoptionalboolean | IResolvablepublic_connectivityoptionaltyping.Union[bool, IResolvable]publicConnectivityoptionalBooleanPublicConnectivityoptionalboolPublicConnectivityoptionalinterface{} #notes
When the graph is publicly available, its domain name system (DNS) endpoint resolves to the public IP address from the internet. When the graph isn't publicly available, you need to create a PrivateGraphEndpoint in a given VPC to ensure the DNS name resolves to a private IP address that is reachable from the VPC.
Default: If not specified, the default value is false.
If enabling public connectivity for the first time, there will be a delay while it is enabled.
replicaCountoptionalnumberreplica_countoptionalint | floatreplicaCountoptionalNumberReplicaCountoptionaldoubleReplicaCountoptional*float64 #Default: If not specified, the default value is 1.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.
vectorSearchConfigurationoptionalIResolvable | CfnGraph.vector_search_configurationoptionaltyping.Union[IResolvable, VectorSearchConfigurationProperty]vectorSearchConfigurationoptionalIResolvableVectorSearchConfigurationoptionalIResolvableVectorSearchConfigurationoptionalinterface{} #The value is specified as dimension= value. Max = 65,535