2022/06/16 - Redshift Serverless - 37 new api methods
Changes Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more.
Creates an Amazon Redshift Serverless managed VPC endpoint.
See also: AWS API Documentation
Request Syntax
client.create_endpoint_access( endpointName='string', subnetIds=[ 'string', ], vpcSecurityGroupIds=[ 'string', ], workgroupName='string' )
string
[REQUIRED]
The name of the VPC endpoint. An endpoint name must contain 1-30 characters. Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a letter. The name can't contain two consecutive hyphens or end with a hyphen.
list
[REQUIRED]
The unique identifers of subnets from which Amazon Redshift Serverless chooses one to deploy a VPC endpoint.
(string) --
list
The unique identifiers of the security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
(string) --
string
[REQUIRED]
The name of the workgroup to associate with the VPC endpoint.
dict
Response Syntax
{ 'endpoint': { 'address': 'string', 'endpointArn': 'string', 'endpointCreateTime': datetime(2015, 1, 1), 'endpointName': 'string', 'endpointStatus': 'string', 'port': 123, 'subnetIds': [ 'string', ], 'vpcEndpoint': { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, 'vpcSecurityGroups': [ { 'status': 'string', 'vpcSecurityGroupId': 'string' }, ], 'workgroupName': 'string' } }
Response Structure
(dict) --
endpoint (dict) --
The created VPC endpoint.
address (string) --
The DNS address of the endpoint.
endpointArn (string) --
The Amazon Resource Name (ARN) of the VPC endpoint.
endpointCreateTime (datetime) --
The time that the endpoint was created.
endpointName (string) --
The name of the VPC endpoint.
endpointStatus (string) --
The status of the VPC endpoint.
port (integer) --
The port number on which Amazon Redshift Serverless accepts incoming connections.
subnetIds (list) --
The unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.
(string) --
vpcEndpoint (dict) --
The connection endpoint for connecting to Amazon Redshift Serverless.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
vpcSecurityGroups (list) --
The security groups associated with the endpoint.
(dict) --
Describes the members of a VPC security group.
status (string) --
The status of the VPC security group.
vpcSecurityGroupId (string) --
The unique identifier of the VPC security group.
workgroupName (string) --
The name of the workgroup associated with the endpoint.
Deletes the specified resource policy.
See also: AWS API Documentation
Request Syntax
client.delete_resource_policy( resourceArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the policy to delete.
dict
Response Syntax
{}
Response Structure
(dict) --
Returns information about a list of specified workgroups.
See also: AWS API Documentation
Request Syntax
client.list_workgroups( maxResults=123, nextToken='string' )
integer
An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
string
If your initial ListWorkgroups operation returns a nextToken, you can include the returned nextToken in subsequent ListNamespaces operations, which returns results in the next page.
dict
Response Syntax
{ 'nextToken': 'string', 'workgroups': [ { 'baseCapacity': 123, 'configParameters': [ { 'parameterKey': 'string', 'parameterValue': 'string' }, ], 'creationDate': datetime(2015, 1, 1), 'endpoint': { 'address': 'string', 'port': 123, 'vpcEndpoints': [ { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, ] }, 'enhancedVpcRouting': True|False, 'namespaceName': 'string', 'publiclyAccessible': True|False, 'securityGroupIds': [ 'string', ], 'status': 'CREATING'|'AVAILABLE'|'MODIFYING'|'DELETING', 'subnetIds': [ 'string', ], 'workgroupArn': 'string', 'workgroupId': 'string', 'workgroupName': 'string' }, ] }
Response Structure
(dict) --
nextToken (string) --
If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.
workgroups (list) --
The returned array of workgroups.
(dict) --
The collection of computing resources from which an endpoint is created.
baseCapacity (integer) --
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
configParameters (list) --
An array of parameters to set for finer control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
parameterValue (string) --
The value of the parameter to set.
creationDate (datetime) --
The creation date of the workgroup.
endpoint (dict) --
The endpoint that is created from the workgroup.
address (string) --
The DNS address of the VPC endpoint.
port (integer) --
The port that Amazon Redshift Serverless listens on.
vpcEndpoints (list) --
An array of VpcEndpoint objects.
(dict) --
The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
enhancedVpcRouting (boolean) --
The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
namespaceName (string) --
The namespace the workgroup is associated with.
publiclyAccessible (boolean) --
A value that specifies whether the workgroup can be accessible from a public network
securityGroupIds (list) --
An array of security group IDs to associate with the workgroup.
(string) --
status (string) --
The status of the workgroup.
subnetIds (list) --
An array of subnet IDs the workgroup is associated with.
(string) --
workgroupArn (string) --
The Amazon Resource Name (ARN) that links to the workgroup.
workgroupId (string) --
The unique identifier of the workgroup.
workgroupName (string) --
The name of the workgroup.
Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.
See also: AWS API Documentation
Request Syntax
client.put_resource_policy( policy='string', resourceArn='string' )
string
[REQUIRED]
The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot.
"{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"
string
[REQUIRED]
The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
dict
Response Syntax
{ 'resourcePolicy': { 'policy': 'string', 'resourceArn': 'string' } }
Response Structure
(dict) --
resourcePolicy (dict) --
The policy that was created or updated.
policy (string) --
The resource policy.
resourceArn (string) --
The Amazon Resource Name (ARN) of the policy.
Creates an workgroup in Amazon Redshift Serverless.
See also: AWS API Documentation
Request Syntax
client.create_workgroup( baseCapacity=123, configParameters=[ { 'parameterKey': 'string', 'parameterValue': 'string' }, ], enhancedVpcRouting=True|False, namespaceName='string', publiclyAccessible=True|False, securityGroupIds=[ 'string', ], subnetIds=[ 'string', ], tags=[ { 'key': 'string', 'value': 'string' }, ], workgroupName='string' )
integer
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
list
An array of parameters to set for more control over a serverless database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
parameterValue (string) --
The value of the parameter to set.
boolean
The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet.
string
[REQUIRED]
The name of the namespace to associate with the workgroup.
boolean
A value that specifies whether the workgroup can be accessed from a public network.
list
An array of security group IDs to associate with the workgroup.
(string) --
list
An array of VPC subnet IDs to associate with the workgroup.
(string) --
list
A array of tag instances.
(dict) --
A map of key-value pairs.
key (string) -- [REQUIRED]
The key to use in the tag.
value (string) -- [REQUIRED]
The value of the tag.
string
[REQUIRED]
The name of the created workgroup.
dict
Response Syntax
{ 'workgroup': { 'baseCapacity': 123, 'configParameters': [ { 'parameterKey': 'string', 'parameterValue': 'string' }, ], 'creationDate': datetime(2015, 1, 1), 'endpoint': { 'address': 'string', 'port': 123, 'vpcEndpoints': [ { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, ] }, 'enhancedVpcRouting': True|False, 'namespaceName': 'string', 'publiclyAccessible': True|False, 'securityGroupIds': [ 'string', ], 'status': 'CREATING'|'AVAILABLE'|'MODIFYING'|'DELETING', 'subnetIds': [ 'string', ], 'workgroupArn': 'string', 'workgroupId': 'string', 'workgroupName': 'string' } }
Response Structure
(dict) --
workgroup (dict) --
The created workgroup object.
baseCapacity (integer) --
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
configParameters (list) --
An array of parameters to set for finer control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
parameterValue (string) --
The value of the parameter to set.
creationDate (datetime) --
The creation date of the workgroup.
endpoint (dict) --
The endpoint that is created from the workgroup.
address (string) --
The DNS address of the VPC endpoint.
port (integer) --
The port that Amazon Redshift Serverless listens on.
vpcEndpoints (list) --
An array of VpcEndpoint objects.
(dict) --
The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
enhancedVpcRouting (boolean) --
The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
namespaceName (string) --
The namespace the workgroup is associated with.
publiclyAccessible (boolean) --
A value that specifies whether the workgroup can be accessible from a public network
securityGroupIds (list) --
An array of security group IDs to associate with the workgroup.
(string) --
status (string) --
The status of the workgroup.
subnetIds (list) --
An array of subnet IDs the workgroup is associated with.
(string) --
workgroupArn (string) --
The Amazon Resource Name (ARN) that links to the workgroup.
workgroupId (string) --
The unique identifier of the workgroup.
workgroupName (string) --
The name of the workgroup.
Returns a database user name and temporary password with temporary authorization to log in to Amazon Redshift Serverless.
By default, the temporary credentials expire in 900 seconds. You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).
`` <p> The Identity and Access Management (IAM) user or role that runs GetCredentials must have an IAM policy attached that allows access to all necessary actions and resources. </p> <p> If the <code>DbName</code> parameter is specified, the IAM policy must allow access to the resource dbname for the specified database name.</p>``
See also: AWS API Documentation
Request Syntax
client.get_credentials( dbName='string', durationSeconds=123, workgroupName='string' )
string
The name of the database to get temporary authorization to log on to.
Constraints:
Must be 1 to 64 alphanumeric characters or hyphens.
Must contain only lowercase letters, numbers, underscore, plus sign, period (dot), at symbol (@), or hyphen.
The first character must be a letter.
Must not contain a colon ( : ) or slash ( / ).
Cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide
integer
The number of seconds until the returned temporary password expires. The minimum is 900 seconds, and the maximum is 3600 seconds.
string
[REQUIRED]
The name of the workgroup associated with the database.
dict
Response Syntax
{ 'dbPassword': 'string', 'dbUser': 'string', 'expiration': datetime(2015, 1, 1), 'nextRefreshTime': datetime(2015, 1, 1) }
Response Structure
(dict) --
dbPassword (string) --
A temporary password that authorizes the user name returned by DbUser to log on to the database DbName.
dbUser (string) --
A database user name that is authorized to log on to the database DbName using the password DbPassword. If the specified DbUser exists in the database, the new user name has the same database privileges as the the user named in DbUser. By default, the user is added to PUBLIC.
expiration (datetime) --
The date and time the password in DbPassword expires.
nextRefreshTime (datetime) --
The date and time of when the DbUser and DbPassword authorization refreshes.
Converts a recovery point to a snapshot. For more information about recovery points and snapshots, see Working with snapshots and recovery points.
See also: AWS API Documentation
Request Syntax
client.convert_recovery_point_to_snapshot( recoveryPointId='string', retentionPeriod=123, snapshotName='string' )
string
[REQUIRED]
The unique identifier of the recovery point.
integer
How long to retain the snapshot.
string
[REQUIRED]
The name of the snapshot.
dict
Response Syntax
{ 'snapshot': { 'accountsWithProvisionedRestoreAccess': [ 'string', ], 'accountsWithRestoreAccess': [ 'string', ], 'actualIncrementalBackupSizeInMegaBytes': 123.0, 'adminUsername': 'string', 'backupProgressInMegaBytes': 123.0, 'currentBackupRateInMegaBytesPerSecond': 123.0, 'elapsedTimeInSeconds': 123, 'estimatedSecondsToCompletion': 123, 'kmsKeyId': 'string', 'namespaceArn': 'string', 'namespaceName': 'string', 'ownerAccount': 'string', 'snapshotArn': 'string', 'snapshotCreateTime': datetime(2015, 1, 1), 'snapshotName': 'string', 'snapshotRemainingDays': 123, 'snapshotRetentionPeriod': 123, 'snapshotRetentionStartTime': datetime(2015, 1, 1), 'status': 'AVAILABLE'|'CREATING'|'DELETED'|'CANCELLED'|'FAILED'|'COPYING', 'totalBackupSizeInMegaBytes': 123.0 } }
Response Structure
(dict) --
snapshot (dict) --
The snapshot converted from the recovery point.
accountsWithProvisionedRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
(string) --
accountsWithRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
(string) --
actualIncrementalBackupSizeInMegaBytes (float) --
The size of the incremental backup in megabytes.
adminUsername (string) --
The username of the database within a snapshot.
backupProgressInMegaBytes (float) --
The size in megabytes of the data that has been backed up to a snapshot.
currentBackupRateInMegaBytesPerSecond (float) --
The rate at which data is backed up into a snapshot in megabytes per second.
elapsedTimeInSeconds (integer) --
The amount of time it took to back up data into a snapshot.
estimatedSecondsToCompletion (integer) --
The estimated amount of seconds until the snapshot completes backup.
kmsKeyId (string) --
The unique identifier of the KMS key used to encrypt the snapshot.
namespaceArn (string) --
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
namespaceName (string) --
The name of the namepsace.
ownerAccount (string) --
The owner Amazon Web Services; account of the snapshot.
snapshotArn (string) --
The Amazon Resource Name (ARN) of the snapshot.
snapshotCreateTime (datetime) --
The timestamp of when the snapshot was created.
snapshotName (string) --
The name of the snapshot.
snapshotRemainingDays (integer) --
The amount of days until the snapshot is deleted.
snapshotRetentionPeriod (integer) --
The period of time, in days, of how long the snapshot is retained.
snapshotRetentionStartTime (datetime) --
The timestamp of when data within the snapshot started getting retained.
status (string) --
The status of the snapshot.
totalBackupSizeInMegaBytes (float) --
The total size, in megabytes, of how big the snapshot is.
Restores a namespace from a snapshot.
See also: AWS API Documentation
Request Syntax
client.restore_from_snapshot( namespaceName='string', ownerAccount='string', snapshotArn='string', snapshotName='string', workgroupName='string' )
string
[REQUIRED]
The name of the namespace to restore the snapshot to.
string
The Amazon Web Services account that owns the snapshot.
string
The Amazon Resource Name (ARN) of the snapshot to restore from.
string
The name of the snapshot to restore from.
string
[REQUIRED]
The name of the workgroup used to restore the snapshot.
dict
Response Syntax
{ 'namespace': { 'adminUsername': 'string', 'creationDate': datetime(2015, 1, 1), 'dbName': 'string', 'defaultIamRoleArn': 'string', 'iamRoles': [ 'string', ], 'kmsKeyId': 'string', 'logExports': [ 'useractivitylog'|'userlog'|'connectionlog', ], 'namespaceArn': 'string', 'namespaceId': 'string', 'namespaceName': 'string', 'status': 'AVAILABLE'|'MODIFYING'|'DELETING' }, 'ownerAccount': 'string', 'snapshotName': 'string' }
Response Structure
(dict) --
namespace (dict) --
A collection of database objects and users.
adminUsername (string) --
The username of the administrator for the first database created in the namespace.
creationDate (datetime) --
The date of when the namespace was created.
dbName (string) --
The name of the first database created in the namespace.
defaultIamRoleArn (string) --
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles (list) --
A list of IAM roles to associate with the namespace.
(string) --
kmsKeyId (string) --
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
logExports (list) --
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
(string) --
namespaceArn (string) --
The Amazon Resource Name (ARN) associated with a namespace.
namespaceId (string) --
The unique identifier of a namespace.
namespaceName (string) --
The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
status (string) --
The status of the namespace.
ownerAccount (string) --
The owner Amazon Web Services; account of the snapshot that was restored.
snapshotName (string) --
The name of the snapshot used to restore the namespace.
Deletes a usage limit from Amazon Redshift Serverless.
See also: AWS API Documentation
Request Syntax
client.delete_usage_limit( usageLimitId='string' )
string
[REQUIRED]
The unique identifier of the usage limit to delete.
dict
Response Syntax
{ 'usageLimit': { 'amount': 123, 'breachAction': 'log'|'emit-metric'|'deactivate', 'period': 'daily'|'weekly'|'monthly', 'resourceArn': 'string', 'usageLimitArn': 'string', 'usageLimitId': 'string', 'usageType': 'serverless-compute'|'cross-region-datasharing' } }
Response Structure
(dict) --
usageLimit (dict) --
The deleted usage limit object.
amount (integer) --
The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.
breachAction (string) --
The action that Amazon Redshift Serverless takes when the limit is reached.
period (string) --
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
resourceArn (string) --
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
usageLimitArn (string) --
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
usageLimitId (string) --
The identifier of the usage limit.
usageType (string) --
The Amazon Redshift Serverless feature to limit.
Update a usage limit in Amazon Redshift Serverless. You can't update the usage type or period of a usage limit.
See also: AWS API Documentation
Request Syntax
client.update_usage_limit( amount=123, breachAction='log'|'emit-metric'|'deactivate', usageLimitId='string' )
integer
The new limit amount. For more information about this parameter.
string
The new action that Amazon Redshift Serverless takes when the limit is reached.
string
[REQUIRED]
The identifier of the usage limit to update.
dict
Response Syntax
{ 'usageLimit': { 'amount': 123, 'breachAction': 'log'|'emit-metric'|'deactivate', 'period': 'daily'|'weekly'|'monthly', 'resourceArn': 'string', 'usageLimitArn': 'string', 'usageLimitId': 'string', 'usageType': 'serverless-compute'|'cross-region-datasharing' } }
Response Structure
(dict) --
usageLimit (dict) --
The updated usage limit object.
amount (integer) --
The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.
breachAction (string) --
The action that Amazon Redshift Serverless takes when the limit is reached.
period (string) --
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
resourceArn (string) --
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
usageLimitArn (string) --
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
usageLimitId (string) --
The identifier of the usage limit.
usageType (string) --
The Amazon Redshift Serverless feature to limit.
Creates a namespace in Amazon Redshift Serverless.
See also: AWS API Documentation
Request Syntax
client.create_namespace( adminUserPassword='string', adminUsername='string', dbName='string', defaultIamRoleArn='string', iamRoles=[ 'string', ], kmsKeyId='string', logExports=[ 'useractivitylog'|'userlog'|'connectionlog', ], namespaceName='string', tags=[ { 'key': 'string', 'value': 'string' }, ] )
string
The password of the administrator for the first database created in the namespace.
string
The username of the administrator for the first database created in the namespace.
string
The name of the first database created in the namespace.
string
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
list
A list of IAM roles to associate with the namespace.
(string) --
string
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
list
The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
(string) --
string
[REQUIRED]
The name of the namespace.
list
A list of tag instances.
(dict) --
A map of key-value pairs.
key (string) -- [REQUIRED]
The key to use in the tag.
value (string) -- [REQUIRED]
The value of the tag.
dict
Response Syntax
{ 'namespace': { 'adminUsername': 'string', 'creationDate': datetime(2015, 1, 1), 'dbName': 'string', 'defaultIamRoleArn': 'string', 'iamRoles': [ 'string', ], 'kmsKeyId': 'string', 'logExports': [ 'useractivitylog'|'userlog'|'connectionlog', ], 'namespaceArn': 'string', 'namespaceId': 'string', 'namespaceName': 'string', 'status': 'AVAILABLE'|'MODIFYING'|'DELETING' } }
Response Structure
(dict) --
namespace (dict) --
The created namespace object.
adminUsername (string) --
The username of the administrator for the first database created in the namespace.
creationDate (datetime) --
The date of when the namespace was created.
dbName (string) --
The name of the first database created in the namespace.
defaultIamRoleArn (string) --
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles (list) --
A list of IAM roles to associate with the namespace.
(string) --
kmsKeyId (string) --
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
logExports (list) --
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
(string) --
namespaceArn (string) --
The Amazon Resource Name (ARN) associated with a namespace.
namespaceId (string) --
The unique identifier of a namespace.
namespaceName (string) --
The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
status (string) --
The status of the namespace.
Returns information about a usage limit.
See also: AWS API Documentation
Request Syntax
client.get_usage_limit( usageLimitId='string' )
string
[REQUIRED]
The unique identifier of the usage limit to return information for.
dict
Response Syntax
{ 'usageLimit': { 'amount': 123, 'breachAction': 'log'|'emit-metric'|'deactivate', 'period': 'daily'|'weekly'|'monthly', 'resourceArn': 'string', 'usageLimitArn': 'string', 'usageLimitId': 'string', 'usageType': 'serverless-compute'|'cross-region-datasharing' } }
Response Structure
(dict) --
usageLimit (dict) --
The returned usage limit object.
amount (integer) --
The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.
breachAction (string) --
The action that Amazon Redshift Serverless takes when the limit is reached.
period (string) --
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
resourceArn (string) --
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
usageLimitArn (string) --
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
usageLimitId (string) --
The identifier of the usage limit.
usageType (string) --
The Amazon Redshift Serverless feature to limit.
Returns information, such as the name, about a VPC endpoint.
See also: AWS API Documentation
Request Syntax
client.get_endpoint_access( endpointName='string' )
string
[REQUIRED]
The name of the VPC endpoint to return information for.
dict
Response Syntax
{ 'endpoint': { 'address': 'string', 'endpointArn': 'string', 'endpointCreateTime': datetime(2015, 1, 1), 'endpointName': 'string', 'endpointStatus': 'string', 'port': 123, 'subnetIds': [ 'string', ], 'vpcEndpoint': { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, 'vpcSecurityGroups': [ { 'status': 'string', 'vpcSecurityGroupId': 'string' }, ], 'workgroupName': 'string' } }
Response Structure
(dict) --
endpoint (dict) --
The returned VPC endpoint.
address (string) --
The DNS address of the endpoint.
endpointArn (string) --
The Amazon Resource Name (ARN) of the VPC endpoint.
endpointCreateTime (datetime) --
The time that the endpoint was created.
endpointName (string) --
The name of the VPC endpoint.
endpointStatus (string) --
The status of the VPC endpoint.
port (integer) --
The port number on which Amazon Redshift Serverless accepts incoming connections.
subnetIds (list) --
The unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.
(string) --
vpcEndpoint (dict) --
The connection endpoint for connecting to Amazon Redshift Serverless.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
vpcSecurityGroups (list) --
The security groups associated with the endpoint.
(dict) --
Describes the members of a VPC security group.
status (string) --
The status of the VPC security group.
vpcSecurityGroupId (string) --
The unique identifier of the VPC security group.
workgroupName (string) --
The name of the workgroup associated with the endpoint.
Returns information about a recovery point.
See also: AWS API Documentation
Request Syntax
client.get_recovery_point( recoveryPointId='string' )
string
[REQUIRED]
The unique identifier of the recovery point to return information for.
dict
Response Syntax
{ 'recoveryPoint': { 'namespaceName': 'string', 'recoveryPointCreateTime': datetime(2015, 1, 1), 'recoveryPointId': 'string', 'totalSizeInMegaBytes': 123.0, 'workgroupName': 'string' } }
Response Structure
(dict) --
recoveryPoint (dict) --
The returned recovery point object.
namespaceName (string) --
The name of the namespace the recovery point is associated with.
recoveryPointCreateTime (datetime) --
The time the recovery point is created.
recoveryPointId (string) --
The unique identifier of the recovery point.
totalSizeInMegaBytes (float) --
The total size of the data in the recovery point in megabytes.
workgroupName (string) --
The name of the workgroup the recovery point is associated with.
Returns information about a specific workgroup.
See also: AWS API Documentation
Request Syntax
client.get_workgroup( workgroupName='string' )
string
[REQUIRED]
The name of the workgroup to return information for.
dict
Response Syntax
{ 'workgroup': { 'baseCapacity': 123, 'configParameters': [ { 'parameterKey': 'string', 'parameterValue': 'string' }, ], 'creationDate': datetime(2015, 1, 1), 'endpoint': { 'address': 'string', 'port': 123, 'vpcEndpoints': [ { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, ] }, 'enhancedVpcRouting': True|False, 'namespaceName': 'string', 'publiclyAccessible': True|False, 'securityGroupIds': [ 'string', ], 'status': 'CREATING'|'AVAILABLE'|'MODIFYING'|'DELETING', 'subnetIds': [ 'string', ], 'workgroupArn': 'string', 'workgroupId': 'string', 'workgroupName': 'string' } }
Response Structure
(dict) --
workgroup (dict) --
The returned workgroup object.
baseCapacity (integer) --
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
configParameters (list) --
An array of parameters to set for finer control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
parameterValue (string) --
The value of the parameter to set.
creationDate (datetime) --
The creation date of the workgroup.
endpoint (dict) --
The endpoint that is created from the workgroup.
address (string) --
The DNS address of the VPC endpoint.
port (integer) --
The port that Amazon Redshift Serverless listens on.
vpcEndpoints (list) --
An array of VpcEndpoint objects.
(dict) --
The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
enhancedVpcRouting (boolean) --
The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
namespaceName (string) --
The namespace the workgroup is associated with.
publiclyAccessible (boolean) --
A value that specifies whether the workgroup can be accessible from a public network
securityGroupIds (list) --
An array of security group IDs to associate with the workgroup.
(string) --
status (string) --
The status of the workgroup.
subnetIds (list) --
An array of subnet IDs the workgroup is associated with.
(string) --
workgroupArn (string) --
The Amazon Resource Name (ARN) that links to the workgroup.
workgroupId (string) --
The unique identifier of the workgroup.
workgroupName (string) --
The name of the workgroup.
Returns an array of recovery points.
See also: AWS API Documentation
Request Syntax
client.list_recovery_points( endTime=datetime(2015, 1, 1), maxResults=123, namespaceName='string', nextToken='string', startTime=datetime(2015, 1, 1) )
datetime
The time when creation of the recovery point finished.
integer
An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
string
The name of the namespace to list recovery points for.
string
If your initial ListRecoveryPoints operation returns a nextToken, you can include the returned nextToken in subsequent ListRecoveryPoints operations, which returns results in the next page.
datetime
The time when the recovery point's creation was initiated.
dict
Response Syntax
{ 'nextToken': 'string', 'recoveryPoints': [ { 'namespaceName': 'string', 'recoveryPointCreateTime': datetime(2015, 1, 1), 'recoveryPointId': 'string', 'totalSizeInMegaBytes': 123.0, 'workgroupName': 'string' }, ] }
Response Structure
(dict) --
nextToken (string) --
If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
recoveryPoints (list) --
The returned recovery point objects.
(dict) --
The automatically created recovery point of a namespace. Recovery points are created every 30 minutes and kept for 24 hours.
namespaceName (string) --
The name of the namespace the recovery point is associated with.
recoveryPointCreateTime (datetime) --
The time the recovery point is created.
recoveryPointId (string) --
The unique identifier of the recovery point.
totalSizeInMegaBytes (float) --
The total size of the data in the recovery point in megabytes.
workgroupName (string) --
The name of the workgroup the recovery point is associated with.
Creates a snapshot of all databases in a namespace. For more information about snapshots, see Working with snapshots and recovery points.
See also: AWS API Documentation
Request Syntax
client.create_snapshot( namespaceName='string', retentionPeriod=123, snapshotName='string' )
string
[REQUIRED]
The namespace to create a snapshot for.
integer
How long to retain the created snapshot.
string
[REQUIRED]
The name of the snapshot.
dict
Response Syntax
{ 'snapshot': { 'accountsWithProvisionedRestoreAccess': [ 'string', ], 'accountsWithRestoreAccess': [ 'string', ], 'actualIncrementalBackupSizeInMegaBytes': 123.0, 'adminUsername': 'string', 'backupProgressInMegaBytes': 123.0, 'currentBackupRateInMegaBytesPerSecond': 123.0, 'elapsedTimeInSeconds': 123, 'estimatedSecondsToCompletion': 123, 'kmsKeyId': 'string', 'namespaceArn': 'string', 'namespaceName': 'string', 'ownerAccount': 'string', 'snapshotArn': 'string', 'snapshotCreateTime': datetime(2015, 1, 1), 'snapshotName': 'string', 'snapshotRemainingDays': 123, 'snapshotRetentionPeriod': 123, 'snapshotRetentionStartTime': datetime(2015, 1, 1), 'status': 'AVAILABLE'|'CREATING'|'DELETED'|'CANCELLED'|'FAILED'|'COPYING', 'totalBackupSizeInMegaBytes': 123.0 } }
Response Structure
(dict) --
snapshot (dict) --
The created snapshot object.
accountsWithProvisionedRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
(string) --
accountsWithRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
(string) --
actualIncrementalBackupSizeInMegaBytes (float) --
The size of the incremental backup in megabytes.
adminUsername (string) --
The username of the database within a snapshot.
backupProgressInMegaBytes (float) --
The size in megabytes of the data that has been backed up to a snapshot.
currentBackupRateInMegaBytesPerSecond (float) --
The rate at which data is backed up into a snapshot in megabytes per second.
elapsedTimeInSeconds (integer) --
The amount of time it took to back up data into a snapshot.
estimatedSecondsToCompletion (integer) --
The estimated amount of seconds until the snapshot completes backup.
kmsKeyId (string) --
The unique identifier of the KMS key used to encrypt the snapshot.
namespaceArn (string) --
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
namespaceName (string) --
The name of the namepsace.
ownerAccount (string) --
The owner Amazon Web Services; account of the snapshot.
snapshotArn (string) --
The Amazon Resource Name (ARN) of the snapshot.
snapshotCreateTime (datetime) --
The timestamp of when the snapshot was created.
snapshotName (string) --
The name of the snapshot.
snapshotRemainingDays (integer) --
The amount of days until the snapshot is deleted.
snapshotRetentionPeriod (integer) --
The period of time, in days, of how long the snapshot is retained.
snapshotRetentionStartTime (datetime) --
The timestamp of when data within the snapshot started getting retained.
status (string) --
The status of the snapshot.
totalBackupSizeInMegaBytes (float) --
The total size, in megabytes, of how big the snapshot is.
Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, you can create a final snapshot that has all of the data within the namespace.
See also: AWS API Documentation
Request Syntax
client.delete_namespace( finalSnapshotName='string', finalSnapshotRetentionPeriod=123, namespaceName='string' )
string
The name of the snapshot to be created before the namespace is deleted.
integer
How long to retain the final snapshot.
string
[REQUIRED]
The name of the namespace to delete.
dict
Response Syntax
{ 'namespace': { 'adminUsername': 'string', 'creationDate': datetime(2015, 1, 1), 'dbName': 'string', 'defaultIamRoleArn': 'string', 'iamRoles': [ 'string', ], 'kmsKeyId': 'string', 'logExports': [ 'useractivitylog'|'userlog'|'connectionlog', ], 'namespaceArn': 'string', 'namespaceId': 'string', 'namespaceName': 'string', 'status': 'AVAILABLE'|'MODIFYING'|'DELETING' } }
Response Structure
(dict) --
namespace (dict) --
The deleted namespace object.
adminUsername (string) --
The username of the administrator for the first database created in the namespace.
creationDate (datetime) --
The date of when the namespace was created.
dbName (string) --
The name of the first database created in the namespace.
defaultIamRoleArn (string) --
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles (list) --
A list of IAM roles to associate with the namespace.
(string) --
kmsKeyId (string) --
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
logExports (list) --
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
(string) --
namespaceArn (string) --
The Amazon Resource Name (ARN) associated with a namespace.
namespaceId (string) --
The unique identifier of a namespace.
namespaceName (string) --
The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
status (string) --
The status of the namespace.
Lists all usage limits within Amazon Redshift Serverless.
See also: AWS API Documentation
Request Syntax
client.list_usage_limits( maxResults=123, nextToken='string', resourceArn='string', usageType='serverless-compute'|'cross-region-datasharing' )
integer
An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 100.
string
If your initial ListUsageLimits operation returns a nextToken, you can include the returned nextToken in subsequent ListUsageLimits operations, which returns results in the next page.
string
The Amazon Resource Name (ARN) associated with the resource whose usage limits you want to list.
string
The Amazon Redshift Serverless feature whose limits you want to see.
dict
Response Syntax
{ 'nextToken': 'string', 'usageLimits': [ { 'amount': 123, 'breachAction': 'log'|'emit-metric'|'deactivate', 'period': 'daily'|'weekly'|'monthly', 'resourceArn': 'string', 'usageLimitArn': 'string', 'usageLimitId': 'string', 'usageType': 'serverless-compute'|'cross-region-datasharing' }, ] }
Response Structure
(dict) --
nextToken (string) --
When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
usageLimits (list) --
An array of returned usage limit objects.
(dict) --
The usage limit object.
amount (integer) --
The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.
breachAction (string) --
The action that Amazon Redshift Serverless takes when the limit is reached.
period (string) --
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
resourceArn (string) --
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
usageLimitArn (string) --
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
usageLimitId (string) --
The identifier of the usage limit.
usageType (string) --
The Amazon Redshift Serverless feature to limit.
Restore the data from a recovery point.
See also: AWS API Documentation
Request Syntax
client.restore_from_recovery_point( namespaceName='string', recoveryPointId='string', workgroupName='string' )
string
[REQUIRED]
The name of the namespace to restore data into.
string
[REQUIRED]
The unique identifier of the recovery point to restore from.
string
[REQUIRED]
The name of the workgroup used to restore data.
dict
Response Syntax
{ 'namespace': { 'adminUsername': 'string', 'creationDate': datetime(2015, 1, 1), 'dbName': 'string', 'defaultIamRoleArn': 'string', 'iamRoles': [ 'string', ], 'kmsKeyId': 'string', 'logExports': [ 'useractivitylog'|'userlog'|'connectionlog', ], 'namespaceArn': 'string', 'namespaceId': 'string', 'namespaceName': 'string', 'status': 'AVAILABLE'|'MODIFYING'|'DELETING' }, 'recoveryPointId': 'string' }
Response Structure
(dict) --
namespace (dict) --
The namespace that data was restored into.
adminUsername (string) --
The username of the administrator for the first database created in the namespace.
creationDate (datetime) --
The date of when the namespace was created.
dbName (string) --
The name of the first database created in the namespace.
defaultIamRoleArn (string) --
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles (list) --
A list of IAM roles to associate with the namespace.
(string) --
kmsKeyId (string) --
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
logExports (list) --
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
(string) --
namespaceArn (string) --
The Amazon Resource Name (ARN) associated with a namespace.
namespaceId (string) --
The unique identifier of a namespace.
namespaceName (string) --
The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
status (string) --
The status of the namespace.
recoveryPointId (string) --
The unique identifier of the recovery point used for the restore.
Assigns one or more tags to a resource.
See also: AWS API Documentation
Request Syntax
client.tag_resource( resourceArn='string', tags=[ { 'key': 'string', 'value': 'string' }, ] )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to tag.
list
[REQUIRED]
The map of the key-value pairs used to tag the resource.
(dict) --
A map of key-value pairs.
key (string) -- [REQUIRED]
The key to use in the tag.
value (string) -- [REQUIRED]
The value of the tag.
dict
Response Syntax
{}
Response Structure
(dict) --
Returns information about a list of specified namespaces.
See also: AWS API Documentation
Request Syntax
client.list_namespaces( maxResults=123, nextToken='string' )
integer
An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
string
If your initial ListNamespaces operation returns a nextToken, you can include the returned nextToken in subsequent ListNamespaces operations, which returns results in the next page.
dict
Response Syntax
{ 'namespaces': [ { 'adminUsername': 'string', 'creationDate': datetime(2015, 1, 1), 'dbName': 'string', 'defaultIamRoleArn': 'string', 'iamRoles': [ 'string', ], 'kmsKeyId': 'string', 'logExports': [ 'useractivitylog'|'userlog'|'connectionlog', ], 'namespaceArn': 'string', 'namespaceId': 'string', 'namespaceName': 'string', 'status': 'AVAILABLE'|'MODIFYING'|'DELETING' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
namespaces (list) --
The list of returned namespaces.
(dict) --
A collection of database objects and users.
adminUsername (string) --
The username of the administrator for the first database created in the namespace.
creationDate (datetime) --
The date of when the namespace was created.
dbName (string) --
The name of the first database created in the namespace.
defaultIamRoleArn (string) --
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles (list) --
A list of IAM roles to associate with the namespace.
(string) --
kmsKeyId (string) --
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
logExports (list) --
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
(string) --
namespaceArn (string) --
The Amazon Resource Name (ARN) associated with a namespace.
namespaceId (string) --
The unique identifier of a namespace.
namespaceName (string) --
The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
status (string) --
The status of the namespace.
nextToken (string) --
When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
Deletes an Amazon Redshift Serverless managed VPC endpoint.
See also: AWS API Documentation
Request Syntax
client.delete_endpoint_access( endpointName='string' )
string
[REQUIRED]
The name of the VPC endpoint to delete.
dict
Response Syntax
{ 'endpoint': { 'address': 'string', 'endpointArn': 'string', 'endpointCreateTime': datetime(2015, 1, 1), 'endpointName': 'string', 'endpointStatus': 'string', 'port': 123, 'subnetIds': [ 'string', ], 'vpcEndpoint': { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, 'vpcSecurityGroups': [ { 'status': 'string', 'vpcSecurityGroupId': 'string' }, ], 'workgroupName': 'string' } }
Response Structure
(dict) --
endpoint (dict) --
The deleted VPC endpoint.
address (string) --
The DNS address of the endpoint.
endpointArn (string) --
The Amazon Resource Name (ARN) of the VPC endpoint.
endpointCreateTime (datetime) --
The time that the endpoint was created.
endpointName (string) --
The name of the VPC endpoint.
endpointStatus (string) --
The status of the VPC endpoint.
port (integer) --
The port number on which Amazon Redshift Serverless accepts incoming connections.
subnetIds (list) --
The unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.
(string) --
vpcEndpoint (dict) --
The connection endpoint for connecting to Amazon Redshift Serverless.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
vpcSecurityGroups (list) --
The security groups associated with the endpoint.
(dict) --
Describes the members of a VPC security group.
status (string) --
The status of the VPC security group.
vpcSecurityGroupId (string) --
The unique identifier of the VPC security group.
workgroupName (string) --
The name of the workgroup associated with the endpoint.
Returns an array of EndpointAccess objects and relevant information.
See also: AWS API Documentation
Request Syntax
client.list_endpoint_access( maxResults=123, nextToken='string', vpcId='string', workgroupName='string' )
integer
An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
string
If your initial ListEndpointAccess operation returns a nextToken, you can include the returned nextToken in subsequent ListEndpointAccess operations, which returns results in the next page.
string
The unique identifier of the virtual private cloud with access to Amazon Redshift Serverless.
string
The name of the workgroup associated with the VPC endpoint to return.
dict
Response Syntax
{ 'endpoints': [ { 'address': 'string', 'endpointArn': 'string', 'endpointCreateTime': datetime(2015, 1, 1), 'endpointName': 'string', 'endpointStatus': 'string', 'port': 123, 'subnetIds': [ 'string', ], 'vpcEndpoint': { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, 'vpcSecurityGroups': [ { 'status': 'string', 'vpcSecurityGroupId': 'string' }, ], 'workgroupName': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
endpoints (list) --
The returned VPC endpoints.
(dict) --
Information about an Amazon Redshift Serverless VPC endpoint.
address (string) --
The DNS address of the endpoint.
endpointArn (string) --
The Amazon Resource Name (ARN) of the VPC endpoint.
endpointCreateTime (datetime) --
The time that the endpoint was created.
endpointName (string) --
The name of the VPC endpoint.
endpointStatus (string) --
The status of the VPC endpoint.
port (integer) --
The port number on which Amazon Redshift Serverless accepts incoming connections.
subnetIds (list) --
The unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.
(string) --
vpcEndpoint (dict) --
The connection endpoint for connecting to Amazon Redshift Serverless.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
vpcSecurityGroups (list) --
The security groups associated with the endpoint.
(dict) --
Describes the members of a VPC security group.
status (string) --
The status of the VPC security group.
vpcSecurityGroupId (string) --
The unique identifier of the VPC security group.
workgroupName (string) --
The name of the workgroup associated with the endpoint.
nextToken (string) --
When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
Lists the tags assigned to a resource.
See also: AWS API Documentation
Request Syntax
client.list_tags_for_resource( resourceArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to list tags for.
dict
Response Syntax
{ 'tags': [ { 'key': 'string', 'value': 'string' }, ] }
Response Structure
(dict) --
tags (list) --
A map of the key-value pairs assigned to the resource.
(dict) --
A map of key-value pairs.
key (string) --
The key to use in the tag.
value (string) --
The value of the tag.
Returns information about a specific snapshot.
See also: AWS API Documentation
Request Syntax
client.get_snapshot( ownerAccount='string', snapshotArn='string', snapshotName='string' )
string
The owner Amazon Web Services account of a snapshot shared with another user.
string
The Amazon Resource Name (ARN) of the snapshot to return.
string
The name of the snapshot to return.
dict
Response Syntax
{ 'snapshot': { 'accountsWithProvisionedRestoreAccess': [ 'string', ], 'accountsWithRestoreAccess': [ 'string', ], 'actualIncrementalBackupSizeInMegaBytes': 123.0, 'adminUsername': 'string', 'backupProgressInMegaBytes': 123.0, 'currentBackupRateInMegaBytesPerSecond': 123.0, 'elapsedTimeInSeconds': 123, 'estimatedSecondsToCompletion': 123, 'kmsKeyId': 'string', 'namespaceArn': 'string', 'namespaceName': 'string', 'ownerAccount': 'string', 'snapshotArn': 'string', 'snapshotCreateTime': datetime(2015, 1, 1), 'snapshotName': 'string', 'snapshotRemainingDays': 123, 'snapshotRetentionPeriod': 123, 'snapshotRetentionStartTime': datetime(2015, 1, 1), 'status': 'AVAILABLE'|'CREATING'|'DELETED'|'CANCELLED'|'FAILED'|'COPYING', 'totalBackupSizeInMegaBytes': 123.0 } }
Response Structure
(dict) --
snapshot (dict) --
The returned snapshot object.
accountsWithProvisionedRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
(string) --
accountsWithRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
(string) --
actualIncrementalBackupSizeInMegaBytes (float) --
The size of the incremental backup in megabytes.
adminUsername (string) --
The username of the database within a snapshot.
backupProgressInMegaBytes (float) --
The size in megabytes of the data that has been backed up to a snapshot.
currentBackupRateInMegaBytesPerSecond (float) --
The rate at which data is backed up into a snapshot in megabytes per second.
elapsedTimeInSeconds (integer) --
The amount of time it took to back up data into a snapshot.
estimatedSecondsToCompletion (integer) --
The estimated amount of seconds until the snapshot completes backup.
kmsKeyId (string) --
The unique identifier of the KMS key used to encrypt the snapshot.
namespaceArn (string) --
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
namespaceName (string) --
The name of the namepsace.
ownerAccount (string) --
The owner Amazon Web Services; account of the snapshot.
snapshotArn (string) --
The Amazon Resource Name (ARN) of the snapshot.
snapshotCreateTime (datetime) --
The timestamp of when the snapshot was created.
snapshotName (string) --
The name of the snapshot.
snapshotRemainingDays (integer) --
The amount of days until the snapshot is deleted.
snapshotRetentionPeriod (integer) --
The period of time, in days, of how long the snapshot is retained.
snapshotRetentionStartTime (datetime) --
The timestamp of when data within the snapshot started getting retained.
status (string) --
The status of the snapshot.
totalBackupSizeInMegaBytes (float) --
The total size, in megabytes, of how big the snapshot is.
Deletes a workgroup.
See also: AWS API Documentation
Request Syntax
client.delete_workgroup( workgroupName='string' )
string
[REQUIRED]
The name of the workgroup to be deleted.
dict
Response Syntax
{ 'workgroup': { 'baseCapacity': 123, 'configParameters': [ { 'parameterKey': 'string', 'parameterValue': 'string' }, ], 'creationDate': datetime(2015, 1, 1), 'endpoint': { 'address': 'string', 'port': 123, 'vpcEndpoints': [ { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, ] }, 'enhancedVpcRouting': True|False, 'namespaceName': 'string', 'publiclyAccessible': True|False, 'securityGroupIds': [ 'string', ], 'status': 'CREATING'|'AVAILABLE'|'MODIFYING'|'DELETING', 'subnetIds': [ 'string', ], 'workgroupArn': 'string', 'workgroupId': 'string', 'workgroupName': 'string' } }
Response Structure
(dict) --
workgroup (dict) --
The deleted workgroup object.
baseCapacity (integer) --
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
configParameters (list) --
An array of parameters to set for finer control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
parameterValue (string) --
The value of the parameter to set.
creationDate (datetime) --
The creation date of the workgroup.
endpoint (dict) --
The endpoint that is created from the workgroup.
address (string) --
The DNS address of the VPC endpoint.
port (integer) --
The port that Amazon Redshift Serverless listens on.
vpcEndpoints (list) --
An array of VpcEndpoint objects.
(dict) --
The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
enhancedVpcRouting (boolean) --
The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
namespaceName (string) --
The namespace the workgroup is associated with.
publiclyAccessible (boolean) --
A value that specifies whether the workgroup can be accessible from a public network
securityGroupIds (list) --
An array of security group IDs to associate with the workgroup.
(string) --
status (string) --
The status of the workgroup.
subnetIds (list) --
An array of subnet IDs the workgroup is associated with.
(string) --
workgroupArn (string) --
The Amazon Resource Name (ARN) that links to the workgroup.
workgroupId (string) --
The unique identifier of the workgroup.
workgroupName (string) --
The name of the workgroup.
Updates a snapshot.
See also: AWS API Documentation
Request Syntax
client.update_snapshot( retentionPeriod=123, snapshotName='string' )
integer
The new retention period of the snapshot.
string
[REQUIRED]
The name of the snapshot.
dict
Response Syntax
{ 'snapshot': { 'accountsWithProvisionedRestoreAccess': [ 'string', ], 'accountsWithRestoreAccess': [ 'string', ], 'actualIncrementalBackupSizeInMegaBytes': 123.0, 'adminUsername': 'string', 'backupProgressInMegaBytes': 123.0, 'currentBackupRateInMegaBytesPerSecond': 123.0, 'elapsedTimeInSeconds': 123, 'estimatedSecondsToCompletion': 123, 'kmsKeyId': 'string', 'namespaceArn': 'string', 'namespaceName': 'string', 'ownerAccount': 'string', 'snapshotArn': 'string', 'snapshotCreateTime': datetime(2015, 1, 1), 'snapshotName': 'string', 'snapshotRemainingDays': 123, 'snapshotRetentionPeriod': 123, 'snapshotRetentionStartTime': datetime(2015, 1, 1), 'status': 'AVAILABLE'|'CREATING'|'DELETED'|'CANCELLED'|'FAILED'|'COPYING', 'totalBackupSizeInMegaBytes': 123.0 } }
Response Structure
(dict) --
snapshot (dict) --
The updated snapshot object.
accountsWithProvisionedRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
(string) --
accountsWithRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
(string) --
actualIncrementalBackupSizeInMegaBytes (float) --
The size of the incremental backup in megabytes.
adminUsername (string) --
The username of the database within a snapshot.
backupProgressInMegaBytes (float) --
The size in megabytes of the data that has been backed up to a snapshot.
currentBackupRateInMegaBytesPerSecond (float) --
The rate at which data is backed up into a snapshot in megabytes per second.
elapsedTimeInSeconds (integer) --
The amount of time it took to back up data into a snapshot.
estimatedSecondsToCompletion (integer) --
The estimated amount of seconds until the snapshot completes backup.
kmsKeyId (string) --
The unique identifier of the KMS key used to encrypt the snapshot.
namespaceArn (string) --
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
namespaceName (string) --
The name of the namepsace.
ownerAccount (string) --
The owner Amazon Web Services; account of the snapshot.
snapshotArn (string) --
The Amazon Resource Name (ARN) of the snapshot.
snapshotCreateTime (datetime) --
The timestamp of when the snapshot was created.
snapshotName (string) --
The name of the snapshot.
snapshotRemainingDays (integer) --
The amount of days until the snapshot is deleted.
snapshotRetentionPeriod (integer) --
The period of time, in days, of how long the snapshot is retained.
snapshotRetentionStartTime (datetime) --
The timestamp of when data within the snapshot started getting retained.
status (string) --
The status of the snapshot.
totalBackupSizeInMegaBytes (float) --
The total size, in megabytes, of how big the snapshot is.
Updates an Amazon Redshift Serverless managed endpoint.
See also: AWS API Documentation
Request Syntax
client.update_endpoint_access( endpointName='string', vpcSecurityGroupIds=[ 'string', ] )
string
[REQUIRED]
The name of the VPC endpoint to update.
list
The list of VPC security groups associated with the endpoint after the endpoint is modified.
(string) --
dict
Response Syntax
{ 'endpoint': { 'address': 'string', 'endpointArn': 'string', 'endpointCreateTime': datetime(2015, 1, 1), 'endpointName': 'string', 'endpointStatus': 'string', 'port': 123, 'subnetIds': [ 'string', ], 'vpcEndpoint': { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, 'vpcSecurityGroups': [ { 'status': 'string', 'vpcSecurityGroupId': 'string' }, ], 'workgroupName': 'string' } }
Response Structure
(dict) --
endpoint (dict) --
The updated VPC endpoint.
address (string) --
The DNS address of the endpoint.
endpointArn (string) --
The Amazon Resource Name (ARN) of the VPC endpoint.
endpointCreateTime (datetime) --
The time that the endpoint was created.
endpointName (string) --
The name of the VPC endpoint.
endpointStatus (string) --
The status of the VPC endpoint.
port (integer) --
The port number on which Amazon Redshift Serverless accepts incoming connections.
subnetIds (list) --
The unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.
(string) --
vpcEndpoint (dict) --
The connection endpoint for connecting to Amazon Redshift Serverless.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
vpcSecurityGroups (list) --
The security groups associated with the endpoint.
(dict) --
Describes the members of a VPC security group.
status (string) --
The status of the VPC security group.
vpcSecurityGroupId (string) --
The unique identifier of the VPC security group.
workgroupName (string) --
The name of the workgroup associated with the endpoint.
Returns information about a namespace in Amazon Redshift Serverless.
See also: AWS API Documentation
Request Syntax
client.get_namespace( namespaceName='string' )
string
[REQUIRED]
The name of the namespace to retrieve information for.
dict
Response Syntax
{ 'namespace': { 'adminUsername': 'string', 'creationDate': datetime(2015, 1, 1), 'dbName': 'string', 'defaultIamRoleArn': 'string', 'iamRoles': [ 'string', ], 'kmsKeyId': 'string', 'logExports': [ 'useractivitylog'|'userlog'|'connectionlog', ], 'namespaceArn': 'string', 'namespaceId': 'string', 'namespaceName': 'string', 'status': 'AVAILABLE'|'MODIFYING'|'DELETING' } }
Response Structure
(dict) --
namespace (dict) --
The returned namespace object.
adminUsername (string) --
The username of the administrator for the first database created in the namespace.
creationDate (datetime) --
The date of when the namespace was created.
dbName (string) --
The name of the first database created in the namespace.
defaultIamRoleArn (string) --
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles (list) --
A list of IAM roles to associate with the namespace.
(string) --
kmsKeyId (string) --
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
logExports (list) --
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
(string) --
namespaceArn (string) --
The Amazon Resource Name (ARN) associated with a namespace.
namespaceId (string) --
The unique identifier of a namespace.
namespaceName (string) --
The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
status (string) --
The status of the namespace.
Updates a namespace with the specified settings.
See also: AWS API Documentation
Request Syntax
client.update_namespace( adminUserPassword='string', adminUsername='string', defaultIamRoleArn='string', iamRoles=[ 'string', ], kmsKeyId='string', logExports=[ 'useractivitylog'|'userlog'|'connectionlog', ], namespaceName='string' )
string
The password of the administrator for the first database created in the namespace.
string
The username of the administrator for the first database created in the namespace.
string
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
list
A list of IAM roles to associate with the namespace.
(string) --
string
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
list
The types of logs the namespace can export. The export types are userlog, connectionlog, and useractivitylog.
(string) --
string
[REQUIRED]
The name of the namespace.
dict
Response Syntax
{ 'namespace': { 'adminUsername': 'string', 'creationDate': datetime(2015, 1, 1), 'dbName': 'string', 'defaultIamRoleArn': 'string', 'iamRoles': [ 'string', ], 'kmsKeyId': 'string', 'logExports': [ 'useractivitylog'|'userlog'|'connectionlog', ], 'namespaceArn': 'string', 'namespaceId': 'string', 'namespaceName': 'string', 'status': 'AVAILABLE'|'MODIFYING'|'DELETING' } }
Response Structure
(dict) --
namespace (dict) --
A list of tag instances.
adminUsername (string) --
The username of the administrator for the first database created in the namespace.
creationDate (datetime) --
The date of when the namespace was created.
dbName (string) --
The name of the first database created in the namespace.
defaultIamRoleArn (string) --
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles (list) --
A list of IAM roles to associate with the namespace.
(string) --
kmsKeyId (string) --
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
logExports (list) --
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
(string) --
namespaceArn (string) --
The Amazon Resource Name (ARN) associated with a namespace.
namespaceId (string) --
The unique identifier of a namespace.
namespaceName (string) --
The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
status (string) --
The status of the namespace.
Deletes a snapshot from Amazon Redshift Serverless.
See also: AWS API Documentation
Request Syntax
client.delete_snapshot( snapshotName='string' )
string
[REQUIRED]
The name of the snapshot to be deleted.
dict
Response Syntax
{ 'snapshot': { 'accountsWithProvisionedRestoreAccess': [ 'string', ], 'accountsWithRestoreAccess': [ 'string', ], 'actualIncrementalBackupSizeInMegaBytes': 123.0, 'adminUsername': 'string', 'backupProgressInMegaBytes': 123.0, 'currentBackupRateInMegaBytesPerSecond': 123.0, 'elapsedTimeInSeconds': 123, 'estimatedSecondsToCompletion': 123, 'kmsKeyId': 'string', 'namespaceArn': 'string', 'namespaceName': 'string', 'ownerAccount': 'string', 'snapshotArn': 'string', 'snapshotCreateTime': datetime(2015, 1, 1), 'snapshotName': 'string', 'snapshotRemainingDays': 123, 'snapshotRetentionPeriod': 123, 'snapshotRetentionStartTime': datetime(2015, 1, 1), 'status': 'AVAILABLE'|'CREATING'|'DELETED'|'CANCELLED'|'FAILED'|'COPYING', 'totalBackupSizeInMegaBytes': 123.0 } }
Response Structure
(dict) --
snapshot (dict) --
The deleted snapshot object.
accountsWithProvisionedRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
(string) --
accountsWithRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
(string) --
actualIncrementalBackupSizeInMegaBytes (float) --
The size of the incremental backup in megabytes.
adminUsername (string) --
The username of the database within a snapshot.
backupProgressInMegaBytes (float) --
The size in megabytes of the data that has been backed up to a snapshot.
currentBackupRateInMegaBytesPerSecond (float) --
The rate at which data is backed up into a snapshot in megabytes per second.
elapsedTimeInSeconds (integer) --
The amount of time it took to back up data into a snapshot.
estimatedSecondsToCompletion (integer) --
The estimated amount of seconds until the snapshot completes backup.
kmsKeyId (string) --
The unique identifier of the KMS key used to encrypt the snapshot.
namespaceArn (string) --
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
namespaceName (string) --
The name of the namepsace.
ownerAccount (string) --
The owner Amazon Web Services; account of the snapshot.
snapshotArn (string) --
The Amazon Resource Name (ARN) of the snapshot.
snapshotCreateTime (datetime) --
The timestamp of when the snapshot was created.
snapshotName (string) --
The name of the snapshot.
snapshotRemainingDays (integer) --
The amount of days until the snapshot is deleted.
snapshotRetentionPeriod (integer) --
The period of time, in days, of how long the snapshot is retained.
snapshotRetentionStartTime (datetime) --
The timestamp of when data within the snapshot started getting retained.
status (string) --
The status of the snapshot.
totalBackupSizeInMegaBytes (float) --
The total size, in megabytes, of how big the snapshot is.
Returns a resource policy.
See also: AWS API Documentation
Request Syntax
client.get_resource_policy( resourceArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to return.
dict
Response Syntax
{ 'resourcePolicy': { 'policy': 'string', 'resourceArn': 'string' } }
Response Structure
(dict) --
resourcePolicy (dict) --
The returned resource policy.
policy (string) --
The resource policy.
resourceArn (string) --
The Amazon Resource Name (ARN) of the policy.
Updates a workgroup with the specified configuration settings.
See also: AWS API Documentation
Request Syntax
client.update_workgroup( baseCapacity=123, configParameters=[ { 'parameterKey': 'string', 'parameterValue': 'string' }, ], enhancedVpcRouting=True|False, publiclyAccessible=True|False, securityGroupIds=[ 'string', ], subnetIds=[ 'string', ], workgroupName='string' )
integer
The new base data warehouse capacity in Redshift Processing Units (RPUs).
list
An array of parameters to set for advanced control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
parameterValue (string) --
The value of the parameter to set.
boolean
The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
boolean
A value that specifies whether the workgroup can be accessible from a public network.
list
An array of security group IDs to associate with the workgroup.
(string) --
list
An array of VPC subnet IDs to associate with the workgroup.
(string) --
string
[REQUIRED]
The name of the workgroup to update.
dict
Response Syntax
{ 'workgroup': { 'baseCapacity': 123, 'configParameters': [ { 'parameterKey': 'string', 'parameterValue': 'string' }, ], 'creationDate': datetime(2015, 1, 1), 'endpoint': { 'address': 'string', 'port': 123, 'vpcEndpoints': [ { 'networkInterfaces': [ { 'availabilityZone': 'string', 'networkInterfaceId': 'string', 'privateIpAddress': 'string', 'subnetId': 'string' }, ], 'vpcEndpointId': 'string', 'vpcId': 'string' }, ] }, 'enhancedVpcRouting': True|False, 'namespaceName': 'string', 'publiclyAccessible': True|False, 'securityGroupIds': [ 'string', ], 'status': 'CREATING'|'AVAILABLE'|'MODIFYING'|'DELETING', 'subnetIds': [ 'string', ], 'workgroupArn': 'string', 'workgroupId': 'string', 'workgroupName': 'string' } }
Response Structure
(dict) --
workgroup (dict) --
The updated workgroup object.
baseCapacity (integer) --
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
configParameters (list) --
An array of parameters to set for finer control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.
parameterValue (string) --
The value of the parameter to set.
creationDate (datetime) --
The creation date of the workgroup.
endpoint (dict) --
The endpoint that is created from the workgroup.
address (string) --
The DNS address of the VPC endpoint.
port (integer) --
The port that Amazon Redshift Serverless listens on.
vpcEndpoints (list) --
An array of VpcEndpoint objects.
(dict) --
The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
availabilityZone (string) --
The availability Zone.
networkInterfaceId (string) --
The unique identifier of the network interface.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
subnetId (string) --
The unique identifier of the subnet.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
enhancedVpcRouting (boolean) --
The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
namespaceName (string) --
The namespace the workgroup is associated with.
publiclyAccessible (boolean) --
A value that specifies whether the workgroup can be accessible from a public network
securityGroupIds (list) --
An array of security group IDs to associate with the workgroup.
(string) --
status (string) --
The status of the workgroup.
subnetIds (list) --
An array of subnet IDs the workgroup is associated with.
(string) --
workgroupArn (string) --
The Amazon Resource Name (ARN) that links to the workgroup.
workgroupId (string) --
The unique identifier of the workgroup.
workgroupName (string) --
The name of the workgroup.
Returns a list of snapshots.
See also: AWS API Documentation
Request Syntax
client.list_snapshots( endTime=datetime(2015, 1, 1), maxResults=123, namespaceArn='string', namespaceName='string', nextToken='string', ownerAccount='string', startTime=datetime(2015, 1, 1) )
datetime
The timestamp showing when the snapshot creation finished.
integer
An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
string
The Amazon Resource Name (ARN) of the namespace from which to list all snapshots.
string
The namespace from which to list all snapshots.
string
If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
string
The owner Amazon Web Services account of the snapshot.
datetime
The time when the creation of the snapshot was initiated.
dict
Response Syntax
{ 'nextToken': 'string', 'snapshots': [ { 'accountsWithProvisionedRestoreAccess': [ 'string', ], 'accountsWithRestoreAccess': [ 'string', ], 'actualIncrementalBackupSizeInMegaBytes': 123.0, 'adminUsername': 'string', 'backupProgressInMegaBytes': 123.0, 'currentBackupRateInMegaBytesPerSecond': 123.0, 'elapsedTimeInSeconds': 123, 'estimatedSecondsToCompletion': 123, 'kmsKeyId': 'string', 'namespaceArn': 'string', 'namespaceName': 'string', 'ownerAccount': 'string', 'snapshotArn': 'string', 'snapshotCreateTime': datetime(2015, 1, 1), 'snapshotName': 'string', 'snapshotRemainingDays': 123, 'snapshotRetentionPeriod': 123, 'snapshotRetentionStartTime': datetime(2015, 1, 1), 'status': 'AVAILABLE'|'CREATING'|'DELETED'|'CANCELLED'|'FAILED'|'COPYING', 'totalBackupSizeInMegaBytes': 123.0 }, ] }
Response Structure
(dict) --
nextToken (string) --
If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
snapshots (list) --
All of the returned snapshot objects.
(dict) --
A snapshot object that contains databases.
accountsWithProvisionedRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
(string) --
accountsWithRestoreAccess (list) --
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
(string) --
actualIncrementalBackupSizeInMegaBytes (float) --
The size of the incremental backup in megabytes.
adminUsername (string) --
The username of the database within a snapshot.
backupProgressInMegaBytes (float) --
The size in megabytes of the data that has been backed up to a snapshot.
currentBackupRateInMegaBytesPerSecond (float) --
The rate at which data is backed up into a snapshot in megabytes per second.
elapsedTimeInSeconds (integer) --
The amount of time it took to back up data into a snapshot.
estimatedSecondsToCompletion (integer) --
The estimated amount of seconds until the snapshot completes backup.
kmsKeyId (string) --
The unique identifier of the KMS key used to encrypt the snapshot.
namespaceArn (string) --
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
namespaceName (string) --
The name of the namepsace.
ownerAccount (string) --
The owner Amazon Web Services; account of the snapshot.
snapshotArn (string) --
The Amazon Resource Name (ARN) of the snapshot.
snapshotCreateTime (datetime) --
The timestamp of when the snapshot was created.
snapshotName (string) --
The name of the snapshot.
snapshotRemainingDays (integer) --
The amount of days until the snapshot is deleted.
snapshotRetentionPeriod (integer) --
The period of time, in days, of how long the snapshot is retained.
snapshotRetentionStartTime (datetime) --
The timestamp of when data within the snapshot started getting retained.
status (string) --
The status of the snapshot.
totalBackupSizeInMegaBytes (float) --
The total size, in megabytes, of how big the snapshot is.
Removes a tag or set of tags from a resource.
See also: AWS API Documentation
Request Syntax
client.untag_resource( resourceArn='string', tagKeys=[ 'string', ] )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to remove tags from.
list
[REQUIRED]
The tag or set of tags to remove from the resource.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage limit is identified by the returned usage limit identifier.
See also: AWS API Documentation
Request Syntax
client.create_usage_limit( amount=123, breachAction='log'|'emit-metric'|'deactivate', period='daily'|'weekly'|'monthly', resourceArn='string', usageType='serverless-compute'|'cross-region-datasharing' )
integer
[REQUIRED]
The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.
string
The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
string
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
string
[REQUIRED]
The type of Amazon Redshift Serverless usage to create a usage limit for.
dict
Response Syntax
{ 'usageLimit': { 'amount': 123, 'breachAction': 'log'|'emit-metric'|'deactivate', 'period': 'daily'|'weekly'|'monthly', 'resourceArn': 'string', 'usageLimitArn': 'string', 'usageLimitId': 'string', 'usageType': 'serverless-compute'|'cross-region-datasharing' } }
Response Structure
(dict) --
usageLimit (dict) --
The returned usage limit object.
amount (integer) --
The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.
breachAction (string) --
The action that Amazon Redshift Serverless takes when the limit is reached.
period (string) --
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
resourceArn (string) --
The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.
usageLimitArn (string) --
The Amazon Resource Name (ARN) of the resource associated with the usage limit.
usageLimitId (string) --
The identifier of the usage limit.
usageType (string) --
The Amazon Redshift Serverless feature to limit.