Neptune

Table of Contents

Client

class Neptune.Client

A low-level client representing Amazon Neptune

Amazon Neptune is a fast, reliable, fully-managed graph database service that makes it easy to build and run applications that work with highly connected datasets. The core of Amazon Neptune is a purpose-built, high-performance graph database engine optimized for storing billions of relationships and querying the graph with milliseconds latency. Amazon Neptune supports popular graph models Property Graph and W3C's RDF, and their respective query languages Apache TinkerPop Gremlin and SPARQL, allowing you to easily build queries that efficiently navigate highly connected datasets. Neptune powers graph use cases such as recommendation engines, fraud detection, knowledge graphs, drug discovery, and network security.

This interface reference for Amazon Neptune contains documentation for a programming or command line interface you can use to manage Amazon Neptune. Note that Amazon Neptune is asynchronous, which means that some interfaces might require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. The reference structure is as follows, and we list following some related topics from the user guide.

import boto3

client = boto3.client('neptune')

These are the available methods:

add_role_to_db_cluster(**kwargs)

Associates an Identity and Access Management (IAM) role from an Neptune DB cluster.

See also: AWS API Documentation

Request Syntax

response = client.add_role_to_db_cluster(
    DBClusterIdentifier='string',
    RoleArn='string',
    FeatureName='string'
)
Parameters
  • DBClusterIdentifier (string) --

    [REQUIRED]

    The name of the DB cluster to associate the IAM role with.

  • RoleArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the IAM role to associate with the Neptune DB cluster, for example arn:aws:iam::123456789012:role/NeptuneAccessRole .

  • FeatureName (string) -- The name of the feature for the Neptune DB cluster that the IAM role is to be associated with. For the list of supported feature names, see DBEngineVersion .
Returns

None

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.DBClusterRoleAlreadyExistsFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.DBClusterRoleQuotaExceededFault
add_source_identifier_to_subscription(**kwargs)

Adds a source identifier to an existing event notification subscription.

See also: AWS API Documentation

Request Syntax

response = client.add_source_identifier_to_subscription(
    SubscriptionName='string',
    SourceIdentifier='string'
)
Parameters
  • SubscriptionName (string) --

    [REQUIRED]

    The name of the event notification subscription you want to add a source identifier to.

  • SourceIdentifier (string) --

    [REQUIRED]

    The identifier of the event source to be added.

    Constraints:

    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
    • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
Return type

dict

Returns

Response Syntax

{
    'EventSubscription': {
        'CustomerAwsId': 'string',
        'CustSubscriptionId': 'string',
        'SnsTopicArn': 'string',
        'Status': 'string',
        'SubscriptionCreationTime': 'string',
        'SourceType': 'string',
        'SourceIdsList': [
            'string',
        ],
        'EventCategoriesList': [
            'string',
        ],
        'Enabled': True|False,
        'EventSubscriptionArn': 'string'
    }
}

Response Structure

  • (dict) --

    • EventSubscription (dict) --

      Contains the results of a successful invocation of the DescribeEventSubscriptions action.

      • CustomerAwsId (string) --

        The Amazon customer account associated with the event notification subscription.

      • CustSubscriptionId (string) --

        The event notification subscription Id.

      • SnsTopicArn (string) --

        The topic ARN of the event notification subscription.

      • Status (string) --

        The status of the event notification subscription.

        Constraints:

        Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

        The status "no-permission" indicates that Neptune no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.

      • SubscriptionCreationTime (string) --

        The time the event notification subscription was created.

      • SourceType (string) --

        The source type for the event notification subscription.

      • SourceIdsList (list) --

        A list of source IDs for the event notification subscription.

        • (string) --
      • EventCategoriesList (list) --

        A list of event categories for the event notification subscription.

        • (string) --
      • Enabled (boolean) --

        A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

      • EventSubscriptionArn (string) --

        The Amazon Resource Name (ARN) for the event subscription.

Exceptions

  • Neptune.Client.exceptions.SubscriptionNotFoundFault
  • Neptune.Client.exceptions.SourceNotFoundFault
add_tags_to_resource(**kwargs)

Adds metadata tags to an Amazon Neptune resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon Neptune resources, or used in a Condition statement in an IAM policy for Amazon Neptune.

See also: AWS API Documentation

Request Syntax

response = client.add_tags_to_resource(
    ResourceName='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • ResourceName (string) --

    [REQUIRED]

    The Amazon Neptune resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) .

  • Tags (list) --

    [REQUIRED]

    The tags to be assigned to the Amazon Neptune resource.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Returns

None

Exceptions

  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.DBSnapshotNotFoundFault
  • Neptune.Client.exceptions.DBClusterNotFoundFault
apply_pending_maintenance_action(**kwargs)

Applies a pending maintenance action to a resource (for example, to a DB instance).

See also: AWS API Documentation

Request Syntax

response = client.apply_pending_maintenance_action(
    ResourceIdentifier='string',
    ApplyAction='string',
    OptInType='string'
)
Parameters
  • ResourceIdentifier (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) .

  • ApplyAction (string) --

    [REQUIRED]

    The pending maintenance action to apply to this resource.

    Valid values: system-update , db-upgrade

  • OptInType (string) --

    [REQUIRED]

    A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type immediate can't be undone.

    Valid values:

    • immediate - Apply the maintenance action immediately.
    • next-maintenance - Apply the maintenance action during the next maintenance window for the resource.
    • undo-opt-in - Cancel any existing next-maintenance opt-in requests.
Return type

dict

Returns

Response Syntax

