Table of Contents
DocDBElastic.
Client
¶A low-level client representing Amazon DocumentDB Elastic Clusters (DocDB Elastic)
The new Amazon Elastic DocumentDB service endpoint.
import boto3
client = boto3.client('docdb-elastic')
These are the available methods:
can_paginate()
close()
create_cluster()
create_cluster_snapshot()
delete_cluster()
delete_cluster_snapshot()
get_cluster()
get_cluster_snapshot()
get_paginator()
get_waiter()
list_cluster_snapshots()
list_clusters()
list_tags_for_resource()
restore_cluster_from_snapshot()
tag_resource()
untag_resource()
update_cluster()
can_paginate
(operation_name)¶Check if an operation can be paginated.
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")
.True
if the operation can be paginated,
False
otherwise.close
()¶Closes underlying endpoint connections.
create_cluster
(**kwargs)¶Creates a new Elastic DocumentDB cluster and returns its Cluster structure.
See also: AWS API Documentation
Request Syntax
response = client.create_cluster(
adminUserName='string',
adminUserPassword='string',
authType='PLAIN_TEXT'|'SECRET_ARN',
clientToken='string',
clusterName='string',
kmsKeyId='string',
preferredMaintenanceWindow='string',
shardCapacity=123,
shardCount=123,
subnetIds=[
'string',
],
tags={
'string': 'string'
},
vpcSecurityGroupIds=[
'string',
]
)
[REQUIRED]
The name of the Elastic DocumentDB cluster administrator.
Constraints :
[REQUIRED]
The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters.
Constraints :
[REQUIRED]
The authentication type for the Elastic DocumentDB cluster.
The client token for the Elastic DocumentDB cluster.
This field is autopopulated if not provided.
[REQUIRED]
The name of the new Elastic DocumentDB cluster. This parameter is stored as a lowercase string.
Constraints :
Example :my-cluster
The KMS key identifier to use to encrypt the new Elastic DocumentDB cluster.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.
If an encryption key is not specified, Elastic DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format :ddd:hh24:mi-ddd:hh24:mi
Default : a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints : Minimum 30-minute window.
[REQUIRED]
The capacity of each shard in the new Elastic DocumentDB cluster.
[REQUIRED]
The number of shards to create in the new Elastic DocumentDB cluster.
The Amazon EC2 subnet IDs for the new Elastic DocumentDB cluster.
The tags to be assigned to the new Elastic DocumentDB cluster.
A list of EC2 VPC security groups to associate with the new Elastic DocumentDB cluster.
dict
Response Syntax
{
'cluster': {
'adminUserName': 'string',
'authType': 'PLAIN_TEXT'|'SECRET_ARN',
'clusterArn': 'string',
'clusterEndpoint': 'string',
'clusterName': 'string',
'createTime': 'string',
'kmsKeyId': 'string',
'preferredMaintenanceWindow': 'string',
'shardCapacity': 123,
'shardCount': 123,
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
(dict) --
cluster (dict) --
The new Elastic DocumentDB cluster that has been created.
adminUserName (string) --
The name of the Elastic DocumentDB cluster administrator.
authType (string) --
The authentication type for the Elastic DocumentDB cluster.
clusterArn (string) --
The arn of the Elastic DocumentDB cluster.
clusterEndpoint (string) --
The URL used to connect to the Elastic DocumentDB cluster.
clusterName (string) --
The name of the Elastic DocumentDB cluster.
createTime (string) --
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
kmsKeyId (string) --
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
preferredMaintenanceWindow (string) --
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format :
ddd:hh24:mi-ddd:hh24:mi
shardCapacity (integer) --
The capacity of each shard in the Elastic DocumentDB cluster.
shardCount (integer) --
The number of shards in the Elastic DocumentDB cluster.
status (string) --
The status of the Elastic DocumentDB cluster.
subnetIds (list) --
The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.
vpcSecurityGroupIds (list) --
A list of EC2 VPC security groups associated with this cluster.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.ServiceQuotaExceededException
DocDBElastic.Client.exceptions.ConflictException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.AccessDeniedException
create_cluster_snapshot
(**kwargs)¶Creates a snapshot of a cluster.
See also: AWS API Documentation
Request Syntax
response = client.create_cluster_snapshot(
clusterArn='string',
snapshotName='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The arn of the Elastic DocumentDB cluster that the snapshot will be taken from.
[REQUIRED]
The name of the Elastic DocumentDB snapshot.
The tags to be assigned to the new Elastic DocumentDB snapshot.
dict
Response Syntax
{
'snapshot': {
'adminUserName': 'string',
'clusterArn': 'string',
'clusterCreationTime': 'string',
'kmsKeyId': 'string',
'snapshotArn': 'string',
'snapshotCreationTime': 'string',
'snapshotName': 'string',
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
(dict) --
snapshot (dict) --
Returns information about the new Elastic DocumentDB snapshot.
adminUserName (string) --
The name of the Elastic DocumentDB cluster administrator.
clusterArn (string) --
The arn of the Elastic DocumentDB cluster.
clusterCreationTime (string) --
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
kmsKeyId (string) --
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
snapshotArn (string) --
The arn of the Elastic DocumentDB snapshot
snapshotCreationTime (string) --
The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC).
snapshotName (string) --
The name of the Elastic DocumentDB snapshot.
status (string) --
The status of the Elastic DocumentDB snapshot.
subnetIds (list) --
A list of the IDs of subnets associated with the DB cluster snapshot.
vpcSecurityGroupIds (list) --
A list of the IDs of the VPC security groups associated with the cluster snapshot.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.ServiceQuotaExceededException
DocDBElastic.Client.exceptions.ConflictException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
DocDBElastic.Client.exceptions.AccessDeniedException
delete_cluster
(**kwargs)¶Delete a Elastic DocumentDB cluster.
See also: AWS API Documentation
Request Syntax
response = client.delete_cluster(
clusterArn='string'
)
[REQUIRED]
The arn of the Elastic DocumentDB cluster that is to be deleted.
{
'cluster': {
'adminUserName': 'string',
'authType': 'PLAIN_TEXT'|'SECRET_ARN',
'clusterArn': 'string',
'clusterEndpoint': 'string',
'clusterName': 'string',
'createTime': 'string',
'kmsKeyId': 'string',
'preferredMaintenanceWindow': 'string',
'shardCapacity': 123,
'shardCount': 123,
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
Returns information about the newly deleted Elastic DocumentDB cluster.
The name of the Elastic DocumentDB cluster administrator.
The authentication type for the Elastic DocumentDB cluster.
The arn of the Elastic DocumentDB cluster.
The URL used to connect to the Elastic DocumentDB cluster.
The name of the Elastic DocumentDB cluster.
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format :ddd:hh24:mi-ddd:hh24:mi
The capacity of each shard in the Elastic DocumentDB cluster.
The number of shards in the Elastic DocumentDB cluster.
The status of the Elastic DocumentDB cluster.
The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.
A list of EC2 VPC security groups associated with this cluster.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.ConflictException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
DocDBElastic.Client.exceptions.AccessDeniedException
delete_cluster_snapshot
(**kwargs)¶Delete a Elastic DocumentDB snapshot.
See also: AWS API Documentation
Request Syntax
response = client.delete_cluster_snapshot(
snapshotArn='string'
)
[REQUIRED]
The arn of the Elastic DocumentDB snapshot that is to be deleted.
{
'snapshot': {
'adminUserName': 'string',
'clusterArn': 'string',
'clusterCreationTime': 'string',
'kmsKeyId': 'string',
'snapshotArn': 'string',
'snapshotCreationTime': 'string',
'snapshotName': 'string',
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
Returns information about the newly deleted Elastic DocumentDB snapshot.
The name of the Elastic DocumentDB cluster administrator.
The arn of the Elastic DocumentDB cluster.
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
The arn of the Elastic DocumentDB snapshot
The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC).
The name of the Elastic DocumentDB snapshot.
The status of the Elastic DocumentDB snapshot.
A list of the IDs of subnets associated with the DB cluster snapshot.
A list of the IDs of the VPC security groups associated with the cluster snapshot.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.ConflictException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
DocDBElastic.Client.exceptions.AccessDeniedException
get_cluster
(**kwargs)¶Returns information about a specific Elastic DocumentDB cluster.
See also: AWS API Documentation
Request Syntax
response = client.get_cluster(
clusterArn='string'
)
[REQUIRED]
The arn of the Elastic DocumentDB cluster.
{
'cluster': {
'adminUserName': 'string',
'authType': 'PLAIN_TEXT'|'SECRET_ARN',
'clusterArn': 'string',
'clusterEndpoint': 'string',
'clusterName': 'string',
'createTime': 'string',
'kmsKeyId': 'string',
'preferredMaintenanceWindow': 'string',
'shardCapacity': 123,
'shardCount': 123,
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
Returns information about a specific Elastic DocumentDB cluster.
The name of the Elastic DocumentDB cluster administrator.
The authentication type for the Elastic DocumentDB cluster.
The arn of the Elastic DocumentDB cluster.
The URL used to connect to the Elastic DocumentDB cluster.
The name of the Elastic DocumentDB cluster.
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format :ddd:hh24:mi-ddd:hh24:mi
The capacity of each shard in the Elastic DocumentDB cluster.
The number of shards in the Elastic DocumentDB cluster.
The status of the Elastic DocumentDB cluster.
The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.
A list of EC2 VPC security groups associated with this cluster.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
DocDBElastic.Client.exceptions.AccessDeniedException
get_cluster_snapshot
(**kwargs)¶Returns information about a specific Elastic DocumentDB snapshot
See also: AWS API Documentation
Request Syntax
response = client.get_cluster_snapshot(
snapshotArn='string'
)
[REQUIRED]
The arn of the Elastic DocumentDB snapshot.
{
'snapshot': {
'adminUserName': 'string',
'clusterArn': 'string',
'clusterCreationTime': 'string',
'kmsKeyId': 'string',
'snapshotArn': 'string',
'snapshotCreationTime': 'string',
'snapshotName': 'string',
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
Returns information about a specific Elastic DocumentDB snapshot.
The name of the Elastic DocumentDB cluster administrator.
The arn of the Elastic DocumentDB cluster.
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
The arn of the Elastic DocumentDB snapshot
The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC).
The name of the Elastic DocumentDB snapshot.
The status of the Elastic DocumentDB snapshot.
A list of the IDs of subnets associated with the DB cluster snapshot.
A list of the IDs of the VPC security groups associated with the cluster snapshot.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
DocDBElastic.Client.exceptions.AccessDeniedException
get_paginator
(operation_name)¶Create a paginator for an operation.
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")
.client.can_paginate
method to
check if an operation is pageable.get_waiter
(waiter_name)¶Returns an object that can wait for some condition.
list_cluster_snapshots
(**kwargs)¶Returns information about Elastic DocumentDB snapshots for a specified cluster.
See also: AWS API Documentation
Request Syntax
response = client.list_cluster_snapshots(
clusterArn='string',
maxResults=123,
nextToken='string'
)
dict
Response Syntax
{
'nextToken': 'string',
'snapshots': [
{
'clusterArn': 'string',
'snapshotArn': 'string',
'snapshotCreationTime': 'string',
'snapshotName': 'string',
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS'
},
]
}
Response Structure
(dict) --
nextToken (string) --
The response will provide a nextToken if there is more data beyond the maxResults.
If there is no more data in the responce, the nextToken will not be returned.
snapshots (list) --
A list of Elastic DocumentDB snapshots for a specified cluster.
(dict) --
A list of Elastic DocumentDB snapshots.
clusterArn (string) --
The arn of the Elastic DocumentDB cluster.
snapshotArn (string) --
The arn of the Elastic DocumentDB snapshot
snapshotCreationTime (string) --
The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC).
snapshotName (string) --
The name of the Elastic DocumentDB snapshot.
status (string) --
The status of the Elastic DocumentDB snapshot.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.AccessDeniedException
list_clusters
(**kwargs)¶Returns information about provisioned Elastic DocumentDB clusters.
See also: AWS API Documentation
Request Syntax
response = client.list_clusters(
maxResults=123,
nextToken='string'
)
dict
Response Syntax
{
'clusters': [
{
'clusterArn': 'string',
'clusterName': 'string',
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
clusters (list) --
A list of Elastic DocumentDB cluster.
(dict) --
A list of Elastic DocumentDB cluster.
clusterArn (string) --
The arn of the Elastic DocumentDB cluster.
clusterName (string) --
The name of the Elastic DocumentDB cluster.
status (string) --
The status of the Elastic DocumentDB cluster.
nextToken (string) --
The response will provide a nextToken if there is more data beyond the maxResults.
If there is no more data in the responce, the nextToken will not be returned.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.AccessDeniedException
Lists all tags on a Elastic DocumentDB resource
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
resourceArn='string'
)
[REQUIRED]
The arn of the Elastic DocumentDB resource.
{
'tags': {
'string': 'string'
}
}
Response Structure
The list of tags for the specified Elastic DocumentDB resource.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
restore_cluster_from_snapshot
(**kwargs)¶Restores a Elastic DocumentDB cluster from a snapshot.
See also: AWS API Documentation
Request Syntax
response = client.restore_cluster_from_snapshot(
clusterName='string',
kmsKeyId='string',
snapshotArn='string',
subnetIds=[
'string',
],
tags={
'string': 'string'
},
vpcSecurityGroupIds=[
'string',
]
)
[REQUIRED]
The name of the Elastic DocumentDB cluster.
The KMS key identifier to use to encrypt the new Elastic DocumentDB cluster.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.
If an encryption key is not specified here, Elastic DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
[REQUIRED]
The arn of the Elastic DocumentDB snapshot.
The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.
A list of the tag names to be assigned to the restored DB cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.
A list of EC2 VPC security groups to associate with the Elastic DocumentDB cluster.
dict
Response Syntax
{
'cluster': {
'adminUserName': 'string',
'authType': 'PLAIN_TEXT'|'SECRET_ARN',
'clusterArn': 'string',
'clusterEndpoint': 'string',
'clusterName': 'string',
'createTime': 'string',
'kmsKeyId': 'string',
'preferredMaintenanceWindow': 'string',
'shardCapacity': 123,
'shardCount': 123,
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
(dict) --
cluster (dict) --
Returns information about a the restored Elastic DocumentDB cluster.
adminUserName (string) --
The name of the Elastic DocumentDB cluster administrator.
authType (string) --
The authentication type for the Elastic DocumentDB cluster.
clusterArn (string) --
The arn of the Elastic DocumentDB cluster.
clusterEndpoint (string) --
The URL used to connect to the Elastic DocumentDB cluster.
clusterName (string) --
The name of the Elastic DocumentDB cluster.
createTime (string) --
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
kmsKeyId (string) --
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
preferredMaintenanceWindow (string) --
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format :
ddd:hh24:mi-ddd:hh24:mi
shardCapacity (integer) --
The capacity of each shard in the Elastic DocumentDB cluster.
shardCount (integer) --
The number of shards in the Elastic DocumentDB cluster.
status (string) --
The status of the Elastic DocumentDB cluster.
subnetIds (list) --
The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.
vpcSecurityGroupIds (list) --
A list of EC2 VPC security groups associated with this cluster.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.ServiceQuotaExceededException
DocDBElastic.Client.exceptions.ConflictException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
DocDBElastic.Client.exceptions.AccessDeniedException
tag_resource
(**kwargs)¶Adds metadata tags to a Elastic DocumentDB resource
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The arn of the Elastic DocumentDB resource.
[REQUIRED]
The tags to be assigned to the Elastic DocumentDB resource.
dict
Response Syntax
{}
Response Structure
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
untag_resource
(**kwargs)¶Removes metadata tags to a Elastic DocumentDB resource
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
resourceArn='string',
tagKeys=[
'string',
]
)
[REQUIRED]
The arn of the Elastic DocumentDB resource.
[REQUIRED]
The tag keys to be removed from the Elastic DocumentDB resource.
dict
Response Syntax
{}
Response Structure
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
update_cluster
(**kwargs)¶Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password, upgrading API version setting up a backup window and maintenance window
See also: AWS API Documentation
Request Syntax
response = client.update_cluster(
adminUserPassword='string',
authType='PLAIN_TEXT'|'SECRET_ARN',
clientToken='string',
clusterArn='string',
preferredMaintenanceWindow='string',
shardCapacity=123,
shardCount=123,
subnetIds=[
'string',
],
vpcSecurityGroupIds=[
'string',
]
)
The password for the Elastic DocumentDB cluster administrator. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@).
Constraints : Must contain from 8 to 100 characters.
The client token for the Elastic DocumentDB cluster.
This field is autopopulated if not provided.
[REQUIRED]
The arn of the Elastic DocumentDB cluster.
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format :ddd:hh24:mi-ddd:hh24:mi
Default : a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints : Minimum 30-minute window.
The number of shards to create in the Elastic DocumentDB cluster.
A list of EC2 VPC security groups to associate with the new Elastic DocumentDB cluster.
dict
Response Syntax
{
'cluster': {
'adminUserName': 'string',
'authType': 'PLAIN_TEXT'|'SECRET_ARN',
'clusterArn': 'string',
'clusterEndpoint': 'string',
'clusterName': 'string',
'createTime': 'string',
'kmsKeyId': 'string',
'preferredMaintenanceWindow': 'string',
'shardCapacity': 123,
'shardCount': 123,
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS',
'subnetIds': [
'string',
],
'vpcSecurityGroupIds': [
'string',
]
}
}
Response Structure
(dict) --
cluster (dict) --
Returns information about the updated Elastic DocumentDB cluster.
adminUserName (string) --
The name of the Elastic DocumentDB cluster administrator.
authType (string) --
The authentication type for the Elastic DocumentDB cluster.
clusterArn (string) --
The arn of the Elastic DocumentDB cluster.
clusterEndpoint (string) --
The URL used to connect to the Elastic DocumentDB cluster.
clusterName (string) --
The name of the Elastic DocumentDB cluster.
createTime (string) --
The time when the Elastic DocumentDB cluster was created in Universal Coordinated Time (UTC).
kmsKeyId (string) --
The KMS key identifier to use to encrypt the Elastic DocumentDB cluster.
preferredMaintenanceWindow (string) --
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format :
ddd:hh24:mi-ddd:hh24:mi
shardCapacity (integer) --
The capacity of each shard in the Elastic DocumentDB cluster.
shardCount (integer) --
The number of shards in the Elastic DocumentDB cluster.
status (string) --
The status of the Elastic DocumentDB cluster.
subnetIds (list) --
The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.
vpcSecurityGroupIds (list) --
A list of EC2 VPC security groups associated with this cluster.
Exceptions
DocDBElastic.Client.exceptions.ThrottlingException
DocDBElastic.Client.exceptions.ValidationException
DocDBElastic.Client.exceptions.ConflictException
DocDBElastic.Client.exceptions.InternalServerException
DocDBElastic.Client.exceptions.ResourceNotFoundException
DocDBElastic.Client.exceptions.AccessDeniedException
The available paginators are:
DocDBElastic.Paginator.
ListClusterSnapshots
¶paginator = client.get_paginator('list_cluster_snapshots')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from DocDBElastic.Client.list_cluster_snapshots()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
clusterArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'snapshots': [
{
'clusterArn': 'string',
'snapshotArn': 'string',
'snapshotCreationTime': 'string',
'snapshotName': 'string',
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
snapshots (list) --
A list of Elastic DocumentDB snapshots for a specified cluster.
(dict) --
A list of Elastic DocumentDB snapshots.
clusterArn (string) --
The arn of the Elastic DocumentDB cluster.
snapshotArn (string) --
The arn of the Elastic DocumentDB snapshot
snapshotCreationTime (string) --
The time when the Elastic DocumentDB snapshot was created in Universal Coordinated Time (UTC).
snapshotName (string) --
The name of the Elastic DocumentDB snapshot.
status (string) --
The status of the Elastic DocumentDB snapshot.
NextToken (string) --
A token to resume pagination.
DocDBElastic.Paginator.
ListClusters
¶paginator = client.get_paginator('list_clusters')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from DocDBElastic.Client.list_clusters()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'clusters': [
{
'clusterArn': 'string',
'clusterName': 'string',
'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'VPC_ENDPOINT_LIMIT_EXCEEDED'|'IP_ADDRESS_LIMIT_EXCEEDED'|'INVALID_SECURITY_GROUP_ID'|'INVALID_SUBNET_ID'|'INACCESSIBLE_ENCRYPTION_CREDS'
},
],
'NextToken': 'string'
}
Response Structure
A list of Elastic DocumentDB cluster.
A list of Elastic DocumentDB cluster.
The arn of the Elastic DocumentDB cluster.
The name of the Elastic DocumentDB cluster.
The status of the Elastic DocumentDB cluster.
A token to resume pagination.