Neptune Global Database API - Amazon Neptune
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Neptune Global Database API

Structures:

Actions:

GlobalCluster (structure)

Contains the details of an Amazon Neptune global database.

This data type is used as a response element for the CreateGlobalCluster (action), DescribeGlobalClusters (action), ModifyGlobalCluster (action), DeleteGlobalCluster (action), FailoverGlobalCluster (action), and RemoveFromGlobalCluster (action) actions.

Fields

  • DeletionProtection – Boolean.

    The deletion protection setting for the global database.

  • Engine – UTF-8 string.

    The Neptune database engine used by the global database ("neptune").

  • EngineVersion – UTF-8 string.

    The Neptune engine version used by the global database.

  • GlobalClusterArn – UTF-8 string.

    The Amazon Resource Name (ARN) for the global database.

  • GlobalClusterIdentifier – UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a global database.

  • GlobalClusterMembers – An array of GlobalClusterMember— a structures.

    A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database.

  • GlobalClusterResourceId – UTF-8 string.

    An immutable identifier for the global database that is unique within in all regions. This identifier is found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed.

  • Status – UTF-8 string.

    Specifies the current state of this global database.

  • StorageEncrypted – Boolean.

    The storage encryption setting for the global database.

GlobalCluster is used as the response element for:

CreateGlobalCluster (action)

        The Amazon CLI name for this API is: create-global-cluster,  and the Python name is: create_global_cluster.

Creates a Neptune global database spread across multiple Amazon Regions. The global database contains a single primary cluster with read-write capability, and read-only secondary clusters that receive data from the primary cluster through high-speed replication performed by the Neptune storage subsystem.

You can create a global database that is initially empty, and then add a primary cluster and secondary clusters to it, or you can specify an existing Neptune cluster during the create operation to become the primary cluster of the global database.