{
    'ResourcePendingMaintenanceActions': {
        'ResourceIdentifier': 'string',
        'PendingMaintenanceActionDetails': [
            {
                'Action': 'string',
                'AutoAppliedAfterDate': datetime(2015, 1, 1),
                'ForcedApplyDate': datetime(2015, 1, 1),
                'OptInStatus': 'string',
                'CurrentApplyDate': datetime(2015, 1, 1),
                'Description': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • ResourcePendingMaintenanceActions (dict) --

      Describes the pending maintenance actions for a resource.

      • ResourceIdentifier (string) --

        The ARN of the resource that has pending maintenance actions.

      • PendingMaintenanceActionDetails (list) --

        A list that provides details about the pending maintenance actions for the resource.

        • (dict) --

          Provides information about a pending maintenance action for a resource.

          • Action (string) --

            The type of pending maintenance action that is available for the resource.

          • AutoAppliedAfterDate (datetime) --

            The date of the maintenance window when the action is applied. The maintenance action is applied to the resource during its first maintenance window after this date. If this date is specified, any next-maintenance opt-in requests are ignored.

          • ForcedApplyDate (datetime) --

            The date when the maintenance action is automatically applied. The maintenance action is applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any immediate opt-in requests are ignored.

          • OptInStatus (string) --

            Indicates the type of opt-in request that has been received for the resource.

          • CurrentApplyDate (datetime) --

            The effective date when the pending maintenance action is applied to the resource. This date takes into account opt-in requests received from the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate , and the ForcedApplyDate . This value is blank if an opt-in request has not been received and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate .

          • Description (string) --

            A description providing more detail about the maintenance action.

Exceptions

  • Neptune.Client.exceptions.ResourceNotFoundFault
can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
copy_db_cluster_parameter_group(**kwargs)

Copies the specified DB cluster parameter group.

See also: AWS API Documentation

Request Syntax

response = client.copy_db_cluster_parameter_group(
    SourceDBClusterParameterGroupIdentifier='string',
    TargetDBClusterParameterGroupIdentifier='string',
    TargetDBClusterParameterGroupDescription='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • SourceDBClusterParameterGroupIdentifier (string) --

    [REQUIRED]

    The identifier or Amazon Resource Name (ARN) for the source DB cluster parameter group. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) .

    Constraints:

    • Must specify a valid DB cluster parameter group.
    • If the source DB cluster parameter group is in the same Amazon Region as the copy, specify a valid DB parameter group identifier, for example my-db-cluster-param-group , or a valid ARN.
    • If the source DB parameter group is in a different Amazon Region than the copy, specify a valid DB cluster parameter group ARN, for example arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1 .
  • TargetDBClusterParameterGroupIdentifier (string) --

    [REQUIRED]

    The identifier for the copied DB cluster parameter group.

    Constraints:

    • Cannot be null, empty, or blank
    • Must contain from 1 to 255 letters, numbers, or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-cluster-param-group1

  • TargetDBClusterParameterGroupDescription (string) --

    [REQUIRED]

    A description for the copied DB cluster parameter group.

  • Tags (list) --

    The tags to be assigned to the copied DB cluster parameter group.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Return type

dict

Returns

Response Syntax

{
    'DBClusterParameterGroup': {
        'DBClusterParameterGroupName': 'string',
        'DBParameterGroupFamily': 'string',
        'Description': 'string',
        'DBClusterParameterGroupArn': 'string'
    }
}

Response Structure

  • (dict) --

    • DBClusterParameterGroup (dict) --

      Contains the details of an Amazon Neptune DB cluster parameter group.

      This data type is used as a response element in the DescribeDBClusterParameterGroups action.

      • DBClusterParameterGroupName (string) --

        Provides the name of the DB cluster parameter group.

      • DBParameterGroupFamily (string) --

        Provides the name of the DB parameter group family that this DB cluster parameter group is compatible with.

      • Description (string) --

        Provides the customer-specified description for this DB cluster parameter group.

      • DBClusterParameterGroupArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster parameter group.

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
  • Neptune.Client.exceptions.DBParameterGroupQuotaExceededFault
  • Neptune.Client.exceptions.DBParameterGroupAlreadyExistsFault
copy_db_cluster_snapshot(**kwargs)

Copies a snapshot of a DB cluster.

To copy a DB cluster snapshot from a shared manual DB cluster snapshot, SourceDBClusterSnapshotIdentifier must be the Amazon Resource Name (ARN) of the shared DB cluster snapshot.

See also: AWS API Documentation

Request Syntax

response = client.copy_db_cluster_snapshot(
    SourceDBClusterSnapshotIdentifier='string',
    TargetDBClusterSnapshotIdentifier='string',
    KmsKeyId='string',
    CopyTags=True|False,
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    SourceRegion='string'
)
Parameters
  • SourceDBClusterSnapshotIdentifier (string) --

    [REQUIRED]

    The identifier of the DB cluster snapshot to copy. This parameter is not case-sensitive.

    Constraints:

    • Must specify a valid system snapshot in the "available" state.
    • Specify a valid DB snapshot identifier.

    Example: my-cluster-snapshot1

  • TargetDBClusterSnapshotIdentifier (string) --

    [REQUIRED]

    The identifier of the new DB cluster snapshot to create from the source DB cluster snapshot. This parameter is not case-sensitive.

    Constraints:

    • Must contain from 1 to 63 letters, numbers, or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-cluster-snapshot2

  • KmsKeyId (string) --

    The Amazon Amazon KMS key ID for an encrypted DB cluster snapshot. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.

    If you copy an encrypted DB cluster snapshot from your Amazon account, you can specify a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If you don't specify a value for KmsKeyId , then the copy of the DB cluster snapshot is encrypted with the same KMS key as the source DB cluster snapshot.

    If you copy an encrypted DB cluster snapshot that is shared from another Amazon account, then you must specify a value for KmsKeyId .

    KMS encryption keys are specific to the Amazon Region that they are created in, and you can't use encryption keys from one Amazon Region in another Amazon Region.

    You cannot encrypt an unencrypted DB cluster snapshot when you copy it. If you try to copy an unencrypted DB cluster snapshot and specify a value for the KmsKeyId parameter, an error is returned.

  • PreSignedUrl (string) --

    Not currently supported.

    Please note that this parameter is automatically populated if it is not provided. Including this parameter is not required
  • CopyTags (boolean) -- True to copy all tags from the source DB cluster snapshot to the target DB cluster snapshot, and otherwise false. The default is false.
  • Tags (list) --

    The tags to assign to the new DB cluster snapshot copy.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

  • SourceRegion (string) -- The ID of the region that contains the snapshot to be copied.
Return type

dict

Returns

Response Syntax

{
    'DBClusterSnapshot': {
        'AvailabilityZones': [
            'string',
        ],
        'DBClusterSnapshotIdentifier': 'string',
        'DBClusterIdentifier': 'string',
        'SnapshotCreateTime': datetime(2015, 1, 1),
        'Engine': 'string',
        'AllocatedStorage': 123,
        'Status': 'string',
        'Port': 123,
        'VpcId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'MasterUsername': 'string',
        'EngineVersion': 'string',
        'LicenseModel': 'string',
        'SnapshotType': 'string',
        'PercentProgress': 123,
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DBClusterSnapshotArn': 'string',
        'SourceDBClusterSnapshotArn': 'string',
        'IAMDatabaseAuthenticationEnabled': True|False
    }
}

Response Structure

  • (dict) --

    • DBClusterSnapshot (dict) --

      Contains the details for an Amazon Neptune DB cluster snapshot

      This data type is used as a response element in the DescribeDBClusterSnapshots action.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

        • (string) --
      • DBClusterSnapshotIdentifier (string) --

        Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.

        After you restore a DB cluster using a DBClusterSnapshotIdentifier , you must specify the same DBClusterSnapshotIdentifier for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed.

        However, if you don't specify the DBClusterSnapshotIdentifier , an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, the DB cluster is restored from the snapshot specified by the DBClusterSnapshotIdentifier , and the original DB cluster is deleted.

      • DBClusterIdentifier (string) --

        Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from.

      • SnapshotCreateTime (datetime) --

        Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

      • Engine (string) --

        Specifies the name of the database engine.

      • AllocatedStorage (integer) --

        Specifies the allocated storage size in gibibytes (GiB).

      • Status (string) --

        Specifies the status of this DB cluster snapshot.

      • Port (integer) --

        Specifies the port that the DB cluster was listening on at the time of the snapshot.

      • VpcId (string) --

        Provides the VPC ID associated with the DB cluster snapshot.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • MasterUsername (string) --

        Not supported by Neptune.

      • EngineVersion (string) --

        Provides the version of the database engine for this DB cluster snapshot.

      • LicenseModel (string) --

        Provides the license model information for this DB cluster snapshot.

      • SnapshotType (string) --

        Provides the type of the DB cluster snapshot.

      • PercentProgress (integer) --

        Specifies the percentage of the estimated data that has been transferred.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster snapshot is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster snapshot.

      • DBClusterSnapshotArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster snapshot.

      • SourceDBClusterSnapshotArn (string) --

        If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the source DB cluster snapshot, otherwise, a null value.

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

Exceptions

  • Neptune.Client.exceptions.DBClusterSnapshotAlreadyExistsFault
  • Neptune.Client.exceptions.DBClusterSnapshotNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.InvalidDBClusterSnapshotStateFault
  • Neptune.Client.exceptions.SnapshotQuotaExceededFault
  • Neptune.Client.exceptions.KMSKeyNotAccessibleFault
copy_db_parameter_group(**kwargs)

Copies the specified DB parameter group.

See also: AWS API Documentation

Request Syntax

response = client.copy_db_parameter_group(
    SourceDBParameterGroupIdentifier='string',
    TargetDBParameterGroupIdentifier='string',
    TargetDBParameterGroupDescription='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • SourceDBParameterGroupIdentifier (string) --

    [REQUIRED]

    The identifier or ARN for the source DB parameter group. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) .

    Constraints:

    • Must specify a valid DB parameter group.
    • Must specify a valid DB parameter group identifier, for example my-db-param-group , or a valid ARN.
  • TargetDBParameterGroupIdentifier (string) --

    [REQUIRED]

    The identifier for the copied DB parameter group.

    Constraints:

    • Cannot be null, empty, or blank.
    • Must contain from 1 to 255 letters, numbers, or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-db-parameter-group

  • TargetDBParameterGroupDescription (string) --

    [REQUIRED]

    A description for the copied DB parameter group.

  • Tags (list) --

    The tags to be assigned to the copied DB parameter group.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Return type

dict

Returns

Response Syntax

{
    'DBParameterGroup': {
        'DBParameterGroupName': 'string',
        'DBParameterGroupFamily': 'string',
        'Description': 'string',
        'DBParameterGroupArn': 'string'
    }
}

Response Structure

  • (dict) --

    • DBParameterGroup (dict) --

      Contains the details of an Amazon Neptune DB parameter group.

      This data type is used as a response element in the DescribeDBParameterGroups action.

      • DBParameterGroupName (string) --

        Provides the name of the DB parameter group.

      • DBParameterGroupFamily (string) --

        Provides the name of the DB parameter group family that this DB parameter group is compatible with.

      • Description (string) --

        Provides the customer-specified description for this DB parameter group.

      • DBParameterGroupArn (string) --

        The Amazon Resource Name (ARN) for the DB parameter group.

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
  • Neptune.Client.exceptions.DBParameterGroupAlreadyExistsFault
  • Neptune.Client.exceptions.DBParameterGroupQuotaExceededFault
create_db_cluster(**kwargs)

Creates a new Amazon Neptune DB cluster.

You can use the ReplicationSourceIdentifier parameter to create the DB cluster as a Read Replica of another DB cluster or Amazon Neptune DB instance.

Note that when you create a new cluster using CreateDBCluster directly, deletion protection is disabled by default (when you create a new production cluster in the console, deletion protection is enabled by default). You can only delete a DB cluster if its DeletionProtection field is set to false .

See also: AWS API Documentation

Request Syntax

response = client.create_db_cluster(
    AvailabilityZones=[
        'string',
    ],
    BackupRetentionPeriod=123,
    CharacterSetName='string',
    CopyTagsToSnapshot=True|False,
    DatabaseName='string',
    DBClusterIdentifier='string',
    DBClusterParameterGroupName='string',
    VpcSecurityGroupIds=[
        'string',
    ],
    DBSubnetGroupName='string',
    Engine='string',
    EngineVersion='string',
    Port=123,
    MasterUsername='string',
    MasterUserPassword='string',
    OptionGroupName='string',
    PreferredBackupWindow='string',
    PreferredMaintenanceWindow='string',
    ReplicationSourceIdentifier='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    StorageEncrypted=True|False,
    KmsKeyId='string',
    EnableIAMDatabaseAuthentication=True|False,
    EnableCloudwatchLogsExports=[
        'string',
    ],
    DeletionProtection=True|False,
    SourceRegion='string'
)
Parameters
  • AvailabilityZones (list) --

    A list of EC2 Availability Zones that instances in the DB cluster can be created in.

    • (string) --
  • BackupRetentionPeriod (integer) --

    The number of days for which automated backups are retained. You must specify a minimum value of 1.

    Default: 1

    Constraints:

    • Must be a value from 1 to 35
  • CharacterSetName (string) -- (Not supported by Neptune)
  • CopyTagsToSnapshot (boolean) -- If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.
  • DatabaseName (string) -- The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon Neptune will not create a database in the DB cluster you are creating.
  • DBClusterIdentifier (string) --

    [REQUIRED]

    The DB cluster identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 letters, numbers, or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-cluster1

  • DBClusterParameterGroupName (string) --

    The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, the default is used.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • VpcSecurityGroupIds (list) --

    A list of EC2 VPC security groups to associate with this DB cluster.

    • (string) --
  • DBSubnetGroupName (string) --

    A DB subnet group to associate with this DB cluster.

    Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

    Example: mySubnetgroup

  • Engine (string) --

    [REQUIRED]

    The name of the database engine to be used for this DB cluster.

    Valid Values: neptune

  • EngineVersion (string) --

    The version number of the database engine to use for the new DB cluster.

    Example: 1.0.2.1

  • Port (integer) --

    The port number on which the instances in the DB cluster accept connections.

    Default: 8182

  • MasterUsername (string) -- Not supported by Neptune.
  • MasterUserPassword (string) -- Not supported by Neptune.
  • OptionGroupName (string) -- (Not supported by Neptune)
  • PreferredBackupWindow (string) --

    The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.

    The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Neptune User Guide.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi .
    • Must be in Universal Coordinated Time (UTC).
    • Must not conflict with the preferred maintenance window.
    • Must be at least 30 minutes.
  • PreferredMaintenanceWindow (string) --

    The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

    Format: ddd:hh24:mi-ddd:hh24:mi

    The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Neptune User Guide.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

    Constraints: Minimum 30-minute window.

  • ReplicationSourceIdentifier (string) -- The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a Read Replica.
  • Tags (list) --

    The tags to assign to the new DB cluster.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

  • StorageEncrypted (boolean) -- Specifies whether the DB cluster is encrypted.
  • KmsKeyId (string) --

    The Amazon KMS key identifier for an encrypted DB cluster.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

    If an encryption key is not specified in KmsKeyId :

    • If ReplicationSourceIdentifier identifies an encrypted source, then Amazon Neptune will use the encryption key used to encrypt the source. Otherwise, Amazon Neptune will use your default encryption key.
    • If the StorageEncrypted parameter is true and ReplicationSourceIdentifier is not specified, then Amazon Neptune will use your default encryption key.

    Amazon KMS creates the default encryption key for your Amazon account. Your Amazon account has a different default encryption key for each Amazon Region.

    If you create a Read Replica of an encrypted DB cluster in another Amazon Region, you must set KmsKeyId to a KMS key ID that is valid in the destination Amazon Region. This key is used to encrypt the Read Replica in that Amazon Region.

  • PreSignedUrl (string) --

    This parameter is not currently supported.

    Please note that this parameter is automatically populated if it is not provided. Including this parameter is not required
  • EnableIAMDatabaseAuthentication (boolean) --

    If set to true , enables Amazon Identity and Access Management (IAM) authentication for the entire DB cluster (this cannot be set at an instance level).

    Default: false .

  • EnableCloudwatchLogsExports (list) --

    The list of log types that need to be enabled for exporting to CloudWatch Logs.

    • (string) --
  • DeletionProtection (boolean) -- A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is enabled.
  • SourceRegion (string) -- The ID of the region that contains the source for the db cluster.
Return type

dict

Returns

Response Syntax

{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --

        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --

        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterAlreadyExistsFault
  • Neptune.Client.exceptions.InsufficientStorageClusterCapacityFault
  • Neptune.Client.exceptions.DBClusterQuotaExceededFault
  • Neptune.Client.exceptions.StorageQuotaExceededFault
  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
  • Neptune.Client.exceptions.InvalidVPCNetworkStateFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.InvalidDBSubnetGroupStateFault
  • Neptune.Client.exceptions.InvalidSubnet
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
  • Neptune.Client.exceptions.DBClusterParameterGroupNotFoundFault
  • Neptune.Client.exceptions.KMSKeyNotAccessibleFault
  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.DBSubnetGroupDoesNotCoverEnoughAZs
create_db_cluster_endpoint(**kwargs)

Creates a new custom endpoint and associates it with an Amazon Neptune DB cluster.

See also: AWS API Documentation

Request Syntax

response = client.create_db_cluster_endpoint(
    DBClusterIdentifier='string',
    DBClusterEndpointIdentifier='string',
    EndpointType='string',
    StaticMembers=[
        'string',
    ],
    ExcludedMembers=[
        'string',
    ],
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • DBClusterIdentifier (string) --

    [REQUIRED]

    The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

  • DBClusterEndpointIdentifier (string) --

    [REQUIRED]

    The identifier to use for the new endpoint. This parameter is stored as a lowercase string.

  • EndpointType (string) --

    [REQUIRED]

    The type of the endpoint. One of: READER , WRITER , ANY .

  • StaticMembers (list) --

    List of DB instance identifiers that are part of the custom endpoint group.

    • (string) --
  • ExcludedMembers (list) --

    List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

    • (string) --
  • Tags (list) --

    The tags to be assigned to the Amazon Neptune resource.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Return type

dict

Returns

Response Syntax

{
    'DBClusterEndpointIdentifier': 'string',
    'DBClusterIdentifier': 'string',
    'DBClusterEndpointResourceIdentifier': 'string',
    'Endpoint': 'string',
    'Status': 'string',
    'EndpointType': 'string',
    'CustomEndpointType': 'string',
    'StaticMembers': [
        'string',
    ],
    'ExcludedMembers': [
        'string',
    ],
    'DBClusterEndpointArn': 'string'
}

Response Structure

  • (dict) --

    This data type represents the information you need to connect to an Amazon Neptune DB cluster. This data type is used as a response element in the following actions:

    • CreateDBClusterEndpoint
    • DescribeDBClusterEndpoints
    • ModifyDBClusterEndpoint
    • DeleteDBClusterEndpoint

    For the data structure that represents Amazon Neptune DB instance endpoints, see Endpoint .

    • DBClusterEndpointIdentifier (string) --

      The identifier associated with the endpoint. This parameter is stored as a lowercase string.

    • DBClusterIdentifier (string) --

      The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

    • DBClusterEndpointResourceIdentifier (string) --

      A unique system-generated identifier for an endpoint. It remains the same for the whole life of the endpoint.

    • Endpoint (string) --

      The DNS address of the endpoint.

    • Status (string) --

      The current status of the endpoint. One of: creating , available , deleting , inactive , modifying . The inactive state applies to an endpoint that cannot be used for a certain kind of cluster, such as a writer endpoint for a read-only secondary cluster in a global database.

    • EndpointType (string) --

      The type of the endpoint. One of: READER , WRITER , CUSTOM .

    • CustomEndpointType (string) --

      The type associated with a custom endpoint. One of: READER , WRITER , ANY .

    • StaticMembers (list) --

      List of DB instance identifiers that are part of the custom endpoint group.

      • (string) --
    • ExcludedMembers (list) --

      List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

      • (string) --
    • DBClusterEndpointArn (string) --

      The Amazon Resource Name (ARN) for the endpoint.

Exceptions

  • Neptune.Client.exceptions.DBClusterEndpointQuotaExceededFault
  • Neptune.Client.exceptions.DBClusterEndpointAlreadyExistsFault
  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
create_db_cluster_parameter_group(**kwargs)

Creates a new DB cluster parameter group.

Parameters in a DB cluster parameter group apply to all of the instances in a DB cluster.

A DB cluster parameter group is initially created with the default parameters for the database engine used by instances in the DB cluster. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBClusterParameterGroup . Once you've created a DB cluster parameter group, you need to associate it with your DB cluster using ModifyDBCluster . When you associate a new DB cluster parameter group with a running DB cluster, you need to reboot the DB instances in the DB cluster without failover for the new DB cluster parameter group and associated settings to take effect.

Warning

After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon Neptune to fully complete the create action before the DB cluster parameter group is used as the default for a new DB cluster. This is especially important for parameters that are critical when creating the default database for a DB cluster, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon Neptune console or the DescribeDBClusterParameters command to verify that your DB cluster parameter group has been created or modified.

See also: AWS API Documentation

Request Syntax

response = client.create_db_cluster_parameter_group(
    DBClusterParameterGroupName='string',
    DBParameterGroupFamily='string',
    Description='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • DBClusterParameterGroupName (string) --

    [REQUIRED]

    The name of the DB cluster parameter group.

    Constraints:

    • Must match the name of an existing DBClusterParameterGroup.

    Note

    This value is stored as a lowercase string.

  • DBParameterGroupFamily (string) --

    [REQUIRED]

    The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine version compatible with that DB cluster parameter group family.

  • Description (string) --

    [REQUIRED]

    The description for the DB cluster parameter group.

  • Tags (list) --

    The tags to be assigned to the new DB cluster parameter group.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Return type

dict

Returns

Response Syntax

{
    'DBClusterParameterGroup': {
        'DBClusterParameterGroupName': 'string',
        'DBParameterGroupFamily': 'string',
        'Description': 'string',
        'DBClusterParameterGroupArn': 'string'
    }
}

Response Structure

  • (dict) --

    • DBClusterParameterGroup (dict) --

      Contains the details of an Amazon Neptune DB cluster parameter group.

      This data type is used as a response element in the DescribeDBClusterParameterGroups action.

      • DBClusterParameterGroupName (string) --

        Provides the name of the DB cluster parameter group.

      • DBParameterGroupFamily (string) --

        Provides the name of the DB parameter group family that this DB cluster parameter group is compatible with.

      • Description (string) --

        Provides the customer-specified description for this DB cluster parameter group.

      • DBClusterParameterGroupArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster parameter group.

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupQuotaExceededFault
  • Neptune.Client.exceptions.DBParameterGroupAlreadyExistsFault
create_db_cluster_snapshot(**kwargs)

Creates a snapshot of a DB cluster.

See also: AWS API Documentation

Request Syntax

response = client.create_db_cluster_snapshot(
    DBClusterSnapshotIdentifier='string',
    DBClusterIdentifier='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • DBClusterSnapshotIdentifier (string) --

    [REQUIRED]

    The identifier of the DB cluster snapshot. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 letters, numbers, or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-cluster1-snapshot1

  • DBClusterIdentifier (string) --

    [REQUIRED]

    The identifier of the DB cluster to create a snapshot for. This parameter is not case-sensitive.

    Constraints:

    • Must match the identifier of an existing DBCluster.

    Example: my-cluster1

  • Tags (list) --

    The tags to be assigned to the DB cluster snapshot.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Return type

dict

Returns

Response Syntax

{
    'DBClusterSnapshot': {
        'AvailabilityZones': [
            'string',
        ],
        'DBClusterSnapshotIdentifier': 'string',
        'DBClusterIdentifier': 'string',
        'SnapshotCreateTime': datetime(2015, 1, 1),
        'Engine': 'string',
        'AllocatedStorage': 123,
        'Status': 'string',
        'Port': 123,
        'VpcId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'MasterUsername': 'string',
        'EngineVersion': 'string',
        'LicenseModel': 'string',
        'SnapshotType': 'string',
        'PercentProgress': 123,
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DBClusterSnapshotArn': 'string',
        'SourceDBClusterSnapshotArn': 'string',
        'IAMDatabaseAuthenticationEnabled': True|False
    }
}

Response Structure

  • (dict) --

    • DBClusterSnapshot (dict) --

      Contains the details for an Amazon Neptune DB cluster snapshot

      This data type is used as a response element in the DescribeDBClusterSnapshots action.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

        • (string) --
      • DBClusterSnapshotIdentifier (string) --

        Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.

        After you restore a DB cluster using a DBClusterSnapshotIdentifier , you must specify the same DBClusterSnapshotIdentifier for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed.

        However, if you don't specify the DBClusterSnapshotIdentifier , an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, the DB cluster is restored from the snapshot specified by the DBClusterSnapshotIdentifier , and the original DB cluster is deleted.

      • DBClusterIdentifier (string) --

        Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from.

      • SnapshotCreateTime (datetime) --

        Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

      • Engine (string) --

        Specifies the name of the database engine.

      • AllocatedStorage (integer) --

        Specifies the allocated storage size in gibibytes (GiB).

      • Status (string) --

        Specifies the status of this DB cluster snapshot.

      • Port (integer) --

        Specifies the port that the DB cluster was listening on at the time of the snapshot.

      • VpcId (string) --

        Provides the VPC ID associated with the DB cluster snapshot.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • MasterUsername (string) --

        Not supported by Neptune.

      • EngineVersion (string) --

        Provides the version of the database engine for this DB cluster snapshot.

      • LicenseModel (string) --

        Provides the license model information for this DB cluster snapshot.

      • SnapshotType (string) --

        Provides the type of the DB cluster snapshot.

      • PercentProgress (integer) --

        Specifies the percentage of the estimated data that has been transferred.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster snapshot is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster snapshot.

      • DBClusterSnapshotArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster snapshot.

      • SourceDBClusterSnapshotArn (string) --

        If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the source DB cluster snapshot, otherwise, a null value.

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

Exceptions

  • Neptune.Client.exceptions.DBClusterSnapshotAlreadyExistsFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.SnapshotQuotaExceededFault
  • Neptune.Client.exceptions.InvalidDBClusterSnapshotStateFault
create_db_instance(**kwargs)

Creates a new DB instance.

See also: AWS API Documentation

Request Syntax

response = client.create_db_instance(
    DBName='string',
    DBInstanceIdentifier='string',
    AllocatedStorage=123,
    DBInstanceClass='string',
    Engine='string',
    MasterUsername='string',
    MasterUserPassword='string',
    DBSecurityGroups=[
        'string',
    ],
    VpcSecurityGroupIds=[
        'string',
    ],
    AvailabilityZone='string',
    DBSubnetGroupName='string',
    PreferredMaintenanceWindow='string',
    DBParameterGroupName='string',
    BackupRetentionPeriod=123,
    PreferredBackupWindow='string',
    Port=123,
    MultiAZ=True|False,
    EngineVersion='string',
    AutoMinorVersionUpgrade=True|False,
    LicenseModel='string',
    Iops=123,
    OptionGroupName='string',
    CharacterSetName='string',
    PubliclyAccessible=True|False,
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    DBClusterIdentifier='string',
    StorageType='string',
    TdeCredentialArn='string',
    TdeCredentialPassword='string',
    StorageEncrypted=True|False,
    KmsKeyId='string',
    Domain='string',
    CopyTagsToSnapshot=True|False,
    MonitoringInterval=123,
    MonitoringRoleArn='string',
    DomainIAMRoleName='string',
    PromotionTier=123,
    Timezone='string',
    EnableIAMDatabaseAuthentication=True|False,
    EnablePerformanceInsights=True|False,
    PerformanceInsightsKMSKeyId='string',
    EnableCloudwatchLogsExports=[
        'string',
    ],
    DeletionProtection=True|False
)
Parameters
  • DBName (string) -- Not supported.
  • DBInstanceIdentifier (string) --

    [REQUIRED]

    The DB instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 letters, numbers, or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: mydbinstance

  • AllocatedStorage (integer) -- Not supported by Neptune.
  • DBInstanceClass (string) --

    [REQUIRED]

    The compute and memory capacity of the DB instance, for example, db.m4.large . Not all DB instance classes are available in all Amazon Regions.

  • Engine (string) --

    [REQUIRED]

    The name of the database engine to be used for this instance.

    Valid Values: neptune

  • MasterUsername (string) -- Not supported by Neptune.
  • MasterUserPassword (string) -- Not supported by Neptune.
  • DBSecurityGroups (list) --

    A list of DB security groups to associate with this DB instance.

    Default: The default DB security group for the database engine.

    • (string) --
  • VpcSecurityGroupIds (list) --

    A list of EC2 VPC security groups to associate with this DB instance.

    Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see CreateDBCluster .

    Default: The default EC2 VPC security group for the DB subnet group's VPC.

    • (string) --
  • AvailabilityZone (string) --

    The EC2 Availability Zone that the DB instance is created in

    Default: A random, system-chosen Availability Zone in the endpoint's Amazon Region.

    Example: us-east-1d

    Constraint: The AvailabilityZone parameter can't be specified if the MultiAZ parameter is set to true . The specified Availability Zone must be in the same Amazon Region as the current endpoint.

  • DBSubnetGroupName (string) --

    A DB subnet group to associate with this DB instance.

    If there is no DB subnet group, then it is a non-VPC DB instance.

  • PreferredMaintenanceWindow (string) --

    The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).

    Format: ddd:hh24:mi-ddd:hh24:mi

    The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

    Constraints: Minimum 30-minute window.

  • DBParameterGroupName (string) --

    The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine is used.

    Constraints:

    • Must be 1 to 255 letters, numbers, or hyphens.
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
  • BackupRetentionPeriod (integer) --

    The number of days for which automated backups are retained.

    Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see CreateDBCluster .

    Default: 1

    Constraints:

    • Must be a value from 0 to 35
    • Cannot be set to 0 if the DB instance is a source to Read Replicas
  • PreferredBackupWindow (string) --

    The daily time range during which automated backups are created.

    Not applicable. The daily time range for creating automated backups is managed by the DB cluster. For more information, see CreateDBCluster .

  • Port (integer) --

    The port number on which the database accepts connections.

    Not applicable. The port is managed by the DB cluster. For more information, see CreateDBCluster .

    Default: 8182

    Type: Integer

  • MultiAZ (boolean) -- Specifies if the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the MultiAZ parameter is set to true.
  • EngineVersion (string) -- The version number of the database engine to use. Currently, setting this parameter has no effect.
  • AutoMinorVersionUpgrade (boolean) --

    Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.

    Default: true

  • LicenseModel (string) --

    License model information for this DB instance.

    Valid values: license-included | bring-your-own-license | general-public-license

  • Iops (integer) -- The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.
  • OptionGroupName (string) -- (Not supported by Neptune)
  • CharacterSetName (string) -- (Not supported by Neptune)
  • PubliclyAccessible (boolean) -- This flag should no longer be used.
  • Tags (list) --

    The tags to assign to the new instance.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

  • DBClusterIdentifier (string) --

    The identifier of the DB cluster that the instance will belong to.

    For information on creating a DB cluster, see CreateDBCluster .

    Type: String

  • StorageType (string) --

    Specifies the storage type to be associated with the DB instance.

    Not applicable. Storage is managed by the DB Cluster.

  • TdeCredentialArn (string) -- The ARN from the key store with which to associate the instance for TDE encryption.
  • TdeCredentialPassword (string) -- The password for the given ARN from the key store in order to access the device.
  • StorageEncrypted (boolean) --

    Specifies whether the DB instance is encrypted.

    Not applicable. The encryption for DB instances is managed by the DB cluster. For more information, see CreateDBCluster .

    Default: false

  • KmsKeyId (string) --

    The Amazon KMS key identifier for an encrypted DB instance.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB instance with the same Amazon account that owns the KMS encryption key used to encrypt the new DB instance, then you can use the KMS key alias instead of the ARN for the KM encryption key.

    Not applicable. The KMS key identifier is managed by the DB cluster. For more information, see CreateDBCluster .

    If the StorageEncrypted parameter is true, and you do not specify a value for the KmsKeyId parameter, then Amazon Neptune will use your default encryption key. Amazon KMS creates the default encryption key for your Amazon account. Your Amazon account has a different default encryption key for each Amazon Region.

  • Domain (string) -- Specify the Active Directory Domain to create the instance in.
  • CopyTagsToSnapshot (boolean) -- True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false. The default is false.
  • MonitoringInterval (integer) --

    The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.

    If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0.

    Valid Values: 0, 1, 5, 10, 15, 30, 60

  • MonitoringRoleArn (string) --

    The ARN for the IAM role that permits Neptune to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess .

    If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

  • DomainIAMRoleName (string) -- Specify the name of the IAM role to be used when making API calls to the Directory Service.
  • PromotionTier (integer) --

    A value that specifies the order in which an Read Replica is promoted to the primary instance after a failure of the existing primary instance.

    Default: 1

    Valid Values: 0 - 15

  • Timezone (string) -- The time zone of the DB instance.
  • EnableIAMDatabaseAuthentication (boolean) -- Not supported by Neptune (ignored).
  • EnablePerformanceInsights (boolean) -- (Not supported by Neptune)
  • PerformanceInsightsKMSKeyId (string) -- (Not supported by Neptune)
  • EnableCloudwatchLogsExports (list) --

    The list of log types that need to be enabled for exporting to CloudWatch Logs.

    • (string) --
  • DeletionProtection (boolean) --

    A value that indicates whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. See Deleting a DB Instance .

    DB instances in a DB cluster can be deleted even when deletion protection is enabled in their parent DB cluster.

Return type

dict

Returns

Response Syntax

{
    'DBInstance': {
        'DBInstanceIdentifier': 'string',
        'DBInstanceClass': 'string',
        'Engine': 'string',
        'DBInstanceStatus': 'string',
        'MasterUsername': 'string',
        'DBName': 'string',
        'Endpoint': {
            'Address': 'string',
            'Port': 123,
            'HostedZoneId': 'string'
        },
        'AllocatedStorage': 123,
        'InstanceCreateTime': datetime(2015, 1, 1),
        'PreferredBackupWindow': 'string',
        'BackupRetentionPeriod': 123,
        'DBSecurityGroups': [
            {
                'DBSecurityGroupName': 'string',
                'Status': 'string'
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'DBParameterGroups': [
            {
                'DBParameterGroupName': 'string',
                'ParameterApplyStatus': 'string'
            },
        ],
        'AvailabilityZone': 'string',
        'DBSubnetGroup': {
            'DBSubnetGroupName': 'string',
            'DBSubnetGroupDescription': 'string',
            'VpcId': 'string',
            'SubnetGroupStatus': 'string',
            'Subnets': [
                {
                    'SubnetIdentifier': 'string',
                    'SubnetAvailabilityZone': {
                        'Name': 'string'
                    },
                    'SubnetStatus': 'string'
                },
            ],
            'DBSubnetGroupArn': 'string'
        },
        'PreferredMaintenanceWindow': 'string',
        'PendingModifiedValues': {
            'DBInstanceClass': 'string',
            'AllocatedStorage': 123,
            'MasterUserPassword': 'string',
            'Port': 123,
            'BackupRetentionPeriod': 123,
            'MultiAZ': True|False,
            'EngineVersion': 'string',
            'LicenseModel': 'string',
            'Iops': 123,
            'DBInstanceIdentifier': 'string',
            'StorageType': 'string',
            'CACertificateIdentifier': 'string',
            'DBSubnetGroupName': 'string',
            'PendingCloudwatchLogsExports': {
                'LogTypesToEnable': [
                    'string',
                ],
                'LogTypesToDisable': [
                    'string',
                ]
            }
        },
        'LatestRestorableTime': datetime(2015, 1, 1),
        'MultiAZ': True|False,
        'EngineVersion': 'string',
        'AutoMinorVersionUpgrade': True|False,
        'ReadReplicaSourceDBInstanceIdentifier': 'string',
        'ReadReplicaDBInstanceIdentifiers': [
            'string',
        ],
        'ReadReplicaDBClusterIdentifiers': [
            'string',
        ],
        'LicenseModel': 'string',
        'Iops': 123,
        'OptionGroupMemberships': [
            {
                'OptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'CharacterSetName': 'string',
        'SecondaryAvailabilityZone': 'string',
        'PubliclyAccessible': True|False,
        'StatusInfos': [
            {
                'StatusType': 'string',
                'Normal': True|False,
                'Status': 'string',
                'Message': 'string'
            },
        ],
        'StorageType': 'string',
        'TdeCredentialArn': 'string',
        'DbInstancePort': 123,
        'DBClusterIdentifier': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbiResourceId': 'string',
        'CACertificateIdentifier': 'string',
        'DomainMemberships': [
            {
                'Domain': 'string',
                'Status': 'string',
                'FQDN': 'string',
                'IAMRoleName': 'string'
            },
        ],
        'CopyTagsToSnapshot': True|False,
        'MonitoringInterval': 123,
        'EnhancedMonitoringResourceArn': 'string',
        'MonitoringRoleArn': 'string',
        'PromotionTier': 123,
        'DBInstanceArn': 'string',
        'Timezone': 'string',
        'IAMDatabaseAuthenticationEnabled': True|False,
        'PerformanceInsightsEnabled': True|False,
        'PerformanceInsightsKMSKeyId': 'string',
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False
    }
}

Response Structure

  • (dict) --

    • DBInstance (dict) --

      Contains the details of an Amazon Neptune DB instance.

      This data type is used as a response element in the DescribeDBInstances action.

      • DBInstanceIdentifier (string) --

        Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

      • DBInstanceClass (string) --

        Contains the name of the compute and memory capacity class of the DB instance.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB instance.

      • DBInstanceStatus (string) --

        Specifies the current state of this database.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBName (string) --

        The database name.

      • Endpoint (dict) --

        Specifies the connection endpoint.

        • Address (string) --

          Specifies the DNS address of the DB instance.

        • Port (integer) --

          Specifies the port that the database engine is listening on.

        • HostedZoneId (string) --

          Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • AllocatedStorage (integer) --

        Not supported by Neptune.

      • InstanceCreateTime (datetime) --

        Provides the date and time the DB instance was created.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • DBSecurityGroups (list) --

        Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

        • (dict) --

          Specifies membership in a designated DB security group.

          • DBSecurityGroupName (string) --

            The name of the DB security group.

          • Status (string) --

            The status of the DB security group.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security group elements that the DB instance belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • DBParameterGroups (list) --

        Provides the list of DB parameter groups applied to this DB instance.

        • (dict) --

          The status of the DB parameter group.

          This data type is used as a response element in the following actions:

          • CreateDBInstance
          • DeleteDBInstance
          • ModifyDBInstance
          • RebootDBInstance
          • DBParameterGroupName (string) --

            The name of the DP parameter group.

          • ParameterApplyStatus (string) --

            The status of parameter updates.

      • AvailabilityZone (string) --

        Specifies the name of the Availability Zone the DB instance is located in.

      • DBSubnetGroup (dict) --

        Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

        • DBSubnetGroupName (string) --

          The name of the DB subnet group.

        • DBSubnetGroupDescription (string) --

          Provides the description of the DB subnet group.

        • VpcId (string) --

          Provides the VpcId of the DB subnet group.

        • SubnetGroupStatus (string) --

          Provides the status of the DB subnet group.

        • Subnets (list) --

          Contains a list of Subnet elements.

          • (dict) --

            Specifies a subnet.

            This data type is used as a response element in the DescribeDBSubnetGroups action.

            • SubnetIdentifier (string) --

              Specifies the identifier of the subnet.

            • SubnetAvailabilityZone (dict) --

              Specifies the EC2 Availability Zone that the subnet is in.

              • Name (string) --

                The name of the availability zone.

            • SubnetStatus (string) --

              Specifies the status of the subnet.

        • DBSubnetGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB subnet group.

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • PendingModifiedValues (dict) --

        Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

        • DBInstanceClass (string) --

          Contains the new DBInstanceClass for the DB instance that will be applied or is currently being applied.

        • AllocatedStorage (integer) --

          Contains the new AllocatedStorage size for the DB instance that will be applied or is currently being applied.

        • MasterUserPassword (string) --

          Not supported by Neptune.

        • Port (integer) --

          Specifies the pending port for the DB instance.

        • BackupRetentionPeriod (integer) --

          Specifies the pending number of days for which automated backups are retained.

        • MultiAZ (boolean) --

          Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

        • EngineVersion (string) --

          Indicates the database engine version.

        • LicenseModel (string) --

          Not supported by Neptune.

        • Iops (integer) --

          Specifies the new Provisioned IOPS value for the DB instance that will be applied or is currently being applied.

        • DBInstanceIdentifier (string) --

          Contains the new DBInstanceIdentifier for the DB instance that will be applied or is currently being applied.

        • StorageType (string) --

          Specifies the storage type to be associated with the DB instance.

        • CACertificateIdentifier (string) --

          Specifies the identifier of the CA certificate for the DB instance.

        • DBSubnetGroupName (string) --

          The new DB subnet group for the DB instance.

        • PendingCloudwatchLogsExports (dict) --

          This PendingCloudwatchLogsExports structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.

          • LogTypesToEnable (list) --

            Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.

            • (string) --
          • LogTypesToDisable (list) --

            Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.

            • (string) --
      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • MultiAZ (boolean) --

        Specifies if the DB instance is a Multi-AZ deployment.

      • EngineVersion (string) --

        Indicates the database engine version.

      • AutoMinorVersionUpgrade (boolean) --

        Indicates that minor version patches are applied automatically.

      • ReadReplicaSourceDBInstanceIdentifier (string) --

        Contains the identifier of the source DB instance if this DB instance is a Read Replica.

      • ReadReplicaDBInstanceIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB instance.

        • (string) --
      • ReadReplicaDBClusterIdentifiers (list) --

        Contains one or more identifiers of DB clusters that are Read Replicas of this DB instance.

        • (string) --
      • LicenseModel (string) --

        License model information for this DB instance.

      • Iops (integer) --

        Specifies the Provisioned IOPS (I/O operations per second) value.

      • OptionGroupMemberships (list) --

        (Not supported by Neptune)

        • (dict) --

          Not supported by Neptune.

          • OptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • CharacterSetName (string) --

        (Not supported by Neptune)

      • SecondaryAvailabilityZone (string) --

        If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

      • PubliclyAccessible (boolean) --

        This flag should no longer be used.

      • StatusInfos (list) --

        The status of a Read Replica. If the instance is not a Read Replica, this is blank.

        • (dict) --

          Provides a list of status information for a DB instance.

          • StatusType (string) --

            This value is currently "read replication."

          • Normal (boolean) --

            Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

          • Status (string) --

            Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

          • Message (string) --

            Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

      • StorageType (string) --

        Specifies the storage type associated with DB instance.

      • TdeCredentialArn (string) --

        The ARN from the key store with which the instance is associated for TDE encryption.

      • DbInstancePort (integer) --

        Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

      • DBClusterIdentifier (string) --

        If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.

      • StorageEncrypted (boolean) --

        Not supported: The encryption for DB instances is managed by the DB cluster.

      • KmsKeyId (string) --

        Not supported: The encryption for DB instances is managed by the DB cluster.

      • DbiResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB instance. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB instance is accessed.

      • CACertificateIdentifier (string) --

        The identifier of the CA certificate for this DB instance.

      • DomainMemberships (list) --

        Not supported

        • (dict) --

          An Active Directory Domain membership record associated with a DB instance.

          • Domain (string) --

            The identifier of the Active Directory Domain.

          • Status (string) --

            The status of the DB instance's Active Directory Domain membership, such as joined, pending-join, failed etc).

          • FQDN (string) --

            The fully qualified domain name of the Active Directory Domain.

          • IAMRoleName (string) --

            The name of the IAM role to be used when making API calls to the Directory Service.

      • CopyTagsToSnapshot (boolean) --

        Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

      • MonitoringInterval (integer) --

        The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

      • EnhancedMonitoringResourceArn (string) --

        The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.

      • MonitoringRoleArn (string) --

        The ARN for the IAM role that permits Neptune to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.

      • PromotionTier (integer) --

        A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • DBInstanceArn (string) --

        The Amazon Resource Name (ARN) for the DB instance.

      • Timezone (string) --

        Not supported.

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if Amazon Identity and Access Management (IAM) authentication is enabled, and otherwise false.

      • PerformanceInsightsEnabled (boolean) --

        (Not supported by Neptune)

      • PerformanceInsightsKMSKeyId (string) --

        (Not supported by Neptune)

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB instance is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB instance has deletion protection enabled. The instance can't be deleted when deletion protection is enabled. See Deleting a DB Instance .

Exceptions

  • Neptune.Client.exceptions.DBInstanceAlreadyExistsFault
  • Neptune.Client.exceptions.InsufficientDBInstanceCapacityFault
  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
  • Neptune.Client.exceptions.DBSecurityGroupNotFoundFault
  • Neptune.Client.exceptions.InstanceQuotaExceededFault
  • Neptune.Client.exceptions.StorageQuotaExceededFault
  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
  • Neptune.Client.exceptions.DBSubnetGroupDoesNotCoverEnoughAZs
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.InvalidSubnet
  • Neptune.Client.exceptions.InvalidVPCNetworkStateFault
  • Neptune.Client.exceptions.ProvisionedIopsNotAvailableInAZFault
  • Neptune.Client.exceptions.OptionGroupNotFoundFault
  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.StorageTypeNotSupportedFault
  • Neptune.Client.exceptions.AuthorizationNotFoundFault
  • Neptune.Client.exceptions.KMSKeyNotAccessibleFault
  • Neptune.Client.exceptions.DomainNotFoundFault
create_db_parameter_group(**kwargs)

Creates a new DB parameter group.

A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup . Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance . When you associate a new DB parameter group with a running DB instance, you need to reboot the DB instance without failover for the new DB parameter group and associated settings to take effect.

Warning

After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon Neptune to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon Neptune console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

See also: AWS API Documentation

Request Syntax

response = client.create_db_parameter_group(
    DBParameterGroupName='string',
    DBParameterGroupFamily='string',
    Description='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • DBParameterGroupName (string) --

    [REQUIRED]

    The name of the DB parameter group.

    Constraints:

    • Must be 1 to 255 letters, numbers, or hyphens.
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Note

    This value is stored as a lowercase string.

  • DBParameterGroupFamily (string) --

    [REQUIRED]

    The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.

  • Description (string) --

    [REQUIRED]

    The description for the DB parameter group.

  • Tags (list) --

    The tags to be assigned to the new DB parameter group.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Return type

dict

Returns

Response Syntax

{
    'DBParameterGroup': {
        'DBParameterGroupName': 'string',
        'DBParameterGroupFamily': 'string',
        'Description': 'string',
        'DBParameterGroupArn': 'string'
    }
}

Response Structure

  • (dict) --

    • DBParameterGroup (dict) --

      Contains the details of an Amazon Neptune DB parameter group.

      This data type is used as a response element in the DescribeDBParameterGroups action.

      • DBParameterGroupName (string) --

        Provides the name of the DB parameter group.

      • DBParameterGroupFamily (string) --

        Provides the name of the DB parameter group family that this DB parameter group is compatible with.

      • Description (string) --

        Provides the customer-specified description for this DB parameter group.

      • DBParameterGroupArn (string) --

        The Amazon Resource Name (ARN) for the DB parameter group.

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupQuotaExceededFault
  • Neptune.Client.exceptions.DBParameterGroupAlreadyExistsFault
create_db_subnet_group(**kwargs)

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Region.

See also: AWS API Documentation

Request Syntax

response = client.create_db_subnet_group(
    DBSubnetGroupName='string',
    DBSubnetGroupDescription='string',
    SubnetIds=[
        'string',
    ],
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • DBSubnetGroupName (string) --

    [REQUIRED]

    The name for the DB subnet group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

  • DBSubnetGroupDescription (string) --

    [REQUIRED]

    The description for the DB subnet group.

  • SubnetIds (list) --

    [REQUIRED]

    The EC2 Subnet IDs for the DB subnet group.

    • (string) --
  • Tags (list) --

    The tags to be assigned to the new DB subnet group.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Return type

dict

Returns

Response Syntax

{
    'DBSubnetGroup': {
        'DBSubnetGroupName': 'string',
        'DBSubnetGroupDescription': 'string',
        'VpcId': 'string',
        'SubnetGroupStatus': 'string',
        'Subnets': [
            {
                'SubnetIdentifier': 'string',
                'SubnetAvailabilityZone': {
                    'Name': 'string'
                },
                'SubnetStatus': 'string'
            },
        ],
        'DBSubnetGroupArn': 'string'
    }
}

Response Structure

  • (dict) --

    • DBSubnetGroup (dict) --

      Contains the details of an Amazon Neptune DB subnet group.

      This data type is used as a response element in the DescribeDBSubnetGroups action.

      • DBSubnetGroupName (string) --

        The name of the DB subnet group.

      • DBSubnetGroupDescription (string) --

        Provides the description of the DB subnet group.

      • VpcId (string) --

        Provides the VpcId of the DB subnet group.

      • SubnetGroupStatus (string) --

        Provides the status of the DB subnet group.

      • Subnets (list) --

        Contains a list of Subnet elements.

        • (dict) --

          Specifies a subnet.

          This data type is used as a response element in the DescribeDBSubnetGroups action.

          • SubnetIdentifier (string) --

            Specifies the identifier of the subnet.

          • SubnetAvailabilityZone (dict) --

            Specifies the EC2 Availability Zone that the subnet is in.

            • Name (string) --

              The name of the availability zone.

          • SubnetStatus (string) --

            Specifies the status of the subnet.

      • DBSubnetGroupArn (string) --

        The Amazon Resource Name (ARN) for the DB subnet group.

Exceptions

  • Neptune.Client.exceptions.DBSubnetGroupAlreadyExistsFault
  • Neptune.Client.exceptions.DBSubnetGroupQuotaExceededFault
  • Neptune.Client.exceptions.DBSubnetQuotaExceededFault
  • Neptune.Client.exceptions.DBSubnetGroupDoesNotCoverEnoughAZs
  • Neptune.Client.exceptions.InvalidSubnet
create_event_subscription(**kwargs)

Creates an event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the Neptune console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the type of source (SourceType) you want to be notified of, provide a list of Neptune sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you are notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you receive notice of the events for that source type for all your Neptune sources. If you do not specify either the SourceType nor the SourceIdentifier, you are notified of events generated from all Neptune sources belonging to your customer account.

See also: AWS API Documentation

Request Syntax

response = client.create_event_subscription(
    SubscriptionName='string',
    SnsTopicArn='string',
    SourceType='string',
    EventCategories=[
        'string',
    ],
    SourceIds=[
        'string',
    ],
    Enabled=True|False,
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • SubscriptionName (string) --

    [REQUIRED]

    The name of the subscription.

    Constraints: The name must be less than 255 characters.

  • SnsTopicArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

  • SourceType (string) --

    The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot

  • EventCategories (list) --

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType by using the DescribeEventCategories action.

    • (string) --
  • SourceIds (list) --

    The list of identifiers of the event sources for which events are returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If SourceIds are supplied, SourceType must also be provided.
    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
    • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
    • (string) --
  • Enabled (boolean) -- A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
  • Tags (list) --

    The tags to be applied to the new event subscription.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Return type

dict

Returns

Response Syntax

{
    'EventSubscription': {
        'CustomerAwsId': 'string',
        'CustSubscriptionId': 'string',
        'SnsTopicArn': 'string',
        'Status': 'string',
        'SubscriptionCreationTime': 'string',
        'SourceType': 'string',
        'SourceIdsList': [
            'string',
        ],
        'EventCategoriesList': [
            'string',
        ],
        'Enabled': True|False,
        'EventSubscriptionArn': 'string'
    }
}

Response Structure

  • (dict) --

    • EventSubscription (dict) --

      Contains the results of a successful invocation of the DescribeEventSubscriptions action.

      • CustomerAwsId (string) --

        The Amazon customer account associated with the event notification subscription.

      • CustSubscriptionId (string) --

        The event notification subscription Id.

      • SnsTopicArn (string) --

        The topic ARN of the event notification subscription.

      • Status (string) --

        The status of the event notification subscription.

        Constraints:

        Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

        The status "no-permission" indicates that Neptune no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.

      • SubscriptionCreationTime (string) --

        The time the event notification subscription was created.

      • SourceType (string) --

        The source type for the event notification subscription.

      • SourceIdsList (list) --

        A list of source IDs for the event notification subscription.

        • (string) --
      • EventCategoriesList (list) --

        A list of event categories for the event notification subscription.

        • (string) --
      • Enabled (boolean) --

        A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

      • EventSubscriptionArn (string) --

        The Amazon Resource Name (ARN) for the event subscription.

Exceptions

  • Neptune.Client.exceptions.EventSubscriptionQuotaExceededFault
  • Neptune.Client.exceptions.SubscriptionAlreadyExistFault
  • Neptune.Client.exceptions.SNSInvalidTopicFault
  • Neptune.Client.exceptions.SNSNoAuthorizationFault
  • Neptune.Client.exceptions.SNSTopicArnNotFoundFault
  • Neptune.Client.exceptions.SubscriptionCategoryNotFoundFault
  • Neptune.Client.exceptions.SourceNotFoundFault
delete_db_cluster(**kwargs)

The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified DB cluster are not deleted.

Note that the DB Cluster cannot be deleted if deletion protection is enabled. To delete it, you must first set its DeletionProtection field to False .

See also: AWS API Documentation

Request Syntax

response = client.delete_db_cluster(
    DBClusterIdentifier='string',
    SkipFinalSnapshot=True|False,
    FinalDBSnapshotIdentifier='string'
)
Parameters
  • DBClusterIdentifier (string) --

    [REQUIRED]

    The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.

    Constraints:

    • Must match an existing DBClusterIdentifier.
  • SkipFinalSnapshot (boolean) --

    Determines whether a final DB cluster snapshot is created before the DB cluster is deleted. If true is specified, no DB cluster snapshot is created. If false is specified, a DB cluster snapshot is created before the DB cluster is deleted.

    Note

    You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is false .

    Default: false

  • FinalDBSnapshotIdentifier (string) --

    The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot is set to false .

    Note

    Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

    Constraints:

    • Must be 1 to 255 letters, numbers, or hyphens.
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
Return type

dict

Returns

Response Syntax

{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --

        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --

        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.DBClusterSnapshotAlreadyExistsFault
  • Neptune.Client.exceptions.SnapshotQuotaExceededFault
  • Neptune.Client.exceptions.InvalidDBClusterSnapshotStateFault
delete_db_cluster_endpoint(**kwargs)

Deletes a custom endpoint and removes it from an Amazon Neptune DB cluster.

See also: AWS API Documentation

Request Syntax

response = client.delete_db_cluster_endpoint(
    DBClusterEndpointIdentifier='string'
)
Parameters
DBClusterEndpointIdentifier (string) --

[REQUIRED]

The identifier associated with the custom endpoint. This parameter is stored as a lowercase string.

Return type
dict
Returns
Response Syntax
{
    'DBClusterEndpointIdentifier': 'string',
    'DBClusterIdentifier': 'string',
    'DBClusterEndpointResourceIdentifier': 'string',
    'Endpoint': 'string',
    'Status': 'string',
    'EndpointType': 'string',
    'CustomEndpointType': 'string',
    'StaticMembers': [
        'string',
    ],
    'ExcludedMembers': [
        'string',
    ],
    'DBClusterEndpointArn': 'string'
}

Response Structure

  • (dict) --

    This data type represents the information you need to connect to an Amazon Neptune DB cluster. This data type is used as a response element in the following actions:

    • CreateDBClusterEndpoint
    • DescribeDBClusterEndpoints
    • ModifyDBClusterEndpoint
    • DeleteDBClusterEndpoint

    For the data structure that represents Amazon RDS DB instance endpoints, see Endpoint .

    • DBClusterEndpointIdentifier (string) --

      The identifier associated with the endpoint. This parameter is stored as a lowercase string.

    • DBClusterIdentifier (string) --

      The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

    • DBClusterEndpointResourceIdentifier (string) --

      A unique system-generated identifier for an endpoint. It remains the same for the whole life of the endpoint.

    • Endpoint (string) --

      The DNS address of the endpoint.

    • Status (string) --

      The current status of the endpoint. One of: creating , available , deleting , inactive , modifying . The inactive state applies to an endpoint that cannot be used for a certain kind of cluster, such as a writer endpoint for a read-only secondary cluster in a global database.

    • EndpointType (string) --

      The type of the endpoint. One of: READER , WRITER , CUSTOM .

    • CustomEndpointType (string) --

      The type associated with a custom endpoint. One of: READER , WRITER , ANY .

    • StaticMembers (list) --

      List of DB instance identifiers that are part of the custom endpoint group.

      • (string) --
    • ExcludedMembers (list) --

      List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

      • (string) --
    • DBClusterEndpointArn (string) --

      The Amazon Resource Name (ARN) for the endpoint.

Exceptions

  • Neptune.Client.exceptions.InvalidDBClusterEndpointStateFault
  • Neptune.Client.exceptions.DBClusterEndpointNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
delete_db_cluster_parameter_group(**kwargs)

Deletes a specified DB cluster parameter group. The DB cluster parameter group to be deleted can't be associated with any DB clusters.

See also: AWS API Documentation

Request Syntax

response = client.delete_db_cluster_parameter_group(
    DBClusterParameterGroupName='string'
)
Parameters
DBClusterParameterGroupName (string) --

[REQUIRED]

The name of the DB cluster parameter group.

Constraints:

  • Must be the name of an existing DB cluster parameter group.
  • You can't delete a default DB cluster parameter group.
  • Cannot be associated with any DB clusters.
Returns
None

Exceptions

  • Neptune.Client.exceptions.InvalidDBParameterGroupStateFault
  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
delete_db_cluster_snapshot(**kwargs)

Deletes a DB cluster snapshot. If the snapshot is being copied, the copy operation is terminated.

Note

The DB cluster snapshot must be in the available state to be deleted.

See also: AWS API Documentation

Request Syntax

response = client.delete_db_cluster_snapshot(
    DBClusterSnapshotIdentifier='string'
)
Parameters
DBClusterSnapshotIdentifier (string) --

[REQUIRED]

The identifier of the DB cluster snapshot to delete.

Constraints: Must be the name of an existing DB cluster snapshot in the available state.

Return type
dict
Returns
Response Syntax
{
    'DBClusterSnapshot': {
        'AvailabilityZones': [
            'string',
        ],
        'DBClusterSnapshotIdentifier': 'string',
        'DBClusterIdentifier': 'string',
        'SnapshotCreateTime': datetime(2015, 1, 1),
        'Engine': 'string',
        'AllocatedStorage': 123,
        'Status': 'string',
        'Port': 123,
        'VpcId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'MasterUsername': 'string',
        'EngineVersion': 'string',
        'LicenseModel': 'string',
        'SnapshotType': 'string',
        'PercentProgress': 123,
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DBClusterSnapshotArn': 'string',
        'SourceDBClusterSnapshotArn': 'string',
        'IAMDatabaseAuthenticationEnabled': True|False
    }
}

Response Structure

  • (dict) --
    • DBClusterSnapshot (dict) --

      Contains the details for an Amazon Neptune DB cluster snapshot

      This data type is used as a response element in the DescribeDBClusterSnapshots action.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

        • (string) --
      • DBClusterSnapshotIdentifier (string) --

        Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.

        After you restore a DB cluster using a DBClusterSnapshotIdentifier , you must specify the same DBClusterSnapshotIdentifier for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed.

        However, if you don't specify the DBClusterSnapshotIdentifier , an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, the DB cluster is restored from the snapshot specified by the DBClusterSnapshotIdentifier , and the original DB cluster is deleted.

      • DBClusterIdentifier (string) --

        Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from.

      • SnapshotCreateTime (datetime) --

        Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

      • Engine (string) --

        Specifies the name of the database engine.

      • AllocatedStorage (integer) --

        Specifies the allocated storage size in gibibytes (GiB).

      • Status (string) --

        Specifies the status of this DB cluster snapshot.

      • Port (integer) --

        Specifies the port that the DB cluster was listening on at the time of the snapshot.

      • VpcId (string) --

        Provides the VPC ID associated with the DB cluster snapshot.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • MasterUsername (string) --

        Not supported by Neptune.

      • EngineVersion (string) --

        Provides the version of the database engine for this DB cluster snapshot.

      • LicenseModel (string) --

        Provides the license model information for this DB cluster snapshot.

      • SnapshotType (string) --

        Provides the type of the DB cluster snapshot.

      • PercentProgress (integer) --

        Specifies the percentage of the estimated data that has been transferred.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster snapshot is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster snapshot.

      • DBClusterSnapshotArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster snapshot.

      • SourceDBClusterSnapshotArn (string) --

        If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the source DB cluster snapshot, otherwise, a null value.

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

Exceptions

  • Neptune.Client.exceptions.InvalidDBClusterSnapshotStateFault
  • Neptune.Client.exceptions.DBClusterSnapshotNotFoundFault
delete_db_instance(**kwargs)

The DeleteDBInstance action deletes a previously provisioned DB instance. When you delete a DB instance, all automated backups for that instance are deleted and can't be recovered. Manual DB snapshots of the DB instance to be deleted by DeleteDBInstance are not deleted.

If you request a final DB snapshot the status of the Amazon Neptune DB instance is deleting until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action can't be canceled or reverted once submitted.

Note that when a DB instance is in a failure state and has a status of failed , incompatible-restore , or incompatible-network , you can only delete it when the SkipFinalSnapshot parameter is set to true .

You can't delete a DB instance if it is the only instance in the DB cluster, or if it has deletion protection enabled.

See also: AWS API Documentation

Request Syntax

response = client.delete_db_instance(
    DBInstanceIdentifier='string',
    SkipFinalSnapshot=True|False,
    FinalDBSnapshotIdentifier='string'
)
Parameters
  • DBInstanceIdentifier (string) --

    [REQUIRED]

    The DB instance identifier for the DB instance to be deleted. This parameter isn't case-sensitive.

    Constraints:

    • Must match the name of an existing DB instance.
  • SkipFinalSnapshot (boolean) --

    Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted.

    Note that when a DB instance is in a failure state and has a status of 'failed', 'incompatible-restore', or 'incompatible-network', it can only be deleted when the SkipFinalSnapshot parameter is set to "true".

    Specify true when deleting a Read Replica.

    Note

    The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false .

    Default: false

  • FinalDBSnapshotIdentifier (string) --

    The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false .

    Note

    Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

    Constraints:

    • Must be 1 to 255 letters or numbers.
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    • Cannot be specified when deleting a Read Replica.
Return type

dict

Returns

Response Syntax

{
    'DBInstance': {
        'DBInstanceIdentifier': 'string',
        'DBInstanceClass': 'string',
        'Engine': 'string',
        'DBInstanceStatus': 'string',
        'MasterUsername': 'string',
        'DBName': 'string',
        'Endpoint': {
            'Address': 'string',
            'Port': 123,
            'HostedZoneId': 'string'
        },
        'AllocatedStorage': 123,
        'InstanceCreateTime': datetime(2015, 1, 1),
        'PreferredBackupWindow': 'string',
        'BackupRetentionPeriod': 123,
        'DBSecurityGroups': [
            {
                'DBSecurityGroupName': 'string',
                'Status': 'string'
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'DBParameterGroups': [
            {
                'DBParameterGroupName': 'string',
                'ParameterApplyStatus': 'string'
            },
        ],
        'AvailabilityZone': 'string',
        'DBSubnetGroup': {
            'DBSubnetGroupName': 'string',
            'DBSubnetGroupDescription': 'string',
            'VpcId': 'string',
            'SubnetGroupStatus': 'string',
            'Subnets': [
                {
                    'SubnetIdentifier': 'string',
                    'SubnetAvailabilityZone': {
                        'Name': 'string'
                    },
                    'SubnetStatus': 'string'
                },
            ],
            'DBSubnetGroupArn': 'string'
        },
        'PreferredMaintenanceWindow': 'string',
        'PendingModifiedValues': {
            'DBInstanceClass': 'string',
            'AllocatedStorage': 123,
            'MasterUserPassword': 'string',
            'Port': 123,
            'BackupRetentionPeriod': 123,
            'MultiAZ': True|False,
            'EngineVersion': 'string',
            'LicenseModel': 'string',
            'Iops': 123,
            'DBInstanceIdentifier': 'string',
            'StorageType': 'string',
            'CACertificateIdentifier': 'string',
            'DBSubnetGroupName': 'string',
            'PendingCloudwatchLogsExports': {
                'LogTypesToEnable': [
                    'string',
                ],
                'LogTypesToDisable': [
                    'string',
                ]
            }
        },
        'LatestRestorableTime': datetime(2015, 1, 1),
        'MultiAZ': True|False,
        'EngineVersion': 'string',
        'AutoMinorVersionUpgrade': True|False,
        'ReadReplicaSourceDBInstanceIdentifier': 'string',
        'ReadReplicaDBInstanceIdentifiers': [
            'string',
        ],
        'ReadReplicaDBClusterIdentifiers': [
            'string',
        ],
        'LicenseModel': 'string',
        'Iops': 123,
        'OptionGroupMemberships': [
            {
                'OptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'CharacterSetName': 'string',
        'SecondaryAvailabilityZone': 'string',
        'PubliclyAccessible': True|False,
        'StatusInfos': [
            {
                'StatusType': 'string',
                'Normal': True|False,
                'Status': 'string',
                'Message': 'string'
            },
        ],
        'StorageType': 'string',
        'TdeCredentialArn': 'string',
        'DbInstancePort': 123,
        'DBClusterIdentifier': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbiResourceId': 'string',
        'CACertificateIdentifier': 'string',
        'DomainMemberships': [
            {
                'Domain': 'string',
                'Status': 'string',
                'FQDN': 'string',
                'IAMRoleName': 'string'
            },
        ],
        'CopyTagsToSnapshot': True|False,
        'MonitoringInterval': 123,
        'EnhancedMonitoringResourceArn': 'string',
        'MonitoringRoleArn': 'string',
        'PromotionTier': 123,
        'DBInstanceArn': 'string',
        'Timezone': 'string',
        'IAMDatabaseAuthenticationEnabled': True|False,
        'PerformanceInsightsEnabled': True|False,
        'PerformanceInsightsKMSKeyId': 'string',
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False
    }
}

Response Structure

  • (dict) --

    • DBInstance (dict) --

      Contains the details of an Amazon Neptune DB instance.

      This data type is used as a response element in the DescribeDBInstances action.

      • DBInstanceIdentifier (string) --

        Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

      • DBInstanceClass (string) --

        Contains the name of the compute and memory capacity class of the DB instance.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB instance.

      • DBInstanceStatus (string) --

        Specifies the current state of this database.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBName (string) --

        The database name.

      • Endpoint (dict) --

        Specifies the connection endpoint.

        • Address (string) --

          Specifies the DNS address of the DB instance.

        • Port (integer) --

          Specifies the port that the database engine is listening on.

        • HostedZoneId (string) --

          Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • AllocatedStorage (integer) --

        Not supported by Neptune.

      • InstanceCreateTime (datetime) --

        Provides the date and time the DB instance was created.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • DBSecurityGroups (list) --

        Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

        • (dict) --

          Specifies membership in a designated DB security group.

          • DBSecurityGroupName (string) --

            The name of the DB security group.

          • Status (string) --

            The status of the DB security group.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security group elements that the DB instance belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • DBParameterGroups (list) --

        Provides the list of DB parameter groups applied to this DB instance.

        • (dict) --

          The status of the DB parameter group.

          This data type is used as a response element in the following actions:

          • CreateDBInstance
          • DeleteDBInstance
          • ModifyDBInstance
          • RebootDBInstance
          • DBParameterGroupName (string) --

            The name of the DP parameter group.

          • ParameterApplyStatus (string) --

            The status of parameter updates.

      • AvailabilityZone (string) --

        Specifies the name of the Availability Zone the DB instance is located in.

      • DBSubnetGroup (dict) --

        Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

        • DBSubnetGroupName (string) --

          The name of the DB subnet group.

        • DBSubnetGroupDescription (string) --

          Provides the description of the DB subnet group.

        • VpcId (string) --

          Provides the VpcId of the DB subnet group.

        • SubnetGroupStatus (string) --

          Provides the status of the DB subnet group.

        • Subnets (list) --

          Contains a list of Subnet elements.

          • (dict) --

            Specifies a subnet.

            This data type is used as a response element in the DescribeDBSubnetGroups action.

            • SubnetIdentifier (string) --

              Specifies the identifier of the subnet.

            • SubnetAvailabilityZone (dict) --

              Specifies the EC2 Availability Zone that the subnet is in.

              • Name (string) --

                The name of the availability zone.

            • SubnetStatus (string) --

              Specifies the status of the subnet.

        • DBSubnetGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB subnet group.

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • PendingModifiedValues (dict) --

        Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

        • DBInstanceClass (string) --

          Contains the new DBInstanceClass for the DB instance that will be applied or is currently being applied.

        • AllocatedStorage (integer) --

          Contains the new AllocatedStorage size for the DB instance that will be applied or is currently being applied.

        • MasterUserPassword (string) --

          Not supported by Neptune.

        • Port (integer) --

          Specifies the pending port for the DB instance.

        • BackupRetentionPeriod (integer) --

          Specifies the pending number of days for which automated backups are retained.

        • MultiAZ (boolean) --

          Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

        • EngineVersion (string) --

          Indicates the database engine version.

        • LicenseModel (string) --

          Not supported by Neptune.

        • Iops (integer) --

          Specifies the new Provisioned IOPS value for the DB instance that will be applied or is currently being applied.

        • DBInstanceIdentifier (string) --

          Contains the new DBInstanceIdentifier for the DB instance that will be applied or is currently being applied.

        • StorageType (string) --

          Specifies the storage type to be associated with the DB instance.

        • CACertificateIdentifier (string) --

          Specifies the identifier of the CA certificate for the DB instance.

        • DBSubnetGroupName (string) --

          The new DB subnet group for the DB instance.

        • PendingCloudwatchLogsExports (dict) --

          This PendingCloudwatchLogsExports structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.

          • LogTypesToEnable (list) --

            Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.

            • (string) --
          • LogTypesToDisable (list) --

            Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.

            • (string) --
      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • MultiAZ (boolean) --

        Specifies if the DB instance is a Multi-AZ deployment.

      • EngineVersion (string) --

        Indicates the database engine version.

      • AutoMinorVersionUpgrade (boolean) --

        Indicates that minor version patches are applied automatically.

      • ReadReplicaSourceDBInstanceIdentifier (string) --

        Contains the identifier of the source DB instance if this DB instance is a Read Replica.

      • ReadReplicaDBInstanceIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB instance.

        • (string) --
      • ReadReplicaDBClusterIdentifiers (list) --

        Contains one or more identifiers of DB clusters that are Read Replicas of this DB instance.

        • (string) --
      • LicenseModel (string) --

        License model information for this DB instance.

      • Iops (integer) --

        Specifies the Provisioned IOPS (I/O operations per second) value.

      • OptionGroupMemberships (list) --

        (Not supported by Neptune)

        • (dict) --

          Not supported by Neptune.

          • OptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • CharacterSetName (string) --

        (Not supported by Neptune)

      • SecondaryAvailabilityZone (string) --

        If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

      • PubliclyAccessible (boolean) --

        This flag should no longer be used.

      • StatusInfos (list) --

        The status of a Read Replica. If the instance is not a Read Replica, this is blank.

        • (dict) --

          Provides a list of status information for a DB instance.

          • StatusType (string) --

            This value is currently "read replication."

          • Normal (boolean) --

            Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

          • Status (string) --

            Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

          • Message (string) --

            Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

      • StorageType (string) --

        Specifies the storage type associated with DB instance.

      • TdeCredentialArn (string) --

        The ARN from the key store with which the instance is associated for TDE encryption.

      • DbInstancePort (integer) --

        Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

      • DBClusterIdentifier (string) --

        If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.

      • StorageEncrypted (boolean) --

        Not supported: The encryption for DB instances is managed by the DB cluster.

      • KmsKeyId (string) --

        Not supported: The encryption for DB instances is managed by the DB cluster.

      • DbiResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB instance. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB instance is accessed.

      • CACertificateIdentifier (string) --

        The identifier of the CA certificate for this DB instance.

      • DomainMemberships (list) --

        Not supported

        • (dict) --

          An Active Directory Domain membership record associated with a DB instance.

          • Domain (string) --

            The identifier of the Active Directory Domain.

          • Status (string) --

            The status of the DB instance's Active Directory Domain membership, such as joined, pending-join, failed etc).

          • FQDN (string) --

            The fully qualified domain name of the Active Directory Domain.

          • IAMRoleName (string) --

            The name of the IAM role to be used when making API calls to the Directory Service.

      • CopyTagsToSnapshot (boolean) --

        Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

      • MonitoringInterval (integer) --

        The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

      • EnhancedMonitoringResourceArn (string) --

        The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.

      • MonitoringRoleArn (string) --

        The ARN for the IAM role that permits Neptune to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.

      • PromotionTier (integer) --

        A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • DBInstanceArn (string) --

        The Amazon Resource Name (ARN) for the DB instance.

      • Timezone (string) --

        Not supported.

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if Amazon Identity and Access Management (IAM) authentication is enabled, and otherwise false.

      • PerformanceInsightsEnabled (boolean) --

        (Not supported by Neptune)

      • PerformanceInsightsKMSKeyId (string) --

        (Not supported by Neptune)

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB instance is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB instance has deletion protection enabled. The instance can't be deleted when deletion protection is enabled. See Deleting a DB Instance .

Exceptions

  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
  • Neptune.Client.exceptions.DBSnapshotAlreadyExistsFault
  • Neptune.Client.exceptions.SnapshotQuotaExceededFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
delete_db_parameter_group(**kwargs)

Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted can't be associated with any DB instances.

See also: AWS API Documentation

Request Syntax

response = client.delete_db_parameter_group(
    DBParameterGroupName='string'
)
Parameters
DBParameterGroupName (string) --

[REQUIRED]

The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group
  • You can't delete a default DB parameter group
  • Cannot be associated with any DB instances
Returns
None

Exceptions

  • Neptune.Client.exceptions.InvalidDBParameterGroupStateFault
  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
delete_db_subnet_group(**kwargs)

Deletes a DB subnet group.

Note

The specified database subnet group must not be associated with any DB instances.

See also: AWS API Documentation

Request Syntax

response = client.delete_db_subnet_group(
    DBSubnetGroupName='string'
)
Parameters
DBSubnetGroupName (string) --

[REQUIRED]

The name of the database subnet group to delete.

Note

You can't delete the default subnet group.

Constraints:

Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

Example: mySubnetgroup

Returns
None

Exceptions

  • Neptune.Client.exceptions.InvalidDBSubnetGroupStateFault
  • Neptune.Client.exceptions.InvalidDBSubnetStateFault
  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
delete_event_subscription(**kwargs)

Deletes an event notification subscription.

See also: AWS API Documentation

Request Syntax

response = client.delete_event_subscription(
    SubscriptionName='string'
)
Parameters
SubscriptionName (string) --

[REQUIRED]

The name of the event notification subscription you want to delete.

Return type
dict
Returns
Response Syntax
{
    'EventSubscription': {
        'CustomerAwsId': 'string',
        'CustSubscriptionId': 'string',
        'SnsTopicArn': 'string',
        'Status': 'string',
        'SubscriptionCreationTime': 'string',
        'SourceType': 'string',
        'SourceIdsList': [
            'string',
        ],
        'EventCategoriesList': [
            'string',
        ],
        'Enabled': True|False,
        'EventSubscriptionArn': 'string'
    }
}

Response Structure

  • (dict) --
    • EventSubscription (dict) --

      Contains the results of a successful invocation of the DescribeEventSubscriptions action.

      • CustomerAwsId (string) --

        The Amazon customer account associated with the event notification subscription.

      • CustSubscriptionId (string) --

        The event notification subscription Id.

      • SnsTopicArn (string) --

        The topic ARN of the event notification subscription.

      • Status (string) --

        The status of the event notification subscription.

        Constraints:

        Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

        The status "no-permission" indicates that Neptune no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.

      • SubscriptionCreationTime (string) --

        The time the event notification subscription was created.

      • SourceType (string) --

        The source type for the event notification subscription.

      • SourceIdsList (list) --

        A list of source IDs for the event notification subscription.

        • (string) --
      • EventCategoriesList (list) --

        A list of event categories for the event notification subscription.

        • (string) --
      • Enabled (boolean) --

        A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

      • EventSubscriptionArn (string) --

        The Amazon Resource Name (ARN) for the event subscription.

Exceptions

  • Neptune.Client.exceptions.SubscriptionNotFoundFault
  • Neptune.Client.exceptions.InvalidEventSubscriptionStateFault
describe_db_cluster_endpoints(**kwargs)

Returns information about endpoints for an Amazon Neptune DB cluster.

Note

This operation can also return information for Amazon RDS clusters and Amazon DocDB clusters.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_cluster_endpoints(
    DBClusterIdentifier='string',
    DBClusterEndpointIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBClusterIdentifier (string) -- The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.
  • DBClusterEndpointIdentifier (string) -- The identifier of the endpoint to describe. This parameter is stored as a lowercase string.
  • Filters (list) --

    A set of name-value pairs that define which endpoints to include in the output. The filters are specified as name-value pairs, in the format Name=*endpoint_type* ,Values=*endpoint_type1* ,*endpoint_type2* ,... . Name can be one of: db-cluster-endpoint-type , db-cluster-endpoint-custom-type , db-cluster-endpoint-id , db-cluster-endpoint-status . Values for the db-cluster-endpoint-type filter can be one or more of: reader , writer , custom . Values for the db-cluster-endpoint-custom-type filter can be one or more of: reader , any . Values for the db-cluster-endpoint-status filter can be one or more of: available , creating , deleting , inactive , modifying .

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBClusterEndpoints request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'DBClusterEndpoints': [
        {
            'DBClusterEndpointIdentifier': 'string',
            'DBClusterIdentifier': 'string',
            'DBClusterEndpointResourceIdentifier': 'string',
            'Endpoint': 'string',
            'Status': 'string',
            'EndpointType': 'string',
            'CustomEndpointType': 'string',
            'StaticMembers': [
                'string',
            ],
            'ExcludedMembers': [
                'string',
            ],
            'DBClusterEndpointArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous DescribeDBClusterEndpoints request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • DBClusterEndpoints (list) --

      Contains the details of the endpoints associated with the cluster and matching any filter conditions.

      • (dict) --

        This data type represents the information you need to connect to an Amazon Neptune DB cluster. This data type is used as a response element in the following actions:

        • CreateDBClusterEndpoint
        • DescribeDBClusterEndpoints
        • ModifyDBClusterEndpoint
        • DeleteDBClusterEndpoint

        For the data structure that represents Amazon Neptune DB instance endpoints, see Endpoint .

        • DBClusterEndpointIdentifier (string) --

          The identifier associated with the endpoint. This parameter is stored as a lowercase string.

        • DBClusterIdentifier (string) --

          The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

        • DBClusterEndpointResourceIdentifier (string) --

          A unique system-generated identifier for an endpoint. It remains the same for the whole life of the endpoint.

        • Endpoint (string) --

          The DNS address of the endpoint.

        • Status (string) --

          The current status of the endpoint. One of: creating , available , deleting , inactive , modifying . The inactive state applies to an endpoint that cannot be used for a certain kind of cluster, such as a writer endpoint for a read-only secondary cluster in a global database.

        • EndpointType (string) --

          The type of the endpoint. One of: READER , WRITER , CUSTOM .

        • CustomEndpointType (string) --

          The type associated with a custom endpoint. One of: READER , WRITER , ANY .

        • StaticMembers (list) --

          List of DB instance identifiers that are part of the custom endpoint group.

          • (string) --
        • ExcludedMembers (list) --

          List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

          • (string) --
        • DBClusterEndpointArn (string) --

          The Amazon Resource Name (ARN) for the endpoint.

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
describe_db_cluster_parameter_groups(**kwargs)

Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName parameter is specified, the list will contain only the description of the specified DB cluster parameter group.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_cluster_parameter_groups(
    DBClusterParameterGroupName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBClusterParameterGroupName (string) --

    The name of a specific DB cluster parameter group to return details for.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBClusterParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'DBClusterParameterGroups': [
        {
            'DBClusterParameterGroupName': 'string',
            'DBParameterGroupFamily': 'string',
            'Description': 'string',
            'DBClusterParameterGroupArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous DescribeDBClusterParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • DBClusterParameterGroups (list) --

      A list of DB cluster parameter groups.

      • (dict) --

        Contains the details of an Amazon Neptune DB cluster parameter group.

        This data type is used as a response element in the DescribeDBClusterParameterGroups action.

        • DBClusterParameterGroupName (string) --

          Provides the name of the DB cluster parameter group.

        • DBParameterGroupFamily (string) --

          Provides the name of the DB parameter group family that this DB cluster parameter group is compatible with.

        • Description (string) --

          Provides the customer-specified description for this DB cluster parameter group.

        • DBClusterParameterGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB cluster parameter group.

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
describe_db_cluster_parameters(**kwargs)

Returns the detailed parameter list for a particular DB cluster parameter group.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_cluster_parameters(
    DBClusterParameterGroupName='string',
    Source='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBClusterParameterGroupName (string) --

    [REQUIRED]

    The name of a specific DB cluster parameter group to return parameter details for.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • Source (string) -- A value that indicates to return only parameters for a specific source. Parameter sources can be engine , service , or customer .
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Parameters': [
        {
            'ParameterName': 'string',
            'ParameterValue': 'string',
            'Description': 'string',
            'Source': 'string',
            'ApplyType': 'string',
            'DataType': 'string',
            'AllowedValues': 'string',
            'IsModifiable': True|False,
            'MinimumEngineVersion': 'string',
            'ApplyMethod': 'immediate'|'pending-reboot'
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • Parameters (list) --

      Provides a list of parameters for the DB cluster parameter group.

      • (dict) --

        Specifies a parameter.

        • ParameterName (string) --

          Specifies the name of the parameter.

        • ParameterValue (string) --

          Specifies the value of the parameter.

        • Description (string) --

          Provides a description of the parameter.

        • Source (string) --

          Indicates the source of the parameter value.

        • ApplyType (string) --

          Specifies the engine specific parameters type.

        • DataType (string) --

          Specifies the valid data type for the parameter.

        • AllowedValues (string) --

          Specifies the valid range of values for the parameter.

        • IsModifiable (boolean) --

          Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

        • MinimumEngineVersion (string) --

          The earliest engine version to which the parameter can apply.

        • ApplyMethod (string) --

          Indicates when to apply parameter updates.

    • Marker (string) --

      An optional pagination token provided by a previous DescribeDBClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
describe_db_cluster_snapshot_attributes(**kwargs)

Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot.

When sharing snapshots with other Amazon accounts, DescribeDBClusterSnapshotAttributes returns the restore attribute and a list of IDs for the Amazon accounts that are authorized to copy or restore the manual DB cluster snapshot. If all is included in the list of values for the restore attribute, then the manual DB cluster snapshot is public and can be copied or restored by all Amazon accounts.

To add or remove access for an Amazon account to copy or restore a manual DB cluster snapshot, or to make the manual DB cluster snapshot public or private, use the ModifyDBClusterSnapshotAttribute API action.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_cluster_snapshot_attributes(
    DBClusterSnapshotIdentifier='string'
)
Parameters
DBClusterSnapshotIdentifier (string) --

[REQUIRED]

The identifier for the DB cluster snapshot to describe the attributes for.

Return type
dict
Returns
Response Syntax
{
    'DBClusterSnapshotAttributesResult': {
        'DBClusterSnapshotIdentifier': 'string',
        'DBClusterSnapshotAttributes': [
            {
                'AttributeName': 'string',
                'AttributeValues': [
                    'string',
                ]
            },
        ]
    }
}

Response Structure

  • (dict) --
    • DBClusterSnapshotAttributesResult (dict) --

      Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes API action.

      Manual DB cluster snapshot attributes are used to authorize other Amazon accounts to copy or restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

      • DBClusterSnapshotIdentifier (string) --

        The identifier of the manual DB cluster snapshot that the attributes apply to.

      • DBClusterSnapshotAttributes (list) --

        The list of attributes and values for the manual DB cluster snapshot.

        • (dict) --

          Contains the name and values of a manual DB cluster snapshot attribute.

          Manual DB cluster snapshot attributes are used to authorize other Amazon accounts to restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

          • AttributeName (string) --

            The name of the manual DB cluster snapshot attribute.

            The attribute named restore refers to the list of Amazon accounts that have permission to copy or restore the manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

          • AttributeValues (list) --

            The value(s) for the manual DB cluster snapshot attribute.

            If the AttributeName field is set to restore , then this element returns a list of IDs of the Amazon accounts that are authorized to copy or restore the manual DB cluster snapshot. If a value of all is in the list, then the manual DB cluster snapshot is public and available for any Amazon account to copy or restore.

            • (string) --

Exceptions

  • Neptune.Client.exceptions.DBClusterSnapshotNotFoundFault
describe_db_cluster_snapshots(**kwargs)

Returns information about DB cluster snapshots. This API action supports pagination.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_cluster_snapshots(
    DBClusterIdentifier='string',
    DBClusterSnapshotIdentifier='string',
    SnapshotType='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string',
    IncludeShared=True|False,
    IncludePublic=True|False
)
Parameters
  • DBClusterIdentifier (string) --

    The ID of the DB cluster to retrieve the list of DB cluster snapshots for. This parameter can't be used in conjunction with the DBClusterSnapshotIdentifier parameter. This parameter is not case-sensitive.

    Constraints:

    • If supplied, must match the identifier of an existing DBCluster.
  • DBClusterSnapshotIdentifier (string) --

    A specific DB cluster snapshot identifier to describe. This parameter can't be used in conjunction with the DBClusterIdentifier parameter. This value is stored as a lowercase string.

    Constraints:

    • If supplied, must match the identifier of an existing DBClusterSnapshot.
    • If this identifier is for an automated snapshot, the SnapshotType parameter must also be specified.
  • SnapshotType (string) --

    The type of DB cluster snapshots to be returned. You can specify one of the following values:

    • automated - Return all DB cluster snapshots that have been automatically taken by Amazon Neptune for my Amazon account.
    • manual - Return all DB cluster snapshots that have been taken by my AWS account.
    • shared - Return all manual DB cluster snapshots that have been shared to my Amazon account.
    • public - Return all DB cluster snapshots that have been marked as public.

    If you don't specify a SnapshotType value, then both automated and manual DB cluster snapshots are returned. You can include shared DB cluster snapshots with these results by setting the IncludeShared parameter to true . You can include public DB cluster snapshots with these results by setting the IncludePublic parameter to true .

    The IncludeShared and IncludePublic parameters don't apply for SnapshotType values of manual or automated . The IncludePublic parameter doesn't apply when SnapshotType is set to shared . The IncludeShared parameter doesn't apply when SnapshotType is set to public .

  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBClusterSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
  • IncludeShared (boolean) --

    True to include shared manual DB cluster snapshots from other Amazon accounts that this AWS account has been given permission to copy or restore, and otherwise false. The default is false .

    You can give an Amazon account permission to restore a manual DB cluster snapshot from another Amazon account by the ModifyDBClusterSnapshotAttribute API action.

  • IncludePublic (boolean) --

    True to include manual DB cluster snapshots that are public and can be copied or restored by any Amazon account, and otherwise false. The default is false . The default is false.

    You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute API action.

Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'DBClusterSnapshots': [
        {
            'AvailabilityZones': [
                'string',
            ],
            'DBClusterSnapshotIdentifier': 'string',
            'DBClusterIdentifier': 'string',
            'SnapshotCreateTime': datetime(2015, 1, 1),
            'Engine': 'string',
            'AllocatedStorage': 123,
            'Status': 'string',
            'Port': 123,
            'VpcId': 'string',
            'ClusterCreateTime': datetime(2015, 1, 1),
            'MasterUsername': 'string',
            'EngineVersion': 'string',
            'LicenseModel': 'string',
            'SnapshotType': 'string',
            'PercentProgress': 123,
            'StorageEncrypted': True|False,
            'KmsKeyId': 'string',
            'DBClusterSnapshotArn': 'string',
            'SourceDBClusterSnapshotArn': 'string',
            'IAMDatabaseAuthenticationEnabled': True|False
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous DescribeDBClusterSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • DBClusterSnapshots (list) --

      Provides a list of DB cluster snapshots for the user.

      • (dict) --

        Contains the details for an Amazon Neptune DB cluster snapshot

        This data type is used as a response element in the DescribeDBClusterSnapshots action.

        • AvailabilityZones (list) --

          Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

          • (string) --
        • DBClusterSnapshotIdentifier (string) --

          Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.

          After you restore a DB cluster using a DBClusterSnapshotIdentifier , you must specify the same DBClusterSnapshotIdentifier for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed.

          However, if you don't specify the DBClusterSnapshotIdentifier , an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, the DB cluster is restored from the snapshot specified by the DBClusterSnapshotIdentifier , and the original DB cluster is deleted.

        • DBClusterIdentifier (string) --

          Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from.

        • SnapshotCreateTime (datetime) --

          Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

        • Engine (string) --

          Specifies the name of the database engine.

        • AllocatedStorage (integer) --

          Specifies the allocated storage size in gibibytes (GiB).

        • Status (string) --

          Specifies the status of this DB cluster snapshot.

        • Port (integer) --

          Specifies the port that the DB cluster was listening on at the time of the snapshot.

        • VpcId (string) --

          Provides the VPC ID associated with the DB cluster snapshot.

        • ClusterCreateTime (datetime) --

          Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

        • MasterUsername (string) --

          Not supported by Neptune.

        • EngineVersion (string) --

          Provides the version of the database engine for this DB cluster snapshot.

        • LicenseModel (string) --

          Provides the license model information for this DB cluster snapshot.

        • SnapshotType (string) --

          Provides the type of the DB cluster snapshot.

        • PercentProgress (integer) --

          Specifies the percentage of the estimated data that has been transferred.

        • StorageEncrypted (boolean) --

          Specifies whether the DB cluster snapshot is encrypted.

        • KmsKeyId (string) --

          If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster snapshot.

        • DBClusterSnapshotArn (string) --

          The Amazon Resource Name (ARN) for the DB cluster snapshot.

        • SourceDBClusterSnapshotArn (string) --

          If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the source DB cluster snapshot, otherwise, a null value.

        • IAMDatabaseAuthenticationEnabled (boolean) --

          True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

Exceptions

  • Neptune.Client.exceptions.DBClusterSnapshotNotFoundFault
describe_db_clusters(**kwargs)

Returns information about provisioned DB clusters, and supports pagination.

Note

This operation can also return information for Amazon RDS clusters and Amazon DocDB clusters.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_clusters(
    DBClusterIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBClusterIdentifier (string) --

    The user-supplied DB cluster identifier. If this parameter is specified, information from only the specific DB cluster is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match an existing DBClusterIdentifier.
  • Filters (list) --

    A filter that specifies one or more DB clusters to describe.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB clusters identified by these ARNs.
    • engine - Accepts an engine name (such as neptune ), and restricts the results list to DB clusters created by that engine.

    For example, to invoke this API from the Amazon CLI and filter so that only Neptune DB clusters are returned, you could use the following command:

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBClusters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'DBClusters': [
        {
            'AllocatedStorage': 123,
            'AvailabilityZones': [
                'string',
            ],
            'BackupRetentionPeriod': 123,
            'CharacterSetName': 'string',
            'DatabaseName': 'string',
            'DBClusterIdentifier': 'string',
            'DBClusterParameterGroup': 'string',
            'DBSubnetGroup': 'string',
            'Status': 'string',
            'PercentProgress': 'string',
            'EarliestRestorableTime': datetime(2015, 1, 1),
            'Endpoint': 'string',
            'ReaderEndpoint': 'string',
            'MultiAZ': True|False,
            'Engine': 'string',
            'EngineVersion': 'string',
            'LatestRestorableTime': datetime(2015, 1, 1),
            'Port': 123,
            'MasterUsername': 'string',
            'DBClusterOptionGroupMemberships': [
                {
                    'DBClusterOptionGroupName': 'string',
                    'Status': 'string'
                },
            ],
            'PreferredBackupWindow': 'string',
            'PreferredMaintenanceWindow': 'string',
            'ReplicationSourceIdentifier': 'string',
            'ReadReplicaIdentifiers': [
                'string',
            ],
            'DBClusterMembers': [
                {
                    'DBInstanceIdentifier': 'string',
                    'IsClusterWriter': True|False,
                    'DBClusterParameterGroupStatus': 'string',
                    'PromotionTier': 123
                },
            ],
            'VpcSecurityGroups': [
                {
                    'VpcSecurityGroupId': 'string',
                    'Status': 'string'
                },
            ],
            'HostedZoneId': 'string',
            'StorageEncrypted': True|False,
            'KmsKeyId': 'string',
            'DbClusterResourceId': 'string',
            'DBClusterArn': 'string',
            'AssociatedRoles': [
                {
                    'RoleArn': 'string',
                    'Status': 'string',
                    'FeatureName': 'string'
                },
            ],
            'IAMDatabaseAuthenticationEnabled': True|False,
            'CloneGroupId': 'string',
            'ClusterCreateTime': datetime(2015, 1, 1),
            'CopyTagsToSnapshot': True|False,
            'EnabledCloudwatchLogsExports': [
                'string',
            ],
            'DeletionProtection': True|False,
            'CrossAccountClone': True|False,
            'AutomaticRestartTime': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      A pagination token that can be used in a subsequent DescribeDBClusters request.

    • DBClusters (list) --

      Contains a list of DB clusters for the user.

      • (dict) --

        Contains the details of an Amazon Neptune DB cluster.

        This data type is used as a response element in the DescribeDBClusters action.

        • AllocatedStorage (integer) --

          AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.

        • AvailabilityZones (list) --

          Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

          • (string) --
        • BackupRetentionPeriod (integer) --

          Specifies the number of days for which automatic DB snapshots are retained.

        • CharacterSetName (string) --

          Not supported by Neptune.

        • DatabaseName (string) --

          Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

        • DBClusterIdentifier (string) --

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

        • DBClusterParameterGroup (string) --

          Specifies the name of the DB cluster parameter group for the DB cluster.

        • DBSubnetGroup (string) --

          Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

        • Status (string) --

          Specifies the current state of this DB cluster.

        • PercentProgress (string) --

          Specifies the progress of the operation as a percentage.

        • EarliestRestorableTime (datetime) --

          Specifies the earliest time to which a database can be restored with point-in-time restore.

        • Endpoint (string) --

          Specifies the connection endpoint for the primary instance of the DB cluster.

        • ReaderEndpoint (string) --

          The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

          If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

        • MultiAZ (boolean) --

          Specifies whether the DB cluster has instances in multiple Availability Zones.

        • Engine (string) --

          Provides the name of the database engine to be used for this DB cluster.

        • EngineVersion (string) --

          Indicates the database engine version.

        • LatestRestorableTime (datetime) --

          Specifies the latest time to which a database can be restored with point-in-time restore.

        • Port (integer) --

          Specifies the port that the database engine is listening on.

        • MasterUsername (string) --

          Not supported by Neptune.

        • DBClusterOptionGroupMemberships (list) --

          Not supported by Neptune.

          • (dict) --

            Not supported by Neptune.

            • DBClusterOptionGroupName (string) --

              Not supported by Neptune.

            • Status (string) --

              Not supported by Neptune.

        • PreferredBackupWindow (string) --

          Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

        • PreferredMaintenanceWindow (string) --

          Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        • ReplicationSourceIdentifier (string) --

          Not supported by Neptune.

        • ReadReplicaIdentifiers (list) --

          Contains one or more identifiers of the Read Replicas associated with this DB cluster.

          • (string) --
        • DBClusterMembers (list) --

          Provides the list of instances that make up the DB cluster.

          • (dict) --

            Contains information about an instance that is part of a DB cluster.

            • DBInstanceIdentifier (string) --

              Specifies the instance identifier for this member of the DB cluster.

            • IsClusterWriter (boolean) --

              Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

            • DBClusterParameterGroupStatus (string) --

              Specifies the status of the DB cluster parameter group for this member of the DB cluster.

            • PromotionTier (integer) --

              A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

        • VpcSecurityGroups (list) --

          Provides a list of VPC security groups that the DB cluster belongs to.

          • (dict) --

            This data type is used as a response element for queries on VPC security group membership.

            • VpcSecurityGroupId (string) --

              The name of the VPC security group.

            • Status (string) --

              The status of the VPC security group.

        • HostedZoneId (string) --

          Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

        • StorageEncrypted (boolean) --

          Specifies whether the DB cluster is encrypted.

        • KmsKeyId (string) --

          If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

        • DbClusterResourceId (string) --

          The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

        • DBClusterArn (string) --

          The Amazon Resource Name (ARN) for the DB cluster.

        • AssociatedRoles (list) --

          Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

          • (dict) --

            Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

            • RoleArn (string) --

              The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

            • Status (string) --

              Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

              • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
              • PENDING - the IAM role ARN is being associated with the DB cluster.
              • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
            • FeatureName (string) --

              The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

        • IAMDatabaseAuthenticationEnabled (boolean) --

          True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

        • CloneGroupId (string) --

          Identifies the clone group to which the DB cluster is associated.

        • ClusterCreateTime (datetime) --

          Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

        • CopyTagsToSnapshot (boolean) --

          If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.

        • EnabledCloudwatchLogsExports (list) --

          A list of log types that this DB cluster is configured to export to CloudWatch Logs.

          • (string) --
        • DeletionProtection (boolean) --

          Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

        • CrossAccountClone (boolean) --

          If set to true , the DB cluster can be cloned across accounts.

        • AutomaticRestartTime (datetime) --

          Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
describe_db_engine_versions(**kwargs)

Returns a list of the available DB engines.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_engine_versions(
    Engine='string',
    EngineVersion='string',
    DBParameterGroupFamily='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string',
    DefaultOnly=True|False,
    ListSupportedCharacterSets=True|False,
    ListSupportedTimezones=True|False
)
Parameters
  • Engine (string) -- The database engine to return.
  • EngineVersion (string) --

    The database engine version to return.

    Example: 5.1.49

  • DBParameterGroupFamily (string) --

    The name of a specific DB parameter group family to return details for.

    Constraints:

    • If supplied, must match an existing DBParameterGroupFamily.
  • Filters (list) --

    Not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
  • DefaultOnly (boolean) -- Indicates that only the default version of the specified engine or engine and major version combination is returned.
  • ListSupportedCharacterSets (boolean) -- If this parameter is specified and the requested engine supports the CharacterSetName parameter for CreateDBInstance , the response includes a list of supported character sets for each engine version.
  • ListSupportedTimezones (boolean) -- If this parameter is specified and the requested engine supports the TimeZone parameter for CreateDBInstance , the response includes a list of supported time zones for each engine version.
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'DBEngineVersions': [
        {
            'Engine': 'string',
            'EngineVersion': 'string',
            'DBParameterGroupFamily': 'string',
            'DBEngineDescription': 'string',
            'DBEngineVersionDescription': 'string',
            'DefaultCharacterSet': {
                'CharacterSetName': 'string',
                'CharacterSetDescription': 'string'
            },
            'SupportedCharacterSets': [
                {
                    'CharacterSetName': 'string',
                    'CharacterSetDescription': 'string'
                },
            ],
            'ValidUpgradeTarget': [
                {
                    'Engine': 'string',
                    'EngineVersion': 'string',
                    'Description': 'string',
                    'AutoUpgrade': True|False,
                    'IsMajorVersionUpgrade': True|False
                },
            ],
            'SupportedTimezones': [
                {
                    'TimezoneName': 'string'
                },
            ],
            'ExportableLogTypes': [
                'string',
            ],
            'SupportsLogExportsToCloudwatchLogs': True|False,
            'SupportsReadReplica': True|False
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • DBEngineVersions (list) --

      A list of DBEngineVersion elements.

      • (dict) --

        This data type is used as a response element in the action DescribeDBEngineVersions .

        • Engine (string) --

          The name of the database engine.

        • EngineVersion (string) --

          The version number of the database engine.

        • DBParameterGroupFamily (string) --

          The name of the DB parameter group family for the database engine.

        • DBEngineDescription (string) --

          The description of the database engine.

        • DBEngineVersionDescription (string) --

          The description of the database engine version.

        • DefaultCharacterSet (dict) --

          (Not supported by Neptune)

          • CharacterSetName (string) --

            The name of the character set.

          • CharacterSetDescription (string) --

            The description of the character set.

        • SupportedCharacterSets (list) --

          (Not supported by Neptune)

          • (dict) --

            Specifies a character set.

            • CharacterSetName (string) --

              The name of the character set.

            • CharacterSetDescription (string) --

              The description of the character set.

        • ValidUpgradeTarget (list) --

          A list of engine versions that this database engine version can be upgraded to.

          • (dict) --

            The version of the database engine that a DB instance can be upgraded to.

            • Engine (string) --

              The name of the upgrade target database engine.

            • EngineVersion (string) --

              The version number of the upgrade target database engine.

            • Description (string) --

              The version of the database engine that a DB instance can be upgraded to.

            • AutoUpgrade (boolean) --

              A value that indicates whether the target version is applied to any source DB instances that have AutoMinorVersionUpgrade set to true.

            • IsMajorVersionUpgrade (boolean) --

              A value that indicates whether a database engine is upgraded to a major version.

        • SupportedTimezones (list) --

          A list of the time zones supported by this engine for the Timezone parameter of the CreateDBInstance action.

          • (dict) --

            A time zone associated with a DBInstance .

            • TimezoneName (string) --

              The name of the time zone.

        • ExportableLogTypes (list) --

          The types of logs that the database engine has available for export to CloudWatch Logs.

          • (string) --
        • SupportsLogExportsToCloudwatchLogs (boolean) --

          A value that indicates whether the engine version supports exporting the log types specified by ExportableLogTypes to CloudWatch Logs.

        • SupportsReadReplica (boolean) --

          Indicates whether the database engine version supports read replicas.

describe_db_instances(**kwargs)

Returns information about provisioned instances, and supports pagination.

Note

This operation can also return information for Amazon RDS instances and Amazon DocDB instances.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_instances(
    DBInstanceIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBInstanceIdentifier (string) --

    The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match the identifier of an existing DBInstance.
  • Filters (list) --

    A filter that specifies one or more DB instances to describe.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB instances associated with the DB clusters identified by these ARNs.
    • engine - Accepts an engine name (such as neptune ), and restricts the results list to DB instances created by that engine.

    For example, to invoke this API from the Amazon CLI and filter so that only Neptune DB instances are returned, you could use the following command:

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'DBInstances': [
        {
            'DBInstanceIdentifier': 'string',
            'DBInstanceClass': 'string',
            'Engine': 'string',
            'DBInstanceStatus': 'string',
            'MasterUsername': 'string',
            'DBName': 'string',
            'Endpoint': {
                'Address': 'string',
                'Port': 123,
                'HostedZoneId': 'string'
            },
            'AllocatedStorage': 123,
            'InstanceCreateTime': datetime(2015, 1, 1),
            'PreferredBackupWindow': 'string',
            'BackupRetentionPeriod': 123,
            'DBSecurityGroups': [
                {
                    'DBSecurityGroupName': 'string',
                    'Status': 'string'
                },
            ],
            'VpcSecurityGroups': [
                {
                    'VpcSecurityGroupId': 'string',
                    'Status': 'string'
                },
            ],
            'DBParameterGroups': [
                {
                    'DBParameterGroupName': 'string',
                    'ParameterApplyStatus': 'string'
                },
            ],
            'AvailabilityZone': 'string',
            'DBSubnetGroup': {
                'DBSubnetGroupName': 'string',
                'DBSubnetGroupDescription': 'string',
                'VpcId': 'string',
                'SubnetGroupStatus': 'string',
                'Subnets': [
                    {
                        'SubnetIdentifier': 'string',
                        'SubnetAvailabilityZone': {
                            'Name': 'string'
                        },
                        'SubnetStatus': 'string'
                    },
                ],
                'DBSubnetGroupArn': 'string'
            },
            'PreferredMaintenanceWindow': 'string',
            'PendingModifiedValues': {
                'DBInstanceClass': 'string',
                'AllocatedStorage': 123,
                'MasterUserPassword': 'string',
                'Port': 123,
                'BackupRetentionPeriod': 123,
                'MultiAZ': True|False,
                'EngineVersion': 'string',
                'LicenseModel': 'string',
                'Iops': 123,
                'DBInstanceIdentifier': 'string',
                'StorageType': 'string',
                'CACertificateIdentifier': 'string',
                'DBSubnetGroupName': 'string',
                'PendingCloudwatchLogsExports': {
                    'LogTypesToEnable': [
                        'string',
                    ],
                    'LogTypesToDisable': [
                        'string',
                    ]
                }
            },
            'LatestRestorableTime': datetime(2015, 1, 1),
            'MultiAZ': True|False,
            'EngineVersion': 'string',
            'AutoMinorVersionUpgrade': True|False,
            'ReadReplicaSourceDBInstanceIdentifier': 'string',
            'ReadReplicaDBInstanceIdentifiers': [
                'string',
            ],
            'ReadReplicaDBClusterIdentifiers': [
                'string',
            ],
            'LicenseModel': 'string',
            'Iops': 123,
            'OptionGroupMemberships': [
                {
                    'OptionGroupName': 'string',
                    'Status': 'string'
                },
            ],
            'CharacterSetName': 'string',
            'SecondaryAvailabilityZone': 'string',
            'PubliclyAccessible': True|False,
            'StatusInfos': [
                {
                    'StatusType': 'string',
                    'Normal': True|False,
                    'Status': 'string',
                    'Message': 'string'
                },
            ],
            'StorageType': 'string',
            'TdeCredentialArn': 'string',
            'DbInstancePort': 123,
            'DBClusterIdentifier': 'string',
            'StorageEncrypted': True|False,
            'KmsKeyId': 'string',
            'DbiResourceId': 'string',
            'CACertificateIdentifier': 'string',
            'DomainMemberships': [
                {
                    'Domain': 'string',
                    'Status': 'string',
                    'FQDN': 'string',
                    'IAMRoleName': 'string'
                },
            ],
            'CopyTagsToSnapshot': True|False,
            'MonitoringInterval': 123,
            'EnhancedMonitoringResourceArn': 'string',
            'MonitoringRoleArn': 'string',
            'PromotionTier': 123,
            'DBInstanceArn': 'string',
            'Timezone': 'string',
            'IAMDatabaseAuthenticationEnabled': True|False,
            'PerformanceInsightsEnabled': True|False,
            'PerformanceInsightsKMSKeyId': 'string',
            'EnabledCloudwatchLogsExports': [
                'string',
            ],
            'DeletionProtection': True|False
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • DBInstances (list) --

      A list of DBInstance instances.

      • (dict) --

        Contains the details of an Amazon Neptune DB instance.

        This data type is used as a response element in the DescribeDBInstances action.

        • DBInstanceIdentifier (string) --

          Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

        • DBInstanceClass (string) --

          Contains the name of the compute and memory capacity class of the DB instance.

        • Engine (string) --

          Provides the name of the database engine to be used for this DB instance.

        • DBInstanceStatus (string) --

          Specifies the current state of this database.

        • MasterUsername (string) --

          Not supported by Neptune.

        • DBName (string) --

          The database name.

        • Endpoint (dict) --

          Specifies the connection endpoint.

          • Address (string) --

            Specifies the DNS address of the DB instance.

          • Port (integer) --

            Specifies the port that the database engine is listening on.

          • HostedZoneId (string) --

            Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

        • AllocatedStorage (integer) --

          Not supported by Neptune.

        • InstanceCreateTime (datetime) --

          Provides the date and time the DB instance was created.

        • PreferredBackupWindow (string) --

          Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

        • BackupRetentionPeriod (integer) --

          Specifies the number of days for which automatic DB snapshots are retained.

        • DBSecurityGroups (list) --

          Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

          • (dict) --

            Specifies membership in a designated DB security group.

            • DBSecurityGroupName (string) --

              The name of the DB security group.

            • Status (string) --

              The status of the DB security group.

        • VpcSecurityGroups (list) --

          Provides a list of VPC security group elements that the DB instance belongs to.

          • (dict) --

            This data type is used as a response element for queries on VPC security group membership.

            • VpcSecurityGroupId (string) --

              The name of the VPC security group.

            • Status (string) --

              The status of the VPC security group.

        • DBParameterGroups (list) --

          Provides the list of DB parameter groups applied to this DB instance.

          • (dict) --

            The status of the DB parameter group.

            This data type is used as a response element in the following actions:

            • CreateDBInstance
            • DeleteDBInstance
            • ModifyDBInstance
            • RebootDBInstance
            • DBParameterGroupName (string) --

              The name of the DP parameter group.

            • ParameterApplyStatus (string) --

              The status of parameter updates.

        • AvailabilityZone (string) --

          Specifies the name of the Availability Zone the DB instance is located in.

        • DBSubnetGroup (dict) --

          Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

          • DBSubnetGroupName (string) --

            The name of the DB subnet group.

          • DBSubnetGroupDescription (string) --

            Provides the description of the DB subnet group.

          • VpcId (string) --

            Provides the VpcId of the DB subnet group.

          • SubnetGroupStatus (string) --

            Provides the status of the DB subnet group.

          • Subnets (list) --

            Contains a list of Subnet elements.

            • (dict) --

              Specifies a subnet.

              This data type is used as a response element in the DescribeDBSubnetGroups action.

              • SubnetIdentifier (string) --

                Specifies the identifier of the subnet.

              • SubnetAvailabilityZone (dict) --

                Specifies the EC2 Availability Zone that the subnet is in.

                • Name (string) --

                  The name of the availability zone.

              • SubnetStatus (string) --

                Specifies the status of the subnet.

          • DBSubnetGroupArn (string) --

            The Amazon Resource Name (ARN) for the DB subnet group.

        • PreferredMaintenanceWindow (string) --

          Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        • PendingModifiedValues (dict) --

          Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

          • DBInstanceClass (string) --

            Contains the new DBInstanceClass for the DB instance that will be applied or is currently being applied.

          • AllocatedStorage (integer) --

            Contains the new AllocatedStorage size for the DB instance that will be applied or is currently being applied.

          • MasterUserPassword (string) --

            Not supported by Neptune.

          • Port (integer) --

            Specifies the pending port for the DB instance.

          • BackupRetentionPeriod (integer) --

            Specifies the pending number of days for which automated backups are retained.

          • MultiAZ (boolean) --

            Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

          • EngineVersion (string) --

            Indicates the database engine version.

          • LicenseModel (string) --

            Not supported by Neptune.

          • Iops (integer) --

            Specifies the new Provisioned IOPS value for the DB instance that will be applied or is currently being applied.

          • DBInstanceIdentifier (string) --

            Contains the new DBInstanceIdentifier for the DB instance that will be applied or is currently being applied.

          • StorageType (string) --

            Specifies the storage type to be associated with the DB instance.

          • CACertificateIdentifier (string) --

            Specifies the identifier of the CA certificate for the DB instance.

          • DBSubnetGroupName (string) --

            The new DB subnet group for the DB instance.

          • PendingCloudwatchLogsExports (dict) --

            This PendingCloudwatchLogsExports structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.

            • LogTypesToEnable (list) --

              Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.

              • (string) --
            • LogTypesToDisable (list) --

              Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.

              • (string) --
        • LatestRestorableTime (datetime) --

          Specifies the latest time to which a database can be restored with point-in-time restore.

        • MultiAZ (boolean) --

          Specifies if the DB instance is a Multi-AZ deployment.

        • EngineVersion (string) --

          Indicates the database engine version.

        • AutoMinorVersionUpgrade (boolean) --

          Indicates that minor version patches are applied automatically.

        • ReadReplicaSourceDBInstanceIdentifier (string) --

          Contains the identifier of the source DB instance if this DB instance is a Read Replica.

        • ReadReplicaDBInstanceIdentifiers (list) --

          Contains one or more identifiers of the Read Replicas associated with this DB instance.

          • (string) --
        • ReadReplicaDBClusterIdentifiers (list) --

          Contains one or more identifiers of DB clusters that are Read Replicas of this DB instance.

          • (string) --
        • LicenseModel (string) --

          License model information for this DB instance.

        • Iops (integer) --

          Specifies the Provisioned IOPS (I/O operations per second) value.

        • OptionGroupMemberships (list) --

          (Not supported by Neptune)

          • (dict) --

            Not supported by Neptune.

            • OptionGroupName (string) --

              Not supported by Neptune.

            • Status (string) --

              Not supported by Neptune.

        • CharacterSetName (string) --

          (Not supported by Neptune)

        • SecondaryAvailabilityZone (string) --

          If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

        • PubliclyAccessible (boolean) --

          This flag should no longer be used.

        • StatusInfos (list) --

          The status of a Read Replica. If the instance is not a Read Replica, this is blank.

          • (dict) --

            Provides a list of status information for a DB instance.

            • StatusType (string) --

              This value is currently "read replication."

            • Normal (boolean) --

              Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

            • Status (string) --

              Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

            • Message (string) --

              Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

        • StorageType (string) --

          Specifies the storage type associated with DB instance.

        • TdeCredentialArn (string) --

          The ARN from the key store with which the instance is associated for TDE encryption.

        • DbInstancePort (integer) --

          Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

        • DBClusterIdentifier (string) --

          If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.

        • StorageEncrypted (boolean) --

          Not supported: The encryption for DB instances is managed by the DB cluster.

        • KmsKeyId (string) --

          Not supported: The encryption for DB instances is managed by the DB cluster.

        • DbiResourceId (string) --

          The Amazon Region-unique, immutable identifier for the DB instance. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB instance is accessed.

        • CACertificateIdentifier (string) --

          The identifier of the CA certificate for this DB instance.

        • DomainMemberships (list) --

          Not supported

          • (dict) --

            An Active Directory Domain membership record associated with a DB instance.

            • Domain (string) --

              The identifier of the Active Directory Domain.

            • Status (string) --

              The status of the DB instance's Active Directory Domain membership, such as joined, pending-join, failed etc).

            • FQDN (string) --

              The fully qualified domain name of the Active Directory Domain.

            • IAMRoleName (string) --

              The name of the IAM role to be used when making API calls to the Directory Service.

        • CopyTagsToSnapshot (boolean) --

          Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

        • MonitoringInterval (integer) --

          The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

        • EnhancedMonitoringResourceArn (string) --

          The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.

        • MonitoringRoleArn (string) --

          The ARN for the IAM role that permits Neptune to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.

        • PromotionTier (integer) --

          A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

        • DBInstanceArn (string) --

          The Amazon Resource Name (ARN) for the DB instance.

        • Timezone (string) --

          Not supported.

        • IAMDatabaseAuthenticationEnabled (boolean) --

          True if Amazon Identity and Access Management (IAM) authentication is enabled, and otherwise false.

        • PerformanceInsightsEnabled (boolean) --

          (Not supported by Neptune)

        • PerformanceInsightsKMSKeyId (string) --

          (Not supported by Neptune)

        • EnabledCloudwatchLogsExports (list) --

          A list of log types that this DB instance is configured to export to CloudWatch Logs.

          • (string) --
        • DeletionProtection (boolean) --

          Indicates whether or not the DB instance has deletion protection enabled. The instance can't be deleted when deletion protection is enabled. See Deleting a DB Instance .

Exceptions

  • Neptune.Client.exceptions.DBInstanceNotFoundFault
describe_db_parameter_groups(**kwargs)

Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DB parameter group.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_parameter_groups(
    DBParameterGroupName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBParameterGroupName (string) --

    The name of a specific DB parameter group to return details for.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'DBParameterGroups': [
        {
            'DBParameterGroupName': 'string',
            'DBParameterGroupFamily': 'string',
            'Description': 'string',
            'DBParameterGroupArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • DBParameterGroups (list) --

      A list of DBParameterGroup instances.

      • (dict) --

        Contains the details of an Amazon Neptune DB parameter group.

        This data type is used as a response element in the DescribeDBParameterGroups action.

        • DBParameterGroupName (string) --

          Provides the name of the DB parameter group.

        • DBParameterGroupFamily (string) --

          Provides the name of the DB parameter group family that this DB parameter group is compatible with.

        • Description (string) --

          Provides the customer-specified description for this DB parameter group.

        • DBParameterGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB parameter group.

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
describe_db_parameters(**kwargs)

Returns the detailed parameter list for a particular DB parameter group.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_parameters(
    DBParameterGroupName='string',
    Source='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBParameterGroupName (string) --

    [REQUIRED]

    The name of a specific DB parameter group to return details for.

    Constraints:

    • If supplied, must match the name of an existing DBParameterGroup.
  • Source (string) --

    The parameter types to return.

    Default: All parameter types returned

    Valid Values: user | system | engine-default

  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Parameters': [
        {
            'ParameterName': 'string',
            'ParameterValue': 'string',
            'Description': 'string',
            'Source': 'string',
            'ApplyType': 'string',
            'DataType': 'string',
            'AllowedValues': 'string',
            'IsModifiable': True|False,
            'MinimumEngineVersion': 'string',
            'ApplyMethod': 'immediate'|'pending-reboot'
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • Parameters (list) --

      A list of Parameter values.

      • (dict) --

        Specifies a parameter.

        • ParameterName (string) --

          Specifies the name of the parameter.

        • ParameterValue (string) --

          Specifies the value of the parameter.

        • Description (string) --

          Provides a description of the parameter.

        • Source (string) --

          Indicates the source of the parameter value.

        • ApplyType (string) --

          Specifies the engine specific parameters type.

        • DataType (string) --

          Specifies the valid data type for the parameter.

        • AllowedValues (string) --

          Specifies the valid range of values for the parameter.

        • IsModifiable (boolean) --

          Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

        • MinimumEngineVersion (string) --

          The earliest engine version to which the parameter can apply.

        • ApplyMethod (string) --

          Indicates when to apply parameter updates.

    • Marker (string) --

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
describe_db_subnet_groups(**kwargs)

Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

For an overview of CIDR ranges, go to the Wikipedia Tutorial .

See also: AWS API Documentation

Request Syntax

response = client.describe_db_subnet_groups(
    DBSubnetGroupName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBSubnetGroupName (string) -- The name of the DB subnet group to return details for.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'DBSubnetGroups': [
        {
            'DBSubnetGroupName': 'string',
            'DBSubnetGroupDescription': 'string',
            'VpcId': 'string',
            'SubnetGroupStatus': 'string',
            'Subnets': [
                {
                    'SubnetIdentifier': 'string',
                    'SubnetAvailabilityZone': {
                        'Name': 'string'
                    },
                    'SubnetStatus': 'string'
                },
            ],
            'DBSubnetGroupArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • DBSubnetGroups (list) --

      A list of DBSubnetGroup instances.

      • (dict) --

        Contains the details of an Amazon Neptune DB subnet group.

        This data type is used as a response element in the DescribeDBSubnetGroups action.

        • DBSubnetGroupName (string) --

          The name of the DB subnet group.

        • DBSubnetGroupDescription (string) --

          Provides the description of the DB subnet group.

        • VpcId (string) --

          Provides the VpcId of the DB subnet group.

        • SubnetGroupStatus (string) --

          Provides the status of the DB subnet group.

        • Subnets (list) --

          Contains a list of Subnet elements.

          • (dict) --

            Specifies a subnet.

            This data type is used as a response element in the DescribeDBSubnetGroups action.

            • SubnetIdentifier (string) --

              Specifies the identifier of the subnet.

            • SubnetAvailabilityZone (dict) --

              Specifies the EC2 Availability Zone that the subnet is in.

              • Name (string) --

                The name of the availability zone.

            • SubnetStatus (string) --

              Specifies the status of the subnet.

        • DBSubnetGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB subnet group.

Exceptions

  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
describe_engine_default_cluster_parameters(**kwargs)

Returns the default engine and system parameter information for the cluster database engine.

See also: AWS API Documentation

Request Syntax

response = client.describe_engine_default_cluster_parameters(
    DBParameterGroupFamily='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBParameterGroupFamily (string) --

    [REQUIRED]

    The name of the DB cluster parameter group family to return engine parameter information for.

  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeEngineDefaultClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'EngineDefaults': {
        'DBParameterGroupFamily': 'string',
        'Marker': 'string',
        'Parameters': [
            {
                'ParameterName': 'string',
                'ParameterValue': 'string',
                'Description': 'string',
                'Source': 'string',
                'ApplyType': 'string',
                'DataType': 'string',
                'AllowedValues': 'string',
                'IsModifiable': True|False,
                'MinimumEngineVersion': 'string',
                'ApplyMethod': 'immediate'|'pending-reboot'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • EngineDefaults (dict) --

      Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

      • DBParameterGroupFamily (string) --

        Specifies the name of the DB parameter group family that the engine default parameters apply to.

      • Marker (string) --

        An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

      • Parameters (list) --

        Contains a list of engine default parameters.

        • (dict) --

          Specifies a parameter.

          • ParameterName (string) --

            Specifies the name of the parameter.

          • ParameterValue (string) --

            Specifies the value of the parameter.

          • Description (string) --

            Provides a description of the parameter.

          • Source (string) --

            Indicates the source of the parameter value.

          • ApplyType (string) --

            Specifies the engine specific parameters type.

          • DataType (string) --

            Specifies the valid data type for the parameter.

          • AllowedValues (string) --

            Specifies the valid range of values for the parameter.

          • IsModifiable (boolean) --

            Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

          • MinimumEngineVersion (string) --

            The earliest engine version to which the parameter can apply.

          • ApplyMethod (string) --

            Indicates when to apply parameter updates.

describe_engine_default_parameters(**kwargs)

Returns the default engine and system parameter information for the specified database engine.

See also: AWS API Documentation

Request Syntax

response = client.describe_engine_default_parameters(
    DBParameterGroupFamily='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • DBParameterGroupFamily (string) --

    [REQUIRED]

    The name of the DB parameter group family.

  • Filters (list) --

    Not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'EngineDefaults': {
        'DBParameterGroupFamily': 'string',
        'Marker': 'string',
        'Parameters': [
            {
                'ParameterName': 'string',
                'ParameterValue': 'string',
                'Description': 'string',
                'Source': 'string',
                'ApplyType': 'string',
                'DataType': 'string',
                'AllowedValues': 'string',
                'IsModifiable': True|False,
                'MinimumEngineVersion': 'string',
                'ApplyMethod': 'immediate'|'pending-reboot'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • EngineDefaults (dict) --

      Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

      • DBParameterGroupFamily (string) --

        Specifies the name of the DB parameter group family that the engine default parameters apply to.

      • Marker (string) --

        An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

      • Parameters (list) --

        Contains a list of engine default parameters.

        • (dict) --

          Specifies a parameter.

          • ParameterName (string) --

            Specifies the name of the parameter.

          • ParameterValue (string) --

            Specifies the value of the parameter.

          • Description (string) --

            Provides a description of the parameter.

          • Source (string) --

            Indicates the source of the parameter value.

          • ApplyType (string) --

            Specifies the engine specific parameters type.

          • DataType (string) --

            Specifies the valid data type for the parameter.

          • AllowedValues (string) --

            Specifies the valid range of values for the parameter.

          • IsModifiable (boolean) --

            Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

          • MinimumEngineVersion (string) --

            The earliest engine version to which the parameter can apply.

          • ApplyMethod (string) --

            Indicates when to apply parameter updates.

describe_event_categories(**kwargs)

Displays a list of categories for all event source types, or, if specified, for a specified source type.

See also: AWS API Documentation

Request Syntax

response = client.describe_event_categories(
    SourceType='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ]
)
Parameters
  • SourceType (string) --

    The type of source that is generating the events.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
Return type

dict

Returns

Response Syntax

{
    'EventCategoriesMapList': [
        {
            'SourceType': 'string',
            'EventCategories': [
                'string',
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • EventCategoriesMapList (list) --

      A list of EventCategoriesMap data types.

      • (dict) --

        Contains the results of a successful invocation of the DescribeEventCategories action.

        • SourceType (string) --

          The source type that the returned categories belong to

        • EventCategories (list) --

          The event categories for the specified source type

          • (string) --

describe_event_subscriptions(**kwargs)

Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify a SubscriptionName, lists the description for that subscription.

See also: AWS API Documentation

Request Syntax

response = client.describe_event_subscriptions(
    SubscriptionName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • SubscriptionName (string) -- The name of the event notification subscription you want to describe.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'EventSubscriptionsList': [
        {
            'CustomerAwsId': 'string',
            'CustSubscriptionId': 'string',
            'SnsTopicArn': 'string',
            'Status': 'string',
            'SubscriptionCreationTime': 'string',
            'SourceType': 'string',
            'SourceIdsList': [
                'string',
            ],
            'EventCategoriesList': [
                'string',
            ],
            'Enabled': True|False,
            'EventSubscriptionArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • EventSubscriptionsList (list) --

      A list of EventSubscriptions data types.

      • (dict) --

        Contains the results of a successful invocation of the DescribeEventSubscriptions action.

        • CustomerAwsId (string) --

          The Amazon customer account associated with the event notification subscription.

        • CustSubscriptionId (string) --

          The event notification subscription Id.

        • SnsTopicArn (string) --

          The topic ARN of the event notification subscription.

        • Status (string) --

          The status of the event notification subscription.

          Constraints:

          Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

          The status "no-permission" indicates that Neptune no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.

        • SubscriptionCreationTime (string) --

          The time the event notification subscription was created.

        • SourceType (string) --

          The source type for the event notification subscription.

        • SourceIdsList (list) --

          A list of source IDs for the event notification subscription.

          • (string) --
        • EventCategoriesList (list) --

          A list of event categories for the event notification subscription.

          • (string) --
        • Enabled (boolean) --

          A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

        • EventSubscriptionArn (string) --

          The Amazon Resource Name (ARN) for the event subscription.

Exceptions

  • Neptune.Client.exceptions.SubscriptionNotFoundFault
describe_events(**kwargs)

Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

See also: AWS API Documentation

Request Syntax

response = client.describe_events(
    SourceIdentifier='string',
    SourceType='db-instance'|'db-parameter-group'|'db-security-group'|'db-snapshot'|'db-cluster'|'db-cluster-snapshot',
    StartTime=datetime(2015, 1, 1),
    EndTime=datetime(2015, 1, 1),
    Duration=123,
    EventCategories=[
        'string',
    ],
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • SourceIdentifier (string) --

    The identifier of the event source for which events are returned. If not specified, then all sources are included in the response.

    Constraints:

    • If SourceIdentifier is supplied, SourceType must also be provided.
    • If the source type is DBInstance , then a DBInstanceIdentifier must be supplied.
    • If the source type is DBSecurityGroup , a DBSecurityGroupName must be supplied.
    • If the source type is DBParameterGroup , a DBParameterGroupName must be supplied.
    • If the source type is DBSnapshot , a DBSnapshotIdentifier must be supplied.
    • Cannot end with a hyphen or contain two consecutive hyphens.
  • SourceType (string) -- The event source to retrieve events for. If no value is specified, all events are returned.
  • StartTime (datetime) --

    The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

  • EndTime (datetime) --

    The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

  • Duration (integer) --

    The number of minutes to retrieve events for.

    Default: 60

  • EventCategories (list) --

    A list of event categories that trigger notifications for a event notification subscription.

    • (string) --
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'Events': [
        {
            'SourceIdentifier': 'string',
            'SourceType': 'db-instance'|'db-parameter-group'|'db-security-group'|'db-snapshot'|'db-cluster'|'db-cluster-snapshot',
            'Message': 'string',
            'EventCategories': [
                'string',
            ],
            'Date': datetime(2015, 1, 1),
            'SourceArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • Events (list) --

      A list of Event instances.

      • (dict) --

        This data type is used as a response element in the DescribeEvents action.

        • SourceIdentifier (string) --

          Provides the identifier for the source of the event.

        • SourceType (string) --

          Specifies the source type for this event.

        • Message (string) --

          Provides the text of this event.

        • EventCategories (list) --

          Specifies the category for the event.

          • (string) --
        • Date (datetime) --

          Specifies the date and time of the event.

        • SourceArn (string) --

          The Amazon Resource Name (ARN) for the event.

describe_orderable_db_instance_options(**kwargs)

Returns a list of orderable DB instance options for the specified engine.

See also: AWS API Documentation

Request Syntax

response = client.describe_orderable_db_instance_options(
    Engine='string',
    EngineVersion='string',
    DBInstanceClass='string',
    LicenseModel='string',
    Vpc=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • Engine (string) --

    [REQUIRED]

    The name of the engine to retrieve DB instance options for.

  • EngineVersion (string) -- The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.
  • DBInstanceClass (string) -- The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.
  • LicenseModel (string) -- The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.
  • Vpc (boolean) -- The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'OrderableDBInstanceOptions': [
        {
            'Engine': 'string',
            'EngineVersion': 'string',
            'DBInstanceClass': 'string',
            'LicenseModel': 'string',
            'AvailabilityZones': [
                {
                    'Name': 'string'
                },
            ],
            'MultiAZCapable': True|False,
            'ReadReplicaCapable': True|False,
            'Vpc': True|False,
            'SupportsStorageEncryption': True|False,
            'StorageType': 'string',
            'SupportsIops': True|False,
            'SupportsEnhancedMonitoring': True|False,
            'SupportsIAMDatabaseAuthentication': True|False,
            'SupportsPerformanceInsights': True|False,
            'MinStorageSize': 123,
            'MaxStorageSize': 123,
            'MinIopsPerDbInstance': 123,
            'MaxIopsPerDbInstance': 123,
            'MinIopsPerGib': 123.0,
            'MaxIopsPerGib': 123.0
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • OrderableDBInstanceOptions (list) --

      An OrderableDBInstanceOption structure containing information about orderable options for the DB instance.

      • (dict) --

        Contains a list of available options for a DB instance.

        This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

        • Engine (string) --

          The engine type of a DB instance.

        • EngineVersion (string) --

          The engine version of a DB instance.

        • DBInstanceClass (string) --

          The DB instance class for a DB instance.

        • LicenseModel (string) --

          The license model for a DB instance.

        • AvailabilityZones (list) --

          A list of Availability Zones for a DB instance.

          • (dict) --

            Specifies an Availability Zone.

            • Name (string) --

              The name of the availability zone.

        • MultiAZCapable (boolean) --

          Indicates whether a DB instance is Multi-AZ capable.

        • ReadReplicaCapable (boolean) --

          Indicates whether a DB instance can have a Read Replica.

        • Vpc (boolean) --

          Indicates whether a DB instance is in a VPC.

        • SupportsStorageEncryption (boolean) --

          Indicates whether a DB instance supports encrypted storage.

        • StorageType (string) --

          Indicates the storage type for a DB instance.

        • SupportsIops (boolean) --

          Indicates whether a DB instance supports provisioned IOPS.

        • SupportsEnhancedMonitoring (boolean) --

          Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds.

        • SupportsIAMDatabaseAuthentication (boolean) --

          Indicates whether a DB instance supports IAM database authentication.

        • SupportsPerformanceInsights (boolean) --

          (Not supported by Neptune)

        • MinStorageSize (integer) --

          Minimum storage size for a DB instance.

        • MaxStorageSize (integer) --

          Maximum storage size for a DB instance.

        • MinIopsPerDbInstance (integer) --

          Minimum total provisioned IOPS for a DB instance.

        • MaxIopsPerDbInstance (integer) --

          Maximum total provisioned IOPS for a DB instance.

        • MinIopsPerGib (float) --

          Minimum provisioned IOPS per GiB for a DB instance.

        • MaxIopsPerGib (float) --

          Maximum provisioned IOPS per GiB for a DB instance.

    • Marker (string) --

      An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

describe_pending_maintenance_actions(**kwargs)

Returns a list of resources (for example, DB instances) that have at least one pending maintenance action.

See also: AWS API Documentation

Request Syntax

response = client.describe_pending_maintenance_actions(
    ResourceIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    Marker='string',
    MaxRecords=123
)
Parameters
  • ResourceIdentifier (string) -- The ARN of a resource to return pending maintenance actions for.
  • Filters (list) --

    A filter that specifies one or more resources to return pending maintenance actions for.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include pending maintenance actions for the DB clusters identified by these ARNs.
    • db-instance-id - Accepts DB instance identifiers and DB instance ARNs. The results list will only include pending maintenance actions for the DB instances identified by these ARNs.
    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • Marker (string) -- An optional pagination token provided by a previous DescribePendingMaintenanceActions request. If this parameter is specified, the response includes only records beyond the marker, up to a number of records specified by MaxRecords .
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

Return type

dict

Returns

Response Syntax

{
    'PendingMaintenanceActions': [
        {
            'ResourceIdentifier': 'string',
            'PendingMaintenanceActionDetails': [
                {
                    'Action': 'string',
                    'AutoAppliedAfterDate': datetime(2015, 1, 1),
                    'ForcedApplyDate': datetime(2015, 1, 1),
                    'OptInStatus': 'string',
                    'CurrentApplyDate': datetime(2015, 1, 1),
                    'Description': 'string'
                },
            ]
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • PendingMaintenanceActions (list) --

      A list of the pending maintenance actions for the resource.

      • (dict) --

        Describes the pending maintenance actions for a resource.

        • ResourceIdentifier (string) --

          The ARN of the resource that has pending maintenance actions.

        • PendingMaintenanceActionDetails (list) --

          A list that provides details about the pending maintenance actions for the resource.

          • (dict) --

            Provides information about a pending maintenance action for a resource.

            • Action (string) --

              The type of pending maintenance action that is available for the resource.

            • AutoAppliedAfterDate (datetime) --

              The date of the maintenance window when the action is applied. The maintenance action is applied to the resource during its first maintenance window after this date. If this date is specified, any next-maintenance opt-in requests are ignored.

            • ForcedApplyDate (datetime) --

              The date when the maintenance action is automatically applied. The maintenance action is applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any immediate opt-in requests are ignored.

            • OptInStatus (string) --

              Indicates the type of opt-in request that has been received for the resource.

            • CurrentApplyDate (datetime) --

              The effective date when the pending maintenance action is applied to the resource. This date takes into account opt-in requests received from the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate , and the ForcedApplyDate . This value is blank if an opt-in request has not been received and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate .

            • Description (string) --

              A description providing more detail about the maintenance action.

    • Marker (string) --

      An optional pagination token provided by a previous DescribePendingMaintenanceActions request. If this parameter is specified, the response includes only records beyond the marker, up to a number of records specified by MaxRecords .

Exceptions

  • Neptune.Client.exceptions.ResourceNotFoundFault
describe_valid_db_instance_modifications(**kwargs)

You can call DescribeValidDBInstanceModifications to learn what modifications you can make to your DB instance. You can use this information when you call ModifyDBInstance .

See also: AWS API Documentation

Request Syntax

response = client.describe_valid_db_instance_modifications(
    DBInstanceIdentifier='string'
)
Parameters
DBInstanceIdentifier (string) --

[REQUIRED]

The customer identifier or the ARN of your DB instance.

Return type
dict
Returns
Response Syntax
{
    'ValidDBInstanceModificationsMessage': {
        'Storage': [
            {
                'StorageType': 'string',
                'StorageSize': [
                    {
                        'From': 123,
                        'To': 123,
                        'Step': 123
                    },
                ],
                'ProvisionedIops': [
                    {
                        'From': 123,
                        'To': 123,
                        'Step': 123
                    },
                ],
                'IopsToStorageRatio': [
                    {
                        'From': 123.0,
                        'To': 123.0
                    },
                ]
            },
        ]
    }
}

Response Structure

  • (dict) --
    • ValidDBInstanceModificationsMessage (dict) --

      Information about valid modifications that you can make to your DB instance. Contains the result of a successful call to the DescribeValidDBInstanceModifications action. You can use this information when you call ModifyDBInstance .

      • Storage (list) --

        Valid storage options for your DB instance.

        • (dict) --

          Information about valid modifications that you can make to your DB instance.

          Contains the result of a successful call to the DescribeValidDBInstanceModifications action.

          • StorageType (string) --

            The valid storage types for your DB instance. For example, gp2, io1.

          • StorageSize (list) --

            The valid range of storage in gibibytes. For example, 100 to 16384.

            • (dict) --

              A range of integer values.

              • From (integer) --

                The minimum value in the range.

              • To (integer) --

                The maximum value in the range.

              • Step (integer) --

                The step value for the range. For example, if you have a range of 5,000 to 10,000, with a step value of 1,000, the valid values start at 5,000 and step up by 1,000. Even though 7,500 is within the range, it isn't a valid value for the range. The valid values are 5,000, 6,000, 7,000, 8,000...

          • ProvisionedIops (list) --

            The valid range of provisioned IOPS. For example, 1000-20000.

            • (dict) --

              A range of integer values.

              • From (integer) --

                The minimum value in the range.

              • To (integer) --

                The maximum value in the range.

              • Step (integer) --

                The step value for the range. For example, if you have a range of 5,000 to 10,000, with a step value of 1,000, the valid values start at 5,000 and step up by 1,000. Even though 7,500 is within the range, it isn't a valid value for the range. The valid values are 5,000, 6,000, 7,000, 8,000...

          • IopsToStorageRatio (list) --

            The valid range of Provisioned IOPS to gibibytes of storage multiplier. For example, 3-10, which means that provisioned IOPS can be between 3 and 10 times storage.

            • (dict) --

              A range of double values.

              • From (float) --

                The minimum value in the range.

              • To (float) --

                The maximum value in the range.

Exceptions

  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
failover_db_cluster(**kwargs)

Forces a failover for a DB cluster.

A failover for a DB cluster promotes one of the Read Replicas (read-only instances) in the DB cluster to be the primary instance (the cluster writer).

Amazon Neptune will automatically fail over to a Read Replica, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a primary instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.

See also: AWS API Documentation

Request Syntax

response = client.failover_db_cluster(
    DBClusterIdentifier='string',
    TargetDBInstanceIdentifier='string'
)
Parameters
  • DBClusterIdentifier (string) --

    A DB cluster identifier to force a failover for. This parameter is not case-sensitive.

    Constraints:

    • Must match the identifier of an existing DBCluster.
  • TargetDBInstanceIdentifier (string) --

    The name of the instance to promote to the primary instance.

    You must specify the instance identifier for an Read Replica in the DB cluster. For example, mydbcluster-replica1 .

Return type

dict

Returns

Response Syntax

{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --

        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --

        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
generate_presigned_url(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)

Generate a presigned url given a client, its method, and arguments

Parameters
  • ClientMethod (string) -- The client method to presign for
  • Params (dict) -- The parameters normally passed to ClientMethod.
  • ExpiresIn (int) -- The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds)
  • HttpMethod (string) -- The http method to use on the generated url. By default, the http method is whatever is used in the method's model.
Returns

The presigned url

get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_waiter(waiter_name)

Returns an object that can wait for some condition.

Parameters
waiter_name (str) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters.
Returns
The specified waiter object.
Return type
botocore.waiter.Waiter
list_tags_for_resource(**kwargs)

Lists all tags on an Amazon Neptune resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    ResourceName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ]
)
Parameters
  • ResourceName (string) --

    [REQUIRED]

    The Amazon Neptune resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) .

  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
Return type

dict

Returns

Response Syntax

{
    'TagList': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • TagList (list) --

      List of tags returned by the ListTagsForResource operation.

      • (dict) --

        Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

        • Key (string) --

          A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

        • Value (string) --

          A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

Exceptions

  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.DBSnapshotNotFoundFault
  • Neptune.Client.exceptions.DBClusterNotFoundFault
modify_db_cluster(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.modify_db_cluster(
    DBClusterIdentifier='string',
    NewDBClusterIdentifier='string',
    ApplyImmediately=True|False,
    BackupRetentionPeriod=123,
    DBClusterParameterGroupName='string',
    VpcSecurityGroupIds=[
        'string',
    ],
    Port=123,
    MasterUserPassword='string',
    OptionGroupName='string',
    PreferredBackupWindow='string',
    PreferredMaintenanceWindow='string',
    EnableIAMDatabaseAuthentication=True|False,
    CloudwatchLogsExportConfiguration={
        'EnableLogTypes': [
            'string',
        ],
        'DisableLogTypes': [
            'string',
        ]
    },
    EngineVersion='string',
    DeletionProtection=True|False,
    CopyTagsToSnapshot=True|False
)
Parameters
  • DBClusterIdentifier (string) --

    [REQUIRED]

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

    Constraints:

    • Must match the identifier of an existing DBCluster.
  • NewDBClusterIdentifier (string) --

    The new DB cluster identifier for the DB cluster when renaming a DB cluster. 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
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-cluster2

  • ApplyImmediately (boolean) --

    A value that specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB cluster. If this parameter is set to false , changes to the DB cluster are applied during the next maintenance window.

    The ApplyImmediately parameter only affects NewDBClusterIdentifier values. If you set the ApplyImmediately parameter value to false, then changes to NewDBClusterIdentifier values are applied during the next maintenance window. All other changes are applied immediately, regardless of the value of the ApplyImmediately parameter.

    Default: false

  • BackupRetentionPeriod (integer) --

    The number of days for which automated backups are retained. You must specify a minimum value of 1.

    Default: 1

    Constraints:

    • Must be a value from 1 to 35
  • DBClusterParameterGroupName (string) -- The name of the DB cluster parameter group to use for the DB cluster.
  • VpcSecurityGroupIds (list) --

    A list of VPC security groups that the DB cluster will belong to.

    • (string) --
  • Port (integer) --

    The port number on which the DB cluster accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB cluster.

  • MasterUserPassword (string) -- Not supported by Neptune.
  • OptionGroupName (string) -- Not supported by Neptune.
  • PreferredBackupWindow (string) --

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi .
    • Must be in Universal Coordinated Time (UTC).
    • Must not conflict with the preferred maintenance window.
    • Must be at least 30 minutes.
  • PreferredMaintenanceWindow (string) --

    The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

    Format: ddd:hh24:mi-ddd:hh24:mi

    The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

    Constraints: Minimum 30-minute window.

  • EnableIAMDatabaseAuthentication (boolean) --

    True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

    Default: false

  • CloudwatchLogsExportConfiguration (dict) --

    The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB cluster.

    • EnableLogTypes (list) --

      The list of log types to enable.

      • (string) --
    • DisableLogTypes (list) --

      The list of log types to disable.

      • (string) --
  • EngineVersion (string) --

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

    For a list of valid engine versions, see Engine Releases for Amazon Neptune , or call DescribeDBEngineVersions .

  • DeletionProtection (boolean) -- A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.
  • CopyTagsToSnapshot (boolean) -- If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.
Return type

dict

Returns

Response Syntax

{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --

        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --

        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.StorageQuotaExceededFault
  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
  • Neptune.Client.exceptions.InvalidVPCNetworkStateFault
  • Neptune.Client.exceptions.InvalidDBSubnetGroupStateFault
  • Neptune.Client.exceptions.InvalidSubnet
  • Neptune.Client.exceptions.DBClusterParameterGroupNotFoundFault
  • Neptune.Client.exceptions.InvalidDBSecurityGroupStateFault
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
  • Neptune.Client.exceptions.DBClusterAlreadyExistsFault
modify_db_cluster_endpoint(**kwargs)

Modifies the properties of an endpoint in an Amazon Neptune DB cluster.

See also: AWS API Documentation

Request Syntax

response = client.modify_db_cluster_endpoint(
    DBClusterEndpointIdentifier='string',
    EndpointType='string',
    StaticMembers=[
        'string',
    ],
    ExcludedMembers=[
        'string',
    ]
)
Parameters
  • DBClusterEndpointIdentifier (string) --

    [REQUIRED]

    The identifier of the endpoint to modify. This parameter is stored as a lowercase string.

  • EndpointType (string) -- The type of the endpoint. One of: READER , WRITER , ANY .
  • StaticMembers (list) --

    List of DB instance identifiers that are part of the custom endpoint group.

    • (string) --
  • ExcludedMembers (list) --

    List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'DBClusterEndpointIdentifier': 'string',
    'DBClusterIdentifier': 'string',
    'DBClusterEndpointResourceIdentifier': 'string',
    'Endpoint': 'string',
    'Status': 'string',
    'EndpointType': 'string',
    'CustomEndpointType': 'string',
    'StaticMembers': [
        'string',
    ],
    'ExcludedMembers': [
        'string',
    ],
    'DBClusterEndpointArn': 'string'
}

Response Structure

  • (dict) --

    This data type represents the information you need to connect to an Amazon Aurora DB cluster. This data type is used as a response element in the following actions:

    • CreateDBClusterEndpoint
    • DescribeDBClusterEndpoints
    • ModifyDBClusterEndpoint
    • DeleteDBClusterEndpoint

    For the data structure that represents Amazon RDS DB instance endpoints, see Endpoint .

    • DBClusterEndpointIdentifier (string) --

      The identifier associated with the endpoint. This parameter is stored as a lowercase string.

    • DBClusterIdentifier (string) --

      The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

    • DBClusterEndpointResourceIdentifier (string) --

      A unique system-generated identifier for an endpoint. It remains the same for the whole life of the endpoint.

    • Endpoint (string) --

      The DNS address of the endpoint.

    • Status (string) --

      The current status of the endpoint. One of: creating , available , deleting , inactive , modifying . The inactive state applies to an endpoint that cannot be used for a certain kind of cluster, such as a writer endpoint for a read-only secondary cluster in a global database.

    • EndpointType (string) --

      The type of the endpoint. One of: READER , WRITER , CUSTOM .

    • CustomEndpointType (string) --

      The type associated with a custom endpoint. One of: READER , WRITER , ANY .

    • StaticMembers (list) --

      List of DB instance identifiers that are part of the custom endpoint group.

      • (string) --
    • ExcludedMembers (list) --

      List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

      • (string) --
    • DBClusterEndpointArn (string) --

      The Amazon Resource Name (ARN) for the endpoint.

Exceptions

  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.InvalidDBClusterEndpointStateFault
  • Neptune.Client.exceptions.DBClusterEndpointNotFoundFault
  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
modify_db_cluster_parameter_group(**kwargs)

Modifies the parameters of a DB cluster parameter group. To modify more than one parameter, submit a list of the following: ParameterName , ParameterValue , and ApplyMethod . A maximum of 20 parameters can be modified in a single request.

Note

Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB cluster associated with the parameter group before the change can take effect.

Warning

After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon Neptune to fully complete the create action before the parameter group is used as the default for a new DB cluster. This is especially important for parameters that are critical when creating the default database for a DB cluster, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon Neptune console or the DescribeDBClusterParameters command to verify that your DB cluster parameter group has been created or modified.

See also: AWS API Documentation

Request Syntax

response = client.modify_db_cluster_parameter_group(
    DBClusterParameterGroupName='string',
    Parameters=[
        {
            'ParameterName': 'string',
            'ParameterValue': 'string',
            'Description': 'string',
            'Source': 'string',
            'ApplyType': 'string',
            'DataType': 'string',
            'AllowedValues': 'string',
            'IsModifiable': True|False,
            'MinimumEngineVersion': 'string',
            'ApplyMethod': 'immediate'|'pending-reboot'
        },
    ]
)
Parameters
  • DBClusterParameterGroupName (string) --

    [REQUIRED]

    The name of the DB cluster parameter group to modify.

  • Parameters (list) --

    [REQUIRED]

    A list of parameters in the DB cluster parameter group to modify.

    • (dict) --

      Specifies a parameter.

      • ParameterName (string) --

        Specifies the name of the parameter.

      • ParameterValue (string) --

        Specifies the value of the parameter.

      • Description (string) --

        Provides a description of the parameter.

      • Source (string) --

        Indicates the source of the parameter value.

      • ApplyType (string) --

        Specifies the engine specific parameters type.

      • DataType (string) --

        Specifies the valid data type for the parameter.

      • AllowedValues (string) --

        Specifies the valid range of values for the parameter.

      • IsModifiable (boolean) --

        Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

      • MinimumEngineVersion (string) --

        The earliest engine version to which the parameter can apply.

      • ApplyMethod (string) --

        Indicates when to apply parameter updates.

Return type

dict

Returns

Response Syntax

{
    'DBClusterParameterGroupName': 'string'
}

Response Structure

  • (dict) --

    • DBClusterParameterGroupName (string) --

      The name of the DB cluster parameter group.

      Constraints:

      • Must be 1 to 255 letters or numbers.
      • First character must be a letter
      • Cannot end with a hyphen or contain two consecutive hyphens

      Note

      This value is stored as a lowercase string.

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
  • Neptune.Client.exceptions.InvalidDBParameterGroupStateFault
modify_db_cluster_snapshot_attribute(**kwargs)

Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot.

To share a manual DB cluster snapshot with other Amazon accounts, specify restore as the AttributeName and use the ValuesToAdd parameter to add a list of IDs of the Amazon accounts that are authorized to restore the manual DB cluster snapshot. Use the value all to make the manual DB cluster snapshot public, which means that it can be copied or restored by all Amazon accounts. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all Amazon accounts. If a manual DB cluster snapshot is encrypted, it can be shared, but only by specifying a list of authorized Amazon account IDs for the ValuesToAdd parameter. You can't use all as a value for that parameter in this case.

To view which Amazon accounts have access to copy or restore a manual DB cluster snapshot, or whether a manual DB cluster snapshot public or private, use the DescribeDBClusterSnapshotAttributes API action.

See also: AWS API Documentation

Request Syntax

response = client.modify_db_cluster_snapshot_attribute(
    DBClusterSnapshotIdentifier='string',
    AttributeName='string',
    ValuesToAdd=[
        'string',
    ],
    ValuesToRemove=[
        'string',
    ]
)
Parameters
  • DBClusterSnapshotIdentifier (string) --

    [REQUIRED]

    The identifier for the DB cluster snapshot to modify the attributes for.

  • AttributeName (string) --

    [REQUIRED]

    The name of the DB cluster snapshot attribute to modify.

    To manage authorization for other Amazon accounts to copy or restore a manual DB cluster snapshot, set this value to restore .

  • ValuesToAdd (list) --

    A list of DB cluster snapshot attributes to add to the attribute specified by AttributeName .

    To authorize other Amazon accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon account IDs, or all to make the manual DB cluster snapshot restorable by any Amazon account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all AWS accounts.

    • (string) --
  • ValuesToRemove (list) --

    A list of DB cluster snapshot attributes to remove from the attribute specified by AttributeName .

    To remove authorization for other Amazon accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more Amazon account identifiers, or all to remove authorization for any Amazon account to copy or restore the DB cluster snapshot. If you specify all , an Amazon account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'DBClusterSnapshotAttributesResult': {
        'DBClusterSnapshotIdentifier': 'string',
        'DBClusterSnapshotAttributes': [
            {
                'AttributeName': 'string',
                'AttributeValues': [
                    'string',
                ]
            },
        ]
    }
}

Response Structure

  • (dict) --

    • DBClusterSnapshotAttributesResult (dict) --

      Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes API action.

      Manual DB cluster snapshot attributes are used to authorize other Amazon accounts to copy or restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

      • DBClusterSnapshotIdentifier (string) --

        The identifier of the manual DB cluster snapshot that the attributes apply to.

      • DBClusterSnapshotAttributes (list) --

        The list of attributes and values for the manual DB cluster snapshot.

        • (dict) --

          Contains the name and values of a manual DB cluster snapshot attribute.

          Manual DB cluster snapshot attributes are used to authorize other Amazon accounts to restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

          • AttributeName (string) --

            The name of the manual DB cluster snapshot attribute.

            The attribute named restore refers to the list of Amazon accounts that have permission to copy or restore the manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

          • AttributeValues (list) --

            The value(s) for the manual DB cluster snapshot attribute.

            If the AttributeName field is set to restore , then this element returns a list of IDs of the Amazon accounts that are authorized to copy or restore the manual DB cluster snapshot. If a value of all is in the list, then the manual DB cluster snapshot is public and available for any Amazon account to copy or restore.

            • (string) --

Exceptions

  • Neptune.Client.exceptions.DBClusterSnapshotNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterSnapshotStateFault
  • Neptune.Client.exceptions.SharedSnapshotQuotaExceededFault
modify_db_instance(**kwargs)

Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. To learn what modifications you can make to your DB instance, call DescribeValidDBInstanceModifications before you call ModifyDBInstance .

See also: AWS API Documentation

Request Syntax

response = client.modify_db_instance(
    DBInstanceIdentifier='string',
    AllocatedStorage=123,
    DBInstanceClass='string',
    DBSubnetGroupName='string',
    DBSecurityGroups=[
        'string',
    ],
    VpcSecurityGroupIds=[
        'string',
    ],
    ApplyImmediately=True|False,
    MasterUserPassword='string',
    DBParameterGroupName='string',
    BackupRetentionPeriod=123,
    PreferredBackupWindow='string',
    PreferredMaintenanceWindow='string',
    MultiAZ=True|False,
    EngineVersion='string',
    AllowMajorVersionUpgrade=True|False,
    AutoMinorVersionUpgrade=True|False,
    LicenseModel='string',
    Iops=123,
    OptionGroupName='string',
    NewDBInstanceIdentifier='string',
    StorageType='string',
    TdeCredentialArn='string',
    TdeCredentialPassword='string',
    CACertificateIdentifier='string',
    Domain='string',
    CopyTagsToSnapshot=True|False,
    MonitoringInterval=123,
    DBPortNumber=123,
    PubliclyAccessible=True|False,
    MonitoringRoleArn='string',
    DomainIAMRoleName='string',
    PromotionTier=123,
    EnableIAMDatabaseAuthentication=True|False,
    EnablePerformanceInsights=True|False,
    PerformanceInsightsKMSKeyId='string',
    CloudwatchLogsExportConfiguration={
        'EnableLogTypes': [
            'string',
        ],
        'DisableLogTypes': [
            'string',
        ]
    },
    DeletionProtection=True|False
)
Parameters
  • DBInstanceIdentifier (string) --

    [REQUIRED]

    The DB instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must match the identifier of an existing DBInstance.
  • AllocatedStorage (integer) -- Not supported by Neptune.
  • DBInstanceClass (string) --

    The new compute and memory capacity of the DB instance, for example, db.m4.large . Not all DB instance classes are available in all AWS Regions.

    If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless ApplyImmediately is specified as true for this request.

    Default: Uses existing setting

  • DBSubnetGroupName (string) --

    The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC.

    Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you specify true for the ApplyImmediately parameter.

    Constraints: If supplied, must match the name of an existing DBSubnetGroup.

    Example: mySubnetGroup

  • DBSecurityGroups (list) --

    A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • If supplied, must match existing DBSecurityGroups.
    • (string) --
  • VpcSecurityGroupIds (list) --

    A list of EC2 VPC security groups to authorize on this DB instance. This change is asynchronously applied as soon as possible.

    Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see ModifyDBCluster .

    Constraints:

    • If supplied, must match existing VpcSecurityGroupIds.
    • (string) --
  • ApplyImmediately (boolean) --

    Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB instance.

    If this parameter is set to false , changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to RebootDBInstance , or the next failure reboot.

    Default: false

  • MasterUserPassword (string) -- Not supported by Neptune.
  • DBParameterGroupName (string) --

    The name of the DB parameter group to apply to the DB instance. Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The db instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.

    Default: Uses existing setting

    Constraints: The DB parameter group must be in the same DB parameter group family as this DB instance.

  • BackupRetentionPeriod (integer) --

    Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see ModifyDBCluster .

    Default: Uses existing setting

  • PreferredBackupWindow (string) --

    The daily time range during which automated backups are created if automated backups are enabled.

    Not applicable. The daily time range for creating automated backups is managed by the DB cluster. For more information, see ModifyDBCluster .

    Constraints:

    • Must be in the format hh24:mi-hh24:mi
    • Must be in Universal Time Coordinated (UTC)
    • Must not conflict with the preferred maintenance window
    • Must be at least 30 minutes
  • PreferredMaintenanceWindow (string) --

    The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

    Default: Uses existing setting

    Format: ddd:hh24:mi-ddd:hh24:mi

    Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

    Constraints: Must be at least 30 minutes

  • MultiAZ (boolean) -- Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.
  • EngineVersion (string) -- The version number of the database engine to upgrade to. Currently, setting this parameter has no effect. To upgrade your database engine to the most recent release, use the ApplyPendingMaintenanceAction API.
  • AllowMajorVersionUpgrade (boolean) -- Indicates that major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.
  • AutoMinorVersionUpgrade (boolean) -- Indicates that minor version upgrades are applied automatically to the DB instance during the maintenance window. Changing this parameter doesn't result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and Neptune has enabled auto patching for that engine version.
  • LicenseModel (string) -- Not supported by Neptune.
  • Iops (integer) --

    The new Provisioned IOPS (I/O operations per second) value for the instance.

    Changing this setting doesn't result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Default: Uses existing setting

  • OptionGroupName (string) -- (Not supported by Neptune)
  • NewDBInstanceIdentifier (string) --

    The new DB instance identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot will occur immediately if you set Apply Immediately to true, or will occur during the next maintenance window if Apply Immediately to false. 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.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: mydbinstance

  • StorageType (string) -- Not supported.
  • TdeCredentialArn (string) -- The ARN from the key store with which to associate the instance for TDE encryption.
  • TdeCredentialPassword (string) -- The password for the given ARN from the key store in order to access the device.
  • CACertificateIdentifier (string) -- Indicates the certificate that needs to be associated with the instance.
  • Domain (string) -- Not supported.
  • CopyTagsToSnapshot (boolean) -- True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false. The default is false.
  • MonitoringInterval (integer) --

    The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.

    If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0.

    Valid Values: 0, 1, 5, 10, 15, 30, 60

  • DBPortNumber (integer) --

    The port number on which the database accepts connections.

    The value of the DBPortNumber parameter must not match any of the port values specified for options in the option group for the DB instance.

    Your database will restart when you change the DBPortNumber value regardless of the value of the ApplyImmediately parameter.

    Default: 8182

  • PubliclyAccessible (boolean) -- This flag should no longer be used.
  • MonitoringRoleArn (string) --

    The ARN for the IAM role that permits Neptune to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess .

    If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

  • DomainIAMRoleName (string) -- Not supported
  • PromotionTier (integer) --

    A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

    Default: 1

    Valid Values: 0 - 15

  • EnableIAMDatabaseAuthentication (boolean) --

    True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

    You can enable IAM database authentication for the following database engines

    Not applicable. Mapping Amazon IAM accounts to database accounts is managed by the DB cluster. For more information, see ModifyDBCluster .

    Default: false

  • EnablePerformanceInsights (boolean) -- (Not supported by Neptune)
  • PerformanceInsightsKMSKeyId (string) -- (Not supported by Neptune)
  • CloudwatchLogsExportConfiguration (dict) --

    The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB instance or DB cluster.

    • EnableLogTypes (list) --

      The list of log types to enable.

      • (string) --
    • DisableLogTypes (list) --

      The list of log types to disable.

      • (string) --
  • DeletionProtection (boolean) -- A value that indicates whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. See Deleting a DB Instance .
Return type

dict

Returns

Response Syntax

{
    'DBInstance': {
        'DBInstanceIdentifier': 'string',
        'DBInstanceClass': 'string',
        'Engine': 'string',
        'DBInstanceStatus': 'string',
        'MasterUsername': 'string',
        'DBName': 'string',
        'Endpoint': {
            'Address': 'string',
            'Port': 123,
            'HostedZoneId': 'string'
        },
        'AllocatedStorage': 123,
        'InstanceCreateTime': datetime(2015, 1, 1),
        'PreferredBackupWindow': 'string',
        'BackupRetentionPeriod': 123,
        'DBSecurityGroups': [
            {
                'DBSecurityGroupName': 'string',
                'Status': 'string'
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'DBParameterGroups': [
            {
                'DBParameterGroupName': 'string',
                'ParameterApplyStatus': 'string'
            },
        ],
        'AvailabilityZone': 'string',
        'DBSubnetGroup': {
            'DBSubnetGroupName': 'string',
            'DBSubnetGroupDescription': 'string',
            'VpcId': 'string',
            'SubnetGroupStatus': 'string',
            'Subnets': [
                {
                    'SubnetIdentifier': 'string',
                    'SubnetAvailabilityZone': {
                        'Name': 'string'
                    },
                    'SubnetStatus': 'string'
                },
            ],
            'DBSubnetGroupArn': 'string'
        },
        'PreferredMaintenanceWindow': 'string',
        'PendingModifiedValues': {
            'DBInstanceClass': 'string',
            'AllocatedStorage': 123,
            'MasterUserPassword': 'string',
            'Port': 123,
            'BackupRetentionPeriod': 123,
            'MultiAZ': True|False,
            'EngineVersion': 'string',
            'LicenseModel': 'string',
            'Iops': 123,
            'DBInstanceIdentifier': 'string',
            'StorageType': 'string',
            'CACertificateIdentifier': 'string',
            'DBSubnetGroupName': 'string',
            'PendingCloudwatchLogsExports': {
                'LogTypesToEnable': [
                    'string',
                ],
                'LogTypesToDisable': [
                    'string',
                ]
            }
        },
        'LatestRestorableTime': datetime(2015, 1, 1),
        'MultiAZ': True|False,
        'EngineVersion': 'string',
        'AutoMinorVersionUpgrade': True|False,
        'ReadReplicaSourceDBInstanceIdentifier': 'string',
        'ReadReplicaDBInstanceIdentifiers': [
            'string',
        ],
        'ReadReplicaDBClusterIdentifiers': [
            'string',
        ],
        'LicenseModel': 'string',
        'Iops': 123,
        'OptionGroupMemberships': [
            {
                'OptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'CharacterSetName': 'string',
        'SecondaryAvailabilityZone': 'string',
        'PubliclyAccessible': True|False,
        'StatusInfos': [
            {
                'StatusType': 'string',
                'Normal': True|False,
                'Status': 'string',
                'Message': 'string'
            },
        ],
        'StorageType': 'string',
        'TdeCredentialArn': 'string',
        'DbInstancePort': 123,
        'DBClusterIdentifier': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbiResourceId': 'string',
        'CACertificateIdentifier': 'string',
        'DomainMemberships': [
            {
                'Domain': 'string',
                'Status': 'string',
                'FQDN': 'string',
                'IAMRoleName': 'string'
            },
        ],
        'CopyTagsToSnapshot': True|False,
        'MonitoringInterval': 123,
        'EnhancedMonitoringResourceArn': 'string',
        'MonitoringRoleArn': 'string',
        'PromotionTier': 123,
        'DBInstanceArn': 'string',
        'Timezone': 'string',
        'IAMDatabaseAuthenticationEnabled': True|False,
        'PerformanceInsightsEnabled': True|False,
        'PerformanceInsightsKMSKeyId': 'string',
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False
    }
}

Response Structure

  • (dict) --

    • DBInstance (dict) --

      Contains the details of an Amazon Neptune DB instance.

      This data type is used as a response element in the DescribeDBInstances action.

      • DBInstanceIdentifier (string) --

        Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

      • DBInstanceClass (string) --

        Contains the name of the compute and memory capacity class of the DB instance.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB instance.

      • DBInstanceStatus (string) --

        Specifies the current state of this database.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBName (string) --

        The database name.

      • Endpoint (dict) --

        Specifies the connection endpoint.

        • Address (string) --

          Specifies the DNS address of the DB instance.

        • Port (integer) --

          Specifies the port that the database engine is listening on.

        • HostedZoneId (string) --

          Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • AllocatedStorage (integer) --

        Not supported by Neptune.

      • InstanceCreateTime (datetime) --

        Provides the date and time the DB instance was created.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • DBSecurityGroups (list) --

        Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

        • (dict) --

          Specifies membership in a designated DB security group.

          • DBSecurityGroupName (string) --

            The name of the DB security group.

          • Status (string) --

            The status of the DB security group.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security group elements that the DB instance belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • DBParameterGroups (list) --

        Provides the list of DB parameter groups applied to this DB instance.

        • (dict) --

          The status of the DB parameter group.

          This data type is used as a response element in the following actions:

          • CreateDBInstance
          • DeleteDBInstance
          • ModifyDBInstance
          • RebootDBInstance
          • DBParameterGroupName (string) --

            The name of the DP parameter group.

          • ParameterApplyStatus (string) --

            The status of parameter updates.

      • AvailabilityZone (string) --

        Specifies the name of the Availability Zone the DB instance is located in.

      • DBSubnetGroup (dict) --

        Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

        • DBSubnetGroupName (string) --

          The name of the DB subnet group.

        • DBSubnetGroupDescription (string) --

          Provides the description of the DB subnet group.

        • VpcId (string) --

          Provides the VpcId of the DB subnet group.

        • SubnetGroupStatus (string) --

          Provides the status of the DB subnet group.

        • Subnets (list) --

          Contains a list of Subnet elements.

          • (dict) --

            Specifies a subnet.

            This data type is used as a response element in the DescribeDBSubnetGroups action.

            • SubnetIdentifier (string) --

              Specifies the identifier of the subnet.

            • SubnetAvailabilityZone (dict) --

              Specifies the EC2 Availability Zone that the subnet is in.

              • Name (string) --

                The name of the availability zone.

            • SubnetStatus (string) --

              Specifies the status of the subnet.

        • DBSubnetGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB subnet group.

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • PendingModifiedValues (dict) --

        Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

        • DBInstanceClass (string) --

          Contains the new DBInstanceClass for the DB instance that will be applied or is currently being applied.

        • AllocatedStorage (integer) --

          Contains the new AllocatedStorage size for the DB instance that will be applied or is currently being applied.

        • MasterUserPassword (string) --

          Not supported by Neptune.

        • Port (integer) --

          Specifies the pending port for the DB instance.

        • BackupRetentionPeriod (integer) --

          Specifies the pending number of days for which automated backups are retained.

        • MultiAZ (boolean) --

          Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

        • EngineVersion (string) --

          Indicates the database engine version.

        • LicenseModel (string) --

          Not supported by Neptune.

        • Iops (integer) --

          Specifies the new Provisioned IOPS value for the DB instance that will be applied or is currently being applied.

        • DBInstanceIdentifier (string) --

          Contains the new DBInstanceIdentifier for the DB instance that will be applied or is currently being applied.

        • StorageType (string) --

          Specifies the storage type to be associated with the DB instance.

        • CACertificateIdentifier (string) --

          Specifies the identifier of the CA certificate for the DB instance.

        • DBSubnetGroupName (string) --

          The new DB subnet group for the DB instance.

        • PendingCloudwatchLogsExports (dict) --

          This PendingCloudwatchLogsExports structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.

          • LogTypesToEnable (list) --

            Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.

            • (string) --
          • LogTypesToDisable (list) --

            Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.

            • (string) --
      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • MultiAZ (boolean) --

        Specifies if the DB instance is a Multi-AZ deployment.

      • EngineVersion (string) --

        Indicates the database engine version.

      • AutoMinorVersionUpgrade (boolean) --

        Indicates that minor version patches are applied automatically.

      • ReadReplicaSourceDBInstanceIdentifier (string) --

        Contains the identifier of the source DB instance if this DB instance is a Read Replica.

      • ReadReplicaDBInstanceIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB instance.

        • (string) --
      • ReadReplicaDBClusterIdentifiers (list) --

        Contains one or more identifiers of DB clusters that are Read Replicas of this DB instance.

        • (string) --
      • LicenseModel (string) --

        License model information for this DB instance.

      • Iops (integer) --

        Specifies the Provisioned IOPS (I/O operations per second) value.

      • OptionGroupMemberships (list) --

        (Not supported by Neptune)

        • (dict) --

          Not supported by Neptune.

          • OptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • CharacterSetName (string) --

        (Not supported by Neptune)

      • SecondaryAvailabilityZone (string) --

        If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

      • PubliclyAccessible (boolean) --

        This flag should no longer be used.

      • StatusInfos (list) --

        The status of a Read Replica. If the instance is not a Read Replica, this is blank.

        • (dict) --

          Provides a list of status information for a DB instance.

          • StatusType (string) --

            This value is currently "read replication."

          • Normal (boolean) --

            Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

          • Status (string) --

            Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

          • Message (string) --

            Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

      • StorageType (string) --

        Specifies the storage type associated with DB instance.

      • TdeCredentialArn (string) --

        The ARN from the key store with which the instance is associated for TDE encryption.

      • DbInstancePort (integer) --

        Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

      • DBClusterIdentifier (string) --

        If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.

      • StorageEncrypted (boolean) --

        Not supported: The encryption for DB instances is managed by the DB cluster.

      • KmsKeyId (string) --

        Not supported: The encryption for DB instances is managed by the DB cluster.

      • DbiResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB instance. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB instance is accessed.

      • CACertificateIdentifier (string) --

        The identifier of the CA certificate for this DB instance.

      • DomainMemberships (list) --

        Not supported

        • (dict) --

          An Active Directory Domain membership record associated with a DB instance.

          • Domain (string) --

            The identifier of the Active Directory Domain.

          • Status (string) --

            The status of the DB instance's Active Directory Domain membership, such as joined, pending-join, failed etc).

          • FQDN (string) --

            The fully qualified domain name of the Active Directory Domain.

          • IAMRoleName (string) --

            The name of the IAM role to be used when making API calls to the Directory Service.

      • CopyTagsToSnapshot (boolean) --

        Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

      • MonitoringInterval (integer) --

        The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

      • EnhancedMonitoringResourceArn (string) --

        The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.

      • MonitoringRoleArn (string) --

        The ARN for the IAM role that permits Neptune to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.

      • PromotionTier (integer) --

        A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • DBInstanceArn (string) --

        The Amazon Resource Name (ARN) for the DB instance.

      • Timezone (string) --

        Not supported.

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if Amazon Identity and Access Management (IAM) authentication is enabled, and otherwise false.

      • PerformanceInsightsEnabled (boolean) --

        (Not supported by Neptune)

      • PerformanceInsightsKMSKeyId (string) --

        (Not supported by Neptune)

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB instance is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB instance has deletion protection enabled. The instance can't be deleted when deletion protection is enabled. See Deleting a DB Instance .

Exceptions

  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
  • Neptune.Client.exceptions.InvalidDBSecurityGroupStateFault
  • Neptune.Client.exceptions.DBInstanceAlreadyExistsFault
  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.DBSecurityGroupNotFoundFault
  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
  • Neptune.Client.exceptions.InsufficientDBInstanceCapacityFault
  • Neptune.Client.exceptions.StorageQuotaExceededFault
  • Neptune.Client.exceptions.InvalidVPCNetworkStateFault
  • Neptune.Client.exceptions.ProvisionedIopsNotAvailableInAZFault
  • Neptune.Client.exceptions.OptionGroupNotFoundFault
  • Neptune.Client.exceptions.DBUpgradeDependencyFailureFault
  • Neptune.Client.exceptions.StorageTypeNotSupportedFault
  • Neptune.Client.exceptions.AuthorizationNotFoundFault
  • Neptune.Client.exceptions.CertificateNotFoundFault
  • Neptune.Client.exceptions.DomainNotFoundFault
modify_db_parameter_group(**kwargs)

Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: ParameterName , ParameterValue , and ApplyMethod . A maximum of 20 parameters can be modified in a single request.

Note

Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB instance associated with the parameter group before the change can take effect.

Warning

After you modify a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon Neptune to fully complete the modify action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon Neptune console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

See also: AWS API Documentation

Request Syntax

response = client.modify_db_parameter_group(
    DBParameterGroupName='string',
    Parameters=[
        {
            'ParameterName': 'string',
            'ParameterValue': 'string',
            'Description': 'string',
            'Source': 'string',
            'ApplyType': 'string',
            'DataType': 'string',
            'AllowedValues': 'string',
            'IsModifiable': True|False,
            'MinimumEngineVersion': 'string',
            'ApplyMethod': 'immediate'|'pending-reboot'
        },
    ]
)
Parameters
  • DBParameterGroupName (string) --

    [REQUIRED]

    The name of the DB parameter group.

    Constraints:

    • If supplied, must match the name of an existing DBParameterGroup.
  • Parameters (list) --

    [REQUIRED]

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters can be modified in a single request.

    Valid Values (for the application method): immediate | pending-reboot

    Note

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when you reboot the DB instance without failover.

    • (dict) --

      Specifies a parameter.

      • ParameterName (string) --

        Specifies the name of the parameter.

      • ParameterValue (string) --

        Specifies the value of the parameter.

      • Description (string) --

        Provides a description of the parameter.

      • Source (string) --

        Indicates the source of the parameter value.

      • ApplyType (string) --

        Specifies the engine specific parameters type.

      • DataType (string) --

        Specifies the valid data type for the parameter.

      • AllowedValues (string) --

        Specifies the valid range of values for the parameter.

      • IsModifiable (boolean) --

        Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

      • MinimumEngineVersion (string) --

        The earliest engine version to which the parameter can apply.

      • ApplyMethod (string) --

        Indicates when to apply parameter updates.

Return type

dict

Returns

Response Syntax

{
    'DBParameterGroupName': 'string'
}

Response Structure

  • (dict) --

    • DBParameterGroupName (string) --

      Provides the name of the DB parameter group.

Exceptions

  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
  • Neptune.Client.exceptions.InvalidDBParameterGroupStateFault
modify_db_subnet_group(**kwargs)

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Region.

See also: AWS API Documentation

Request Syntax

response = client.modify_db_subnet_group(
    DBSubnetGroupName='string',
    DBSubnetGroupDescription='string',
    SubnetIds=[
        'string',
    ]
)
Parameters
  • DBSubnetGroupName (string) --

    [REQUIRED]

    The name for the DB subnet group. This value is stored as a lowercase string. You can't modify the default subnet group.

    Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

    Example: mySubnetgroup

  • DBSubnetGroupDescription (string) -- The description for the DB subnet group.
  • SubnetIds (list) --

    [REQUIRED]

    The EC2 subnet IDs for the DB subnet group.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'DBSubnetGroup': {
        'DBSubnetGroupName': 'string',
        'DBSubnetGroupDescription': 'string',
        'VpcId': 'string',
        'SubnetGroupStatus': 'string',
        'Subnets': [
            {
                'SubnetIdentifier': 'string',
                'SubnetAvailabilityZone': {
                    'Name': 'string'
                },
                'SubnetStatus': 'string'
            },
        ],
        'DBSubnetGroupArn': 'string'
    }
}

Response Structure

  • (dict) --

    • DBSubnetGroup (dict) --

      Contains the details of an Amazon Neptune DB subnet group.

      This data type is used as a response element in the DescribeDBSubnetGroups action.

      • DBSubnetGroupName (string) --

        The name of the DB subnet group.

      • DBSubnetGroupDescription (string) --

        Provides the description of the DB subnet group.

      • VpcId (string) --

        Provides the VpcId of the DB subnet group.

      • SubnetGroupStatus (string) --

        Provides the status of the DB subnet group.

      • Subnets (list) --

        Contains a list of Subnet elements.

        • (dict) --

          Specifies a subnet.

          This data type is used as a response element in the DescribeDBSubnetGroups action.

          • SubnetIdentifier (string) --

            Specifies the identifier of the subnet.

          • SubnetAvailabilityZone (dict) --

            Specifies the EC2 Availability Zone that the subnet is in.

            • Name (string) --

              The name of the availability zone.

          • SubnetStatus (string) --

            Specifies the status of the subnet.

      • DBSubnetGroupArn (string) --

        The Amazon Resource Name (ARN) for the DB subnet group.

Exceptions

  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
  • Neptune.Client.exceptions.DBSubnetQuotaExceededFault
  • Neptune.Client.exceptions.SubnetAlreadyInUse
  • Neptune.Client.exceptions.DBSubnetGroupDoesNotCoverEnoughAZs
  • Neptune.Client.exceptions.InvalidSubnet
modify_event_subscription(**kwargs)

Modifies an existing event notification subscription. Note that you can't modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType by using the DescribeEventCategories action.

See also: AWS API Documentation

Request Syntax

response = client.modify_event_subscription(
    SubscriptionName='string',
    SnsTopicArn='string',
    SourceType='string',
    EventCategories=[
        'string',
    ],
    Enabled=True|False
)
Parameters
  • SubscriptionName (string) --

    [REQUIRED]

    The name of the event notification subscription.

  • SnsTopicArn (string) -- The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
  • SourceType (string) --

    The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

  • EventCategories (list) --

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType by using the DescribeEventCategories action.

    • (string) --
  • Enabled (boolean) -- A Boolean value; set to true to activate the subscription.
Return type

dict

Returns

Response Syntax

{
    'EventSubscription': {
        'CustomerAwsId': 'string',
        'CustSubscriptionId': 'string',
        'SnsTopicArn': 'string',
        'Status': 'string',
        'SubscriptionCreationTime': 'string',
        'SourceType': 'string',
        'SourceIdsList': [
            'string',
        ],
        'EventCategoriesList': [
            'string',
        ],
        'Enabled': True|False,
        'EventSubscriptionArn': 'string'
    }
}

Response Structure

  • (dict) --

    • EventSubscription (dict) --

      Contains the results of a successful invocation of the DescribeEventSubscriptions action.

      • CustomerAwsId (string) --

        The Amazon customer account associated with the event notification subscription.

      • CustSubscriptionId (string) --

        The event notification subscription Id.

      • SnsTopicArn (string) --

        The topic ARN of the event notification subscription.

      • Status (string) --

        The status of the event notification subscription.

        Constraints:

        Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

        The status "no-permission" indicates that Neptune no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.

      • SubscriptionCreationTime (string) --

        The time the event notification subscription was created.

      • SourceType (string) --

        The source type for the event notification subscription.

      • SourceIdsList (list) --

        A list of source IDs for the event notification subscription.

        • (string) --
      • EventCategoriesList (list) --

        A list of event categories for the event notification subscription.

        • (string) --
      • Enabled (boolean) --

        A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

      • EventSubscriptionArn (string) --

        The Amazon Resource Name (ARN) for the event subscription.

Exceptions

  • Neptune.Client.exceptions.EventSubscriptionQuotaExceededFault
  • Neptune.Client.exceptions.SubscriptionNotFoundFault
  • Neptune.Client.exceptions.SNSInvalidTopicFault
  • Neptune.Client.exceptions.SNSNoAuthorizationFault
  • Neptune.Client.exceptions.SNSTopicArnNotFoundFault
  • Neptune.Client.exceptions.SubscriptionCategoryNotFoundFault
promote_read_replica_db_cluster(**kwargs)

Not supported.

See also: AWS API Documentation

Request Syntax

response = client.promote_read_replica_db_cluster(
    DBClusterIdentifier='string'
)
Parameters
DBClusterIdentifier (string) --

[REQUIRED]

Not supported.

Return type
dict
Returns
Response Syntax
{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --
    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --
        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.
      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --
        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.
      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
reboot_db_instance(**kwargs)

You might need to reboot your DB instance, usually for maintenance reasons. For example, if you make certain modifications, or if you change the DB parameter group associated with the DB instance, you must reboot the instance for the changes to take effect.

Rebooting a DB instance restarts the database engine service. Rebooting a DB instance results in a momentary outage, during which the DB instance status is set to rebooting.

See also: AWS API Documentation

Request Syntax

response = client.reboot_db_instance(
    DBInstanceIdentifier='string',
    ForceFailover=True|False
)
Parameters
  • DBInstanceIdentifier (string) --

    [REQUIRED]

    The DB instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must match the identifier of an existing DBInstance.
  • ForceFailover (boolean) --

    When true , the reboot is conducted through a MultiAZ failover.

    Constraint: You can't specify true if the instance is not configured for MultiAZ.

Return type

dict

Returns

Response Syntax

{
    'DBInstance': {
        'DBInstanceIdentifier': 'string',
        'DBInstanceClass': 'string',
        'Engine': 'string',
        'DBInstanceStatus': 'string',
        'MasterUsername': 'string',
        'DBName': 'string',
        'Endpoint': {
            'Address': 'string',
            'Port': 123,
            'HostedZoneId': 'string'
        },
        'AllocatedStorage': 123,
        'InstanceCreateTime': datetime(2015, 1, 1),
        'PreferredBackupWindow': 'string',
        'BackupRetentionPeriod': 123,
        'DBSecurityGroups': [
            {
                'DBSecurityGroupName': 'string',
                'Status': 'string'
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'DBParameterGroups': [
            {
                'DBParameterGroupName': 'string',
                'ParameterApplyStatus': 'string'
            },
        ],
        'AvailabilityZone': 'string',
        'DBSubnetGroup': {
            'DBSubnetGroupName': 'string',
            'DBSubnetGroupDescription': 'string',
            'VpcId': 'string',
            'SubnetGroupStatus': 'string',
            'Subnets': [
                {
                    'SubnetIdentifier': 'string',
                    'SubnetAvailabilityZone': {
                        'Name': 'string'
                    },
                    'SubnetStatus': 'string'
                },
            ],
            'DBSubnetGroupArn': 'string'
        },
        'PreferredMaintenanceWindow': 'string',
        'PendingModifiedValues': {
            'DBInstanceClass': 'string',
            'AllocatedStorage': 123,
            'MasterUserPassword': 'string',
            'Port': 123,
            'BackupRetentionPeriod': 123,
            'MultiAZ': True|False,
            'EngineVersion': 'string',
            'LicenseModel': 'string',
            'Iops': 123,
            'DBInstanceIdentifier': 'string',
            'StorageType': 'string',
            'CACertificateIdentifier': 'string',
            'DBSubnetGroupName': 'string',
            'PendingCloudwatchLogsExports': {
                'LogTypesToEnable': [
                    'string',
                ],
                'LogTypesToDisable': [
                    'string',
                ]
            }
        },
        'LatestRestorableTime': datetime(2015, 1, 1),
        'MultiAZ': True|False,
        'EngineVersion': 'string',
        'AutoMinorVersionUpgrade': True|False,
        'ReadReplicaSourceDBInstanceIdentifier': 'string',
        'ReadReplicaDBInstanceIdentifiers': [
            'string',
        ],
        'ReadReplicaDBClusterIdentifiers': [
            'string',
        ],
        'LicenseModel': 'string',
        'Iops': 123,
        'OptionGroupMemberships': [
            {
                'OptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'CharacterSetName': 'string',
        'SecondaryAvailabilityZone': 'string',
        'PubliclyAccessible': True|False,
        'StatusInfos': [
            {
                'StatusType': 'string',
                'Normal': True|False,
                'Status': 'string',
                'Message': 'string'
            },
        ],
        'StorageType': 'string',
        'TdeCredentialArn': 'string',
        'DbInstancePort': 123,
        'DBClusterIdentifier': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbiResourceId': 'string',
        'CACertificateIdentifier': 'string',
        'DomainMemberships': [
            {
                'Domain': 'string',
                'Status': 'string',
                'FQDN': 'string',
                'IAMRoleName': 'string'
            },
        ],
        'CopyTagsToSnapshot': True|False,
        'MonitoringInterval': 123,
        'EnhancedMonitoringResourceArn': 'string',
        'MonitoringRoleArn': 'string',
        'PromotionTier': 123,
        'DBInstanceArn': 'string',
        'Timezone': 'string',
        'IAMDatabaseAuthenticationEnabled': True|False,
        'PerformanceInsightsEnabled': True|False,
        'PerformanceInsightsKMSKeyId': 'string',
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False
    }
}

Response Structure

  • (dict) --

    • DBInstance (dict) --

      Contains the details of an Amazon Neptune DB instance.

      This data type is used as a response element in the DescribeDBInstances action.

      • DBInstanceIdentifier (string) --

        Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

      • DBInstanceClass (string) --

        Contains the name of the compute and memory capacity class of the DB instance.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB instance.

      • DBInstanceStatus (string) --

        Specifies the current state of this database.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBName (string) --

        The database name.

      • Endpoint (dict) --

        Specifies the connection endpoint.

        • Address (string) --

          Specifies the DNS address of the DB instance.

        • Port (integer) --

          Specifies the port that the database engine is listening on.

        • HostedZoneId (string) --

          Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • AllocatedStorage (integer) --

        Not supported by Neptune.

      • InstanceCreateTime (datetime) --

        Provides the date and time the DB instance was created.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • DBSecurityGroups (list) --

        Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

        • (dict) --

          Specifies membership in a designated DB security group.

          • DBSecurityGroupName (string) --

            The name of the DB security group.

          • Status (string) --

            The status of the DB security group.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security group elements that the DB instance belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • DBParameterGroups (list) --

        Provides the list of DB parameter groups applied to this DB instance.

        • (dict) --

          The status of the DB parameter group.

          This data type is used as a response element in the following actions:

          • CreateDBInstance
          • DeleteDBInstance
          • ModifyDBInstance
          • RebootDBInstance
          • DBParameterGroupName (string) --

            The name of the DP parameter group.

          • ParameterApplyStatus (string) --

            The status of parameter updates.

      • AvailabilityZone (string) --

        Specifies the name of the Availability Zone the DB instance is located in.

      • DBSubnetGroup (dict) --

        Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

        • DBSubnetGroupName (string) --

          The name of the DB subnet group.

        • DBSubnetGroupDescription (string) --

          Provides the description of the DB subnet group.

        • VpcId (string) --

          Provides the VpcId of the DB subnet group.

        • SubnetGroupStatus (string) --

          Provides the status of the DB subnet group.

        • Subnets (list) --

          Contains a list of Subnet elements.

          • (dict) --

            Specifies a subnet.

            This data type is used as a response element in the DescribeDBSubnetGroups action.

            • SubnetIdentifier (string) --

              Specifies the identifier of the subnet.

            • SubnetAvailabilityZone (dict) --

              Specifies the EC2 Availability Zone that the subnet is in.

              • Name (string) --

                The name of the availability zone.

            • SubnetStatus (string) --

              Specifies the status of the subnet.

        • DBSubnetGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB subnet group.

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • PendingModifiedValues (dict) --

        Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

        • DBInstanceClass (string) --

          Contains the new DBInstanceClass for the DB instance that will be applied or is currently being applied.

        • AllocatedStorage (integer) --

          Contains the new AllocatedStorage size for the DB instance that will be applied or is currently being applied.

        • MasterUserPassword (string) --

          Not supported by Neptune.

        • Port (integer) --

          Specifies the pending port for the DB instance.

        • BackupRetentionPeriod (integer) --

          Specifies the pending number of days for which automated backups are retained.

        • MultiAZ (boolean) --

          Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

        • EngineVersion (string) --

          Indicates the database engine version.

        • LicenseModel (string) --

          Not supported by Neptune.

        • Iops (integer) --

          Specifies the new Provisioned IOPS value for the DB instance that will be applied or is currently being applied.

        • DBInstanceIdentifier (string) --

          Contains the new DBInstanceIdentifier for the DB instance that will be applied or is currently being applied.

        • StorageType (string) --

          Specifies the storage type to be associated with the DB instance.

        • CACertificateIdentifier (string) --

          Specifies the identifier of the CA certificate for the DB instance.

        • DBSubnetGroupName (string) --

          The new DB subnet group for the DB instance.

        • PendingCloudwatchLogsExports (dict) --

          This PendingCloudwatchLogsExports structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.

          • LogTypesToEnable (list) --

            Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.

            • (string) --
          • LogTypesToDisable (list) --

            Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.

            • (string) --
      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • MultiAZ (boolean) --

        Specifies if the DB instance is a Multi-AZ deployment.

      • EngineVersion (string) --

        Indicates the database engine version.

      • AutoMinorVersionUpgrade (boolean) --

        Indicates that minor version patches are applied automatically.

      • ReadReplicaSourceDBInstanceIdentifier (string) --

        Contains the identifier of the source DB instance if this DB instance is a Read Replica.

      • ReadReplicaDBInstanceIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB instance.

        • (string) --
      • ReadReplicaDBClusterIdentifiers (list) --

        Contains one or more identifiers of DB clusters that are Read Replicas of this DB instance.

        • (string) --
      • LicenseModel (string) --

        License model information for this DB instance.

      • Iops (integer) --

        Specifies the Provisioned IOPS (I/O operations per second) value.

      • OptionGroupMemberships (list) --

        (Not supported by Neptune)

        • (dict) --

          Not supported by Neptune.

          • OptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • CharacterSetName (string) --

        (Not supported by Neptune)

      • SecondaryAvailabilityZone (string) --

        If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

      • PubliclyAccessible (boolean) --

        This flag should no longer be used.

      • StatusInfos (list) --

        The status of a Read Replica. If the instance is not a Read Replica, this is blank.

        • (dict) --

          Provides a list of status information for a DB instance.

          • StatusType (string) --

            This value is currently "read replication."

          • Normal (boolean) --

            Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

          • Status (string) --

            Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

          • Message (string) --

            Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

      • StorageType (string) --

        Specifies the storage type associated with DB instance.

      • TdeCredentialArn (string) --

        The ARN from the key store with which the instance is associated for TDE encryption.

      • DbInstancePort (integer) --

        Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

      • DBClusterIdentifier (string) --

        If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.

      • StorageEncrypted (boolean) --

        Not supported: The encryption for DB instances is managed by the DB cluster.

      • KmsKeyId (string) --

        Not supported: The encryption for DB instances is managed by the DB cluster.

      • DbiResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB instance. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB instance is accessed.

      • CACertificateIdentifier (string) --

        The identifier of the CA certificate for this DB instance.

      • DomainMemberships (list) --

        Not supported

        • (dict) --

          An Active Directory Domain membership record associated with a DB instance.

          • Domain (string) --

            The identifier of the Active Directory Domain.

          • Status (string) --

            The status of the DB instance's Active Directory Domain membership, such as joined, pending-join, failed etc).

          • FQDN (string) --

            The fully qualified domain name of the Active Directory Domain.

          • IAMRoleName (string) --

            The name of the IAM role to be used when making API calls to the Directory Service.

      • CopyTagsToSnapshot (boolean) --

        Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

      • MonitoringInterval (integer) --

        The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

      • EnhancedMonitoringResourceArn (string) --

        The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.

      • MonitoringRoleArn (string) --

        The ARN for the IAM role that permits Neptune to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.

      • PromotionTier (integer) --

        A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • DBInstanceArn (string) --

        The Amazon Resource Name (ARN) for the DB instance.

      • Timezone (string) --

        Not supported.

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if Amazon Identity and Access Management (IAM) authentication is enabled, and otherwise false.

      • PerformanceInsightsEnabled (boolean) --

        (Not supported by Neptune)

      • PerformanceInsightsKMSKeyId (string) --

        (Not supported by Neptune)

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB instance is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB instance has deletion protection enabled. The instance can't be deleted when deletion protection is enabled. See Deleting a DB Instance .

Exceptions

  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
  • Neptune.Client.exceptions.DBInstanceNotFoundFault
remove_role_from_db_cluster(**kwargs)

Disassociates an Identity and Access Management (IAM) role from a DB cluster.

See also: AWS API Documentation

Request Syntax

response = client.remove_role_from_db_cluster(
    DBClusterIdentifier='string',
    RoleArn='string',
    FeatureName='string'
)
Parameters
  • DBClusterIdentifier (string) --

    [REQUIRED]

    The name of the DB cluster to disassociate the IAM role from.

  • RoleArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB cluster, for example arn:aws:iam::123456789012:role/NeptuneAccessRole .

  • FeatureName (string) -- The name of the feature for the DB cluster that the IAM role is to be disassociated from. For the list of supported feature names, see DBEngineVersion .
Returns

None

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.DBClusterRoleNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
remove_source_identifier_from_subscription(**kwargs)

Removes a source identifier from an existing event notification subscription.

See also: AWS API Documentation

Request Syntax

response = client.remove_source_identifier_from_subscription(
    SubscriptionName='string',
    SourceIdentifier='string'
)
Parameters
  • SubscriptionName (string) --

    [REQUIRED]

    The name of the event notification subscription you want to remove a source identifier from.

  • SourceIdentifier (string) --

    [REQUIRED]

    The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

Return type

dict

Returns

Response Syntax

{
    'EventSubscription': {
        'CustomerAwsId': 'string',
        'CustSubscriptionId': 'string',
        'SnsTopicArn': 'string',
        'Status': 'string',
        'SubscriptionCreationTime': 'string',
        'SourceType': 'string',
        'SourceIdsList': [
            'string',
        ],
        'EventCategoriesList': [
            'string',
        ],
        'Enabled': True|False,
        'EventSubscriptionArn': 'string'
    }
}

Response Structure

  • (dict) --

    • EventSubscription (dict) --

      Contains the results of a successful invocation of the DescribeEventSubscriptions action.

      • CustomerAwsId (string) --

        The Amazon customer account associated with the event notification subscription.

      • CustSubscriptionId (string) --

        The event notification subscription Id.

      • SnsTopicArn (string) --

        The topic ARN of the event notification subscription.

      • Status (string) --

        The status of the event notification subscription.

        Constraints:

        Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

        The status "no-permission" indicates that Neptune no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.

      • SubscriptionCreationTime (string) --

        The time the event notification subscription was created.

      • SourceType (string) --

        The source type for the event notification subscription.

      • SourceIdsList (list) --

        A list of source IDs for the event notification subscription.

        • (string) --
      • EventCategoriesList (list) --

        A list of event categories for the event notification subscription.

        • (string) --
      • Enabled (boolean) --

        A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

      • EventSubscriptionArn (string) --

        The Amazon Resource Name (ARN) for the event subscription.

Exceptions

  • Neptune.Client.exceptions.SubscriptionNotFoundFault
  • Neptune.Client.exceptions.SourceNotFoundFault
remove_tags_from_resource(**kwargs)

Removes metadata tags from an Amazon Neptune resource.

See also: AWS API Documentation

Request Syntax

response = client.remove_tags_from_resource(
    ResourceName='string',
    TagKeys=[
        'string',
    ]
)
Parameters
  • ResourceName (string) --

    [REQUIRED]

    The Amazon Neptune resource that the tags are removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) .

  • TagKeys (list) --

    [REQUIRED]

    The tag key (name) of the tag to be removed.

    • (string) --
Returns

None

Exceptions

  • Neptune.Client.exceptions.DBInstanceNotFoundFault
  • Neptune.Client.exceptions.DBSnapshotNotFoundFault
  • Neptune.Client.exceptions.DBClusterNotFoundFault
reset_db_cluster_parameter_group(**kwargs)

Modifies the parameters of a DB cluster parameter group to the default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod . To reset the entire DB cluster parameter group, specify the DBClusterParameterGroupName and ResetAllParameters parameters.

When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request. You must call RebootDBInstance for every DB instance in your DB cluster that you want the updated static parameter to apply to.

See also: AWS API Documentation

Request Syntax

response = client.reset_db_cluster_parameter_group(
    DBClusterParameterGroupName='string',
    ResetAllParameters=True|False,
    Parameters=[
        {
            'ParameterName': 'string',
            'ParameterValue': 'string',
            'Description': 'string',
            'Source': 'string',
            'ApplyType': 'string',
            'DataType': 'string',
            'AllowedValues': 'string',
            'IsModifiable': True|False,
            'MinimumEngineVersion': 'string',
            'ApplyMethod': 'immediate'|'pending-reboot'
        },
    ]
)
Parameters
  • DBClusterParameterGroupName (string) --

    [REQUIRED]

    The name of the DB cluster parameter group to reset.

  • ResetAllParameters (boolean) -- A value that is set to true to reset all parameters in the DB cluster parameter group to their default values, and false otherwise. You can't use this parameter if there is a list of parameter names specified for the Parameters parameter.
  • Parameters (list) --

    A list of parameter names in the DB cluster parameter group to reset to the default values. You can't use this parameter if the ResetAllParameters parameter is set to true .

    • (dict) --

      Specifies a parameter.

      • ParameterName (string) --

        Specifies the name of the parameter.

      • ParameterValue (string) --

        Specifies the value of the parameter.

      • Description (string) --

        Provides a description of the parameter.

      • Source (string) --

        Indicates the source of the parameter value.

      • ApplyType (string) --

        Specifies the engine specific parameters type.

      • DataType (string) --

        Specifies the valid data type for the parameter.

      • AllowedValues (string) --

        Specifies the valid range of values for the parameter.

      • IsModifiable (boolean) --

        Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

      • MinimumEngineVersion (string) --

        The earliest engine version to which the parameter can apply.

      • ApplyMethod (string) --

        Indicates when to apply parameter updates.

Return type

dict

Returns

Response Syntax

{
    'DBClusterParameterGroupName': 'string'
}

Response Structure

  • (dict) --

    • DBClusterParameterGroupName (string) --

      The name of the DB cluster parameter group.

      Constraints:

      • Must be 1 to 255 letters or numbers.
      • First character must be a letter
      • Cannot end with a hyphen or contain two consecutive hyphens

      Note

      This value is stored as a lowercase string.

Exceptions

  • Neptune.Client.exceptions.InvalidDBParameterGroupStateFault
  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
reset_db_parameter_group(**kwargs)

Modifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters, provide a list of the following: ParameterName and ApplyMethod . To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

See also: AWS API Documentation

Request Syntax

response = client.reset_db_parameter_group(
    DBParameterGroupName='string',
    ResetAllParameters=True|False,
    Parameters=[
        {
            'ParameterName': 'string',
            'ParameterValue': 'string',
            'Description': 'string',
            'Source': 'string',
            'ApplyType': 'string',
            'DataType': 'string',
            'AllowedValues': 'string',
            'IsModifiable': True|False,
            'MinimumEngineVersion': 'string',
            'ApplyMethod': 'immediate'|'pending-reboot'
        },
    ]
)
Parameters
  • DBParameterGroupName (string) --

    [REQUIRED]

    The name of the DB parameter group.

    Constraints:

    • Must match the name of an existing DBParameterGroup.
  • ResetAllParameters (boolean) --

    Specifies whether (true ) or not (false ) to reset all parameters in the DB parameter group to default values.

    Default: true

  • Parameters (list) --

    To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. To reset specific parameters, provide a list of the following: ParameterName and ApplyMethod . A maximum of 20 parameters can be modified in a single request.

    Valid Values (for Apply method): pending-reboot

    • (dict) --

      Specifies a parameter.

      • ParameterName (string) --

        Specifies the name of the parameter.

      • ParameterValue (string) --

        Specifies the value of the parameter.

      • Description (string) --

        Provides a description of the parameter.

      • Source (string) --

        Indicates the source of the parameter value.

      • ApplyType (string) --

        Specifies the engine specific parameters type.

      • DataType (string) --

        Specifies the valid data type for the parameter.

      • AllowedValues (string) --

        Specifies the valid range of values for the parameter.

      • IsModifiable (boolean) --

        Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

      • MinimumEngineVersion (string) --

        The earliest engine version to which the parameter can apply.

      • ApplyMethod (string) --

        Indicates when to apply parameter updates.

Return type

dict

Returns

Response Syntax

{
    'DBParameterGroupName': 'string'
}

Response Structure

  • (dict) --

    • DBParameterGroupName (string) --

      Provides the name of the DB parameter group.

Exceptions

  • Neptune.Client.exceptions.InvalidDBParameterGroupStateFault
  • Neptune.Client.exceptions.DBParameterGroupNotFoundFault
restore_db_cluster_from_snapshot(**kwargs)

Creates a new DB cluster from a DB snapshot or DB cluster snapshot.

If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.

If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

See also: AWS API Documentation

Request Syntax

response = client.restore_db_cluster_from_snapshot(
    AvailabilityZones=[
        'string',
    ],
    DBClusterIdentifier='string',
    SnapshotIdentifier='string',
    Engine='string',
    EngineVersion='string',
    Port=123,
    DBSubnetGroupName='string',
    DatabaseName='string',
    OptionGroupName='string',
    VpcSecurityGroupIds=[
        'string',
    ],
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    KmsKeyId='string',
    EnableIAMDatabaseAuthentication=True|False,
    EnableCloudwatchLogsExports=[
        'string',
    ],
    DBClusterParameterGroupName='string',
    DeletionProtection=True|False,
    CopyTagsToSnapshot=True|False
)
Parameters
  • AvailabilityZones (list) --

    Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.

    • (string) --
  • DBClusterIdentifier (string) --

    [REQUIRED]

    The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't case-sensitive.

    Constraints:

    • Must contain from 1 to 63 letters, numbers, or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

  • SnapshotIdentifier (string) --

    [REQUIRED]

    The identifier for the DB snapshot or DB cluster snapshot to restore from.

    You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot.

    Constraints:

    • Must match the identifier of an existing Snapshot.
  • Engine (string) --

    [REQUIRED]

    The database engine to use for the new DB cluster.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

  • EngineVersion (string) -- The version of the database engine to use for the new DB cluster.
  • Port (integer) --

    The port number on which the new DB cluster accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB cluster.

  • DBSubnetGroupName (string) --

    The name of the DB subnet group to use for the new DB cluster.

    Constraints: If supplied, must match the name of an existing DBSubnetGroup.

    Example: mySubnetgroup

  • DatabaseName (string) -- Not supported.
  • OptionGroupName (string) -- (Not supported by Neptune)
  • VpcSecurityGroupIds (list) --

    A list of VPC security groups that the new DB cluster will belong to.

    • (string) --
  • Tags (list) --

    The tags to be assigned to the restored DB cluster.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

  • KmsKeyId (string) --

    The Amazon KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster snapshot.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

    If you do not specify a value for the KmsKeyId parameter, then the following will occur:

    • If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster snapshot.
    • If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is not encrypted, then the restored DB cluster is not encrypted.
  • EnableIAMDatabaseAuthentication (boolean) --

    True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

    Default: false

  • EnableCloudwatchLogsExports (list) --

    The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs.

    • (string) --
  • DBClusterParameterGroupName (string) --

    The name of the DB cluster parameter group to associate with the new DB cluster.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • DeletionProtection (boolean) -- A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.
  • CopyTagsToSnapshot (boolean) -- If set to ``true`` , tags are copied to any snapshot of the restored DB cluster that is created.
Return type

dict

Returns

Response Syntax

{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --

        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --

        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterAlreadyExistsFault
  • Neptune.Client.exceptions.DBClusterQuotaExceededFault
  • Neptune.Client.exceptions.StorageQuotaExceededFault
  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
  • Neptune.Client.exceptions.DBSnapshotNotFoundFault
  • Neptune.Client.exceptions.DBClusterSnapshotNotFoundFault
  • Neptune.Client.exceptions.InsufficientDBClusterCapacityFault
  • Neptune.Client.exceptions.InsufficientStorageClusterCapacityFault
  • Neptune.Client.exceptions.InvalidDBSnapshotStateFault
  • Neptune.Client.exceptions.InvalidDBClusterSnapshotStateFault
  • Neptune.Client.exceptions.StorageQuotaExceededFault
  • Neptune.Client.exceptions.InvalidVPCNetworkStateFault
  • Neptune.Client.exceptions.InvalidRestoreFault
  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
  • Neptune.Client.exceptions.InvalidSubnet
  • Neptune.Client.exceptions.OptionGroupNotFoundFault
  • Neptune.Client.exceptions.KMSKeyNotAccessibleFault
  • Neptune.Client.exceptions.DBClusterParameterGroupNotFoundFault
restore_db_cluster_to_point_in_time(**kwargs)

Restores a DB cluster to an arbitrary point in time. Users can restore to any point in time before LatestRestorableTime for up to BackupRetentionPeriod days. The target DB cluster is created from the source DB cluster with the same configuration as the original DB cluster, except that the new DB cluster is created with the default DB security group.

Note

This action only restores the DB cluster, not the DB instances for that DB cluster. You must invoke the CreateDBInstance action to create DB instances for the restored DB cluster, specifying the identifier of the restored DB cluster in DBClusterIdentifier . You can create DB instances only after the RestoreDBClusterToPointInTime action has completed and the DB cluster is available.

See also: AWS API Documentation

Request Syntax

response = client.restore_db_cluster_to_point_in_time(
    DBClusterIdentifier='string',
    RestoreType='string',
    SourceDBClusterIdentifier='string',
    RestoreToTime=datetime(2015, 1, 1),
    UseLatestRestorableTime=True|False,
    Port=123,
    DBSubnetGroupName='string',
    OptionGroupName='string',
    VpcSecurityGroupIds=[
        'string',
    ],
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    KmsKeyId='string',
    EnableIAMDatabaseAuthentication=True|False,
    EnableCloudwatchLogsExports=[
        'string',
    ],
    DBClusterParameterGroupName='string',
    DeletionProtection=True|False
)
Parameters
  • DBClusterIdentifier (string) --

    [REQUIRED]

    The name of the new DB cluster to be created.

    Constraints:

    • Must contain from 1 to 63 letters, numbers, or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
  • RestoreType (string) --

    The type of restore to be performed. You can specify one of the following values:

    • full-copy - The new DB cluster is restored as a full copy of the source DB cluster.
    • copy-on-write - The new DB cluster is restored as a clone of the source DB cluster.

    If you don't specify a RestoreType value, then the new DB cluster is restored as a full copy of the source DB cluster.

  • SourceDBClusterIdentifier (string) --

    [REQUIRED]

    The identifier of the source DB cluster from which to restore.

    Constraints:

    • Must match the identifier of an existing DBCluster.
  • RestoreToTime (datetime) --

    The date and time to restore the DB cluster to.

    Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

    Constraints:

    • Must be before the latest restorable time for the DB instance
    • Must be specified if UseLatestRestorableTime parameter is not provided
    • Cannot be specified if UseLatestRestorableTime parameter is true
    • Cannot be specified if RestoreType parameter is copy-on-write

    Example: 2015-03-07T23:45:00Z

  • UseLatestRestorableTime (boolean) --

    A value that is set to true to restore the DB cluster to the latest restorable backup time, and false otherwise.

    Default: false

    Constraints: Cannot be specified if RestoreToTime parameter is provided.

  • Port (integer) --

    The port number on which the new DB cluster accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB cluster.

  • DBSubnetGroupName (string) --

    The DB subnet group name to use for the new DB cluster.

    Constraints: If supplied, must match the name of an existing DBSubnetGroup.

    Example: mySubnetgroup

  • OptionGroupName (string) -- (Not supported by Neptune)
  • VpcSecurityGroupIds (list) --

    A list of VPC security groups that the new DB cluster belongs to.

    • (string) --
  • Tags (list) --

    The tags to be applied to the restored DB cluster.

    • (dict) --

      Metadata assigned to an Amazon Neptune resource consisting of a key-value pair.

      • Key (string) --

        A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

      • Value (string) --

        A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with "aws:" or "rds:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$").

  • KmsKeyId (string) --

    The Amazon KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same Amazon account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

    You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than the KMS key used to encrypt the source DB cluster. The new DB cluster is encrypted with the KMS key identified by the KmsKeyId parameter.

    If you do not specify a value for the KmsKeyId parameter, then the following will occur:

    • If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to encrypt the source DB cluster.
    • If the DB cluster is not encrypted, then the restored DB cluster is not encrypted.

    If DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore request is rejected.

  • EnableIAMDatabaseAuthentication (boolean) --

    True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

    Default: false

  • EnableCloudwatchLogsExports (list) --

    The list of logs that the restored DB cluster is to export to CloudWatch Logs.

    • (string) --
  • DBClusterParameterGroupName (string) --

    The name of the DB cluster parameter group to associate with the new DB cluster.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • DeletionProtection (boolean) -- A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.
Return type

dict

Returns

Response Syntax

{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --

        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.

      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --

        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.

      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterAlreadyExistsFault
  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.DBClusterQuotaExceededFault
  • Neptune.Client.exceptions.DBClusterSnapshotNotFoundFault
  • Neptune.Client.exceptions.DBSubnetGroupNotFoundFault
  • Neptune.Client.exceptions.InsufficientDBClusterCapacityFault
  • Neptune.Client.exceptions.InsufficientStorageClusterCapacityFault
  • Neptune.Client.exceptions.InvalidDBClusterSnapshotStateFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.InvalidDBSnapshotStateFault
  • Neptune.Client.exceptions.InvalidRestoreFault
  • Neptune.Client.exceptions.InvalidSubnet
  • Neptune.Client.exceptions.InvalidVPCNetworkStateFault
  • Neptune.Client.exceptions.KMSKeyNotAccessibleFault
  • Neptune.Client.exceptions.OptionGroupNotFoundFault
  • Neptune.Client.exceptions.StorageQuotaExceededFault
  • Neptune.Client.exceptions.DBClusterParameterGroupNotFoundFault
start_db_cluster(**kwargs)

Starts an Amazon Neptune DB cluster that was stopped using the AWS console, the Amazon CLI stop-db-cluster command, or the StopDBCluster API.

See also: AWS API Documentation

Request Syntax

response = client.start_db_cluster(
    DBClusterIdentifier='string'
)
Parameters
DBClusterIdentifier (string) --

[REQUIRED]

The DB cluster identifier of the Neptune DB cluster to be started. This parameter is stored as a lowercase string.

Return type
dict
Returns
Response Syntax
{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --
    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --
        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.
      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --
        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.
      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault
stop_db_cluster(**kwargs)

Stops an Amazon Neptune DB cluster. When you stop a DB cluster, Neptune retains the DB cluster's metadata, including its endpoints and DB parameter groups.

Neptune also retains the transaction logs so you can do a point-in-time restore if necessary.

See also: AWS API Documentation

Request Syntax

response = client.stop_db_cluster(
    DBClusterIdentifier='string'
)
Parameters
DBClusterIdentifier (string) --

[REQUIRED]

The DB cluster identifier of the Neptune DB cluster to be stopped. This parameter is stored as a lowercase string.

Return type
dict
Returns
Response Syntax
{
    'DBCluster': {
        'AllocatedStorage': 123,
        'AvailabilityZones': [
            'string',
        ],
        'BackupRetentionPeriod': 123,
        'CharacterSetName': 'string',
        'DatabaseName': 'string',
        'DBClusterIdentifier': 'string',
        'DBClusterParameterGroup': 'string',
        'DBSubnetGroup': 'string',
        'Status': 'string',
        'PercentProgress': 'string',
        'EarliestRestorableTime': datetime(2015, 1, 1),
        'Endpoint': 'string',
        'ReaderEndpoint': 'string',
        'MultiAZ': True|False,
        'Engine': 'string',
        'EngineVersion': 'string',
        'LatestRestorableTime': datetime(2015, 1, 1),
        'Port': 123,
        'MasterUsername': 'string',
        'DBClusterOptionGroupMemberships': [
            {
                'DBClusterOptionGroupName': 'string',
                'Status': 'string'
            },
        ],
        'PreferredBackupWindow': 'string',
        'PreferredMaintenanceWindow': 'string',
        'ReplicationSourceIdentifier': 'string',
        'ReadReplicaIdentifiers': [
            'string',
        ],
        'DBClusterMembers': [
            {
                'DBInstanceIdentifier': 'string',
                'IsClusterWriter': True|False,
                'DBClusterParameterGroupStatus': 'string',
                'PromotionTier': 123
            },
        ],
        'VpcSecurityGroups': [
            {
                'VpcSecurityGroupId': 'string',
                'Status': 'string'
            },
        ],
        'HostedZoneId': 'string',
        'StorageEncrypted': True|False,
        'KmsKeyId': 'string',
        'DbClusterResourceId': 'string',
        'DBClusterArn': 'string',
        'AssociatedRoles': [
            {
                'RoleArn': 'string',
                'Status': 'string',
                'FeatureName': 'string'
            },
        ],
        'IAMDatabaseAuthenticationEnabled': True|False,
        'CloneGroupId': 'string',
        'ClusterCreateTime': datetime(2015, 1, 1),
        'CopyTagsToSnapshot': True|False,
        'EnabledCloudwatchLogsExports': [
            'string',
        ],
        'DeletionProtection': True|False,
        'CrossAccountClone': True|False,
        'AutomaticRestartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --
    • DBCluster (dict) --

      Contains the details of an Amazon Neptune DB cluster.

      This data type is used as a response element in the DescribeDBClusters action.

      • AllocatedStorage (integer) --
        AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.
      • AvailabilityZones (list) --

        Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

        • (string) --
      • BackupRetentionPeriod (integer) --

        Specifies the number of days for which automatic DB snapshots are retained.

      • CharacterSetName (string) --

        Not supported by Neptune.

      • DatabaseName (string) --

        Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

      • DBClusterIdentifier (string) --

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

      • DBClusterParameterGroup (string) --

        Specifies the name of the DB cluster parameter group for the DB cluster.

      • DBSubnetGroup (string) --

        Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      • Status (string) --

        Specifies the current state of this DB cluster.

      • PercentProgress (string) --

        Specifies the progress of the operation as a percentage.

      • EarliestRestorableTime (datetime) --

        Specifies the earliest time to which a database can be restored with point-in-time restore.

      • Endpoint (string) --

        Specifies the connection endpoint for the primary instance of the DB cluster.

      • ReaderEndpoint (string) --

        The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

        If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

      • MultiAZ (boolean) --

        Specifies whether the DB cluster has instances in multiple Availability Zones.

      • Engine (string) --

        Provides the name of the database engine to be used for this DB cluster.

      • EngineVersion (string) --

        Indicates the database engine version.

      • LatestRestorableTime (datetime) --

        Specifies the latest time to which a database can be restored with point-in-time restore.

      • Port (integer) --

        Specifies the port that the database engine is listening on.

      • MasterUsername (string) --

        Not supported by Neptune.

      • DBClusterOptionGroupMemberships (list) --

        Not supported by Neptune.

        • (dict) --

          Not supported by Neptune.

          • DBClusterOptionGroupName (string) --

            Not supported by Neptune.

          • Status (string) --

            Not supported by Neptune.

      • PreferredBackupWindow (string) --

        Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      • PreferredMaintenanceWindow (string) --

        Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      • ReplicationSourceIdentifier (string) --

        Not supported by Neptune.

      • ReadReplicaIdentifiers (list) --

        Contains one or more identifiers of the Read Replicas associated with this DB cluster.

        • (string) --
      • DBClusterMembers (list) --

        Provides the list of instances that make up the DB cluster.

        • (dict) --

          Contains information about an instance that is part of a DB cluster.

          • DBInstanceIdentifier (string) --

            Specifies the instance identifier for this member of the DB cluster.

          • IsClusterWriter (boolean) --

            Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

          • DBClusterParameterGroupStatus (string) --

            Specifies the status of the DB cluster parameter group for this member of the DB cluster.

          • PromotionTier (integer) --

            A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

      • VpcSecurityGroups (list) --

        Provides a list of VPC security groups that the DB cluster belongs to.

        • (dict) --

          This data type is used as a response element for queries on VPC security group membership.

          • VpcSecurityGroupId (string) --

            The name of the VPC security group.

          • Status (string) --

            The status of the VPC security group.

      • HostedZoneId (string) --

        Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

      • StorageEncrypted (boolean) --

        Specifies whether the DB cluster is encrypted.

      • KmsKeyId (string) --

        If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      • DbClusterResourceId (string) --

        The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

      • DBClusterArn (string) --

        The Amazon Resource Name (ARN) for the DB cluster.

      • AssociatedRoles (list) --

        Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

        • (dict) --

          Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

          • Status (string) --

            Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

            • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
            • PENDING - the IAM role ARN is being associated with the DB cluster.
            • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
          • FeatureName (string) --

            The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

      • IAMDatabaseAuthenticationEnabled (boolean) --

        True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      • CloneGroupId (string) --

        Identifies the clone group to which the DB cluster is associated.

      • ClusterCreateTime (datetime) --

        Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

      • CopyTagsToSnapshot (boolean) --
        If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.
      • EnabledCloudwatchLogsExports (list) --

        A list of log types that this DB cluster is configured to export to CloudWatch Logs.

        • (string) --
      • DeletionProtection (boolean) --

        Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

      • CrossAccountClone (boolean) --

        If set to true , the DB cluster can be cloned across accounts.

      • AutomaticRestartTime (datetime) --

        Time at which the DB cluster will be automatically restarted.

Exceptions

  • Neptune.Client.exceptions.DBClusterNotFoundFault
  • Neptune.Client.exceptions.InvalidDBClusterStateFault
  • Neptune.Client.exceptions.InvalidDBInstanceStateFault

Paginators

The available paginators are:

class Neptune.Paginator.DescribeDBClusterEndpoints
paginator = client.get_paginator('describe_db_cluster_endpoints')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_cluster_endpoints().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBClusterIdentifier='string',
    DBClusterEndpointIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBClusterIdentifier (string) -- The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.
  • DBClusterEndpointIdentifier (string) -- The identifier of the endpoint to describe. This parameter is stored as a lowercase string.
  • Filters (list) --

    A set of name-value pairs that define which endpoints to include in the output. The filters are specified as name-value pairs, in the format Name=*endpoint_type* ,Values=*endpoint_type1* ,*endpoint_type2* ,... . Name can be one of: db-cluster-endpoint-type , db-cluster-endpoint-custom-type , db-cluster-endpoint-id , db-cluster-endpoint-status . Values for the db-cluster-endpoint-type filter can be one or more of: reader , writer , custom . Values for the db-cluster-endpoint-custom-type filter can be one or more of: reader , any . Values for the db-cluster-endpoint-status filter can be one or more of: available , creating , deleting , inactive , modifying .

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'DBClusterEndpoints': [
        {
            'DBClusterEndpointIdentifier': 'string',
            'DBClusterIdentifier': 'string',
            'DBClusterEndpointResourceIdentifier': 'string',
            'Endpoint': 'string',
            'Status': 'string',
            'EndpointType': 'string',
            'CustomEndpointType': 'string',
            'StaticMembers': [
                'string',
            ],
            'ExcludedMembers': [
                'string',
            ],
            'DBClusterEndpointArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DBClusterEndpoints (list) --

      Contains the details of the endpoints associated with the cluster and matching any filter conditions.

      • (dict) --

        This data type represents the information you need to connect to an Amazon Neptune DB cluster. This data type is used as a response element in the following actions:

        • CreateDBClusterEndpoint
        • DescribeDBClusterEndpoints
        • ModifyDBClusterEndpoint
        • DeleteDBClusterEndpoint

        For the data structure that represents Amazon Neptune DB instance endpoints, see Endpoint .

        • DBClusterEndpointIdentifier (string) --

          The identifier associated with the endpoint. This parameter is stored as a lowercase string.

        • DBClusterIdentifier (string) --

          The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

        • DBClusterEndpointResourceIdentifier (string) --

          A unique system-generated identifier for an endpoint. It remains the same for the whole life of the endpoint.

        • Endpoint (string) --

          The DNS address of the endpoint.

        • Status (string) --

          The current status of the endpoint. One of: creating , available , deleting , inactive , modifying . The inactive state applies to an endpoint that cannot be used for a certain kind of cluster, such as a writer endpoint for a read-only secondary cluster in a global database.

        • EndpointType (string) --

          The type of the endpoint. One of: READER , WRITER , CUSTOM .

        • CustomEndpointType (string) --

          The type associated with a custom endpoint. One of: READER , WRITER , ANY .

        • StaticMembers (list) --

          List of DB instance identifiers that are part of the custom endpoint group.

          • (string) --
        • ExcludedMembers (list) --

          List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

          • (string) --
        • DBClusterEndpointArn (string) --

          The Amazon Resource Name (ARN) for the endpoint.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBClusterParameterGroups
paginator = client.get_paginator('describe_db_cluster_parameter_groups')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_cluster_parameter_groups().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBClusterParameterGroupName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBClusterParameterGroupName (string) --

    The name of a specific DB cluster parameter group to return details for.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'DBClusterParameterGroups': [
        {
            'DBClusterParameterGroupName': 'string',
            'DBParameterGroupFamily': 'string',
            'Description': 'string',
            'DBClusterParameterGroupArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DBClusterParameterGroups (list) --

      A list of DB cluster parameter groups.

      • (dict) --

        Contains the details of an Amazon Neptune DB cluster parameter group.

        This data type is used as a response element in the DescribeDBClusterParameterGroups action.

        • DBClusterParameterGroupName (string) --

          Provides the name of the DB cluster parameter group.

        • DBParameterGroupFamily (string) --

          Provides the name of the DB parameter group family that this DB cluster parameter group is compatible with.

        • Description (string) --

          Provides the customer-specified description for this DB cluster parameter group.

        • DBClusterParameterGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB cluster parameter group.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBClusterParameters
paginator = client.get_paginator('describe_db_cluster_parameters')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_cluster_parameters().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBClusterParameterGroupName='string',
    Source='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBClusterParameterGroupName (string) --

    [REQUIRED]

    The name of a specific DB cluster parameter group to return parameter details for.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • Source (string) -- A value that indicates to return only parameters for a specific source. Parameter sources can be engine , service , or customer .
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'Parameters': [
        {
            'ParameterName': 'string',
            'ParameterValue': 'string',
            'Description': 'string',
            'Source': 'string',
            'ApplyType': 'string',
            'DataType': 'string',
            'AllowedValues': 'string',
            'IsModifiable': True|False,
            'MinimumEngineVersion': 'string',
            'ApplyMethod': 'immediate'|'pending-reboot'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Parameters (list) --

      Provides a list of parameters for the DB cluster parameter group.

      • (dict) --

        Specifies a parameter.

        • ParameterName (string) --

          Specifies the name of the parameter.

        • ParameterValue (string) --

          Specifies the value of the parameter.

        • Description (string) --

          Provides a description of the parameter.

        • Source (string) --

          Indicates the source of the parameter value.

        • ApplyType (string) --

          Specifies the engine specific parameters type.

        • DataType (string) --

          Specifies the valid data type for the parameter.

        • AllowedValues (string) --

          Specifies the valid range of values for the parameter.

        • IsModifiable (boolean) --

          Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

        • MinimumEngineVersion (string) --

          The earliest engine version to which the parameter can apply.

        • ApplyMethod (string) --

          Indicates when to apply parameter updates.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBClusterSnapshots
paginator = client.get_paginator('describe_db_cluster_snapshots')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_cluster_snapshots().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBClusterIdentifier='string',
    DBClusterSnapshotIdentifier='string',
    SnapshotType='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    IncludeShared=True|False,
    IncludePublic=True|False,
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBClusterIdentifier (string) --

    The ID of the DB cluster to retrieve the list of DB cluster snapshots for. This parameter can't be used in conjunction with the DBClusterSnapshotIdentifier parameter. This parameter is not case-sensitive.

    Constraints:

    • If supplied, must match the identifier of an existing DBCluster.
  • DBClusterSnapshotIdentifier (string) --

    A specific DB cluster snapshot identifier to describe. This parameter can't be used in conjunction with the DBClusterIdentifier parameter. This value is stored as a lowercase string.

    Constraints:

    • If supplied, must match the identifier of an existing DBClusterSnapshot.
    • If this identifier is for an automated snapshot, the SnapshotType parameter must also be specified.
  • SnapshotType (string) --

    The type of DB cluster snapshots to be returned. You can specify one of the following values:

    • automated - Return all DB cluster snapshots that have been automatically taken by Amazon Neptune for my Amazon account.
    • manual - Return all DB cluster snapshots that have been taken by my AWS account.
    • shared - Return all manual DB cluster snapshots that have been shared to my Amazon account.
    • public - Return all DB cluster snapshots that have been marked as public.

    If you don't specify a SnapshotType value, then both automated and manual DB cluster snapshots are returned. You can include shared DB cluster snapshots with these results by setting the IncludeShared parameter to true . You can include public DB cluster snapshots with these results by setting the IncludePublic parameter to true .

    The IncludeShared and IncludePublic parameters don't apply for SnapshotType values of manual or automated . The IncludePublic parameter doesn't apply when SnapshotType is set to shared . The IncludeShared parameter doesn't apply when SnapshotType is set to public .

  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • IncludeShared (boolean) --

    True to include shared manual DB cluster snapshots from other Amazon accounts that this AWS account has been given permission to copy or restore, and otherwise false. The default is false .

    You can give an Amazon account permission to restore a manual DB cluster snapshot from another Amazon account by the ModifyDBClusterSnapshotAttribute API action.

  • IncludePublic (boolean) --

    True to include manual DB cluster snapshots that are public and can be copied or restored by any Amazon account, and otherwise false. The default is false . The default is false.

    You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute API action.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'DBClusterSnapshots': [
        {
            'AvailabilityZones': [
                'string',
            ],
            'DBClusterSnapshotIdentifier': 'string',
            'DBClusterIdentifier': 'string',
            'SnapshotCreateTime': datetime(2015, 1, 1),
            'Engine': 'string',
            'AllocatedStorage': 123,
            'Status': 'string',
            'Port': 123,
            'VpcId': 'string',
            'ClusterCreateTime': datetime(2015, 1, 1),
            'MasterUsername': 'string',
            'EngineVersion': 'string',
            'LicenseModel': 'string',
            'SnapshotType': 'string',
            'PercentProgress': 123,
            'StorageEncrypted': True|False,
            'KmsKeyId': 'string',
            'DBClusterSnapshotArn': 'string',
            'SourceDBClusterSnapshotArn': 'string',
            'IAMDatabaseAuthenticationEnabled': True|False
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DBClusterSnapshots (list) --

      Provides a list of DB cluster snapshots for the user.

      • (dict) --

        Contains the details for an Amazon Neptune DB cluster snapshot

        This data type is used as a response element in the DescribeDBClusterSnapshots action.

        • AvailabilityZones (list) --

          Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

          • (string) --
        • DBClusterSnapshotIdentifier (string) --

          Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.

          After you restore a DB cluster using a DBClusterSnapshotIdentifier , you must specify the same DBClusterSnapshotIdentifier for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed.

          However, if you don't specify the DBClusterSnapshotIdentifier , an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, the DB cluster is restored from the snapshot specified by the DBClusterSnapshotIdentifier , and the original DB cluster is deleted.

        • DBClusterIdentifier (string) --

          Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from.

        • SnapshotCreateTime (datetime) --

          Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

        • Engine (string) --

          Specifies the name of the database engine.

        • AllocatedStorage (integer) --

          Specifies the allocated storage size in gibibytes (GiB).

        • Status (string) --

          Specifies the status of this DB cluster snapshot.

        • Port (integer) --

          Specifies the port that the DB cluster was listening on at the time of the snapshot.

        • VpcId (string) --

          Provides the VPC ID associated with the DB cluster snapshot.

        • ClusterCreateTime (datetime) --

          Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

        • MasterUsername (string) --

          Not supported by Neptune.

        • EngineVersion (string) --

          Provides the version of the database engine for this DB cluster snapshot.

        • LicenseModel (string) --

          Provides the license model information for this DB cluster snapshot.

        • SnapshotType (string) --

          Provides the type of the DB cluster snapshot.

        • PercentProgress (integer) --

          Specifies the percentage of the estimated data that has been transferred.

        • StorageEncrypted (boolean) --

          Specifies whether the DB cluster snapshot is encrypted.

        • KmsKeyId (string) --

          If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster snapshot.

        • DBClusterSnapshotArn (string) --

          The Amazon Resource Name (ARN) for the DB cluster snapshot.

        • SourceDBClusterSnapshotArn (string) --

          If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the source DB cluster snapshot, otherwise, a null value.

        • IAMDatabaseAuthenticationEnabled (boolean) --

          True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBClusters
paginator = client.get_paginator('describe_db_clusters')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_clusters().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBClusterIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBClusterIdentifier (string) --

    The user-supplied DB cluster identifier. If this parameter is specified, information from only the specific DB cluster is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match an existing DBClusterIdentifier.
  • Filters (list) --

    A filter that specifies one or more DB clusters to describe.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB clusters identified by these ARNs.
    • engine - Accepts an engine name (such as neptune ), and restricts the results list to DB clusters created by that engine.

    For example, to invoke this API from the Amazon CLI and filter so that only Neptune DB clusters are returned, you could use the following command:

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'DBClusters': [
        {
            'AllocatedStorage': 123,
            'AvailabilityZones': [
                'string',
            ],
            'BackupRetentionPeriod': 123,
            'CharacterSetName': 'string',
            'DatabaseName': 'string',
            'DBClusterIdentifier': 'string',
            'DBClusterParameterGroup': 'string',
            'DBSubnetGroup': 'string',
            'Status': 'string',
            'PercentProgress': 'string',
            'EarliestRestorableTime': datetime(2015, 1, 1),
            'Endpoint': 'string',
            'ReaderEndpoint': 'string',
            'MultiAZ': True|False,
            'Engine': 'string',
            'EngineVersion': 'string',
            'LatestRestorableTime': datetime(2015, 1, 1),
            'Port': 123,
            'MasterUsername': 'string',
            'DBClusterOptionGroupMemberships': [
                {
                    'DBClusterOptionGroupName': 'string',
                    'Status': 'string'
                },
            ],
            'PreferredBackupWindow': 'string',
            'PreferredMaintenanceWindow': 'string',
            'ReplicationSourceIdentifier': 'string',
            'ReadReplicaIdentifiers': [
                'string',
            ],
            'DBClusterMembers': [
                {
                    'DBInstanceIdentifier': 'string',
                    'IsClusterWriter': True|False,
                    'DBClusterParameterGroupStatus': 'string',
                    'PromotionTier': 123
                },
            ],
            'VpcSecurityGroups': [
                {
                    'VpcSecurityGroupId': 'string',
                    'Status': 'string'
                },
            ],
            'HostedZoneId': 'string',
            'StorageEncrypted': True|False,
            'KmsKeyId': 'string',
            'DbClusterResourceId': 'string',
            'DBClusterArn': 'string',
            'AssociatedRoles': [
                {
                    'RoleArn': 'string',
                    'Status': 'string',
                    'FeatureName': 'string'
                },
            ],
            'IAMDatabaseAuthenticationEnabled': True|False,
            'CloneGroupId': 'string',
            'ClusterCreateTime': datetime(2015, 1, 1),
            'CopyTagsToSnapshot': True|False,
            'EnabledCloudwatchLogsExports': [
                'string',
            ],
            'DeletionProtection': True|False,
            'CrossAccountClone': True|False,
            'AutomaticRestartTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DBClusters (list) --

      Contains a list of DB clusters for the user.

      • (dict) --

        Contains the details of an Amazon Neptune DB cluster.

        This data type is used as a response element in the DescribeDBClusters action.

        • AllocatedStorage (integer) --

          AllocatedStorage always returns 1, because Neptune DB cluster storage size is not fixed, but instead automatically adjusts as needed.

        • AvailabilityZones (list) --

          Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

          • (string) --
        • BackupRetentionPeriod (integer) --

          Specifies the number of days for which automatic DB snapshots are retained.

        • CharacterSetName (string) --

          Not supported by Neptune.

        • DatabaseName (string) --

          Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

        • DBClusterIdentifier (string) --

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

        • DBClusterParameterGroup (string) --

          Specifies the name of the DB cluster parameter group for the DB cluster.

        • DBSubnetGroup (string) --

          Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

        • Status (string) --

          Specifies the current state of this DB cluster.

        • PercentProgress (string) --

          Specifies the progress of the operation as a percentage.

        • EarliestRestorableTime (datetime) --

          Specifies the earliest time to which a database can be restored with point-in-time restore.

        • Endpoint (string) --

          Specifies the connection endpoint for the primary instance of the DB cluster.

        • ReaderEndpoint (string) --

          The reader endpoint for the DB cluster. The reader endpoint for a DB cluster load-balances connections across the Read Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Neptune distributes the connection requests among the Read Replicas in the DB cluster. This functionality can help balance your read workload across multiple Read Replicas in your DB cluster.

          If a failover occurs, and the Read Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Read Replicas in the cluster, you can then reconnect to the reader endpoint.

        • MultiAZ (boolean) --

          Specifies whether the DB cluster has instances in multiple Availability Zones.

        • Engine (string) --

          Provides the name of the database engine to be used for this DB cluster.

        • EngineVersion (string) --

          Indicates the database engine version.

        • LatestRestorableTime (datetime) --

          Specifies the latest time to which a database can be restored with point-in-time restore.

        • Port (integer) --

          Specifies the port that the database engine is listening on.

        • MasterUsername (string) --

          Not supported by Neptune.

        • DBClusterOptionGroupMemberships (list) --

          Not supported by Neptune.

          • (dict) --

            Not supported by Neptune.

            • DBClusterOptionGroupName (string) --

              Not supported by Neptune.

            • Status (string) --

              Not supported by Neptune.

        • PreferredBackupWindow (string) --

          Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

        • PreferredMaintenanceWindow (string) --

          Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        • ReplicationSourceIdentifier (string) --

          Not supported by Neptune.

        • ReadReplicaIdentifiers (list) --

          Contains one or more identifiers of the Read Replicas associated with this DB cluster.

          • (string) --
        • DBClusterMembers (list) --

          Provides the list of instances that make up the DB cluster.

          • (dict) --

            Contains information about an instance that is part of a DB cluster.

            • DBInstanceIdentifier (string) --

              Specifies the instance identifier for this member of the DB cluster.

            • IsClusterWriter (boolean) --

              Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

            • DBClusterParameterGroupStatus (string) --

              Specifies the status of the DB cluster parameter group for this member of the DB cluster.

            • PromotionTier (integer) --

              A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

        • VpcSecurityGroups (list) --

          Provides a list of VPC security groups that the DB cluster belongs to.

          • (dict) --

            This data type is used as a response element for queries on VPC security group membership.

            • VpcSecurityGroupId (string) --

              The name of the VPC security group.

            • Status (string) --

              The status of the VPC security group.

        • HostedZoneId (string) --

          Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

        • StorageEncrypted (boolean) --

          Specifies whether the DB cluster is encrypted.

        • KmsKeyId (string) --

          If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

        • DbClusterResourceId (string) --

          The Amazon Region-unique, immutable identifier for the DB cluster. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB cluster is accessed.

        • DBClusterArn (string) --

          The Amazon Resource Name (ARN) for the DB cluster.

        • AssociatedRoles (list) --

          Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

          • (dict) --

            Describes an Amazon Identity and Access Management (IAM) role that is associated with a DB cluster.

            • RoleArn (string) --

              The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

            • Status (string) --

              Describes the state of association between the IAM role and the DB cluster. The Status property returns one of the following values:

              • ACTIVE - the IAM role ARN is associated with the DB cluster and can be used to access other Amazon services on your behalf.
              • PENDING - the IAM role ARN is being associated with the DB cluster.
              • INVALID - the IAM role ARN is associated with the DB cluster, but the DB cluster is unable to assume the IAM role in order to access other Amazon services on your behalf.
            • FeatureName (string) --

              The name of the feature associated with the Amazon Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion .

        • IAMDatabaseAuthenticationEnabled (boolean) --

          True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

        • CloneGroupId (string) --

          Identifies the clone group to which the DB cluster is associated.

        • ClusterCreateTime (datetime) --

          Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

        • CopyTagsToSnapshot (boolean) --

          If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created.

        • EnabledCloudwatchLogsExports (list) --

          A list of log types that this DB cluster is configured to export to CloudWatch Logs.

          • (string) --
        • DeletionProtection (boolean) --

          Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

        • CrossAccountClone (boolean) --

          If set to true , the DB cluster can be cloned across accounts.

        • AutomaticRestartTime (datetime) --

          Time at which the DB cluster will be automatically restarted.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBEngineVersions
paginator = client.get_paginator('describe_db_engine_versions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_engine_versions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    Engine='string',
    EngineVersion='string',
    DBParameterGroupFamily='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    DefaultOnly=True|False,
    ListSupportedCharacterSets=True|False,
    ListSupportedTimezones=True|False,
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • Engine (string) -- The database engine to return.
  • EngineVersion (string) --

    The database engine version to return.

    Example: 5.1.49

  • DBParameterGroupFamily (string) --

    The name of a specific DB parameter group family to return details for.

    Constraints:

    • If supplied, must match an existing DBParameterGroupFamily.
  • Filters (list) --

    Not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • DefaultOnly (boolean) -- Indicates that only the default version of the specified engine or engine and major version combination is returned.
  • ListSupportedCharacterSets (boolean) -- If this parameter is specified and the requested engine supports the CharacterSetName parameter for CreateDBInstance , the response includes a list of supported character sets for each engine version.
  • ListSupportedTimezones (boolean) -- If this parameter is specified and the requested engine supports the TimeZone parameter for CreateDBInstance , the response includes a list of supported time zones for each engine version.
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'DBEngineVersions': [
        {
            'Engine': 'string',
            'EngineVersion': 'string',
            'DBParameterGroupFamily': 'string',
            'DBEngineDescription': 'string',
            'DBEngineVersionDescription': 'string',
            'DefaultCharacterSet': {
                'CharacterSetName': 'string',
                'CharacterSetDescription': 'string'
            },
            'SupportedCharacterSets': [
                {
                    'CharacterSetName': 'string',
                    'CharacterSetDescription': 'string'
                },
            ],
            'ValidUpgradeTarget': [
                {
                    'Engine': 'string',
                    'EngineVersion': 'string',
                    'Description': 'string',
                    'AutoUpgrade': True|False,
                    'IsMajorVersionUpgrade': True|False
                },
            ],
            'SupportedTimezones': [
                {
                    'TimezoneName': 'string'
                },
            ],
            'ExportableLogTypes': [
                'string',
            ],
            'SupportsLogExportsToCloudwatchLogs': True|False,
            'SupportsReadReplica': True|False
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DBEngineVersions (list) --

      A list of DBEngineVersion elements.

      • (dict) --

        This data type is used as a response element in the action DescribeDBEngineVersions .

        • Engine (string) --

          The name of the database engine.

        • EngineVersion (string) --

          The version number of the database engine.

        • DBParameterGroupFamily (string) --

          The name of the DB parameter group family for the database engine.

        • DBEngineDescription (string) --

          The description of the database engine.

        • DBEngineVersionDescription (string) --

          The description of the database engine version.

        • DefaultCharacterSet (dict) --

          (Not supported by Neptune)

          • CharacterSetName (string) --

            The name of the character set.

          • CharacterSetDescription (string) --

            The description of the character set.

        • SupportedCharacterSets (list) --

          (Not supported by Neptune)

          • (dict) --

            Specifies a character set.

            • CharacterSetName (string) --

              The name of the character set.

            • CharacterSetDescription (string) --

              The description of the character set.

        • ValidUpgradeTarget (list) --

          A list of engine versions that this database engine version can be upgraded to.

          • (dict) --

            The version of the database engine that a DB instance can be upgraded to.

            • Engine (string) --

              The name of the upgrade target database engine.

            • EngineVersion (string) --

              The version number of the upgrade target database engine.

            • Description (string) --

              The version of the database engine that a DB instance can be upgraded to.

            • AutoUpgrade (boolean) --

              A value that indicates whether the target version is applied to any source DB instances that have AutoMinorVersionUpgrade set to true.

            • IsMajorVersionUpgrade (boolean) --

              A value that indicates whether a database engine is upgraded to a major version.

        • SupportedTimezones (list) --

          A list of the time zones supported by this engine for the Timezone parameter of the CreateDBInstance action.

          • (dict) --

            A time zone associated with a DBInstance .

            • TimezoneName (string) --

              The name of the time zone.

        • ExportableLogTypes (list) --

          The types of logs that the database engine has available for export to CloudWatch Logs.

          • (string) --
        • SupportsLogExportsToCloudwatchLogs (boolean) --

          A value that indicates whether the engine version supports exporting the log types specified by ExportableLogTypes to CloudWatch Logs.

        • SupportsReadReplica (boolean) --

          Indicates whether the database engine version supports read replicas.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBInstances
paginator = client.get_paginator('describe_db_instances')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_instances().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBInstanceIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBInstanceIdentifier (string) --

    The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match the identifier of an existing DBInstance.
  • Filters (list) --

    A filter that specifies one or more DB instances to describe.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB instances associated with the DB clusters identified by these ARNs.
    • engine - Accepts an engine name (such as neptune ), and restricts the results list to DB instances created by that engine.

    For example, to invoke this API from the Amazon CLI and filter so that only Neptune DB instances are returned, you could use the following command:

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'DBInstances': [
        {
            'DBInstanceIdentifier': 'string',
            'DBInstanceClass': 'string',
            'Engine': 'string',
            'DBInstanceStatus': 'string',
            'MasterUsername': 'string',
            'DBName': 'string',
            'Endpoint': {
                'Address': 'string',
                'Port': 123,
                'HostedZoneId': 'string'
            },
            'AllocatedStorage': 123,
            'InstanceCreateTime': datetime(2015, 1, 1),
            'PreferredBackupWindow': 'string',
            'BackupRetentionPeriod': 123,
            'DBSecurityGroups': [
                {
                    'DBSecurityGroupName': 'string',
                    'Status': 'string'
                },
            ],
            'VpcSecurityGroups': [
                {
                    'VpcSecurityGroupId': 'string',
                    'Status': 'string'
                },
            ],
            'DBParameterGroups': [
                {
                    'DBParameterGroupName': 'string',
                    'ParameterApplyStatus': 'string'
                },
            ],
            'AvailabilityZone': 'string',
            'DBSubnetGroup': {
                'DBSubnetGroupName': 'string',
                'DBSubnetGroupDescription': 'string',
                'VpcId': 'string',
                'SubnetGroupStatus': 'string',
                'Subnets': [
                    {
                        'SubnetIdentifier': 'string',
                        'SubnetAvailabilityZone': {
                            'Name': 'string'
                        },
                        'SubnetStatus': 'string'
                    },
                ],
                'DBSubnetGroupArn': 'string'
            },
            'PreferredMaintenanceWindow': 'string',
            'PendingModifiedValues': {
                'DBInstanceClass': 'string',
                'AllocatedStorage': 123,
                'MasterUserPassword': 'string',
                'Port': 123,
                'BackupRetentionPeriod': 123,
                'MultiAZ': True|False,
                'EngineVersion': 'string',
                'LicenseModel': 'string',
                'Iops': 123,
                'DBInstanceIdentifier': 'string',
                'StorageType': 'string',
                'CACertificateIdentifier': 'string',
                'DBSubnetGroupName': 'string',
                'PendingCloudwatchLogsExports': {
                    'LogTypesToEnable': [
                        'string',
                    ],
                    'LogTypesToDisable': [
                        'string',
                    ]
                }
            },
            'LatestRestorableTime': datetime(2015, 1, 1),
            'MultiAZ': True|False,
            'EngineVersion': 'string',
            'AutoMinorVersionUpgrade': True|False,
            'ReadReplicaSourceDBInstanceIdentifier': 'string',
            'ReadReplicaDBInstanceIdentifiers': [
                'string',
            ],
            'ReadReplicaDBClusterIdentifiers': [
                'string',
            ],
            'LicenseModel': 'string',
            'Iops': 123,
            'OptionGroupMemberships': [
                {
                    'OptionGroupName': 'string',
                    'Status': 'string'
                },
            ],
            'CharacterSetName': 'string',
            'SecondaryAvailabilityZone': 'string',
            'PubliclyAccessible': True|False,
            'StatusInfos': [
                {
                    'StatusType': 'string',
                    'Normal': True|False,
                    'Status': 'string',
                    'Message': 'string'
                },
            ],
            'StorageType': 'string',
            'TdeCredentialArn': 'string',
            'DbInstancePort': 123,
            'DBClusterIdentifier': 'string',
            'StorageEncrypted': True|False,
            'KmsKeyId': 'string',
            'DbiResourceId': 'string',
            'CACertificateIdentifier': 'string',
            'DomainMemberships': [
                {
                    'Domain': 'string',
                    'Status': 'string',
                    'FQDN': 'string',
                    'IAMRoleName': 'string'
                },
            ],
            'CopyTagsToSnapshot': True|False,
            'MonitoringInterval': 123,
            'EnhancedMonitoringResourceArn': 'string',
            'MonitoringRoleArn': 'string',
            'PromotionTier': 123,
            'DBInstanceArn': 'string',
            'Timezone': 'string',
            'IAMDatabaseAuthenticationEnabled': True|False,
            'PerformanceInsightsEnabled': True|False,
            'PerformanceInsightsKMSKeyId': 'string',
            'EnabledCloudwatchLogsExports': [
                'string',
            ],
            'DeletionProtection': True|False
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DBInstances (list) --

      A list of DBInstance instances.

      • (dict) --

        Contains the details of an Amazon Neptune DB instance.

        This data type is used as a response element in the DescribeDBInstances action.

        • DBInstanceIdentifier (string) --

          Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

        • DBInstanceClass (string) --

          Contains the name of the compute and memory capacity class of the DB instance.

        • Engine (string) --

          Provides the name of the database engine to be used for this DB instance.

        • DBInstanceStatus (string) --

          Specifies the current state of this database.

        • MasterUsername (string) --

          Not supported by Neptune.

        • DBName (string) --

          The database name.

        • Endpoint (dict) --

          Specifies the connection endpoint.

          • Address (string) --

            Specifies the DNS address of the DB instance.

          • Port (integer) --

            Specifies the port that the database engine is listening on.

          • HostedZoneId (string) --

            Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

        • AllocatedStorage (integer) --

          Not supported by Neptune.

        • InstanceCreateTime (datetime) --

          Provides the date and time the DB instance was created.

        • PreferredBackupWindow (string) --

          Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

        • BackupRetentionPeriod (integer) --

          Specifies the number of days for which automatic DB snapshots are retained.

        • DBSecurityGroups (list) --

          Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

          • (dict) --

            Specifies membership in a designated DB security group.

            • DBSecurityGroupName (string) --

              The name of the DB security group.

            • Status (string) --

              The status of the DB security group.

        • VpcSecurityGroups (list) --

          Provides a list of VPC security group elements that the DB instance belongs to.

          • (dict) --

            This data type is used as a response element for queries on VPC security group membership.

            • VpcSecurityGroupId (string) --

              The name of the VPC security group.

            • Status (string) --

              The status of the VPC security group.

        • DBParameterGroups (list) --

          Provides the list of DB parameter groups applied to this DB instance.

          • (dict) --

            The status of the DB parameter group.

            This data type is used as a response element in the following actions:

            • CreateDBInstance
            • DeleteDBInstance
            • ModifyDBInstance
            • RebootDBInstance
            • DBParameterGroupName (string) --

              The name of the DP parameter group.

            • ParameterApplyStatus (string) --

              The status of parameter updates.

        • AvailabilityZone (string) --

          Specifies the name of the Availability Zone the DB instance is located in.

        • DBSubnetGroup (dict) --

          Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

          • DBSubnetGroupName (string) --

            The name of the DB subnet group.

          • DBSubnetGroupDescription (string) --

            Provides the description of the DB subnet group.

          • VpcId (string) --

            Provides the VpcId of the DB subnet group.

          • SubnetGroupStatus (string) --

            Provides the status of the DB subnet group.

          • Subnets (list) --

            Contains a list of Subnet elements.

            • (dict) --

              Specifies a subnet.

              This data type is used as a response element in the DescribeDBSubnetGroups action.

              • SubnetIdentifier (string) --

                Specifies the identifier of the subnet.

              • SubnetAvailabilityZone (dict) --

                Specifies the EC2 Availability Zone that the subnet is in.

                • Name (string) --

                  The name of the availability zone.

              • SubnetStatus (string) --

                Specifies the status of the subnet.

          • DBSubnetGroupArn (string) --

            The Amazon Resource Name (ARN) for the DB subnet group.

        • PreferredMaintenanceWindow (string) --

          Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        • PendingModifiedValues (dict) --

          Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

          • DBInstanceClass (string) --

            Contains the new DBInstanceClass for the DB instance that will be applied or is currently being applied.

          • AllocatedStorage (integer) --

            Contains the new AllocatedStorage size for the DB instance that will be applied or is currently being applied.

          • MasterUserPassword (string) --

            Not supported by Neptune.

          • Port (integer) --

            Specifies the pending port for the DB instance.

          • BackupRetentionPeriod (integer) --

            Specifies the pending number of days for which automated backups are retained.

          • MultiAZ (boolean) --

            Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

          • EngineVersion (string) --

            Indicates the database engine version.

          • LicenseModel (string) --

            Not supported by Neptune.

          • Iops (integer) --

            Specifies the new Provisioned IOPS value for the DB instance that will be applied or is currently being applied.

          • DBInstanceIdentifier (string) --

            Contains the new DBInstanceIdentifier for the DB instance that will be applied or is currently being applied.

          • StorageType (string) --

            Specifies the storage type to be associated with the DB instance.

          • CACertificateIdentifier (string) --

            Specifies the identifier of the CA certificate for the DB instance.

          • DBSubnetGroupName (string) --

            The new DB subnet group for the DB instance.

          • PendingCloudwatchLogsExports (dict) --

            This PendingCloudwatchLogsExports structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.

            • LogTypesToEnable (list) --

              Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.

              • (string) --
            • LogTypesToDisable (list) --

              Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.

              • (string) --
        • LatestRestorableTime (datetime) --

          Specifies the latest time to which a database can be restored with point-in-time restore.

        • MultiAZ (boolean) --

          Specifies if the DB instance is a Multi-AZ deployment.

        • EngineVersion (string) --

          Indicates the database engine version.

        • AutoMinorVersionUpgrade (boolean) --

          Indicates that minor version patches are applied automatically.

        • ReadReplicaSourceDBInstanceIdentifier (string) --

          Contains the identifier of the source DB instance if this DB instance is a Read Replica.

        • ReadReplicaDBInstanceIdentifiers (list) --

          Contains one or more identifiers of the Read Replicas associated with this DB instance.

          • (string) --
        • ReadReplicaDBClusterIdentifiers (list) --

          Contains one or more identifiers of DB clusters that are Read Replicas of this DB instance.

          • (string) --
        • LicenseModel (string) --

          License model information for this DB instance.

        • Iops (integer) --

          Specifies the Provisioned IOPS (I/O operations per second) value.

        • OptionGroupMemberships (list) --

          (Not supported by Neptune)

          • (dict) --

            Not supported by Neptune.

            • OptionGroupName (string) --

              Not supported by Neptune.

            • Status (string) --

              Not supported by Neptune.

        • CharacterSetName (string) --

          (Not supported by Neptune)

        • SecondaryAvailabilityZone (string) --

          If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

        • PubliclyAccessible (boolean) --

          This flag should no longer be used.

        • StatusInfos (list) --

          The status of a Read Replica. If the instance is not a Read Replica, this is blank.

          • (dict) --

            Provides a list of status information for a DB instance.

            • StatusType (string) --

              This value is currently "read replication."

            • Normal (boolean) --

              Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

            • Status (string) --

              Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

            • Message (string) --

              Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

        • StorageType (string) --

          Specifies the storage type associated with DB instance.

        • TdeCredentialArn (string) --

          The ARN from the key store with which the instance is associated for TDE encryption.

        • DbInstancePort (integer) --

          Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

        • DBClusterIdentifier (string) --

          If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.

        • StorageEncrypted (boolean) --

          Not supported: The encryption for DB instances is managed by the DB cluster.

        • KmsKeyId (string) --

          Not supported: The encryption for DB instances is managed by the DB cluster.

        • DbiResourceId (string) --

          The Amazon Region-unique, immutable identifier for the DB instance. This identifier is found in Amazon CloudTrail log entries whenever the Amazon KMS key for the DB instance is accessed.

        • CACertificateIdentifier (string) --

          The identifier of the CA certificate for this DB instance.

        • DomainMemberships (list) --

          Not supported

          • (dict) --

            An Active Directory Domain membership record associated with a DB instance.

            • Domain (string) --

              The identifier of the Active Directory Domain.

            • Status (string) --

              The status of the DB instance's Active Directory Domain membership, such as joined, pending-join, failed etc).

            • FQDN (string) --

              The fully qualified domain name of the Active Directory Domain.

            • IAMRoleName (string) --

              The name of the IAM role to be used when making API calls to the Directory Service.

        • CopyTagsToSnapshot (boolean) --

          Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

        • MonitoringInterval (integer) --

          The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

        • EnhancedMonitoringResourceArn (string) --

          The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.

        • MonitoringRoleArn (string) --

          The ARN for the IAM role that permits Neptune to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.

        • PromotionTier (integer) --

          A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.

        • DBInstanceArn (string) --

          The Amazon Resource Name (ARN) for the DB instance.

        • Timezone (string) --

          Not supported.

        • IAMDatabaseAuthenticationEnabled (boolean) --

          True if Amazon Identity and Access Management (IAM) authentication is enabled, and otherwise false.

        • PerformanceInsightsEnabled (boolean) --

          (Not supported by Neptune)

        • PerformanceInsightsKMSKeyId (string) --

          (Not supported by Neptune)

        • EnabledCloudwatchLogsExports (list) --

          A list of log types that this DB instance is configured to export to CloudWatch Logs.

          • (string) --
        • DeletionProtection (boolean) --

          Indicates whether or not the DB instance has deletion protection enabled. The instance can't be deleted when deletion protection is enabled. See Deleting a DB Instance .

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBParameterGroups
paginator = client.get_paginator('describe_db_parameter_groups')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_parameter_groups().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBParameterGroupName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBParameterGroupName (string) --

    The name of a specific DB parameter group to return details for.

    Constraints:

    • If supplied, must match the name of an existing DBClusterParameterGroup.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'DBParameterGroups': [
        {
            'DBParameterGroupName': 'string',
            'DBParameterGroupFamily': 'string',
            'Description': 'string',
            'DBParameterGroupArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DBParameterGroups (list) --

      A list of DBParameterGroup instances.

      • (dict) --

        Contains the details of an Amazon Neptune DB parameter group.

        This data type is used as a response element in the DescribeDBParameterGroups action.

        • DBParameterGroupName (string) --

          Provides the name of the DB parameter group.

        • DBParameterGroupFamily (string) --

          Provides the name of the DB parameter group family that this DB parameter group is compatible with.

        • Description (string) --

          Provides the customer-specified description for this DB parameter group.

        • DBParameterGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB parameter group.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBParameters
paginator = client.get_paginator('describe_db_parameters')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_parameters().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBParameterGroupName='string',
    Source='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBParameterGroupName (string) --

    [REQUIRED]

    The name of a specific DB parameter group to return details for.

    Constraints:

    • If supplied, must match the name of an existing DBParameterGroup.
  • Source (string) --

    The parameter types to return.

    Default: All parameter types returned

    Valid Values: user | system | engine-default

  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'Parameters': [
        {
            'ParameterName': 'string',
            'ParameterValue': 'string',
            'Description': 'string',
            'Source': 'string',
            'ApplyType': 'string',
            'DataType': 'string',
            'AllowedValues': 'string',
            'IsModifiable': True|False,
            'MinimumEngineVersion': 'string',
            'ApplyMethod': 'immediate'|'pending-reboot'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Parameters (list) --

      A list of Parameter values.

      • (dict) --

        Specifies a parameter.

        • ParameterName (string) --

          Specifies the name of the parameter.

        • ParameterValue (string) --

          Specifies the value of the parameter.

        • Description (string) --

          Provides a description of the parameter.

        • Source (string) --

          Indicates the source of the parameter value.

        • ApplyType (string) --

          Specifies the engine specific parameters type.

        • DataType (string) --

          Specifies the valid data type for the parameter.

        • AllowedValues (string) --

          Specifies the valid range of values for the parameter.

        • IsModifiable (boolean) --

          Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

        • MinimumEngineVersion (string) --

          The earliest engine version to which the parameter can apply.

        • ApplyMethod (string) --

          Indicates when to apply parameter updates.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeDBSubnetGroups
paginator = client.get_paginator('describe_db_subnet_groups')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_db_subnet_groups().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBSubnetGroupName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBSubnetGroupName (string) -- The name of the DB subnet group to return details for.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'DBSubnetGroups': [
        {
            'DBSubnetGroupName': 'string',
            'DBSubnetGroupDescription': 'string',
            'VpcId': 'string',
            'SubnetGroupStatus': 'string',
            'Subnets': [
                {
                    'SubnetIdentifier': 'string',
                    'SubnetAvailabilityZone': {
                        'Name': 'string'
                    },
                    'SubnetStatus': 'string'
                },
            ],
            'DBSubnetGroupArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DBSubnetGroups (list) --

      A list of DBSubnetGroup instances.

      • (dict) --

        Contains the details of an Amazon Neptune DB subnet group.

        This data type is used as a response element in the DescribeDBSubnetGroups action.

        • DBSubnetGroupName (string) --

          The name of the DB subnet group.

        • DBSubnetGroupDescription (string) --

          Provides the description of the DB subnet group.

        • VpcId (string) --

          Provides the VpcId of the DB subnet group.

        • SubnetGroupStatus (string) --

          Provides the status of the DB subnet group.

        • Subnets (list) --

          Contains a list of Subnet elements.

          • (dict) --

            Specifies a subnet.

            This data type is used as a response element in the DescribeDBSubnetGroups action.

            • SubnetIdentifier (string) --

              Specifies the identifier of the subnet.

            • SubnetAvailabilityZone (dict) --

              Specifies the EC2 Availability Zone that the subnet is in.

              • Name (string) --

                The name of the availability zone.

            • SubnetStatus (string) --

              Specifies the status of the subnet.

        • DBSubnetGroupArn (string) --

          The Amazon Resource Name (ARN) for the DB subnet group.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeEngineDefaultParameters
paginator = client.get_paginator('describe_engine_default_parameters')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_engine_default_parameters().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DBParameterGroupFamily='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DBParameterGroupFamily (string) --

    [REQUIRED]

    The name of the DB parameter group family.

  • Filters (list) --

    Not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'EngineDefaults': {
        'DBParameterGroupFamily': 'string',
        'Marker': 'string',
        'Parameters': [
            {
                'ParameterName': 'string',
                'ParameterValue': 'string',
                'Description': 'string',
                'Source': 'string',
                'ApplyType': 'string',
                'DataType': 'string',
                'AllowedValues': 'string',
                'IsModifiable': True|False,
                'MinimumEngineVersion': 'string',
                'ApplyMethod': 'immediate'|'pending-reboot'
            },
        ]
    },
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • EngineDefaults (dict) --

      Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

      • DBParameterGroupFamily (string) --

        Specifies the name of the DB parameter group family that the engine default parameters apply to.

      • Marker (string) --

        An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

      • Parameters (list) --

        Contains a list of engine default parameters.

        • (dict) --

          Specifies a parameter.

          • ParameterName (string) --

            Specifies the name of the parameter.

          • ParameterValue (string) --

            Specifies the value of the parameter.

          • Description (string) --

            Provides a description of the parameter.

          • Source (string) --

            Indicates the source of the parameter value.

          • ApplyType (string) --

            Specifies the engine specific parameters type.

          • DataType (string) --

            Specifies the valid data type for the parameter.

          • AllowedValues (string) --

            Specifies the valid range of values for the parameter.

          • IsModifiable (boolean) --

            Indicates whether (true ) or not (false ) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

          • MinimumEngineVersion (string) --

            The earliest engine version to which the parameter can apply.

          • ApplyMethod (string) --

            Indicates when to apply parameter updates.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeEventSubscriptions
paginator = client.get_paginator('describe_event_subscriptions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_event_subscriptions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    SubscriptionName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • SubscriptionName (string) -- The name of the event notification subscription you want to describe.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'EventSubscriptionsList': [
        {
            'CustomerAwsId': 'string',
            'CustSubscriptionId': 'string',
            'SnsTopicArn': 'string',
            'Status': 'string',
            'SubscriptionCreationTime': 'string',
            'SourceType': 'string',
            'SourceIdsList': [
                'string',
            ],
            'EventCategoriesList': [
                'string',
            ],
            'Enabled': True|False,
            'EventSubscriptionArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • EventSubscriptionsList (list) --

      A list of EventSubscriptions data types.

      • (dict) --

        Contains the results of a successful invocation of the DescribeEventSubscriptions action.

        • CustomerAwsId (string) --

          The Amazon customer account associated with the event notification subscription.

        • CustSubscriptionId (string) --

          The event notification subscription Id.

        • SnsTopicArn (string) --

          The topic ARN of the event notification subscription.

        • Status (string) --

          The status of the event notification subscription.

          Constraints:

          Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

          The status "no-permission" indicates that Neptune no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.

        • SubscriptionCreationTime (string) --

          The time the event notification subscription was created.

        • SourceType (string) --

          The source type for the event notification subscription.

        • SourceIdsList (list) --

          A list of source IDs for the event notification subscription.

          • (string) --
        • EventCategoriesList (list) --

          A list of event categories for the event notification subscription.

          • (string) --
        • Enabled (boolean) --

          A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

        • EventSubscriptionArn (string) --

          The Amazon Resource Name (ARN) for the event subscription.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeEvents
paginator = client.get_paginator('describe_events')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_events().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    SourceIdentifier='string',
    SourceType='db-instance'|'db-parameter-group'|'db-security-group'|'db-snapshot'|'db-cluster'|'db-cluster-snapshot',
    StartTime=datetime(2015, 1, 1),
    EndTime=datetime(2015, 1, 1),
    Duration=123,
    EventCategories=[
        'string',
    ],
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • SourceIdentifier (string) --

    The identifier of the event source for which events are returned. If not specified, then all sources are included in the response.

    Constraints:

    • If SourceIdentifier is supplied, SourceType must also be provided.
    • If the source type is DBInstance , then a DBInstanceIdentifier must be supplied.
    • If the source type is DBSecurityGroup , a DBSecurityGroupName must be supplied.
    • If the source type is DBParameterGroup , a DBParameterGroupName must be supplied.
    • If the source type is DBSnapshot , a DBSnapshotIdentifier must be supplied.
    • Cannot end with a hyphen or contain two consecutive hyphens.
  • SourceType (string) -- The event source to retrieve events for. If no value is specified, all events are returned.
  • StartTime (datetime) --

    The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

  • EndTime (datetime) --

    The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

  • Duration (integer) --

    The number of minutes to retrieve events for.

    Default: 60

  • EventCategories (list) --

    A list of event categories that trigger notifications for a event notification subscription.

    • (string) --
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'Events': [
        {
            'SourceIdentifier': 'string',
            'SourceType': 'db-instance'|'db-parameter-group'|'db-security-group'|'db-snapshot'|'db-cluster'|'db-cluster-snapshot',
            'Message': 'string',
            'EventCategories': [
                'string',
            ],
            'Date': datetime(2015, 1, 1),
            'SourceArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Events (list) --

      A list of Event instances.

      • (dict) --

        This data type is used as a response element in the DescribeEvents action.

        • SourceIdentifier (string) --

          Provides the identifier for the source of the event.

        • SourceType (string) --

          Specifies the source type for this event.

        • Message (string) --

          Provides the text of this event.

        • EventCategories (list) --

          Specifies the category for the event.

          • (string) --
        • Date (datetime) --

          Specifies the date and time of the event.

        • SourceArn (string) --

          The Amazon Resource Name (ARN) for the event.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribeOrderableDBInstanceOptions
paginator = client.get_paginator('describe_orderable_db_instance_options')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_orderable_db_instance_options().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    Engine='string',
    EngineVersion='string',
    DBInstanceClass='string',
    LicenseModel='string',
    Vpc=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • Engine (string) --

    [REQUIRED]

    The name of the engine to retrieve DB instance options for.

  • EngineVersion (string) -- The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.
  • DBInstanceClass (string) -- The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.
  • LicenseModel (string) -- The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.
  • Vpc (boolean) -- The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.
  • Filters (list) --

    This parameter is not currently supported.

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'OrderableDBInstanceOptions': [
        {
            'Engine': 'string',
            'EngineVersion': 'string',
            'DBInstanceClass': 'string',
            'LicenseModel': 'string',
            'AvailabilityZones': [
                {
                    'Name': 'string'
                },
            ],
            'MultiAZCapable': True|False,
            'ReadReplicaCapable': True|False,
            'Vpc': True|False,
            'SupportsStorageEncryption': True|False,
            'StorageType': 'string',
            'SupportsIops': True|False,
            'SupportsEnhancedMonitoring': True|False,
            'SupportsIAMDatabaseAuthentication': True|False,
            'SupportsPerformanceInsights': True|False,
            'MinStorageSize': 123,
            'MaxStorageSize': 123,
            'MinIopsPerDbInstance': 123,
            'MaxIopsPerDbInstance': 123,
            'MinIopsPerGib': 123.0,
            'MaxIopsPerGib': 123.0
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • OrderableDBInstanceOptions (list) --

      An OrderableDBInstanceOption structure containing information about orderable options for the DB instance.

      • (dict) --

        Contains a list of available options for a DB instance.

        This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

        • Engine (string) --

          The engine type of a DB instance.

        • EngineVersion (string) --

          The engine version of a DB instance.

        • DBInstanceClass (string) --

          The DB instance class for a DB instance.

        • LicenseModel (string) --

          The license model for a DB instance.

        • AvailabilityZones (list) --

          A list of Availability Zones for a DB instance.

          • (dict) --

            Specifies an Availability Zone.

            • Name (string) --

              The name of the availability zone.

        • MultiAZCapable (boolean) --

          Indicates whether a DB instance is Multi-AZ capable.

        • ReadReplicaCapable (boolean) --

          Indicates whether a DB instance can have a Read Replica.

        • Vpc (boolean) --

          Indicates whether a DB instance is in a VPC.

        • SupportsStorageEncryption (boolean) --

          Indicates whether a DB instance supports encrypted storage.

        • StorageType (string) --

          Indicates the storage type for a DB instance.

        • SupportsIops (boolean) --

          Indicates whether a DB instance supports provisioned IOPS.

        • SupportsEnhancedMonitoring (boolean) --

          Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds.

        • SupportsIAMDatabaseAuthentication (boolean) --

          Indicates whether a DB instance supports IAM database authentication.

        • SupportsPerformanceInsights (boolean) --

          (Not supported by Neptune)

        • MinStorageSize (integer) --

          Minimum storage size for a DB instance.

        • MaxStorageSize (integer) --

          Maximum storage size for a DB instance.

        • MinIopsPerDbInstance (integer) --

          Minimum total provisioned IOPS for a DB instance.

        • MaxIopsPerDbInstance (integer) --

          Maximum total provisioned IOPS for a DB instance.

        • MinIopsPerGib (float) --

          Minimum provisioned IOPS per GiB for a DB instance.

        • MaxIopsPerGib (float) --

          Maximum provisioned IOPS per GiB for a DB instance.

    • NextToken (string) --

      A token to resume pagination.

class Neptune.Paginator.DescribePendingMaintenanceActions
paginator = client.get_paginator('describe_pending_maintenance_actions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Neptune.Client.describe_pending_maintenance_actions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ResourceIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • ResourceIdentifier (string) -- The ARN of a resource to return pending maintenance actions for.
  • Filters (list) --

    A filter that specifies one or more resources to return pending maintenance actions for.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include pending maintenance actions for the DB clusters identified by these ARNs.
    • db-instance-id - Accepts DB instance identifiers and DB instance ARNs. The results list will only include pending maintenance actions for the DB instances identified by these ARNs.
    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'PendingMaintenanceActions': [
        {
            'ResourceIdentifier': 'string',
            'PendingMaintenanceActionDetails': [
                {
                    'Action': 'string',
                    'AutoAppliedAfterDate': datetime(2015, 1, 1),
                    'ForcedApplyDate': datetime(2015, 1, 1),
                    'OptInStatus': 'string',
                    'CurrentApplyDate': datetime(2015, 1, 1),
                    'Description': 'string'
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • PendingMaintenanceActions (list) --

      A list of the pending maintenance actions for the resource.

      • (dict) --

        Describes the pending maintenance actions for a resource.

        • ResourceIdentifier (string) --

          The ARN of the resource that has pending maintenance actions.

        • PendingMaintenanceActionDetails (list) --

          A list that provides details about the pending maintenance actions for the resource.

          • (dict) --

            Provides information about a pending maintenance action for a resource.

            • Action (string) --

              The type of pending maintenance action that is available for the resource.

            • AutoAppliedAfterDate (datetime) --

              The date of the maintenance window when the action is applied. The maintenance action is applied to the resource during its first maintenance window after this date. If this date is specified, any next-maintenance opt-in requests are ignored.

            • ForcedApplyDate (datetime) --

              The date when the maintenance action is automatically applied. The maintenance action is applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any immediate opt-in requests are ignored.

            • OptInStatus (string) --

              Indicates the type of opt-in request that has been received for the resource.

            • CurrentApplyDate (datetime) --

              The effective date when the pending maintenance action is applied to the resource. This date takes into account opt-in requests received from the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate , and the ForcedApplyDate . This value is blank if an opt-in request has not been received and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate .

            • Description (string) --

              A description providing more detail about the maintenance action.

    • NextToken (string) --

      A token to resume pagination.

Waiters

The available waiters are:

class Neptune.Waiter.DBInstanceAvailable
waiter = client.get_waiter('db_instance_available')
wait(**kwargs)

Polls Neptune.Client.describe_db_instances() every 30 seconds until a successful state is reached. An error is returned after 60 failed checks.

See also: AWS API Documentation

Request Syntax

waiter.wait(
    DBInstanceIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string',
    WaiterConfig={
        'Delay': 123,
        'MaxAttempts': 123
    }
)
Parameters
  • DBInstanceIdentifier (string) --

    The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match the identifier of an existing DBInstance.
  • Filters (list) --

    A filter that specifies one or more DB instances to describe.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB instances associated with the DB clusters identified by these ARNs.
    • engine - Accepts an engine name (such as neptune ), and restricts the results list to DB instances created by that engine.

    For example, to invoke this API from the Amazon CLI and filter so that only Neptune DB instances are returned, you could use the following command:

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
  • WaiterConfig (dict) --

    A dictionary that provides parameters to control waiting behavior.

    • Delay (integer) --

      The amount of time in seconds to wait between attempts. Default: 30

    • MaxAttempts (integer) --

      The maximum number of attempts to be made. Default: 60

Returns

None

class Neptune.Waiter.DBInstanceDeleted
waiter = client.get_waiter('db_instance_deleted')
wait(**kwargs)

Polls Neptune.Client.describe_db_instances() every 30 seconds until a successful state is reached. An error is returned after 60 failed checks.

See also: AWS API Documentation

Request Syntax

waiter.wait(
    DBInstanceIdentifier='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string',
    WaiterConfig={
        'Delay': 123,
        'MaxAttempts': 123
    }
)
Parameters
  • DBInstanceIdentifier (string) --

    The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match the identifier of an existing DBInstance.
  • Filters (list) --

    A filter that specifies one or more DB instances to describe.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list will only include information about the DB instances associated with the DB clusters identified by these ARNs.
    • engine - Accepts an engine name (such as neptune ), and restricts the results list to DB instances created by that engine.

    For example, to invoke this API from the Amazon CLI and filter so that only Neptune DB instances are returned, you could use the following command:

    • (dict) --

      This type is not currently supported.

      • Name (string) -- [REQUIRED]

        This parameter is not currently supported.

      • Values (list) -- [REQUIRED]

        This parameter is not currently supported.

        • (string) --
  • MaxRecords (integer) --

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

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
  • WaiterConfig (dict) --

    A dictionary that provides parameters to control waiting behavior.

    • Delay (integer) --

      The amount of time in seconds to wait between attempts. Default: 30

    • MaxAttempts (integer) --

      The maximum number of attempts to be made. Default: 60

Returns

None