Neptune / Client / add_role_to_db_cluster

add_role_to_db_cluster#

Neptune.Client.add_role_to_db_cluster(**kwargs)#

Associates an Identity and Access Management (IAM) role with 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