Request

  • DatabaseName  (in the CLI: --database-name,  or in Python: database_name) – UTF-8 string.

    The name for the new global database (up to 64 alpha-numeric characters.

  • DeletionProtection  (in the CLI: --deletion-protection,  or in Python: deletion_protection) – Boolean.

    The deletion protection setting for the new global database. The global database can't be deleted when deletion protection is enabled.

  • Engine  (in the CLI: --engine,  or in Python: engine) – UTF-8 string.

    The name of the database engine to be used in the global database.

    Valid values: neptune

  • EngineVersion  (in the CLI: --engine-version,  or in Python: engine_version) – UTF-8 string.

    The Neptune engine version to be used by the global database.

    Valid values: 1.2.0.0 or above.

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    The cluster identifier of the new global database cluster.

  • SourceDBClusterIdentifier  (in the CLI: --source-db-cluster-identifier,  or in Python: source_db_cluster_identifier) – UTF-8 string.

    (Optional) The Amazon Resource Name (ARN) of an existing Neptune DB cluster to use as the primary cluster of the new global database.

  • StorageEncrypted  (in the CLI: --storage-encrypted,  or in Python: storage_encrypted) – Boolean.

    The storage encryption setting for the new global database cluster.

Response

Contains the details of an Amazon Neptune global database.

This data type is used as a response element for the CreateGlobalCluster (action), DescribeGlobalClusters (action), ModifyGlobalCluster (action), DeleteGlobalCluster (action), FailoverGlobalCluster (action), and RemoveFromGlobalCluster (action) actions.

  • DeletionProtection  (in the CLI: --deletion-protection,  or in Python: deletion_protection) – Boolean.

    The deletion protection setting for the global database.

  • Engine  (in the CLI: --engine,  or in Python: engine) – UTF-8 string.

    The Neptune database engine used by the global database ("neptune").

  • EngineVersion  (in the CLI: --engine-version,  or in Python: engine_version) – UTF-8 string.

    The Neptune engine version used by the global database.

  • GlobalClusterArn  (in the CLI: --global-cluster-arn,  or in Python: global_cluster_arn) – UTF-8 string.

    The Amazon Resource Name (ARN) for the global database.

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a global database.

  • GlobalClusterMembers  (in the CLI: --global-cluster-members,  or in Python: global_cluster_members) – An array of GlobalClusterMember— a structures.

    A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database.

  • GlobalClusterResourceId  (in the CLI: --global-cluster-resource-id,  or in Python: global_cluster_resource_id) – UTF-8 string.

    An immutable identifier for the global database that is unique within in all regions. This identifier is found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed.

  • Status  (in the CLI: --status,  or in Python: status) – UTF-8 string.

    Specifies the current state of this global database.

  • StorageEncrypted  (in the CLI: --storage-encrypted,  or in Python: storage_encrypted) – Boolean.

    The storage encryption setting for the global database.

DeleteGlobalCluster (action)

        The Amazon CLI name for this API is: delete-global-cluster,  and the Python name is: delete_global_cluster.

Deletes a global database. The primary and all secondary clusters must already be detached or deleted first.

Request

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    The cluster identifier of the global database cluster being deleted.

Response

Contains the details of an Amazon Neptune global database.

This data type is used as a response element for the CreateGlobalCluster (action), DescribeGlobalClusters (action), ModifyGlobalCluster (action), DeleteGlobalCluster (action), FailoverGlobalCluster (action), and RemoveFromGlobalCluster (action) actions.

  • DeletionProtection  (in the CLI: --deletion-protection,  or in Python: deletion_protection) – Boolean.

    The deletion protection setting for the global database.

  • Engine  (in the CLI: --engine,  or in Python: engine) – UTF-8 string.

    The Neptune database engine used by the global database ("neptune").

  • EngineVersion  (in the CLI: --engine-version,  or in Python: engine_version) – UTF-8 string.

    The Neptune engine version used by the global database.

  • GlobalClusterArn  (in the CLI: --global-cluster-arn,  or in Python: global_cluster_arn) – UTF-8 string.

    The Amazon Resource Name (ARN) for the global database.

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a global database.

  • GlobalClusterMembers  (in the CLI: --global-cluster-members,  or in Python: global_cluster_members) – An array of GlobalClusterMember— a structures.

    A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database.

  • GlobalClusterResourceId  (in the CLI: --global-cluster-resource-id,  or in Python: global_cluster_resource_id) – UTF-8 string.

    An immutable identifier for the global database that is unique within in all regions. This identifier is found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed.

  • Status  (in the CLI: --status,  or in Python: status) – UTF-8 string.

    Specifies the current state of this global database.

  • StorageEncrypted  (in the CLI: --storage-encrypted,  or in Python: storage_encrypted) – Boolean.

    The storage encryption setting for the global database.

ModifyGlobalCluster (action)

        The Amazon CLI name for this API is: modify-global-cluster,  and the Python name is: modify_global_cluster.

Modify a setting for an Amazon Neptune global cluster. You can change one or more database configuration parameters by specifying these parameters and their new values in the request.

Request

  • AllowMajorVersionUpgrade  (in the CLI: --allow-major-version-upgrade,  or in Python: allow_major_version_upgrade) – Boolean.

    A value that indicates whether major version upgrades are allowed.

    Constraints: You must allow major version upgrades if you specify a value for the EngineVersion parameter that is a different major version than the DB cluster's current version.

    If you upgrade the major version of a global database, the cluster and DB instance parameter groups are set to the default parameter groups for the new version, so you will need to apply any custom parameter groups after completing the upgrade.

  • DeletionProtection  (in the CLI: --deletion-protection,  or in Python: deletion_protection) – Boolean.

    Indicates whether the global database has deletion protection enabled. The global database cannot be deleted when deletion protection is enabled.

  • EngineVersion  (in the CLI: --engine-version,  or in Python: engine_version) – UTF-8 string.

    The version number of the database engine to which you want to upgrade. Changing this parameter will result in an outage. The change is applied during the next maintenance window unless ApplyImmediately is enabled.

    To list all of the available Neptune engine versions, use the following command:

    aws neptune describe-db-engine-versions \ --engine neptune \ --query '*[]|[?SupportsGlobalDatabases == 'true'].[EngineVersion]'
  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    The DB cluster identifier for the global cluster being modified. This parameter is not case-sensitive.

    Constraints: Must match the identifier of an existing global database cluster.

  • NewGlobalClusterIdentifier  (in the CLI: --new-global-cluster-identifier,  or in Python: new_global_cluster_identifier) – UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    A new cluster identifier to assign to the global database. This value is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 letters, numbers, or hyphens.

    • The first character must be a letter.

    • Can't end with a hyphen or contain two consecutive hyphens

    Example: my-cluster2

Response

Contains the details of an Amazon Neptune global database.

This data type is used as a response element for the CreateGlobalCluster (action), DescribeGlobalClusters (action), ModifyGlobalCluster (action), DeleteGlobalCluster (action), FailoverGlobalCluster (action), and RemoveFromGlobalCluster (action) actions.

  • DeletionProtection  (in the CLI: --deletion-protection,  or in Python: deletion_protection) – Boolean.

    The deletion protection setting for the global database.

  • Engine  (in the CLI: --engine,  or in Python: engine) – UTF-8 string.

    The Neptune database engine used by the global database ("neptune").

  • EngineVersion  (in the CLI: --engine-version,  or in Python: engine_version) – UTF-8 string.

    The Neptune engine version used by the global database.

  • GlobalClusterArn  (in the CLI: --global-cluster-arn,  or in Python: global_cluster_arn) – UTF-8 string.

    The Amazon Resource Name (ARN) for the global database.

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a global database.

  • GlobalClusterMembers  (in the CLI: --global-cluster-members,  or in Python: global_cluster_members) – An array of GlobalClusterMember— a structures.

    A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database.

  • GlobalClusterResourceId  (in the CLI: --global-cluster-resource-id,  or in Python: global_cluster_resource_id) – UTF-8 string.

    An immutable identifier for the global database that is unique within in all regions. This identifier is found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed.

  • Status  (in the CLI: --status,  or in Python: status) – UTF-8 string.

    Specifies the current state of this global database.

  • StorageEncrypted  (in the CLI: --storage-encrypted,  or in Python: storage_encrypted) – Boolean.

    The storage encryption setting for the global database.

DescribeGlobalClusters (action)

        The Amazon CLI name for this API is: describe-global-clusters,  and the Python name is: describe_global_clusters.

Returns information about Neptune global database clusters. This API supports pagination.

Request

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    The user-supplied DB cluster identifier. If this parameter is specified, only information about the specified DB cluster is returned. This parameter is not case-sensitive.

    Constraints: If supplied, must match an existing DB cluster identifier.

  • Marker  (in the CLI: --marker,  or in Python: marker) – UTF-8 string.

    (Optional) A pagination token returned by a previous call to DescribeGlobalClusters. If this parameter is specified, the response will only include records beyond the marker, up to the number specified by MaxRecords.

  • MaxRecords  (in the CLI: --max-records,  or in Python: max_records) – Number (integer).

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination marker token is included in the response that you can use to retrieve the remaining results.

    Default: 100

    Constraints: Minimum 20, maximum 100.

Response

  • GlobalClusters  (in the CLI: --global-clusters,  or in Python: global_clusters) – An array of GlobalCluster GlobalClusterMember objects.

    The list of global clusters and instances returned by this request.

  • Marker  (in the CLI: --marker,  or in Python: marker) – UTF-8 string.

    A pagination token. If this parameter is returned in the response, more records are available, which can be retrieved by one or more additional calls to DescribeGlobalClusters.

FailoverGlobalCluster (action)

        The Amazon CLI name for this API is: failover-global-cluster,  and the Python name is: failover_global_cluster.

Initiates the failover process for a Neptune global database.

A failover for a Neptune global database promotes one of secondary read-only DB clusters to be the primary DB cluster and demotes the primary DB cluster to being a secondary (read-only) DB cluster. In other words, the role of the current primary DB cluster and the selected target secondary DB cluster are switched. The selected secondary DB cluster assumes full read/write capabilities for the Neptune global database.

Note

This action applies only to Neptune global databases. This action is only intended for use on healthy Neptune global databases with healthy Neptune DB clusters and no region-wide outages, to test disaster recovery scenarios or to reconfigure the global database topology.

Request

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    Identifier of the Neptune global database that should be failed over. The identifier is the unique key assigned by the user when the Neptune global database was created. In other words, it's the name of the global database that you want to fail over.

    Constraints: Must match the identifier of an existing Neptune global database.

  • TargetDbClusterIdentifier  (in the CLI: --target-db-cluster-identifier,  or in Python: target_db_cluster_identifier) – Required: UTF-8 string.

    The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you want to promote to primary for the global database.

Response

Contains the details of an Amazon Neptune global database.

This data type is used as a response element for the CreateGlobalCluster (action), DescribeGlobalClusters (action), ModifyGlobalCluster (action), DeleteGlobalCluster (action), FailoverGlobalCluster (action), and RemoveFromGlobalCluster (action) actions.

  • DeletionProtection  (in the CLI: --deletion-protection,  or in Python: deletion_protection) – Boolean.

    The deletion protection setting for the global database.

  • Engine  (in the CLI: --engine,  or in Python: engine) – UTF-8 string.

    The Neptune database engine used by the global database ("neptune").

  • EngineVersion  (in the CLI: --engine-version,  or in Python: engine_version) – UTF-8 string.

    The Neptune engine version used by the global database.

  • GlobalClusterArn  (in the CLI: --global-cluster-arn,  or in Python: global_cluster_arn) – UTF-8 string.

    The Amazon Resource Name (ARN) for the global database.

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a global database.

  • GlobalClusterMembers  (in the CLI: --global-cluster-members,  or in Python: global_cluster_members) – An array of GlobalClusterMember— a structures.

    A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database.

  • GlobalClusterResourceId  (in the CLI: --global-cluster-resource-id,  or in Python: global_cluster_resource_id) – UTF-8 string.

    An immutable identifier for the global database that is unique within in all regions. This identifier is found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed.

  • Status  (in the CLI: --status,  or in Python: status) – UTF-8 string.

    Specifies the current state of this global database.

  • StorageEncrypted  (in the CLI: --storage-encrypted,  or in Python: storage_encrypted) – Boolean.

    The storage encryption setting for the global database.

RemoveFromGlobalCluster (action)

        The Amazon CLI name for this API is: remove-from-global-cluster,  and the Python name is: remove_from_global_cluster.

Detaches a Neptune DB cluster from a Neptune global database. A secondary cluster becomes a normal standalone cluster with read-write capability instead of being read-only, and no longer receives data from a the primary cluster.

Request

  • DbClusterIdentifier  (in the CLI: --db-cluster-identifier,  or in Python: db_cluster_identifier) – Required: UTF-8 string.

    The Amazon Resource Name (ARN) identifying the cluster to be detached from the Neptune global database cluster.

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    The identifier of the Neptune global database from which to detach the specified Neptune DB cluster.

Response

Contains the details of an Amazon Neptune global database.

This data type is used as a response element for the CreateGlobalCluster (action), DescribeGlobalClusters (action), ModifyGlobalCluster (action), DeleteGlobalCluster (action), FailoverGlobalCluster (action), and RemoveFromGlobalCluster (action) actions.

  • DeletionProtection  (in the CLI: --deletion-protection,  or in Python: deletion_protection) – Boolean.

    The deletion protection setting for the global database.

  • Engine  (in the CLI: --engine,  or in Python: engine) – UTF-8 string.

    The Neptune database engine used by the global database ("neptune").

  • EngineVersion  (in the CLI: --engine-version,  or in Python: engine_version) – UTF-8 string.

    The Neptune engine version used by the global database.

  • GlobalClusterArn  (in the CLI: --global-cluster-arn,  or in Python: global_cluster_arn) – UTF-8 string.

    The Amazon Resource Name (ARN) for the global database.

  • GlobalClusterIdentifier  (in the CLI: --global-cluster-identifier,  or in Python: global_cluster_identifier) – UTF-8 string, not less than 1 or more than 255 bytes long, matching the regular expression: '[A-Za-z][0-9A-Za-z-:._]*'.

    Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a global database.

  • GlobalClusterMembers  (in the CLI: --global-cluster-members,  or in Python: global_cluster_members) – An array of GlobalClusterMember— a structures.

    A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database.

  • GlobalClusterResourceId  (in the CLI: --global-cluster-resource-id,  or in Python: global_cluster_resource_id) – UTF-8 string.

    An immutable identifier for the global database that is unique within in all regions. This identifier is found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed.

  • Status  (in the CLI: --status,  or in Python: status) – UTF-8 string.

    Specifies the current state of this global database.

  • StorageEncrypted  (in the CLI: --storage-encrypted,  or in Python: storage_encrypted) – Boolean.

    The storage encryption setting for the global database.