Skip to content

RedshiftServerlessClient

Index > RedshiftServerless > RedshiftServerlessClient

Auto-generated documentation for RedshiftServerless type annotations stubs module mypy-boto3-redshift-serverless.

RedshiftServerlessClient

Type annotations and code completion for boto3.client("redshift-serverless"). boto3 documentation

Usage example
from boto3.session import Session
from mypy_boto3_redshift_serverless.client import RedshiftServerlessClient

def get_redshift-serverless_client() -> RedshiftServerlessClient:
    return Session().client("redshift-serverless")

Exceptions

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("redshift-serverless").exceptions structure.

Usage example
client = boto3.client("redshift-serverless")

try:
    do_something(client)
except (
    client.AccessDeniedException,
    client.ClientError,
    client.ConflictException,
    client.InsufficientCapacityException,
    client.InternalServerException,
    client.InvalidPaginationException,
    client.ResourceNotFoundException,
    client.ServiceQuotaExceededException,
    client.ThrottlingException,
    client.TooManyTagsException,
    client.ValidationException,
) as e:
    print(e)
Type checking example
from mypy_boto3_redshift_serverless.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("redshift-serverless").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("redshift-serverless").close method. boto3 documentation

Method definition
def close(
    self,
) -> None:
    ...

convert_recovery_point_to_snapshot

Converts a recovery point to a snapshot.

Type annotations and code completion for boto3.client("redshift-serverless").convert_recovery_point_to_snapshot method. boto3 documentation

Method definition
def convert_recovery_point_to_snapshot(
    self,
    *,
    recoveryPointId: str,
    snapshotName: str,
    retentionPeriod: int = ...,
    tags: Sequence[TagTypeDef] = ...,  # (1)
) -> ConvertRecoveryPointToSnapshotResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See ConvertRecoveryPointToSnapshotResponseTypeDef
Usage example with kwargs
kwargs: ConvertRecoveryPointToSnapshotRequestRequestTypeDef = {  # (1)
    "recoveryPointId": ...,
    "snapshotName": ...,
}

parent.convert_recovery_point_to_snapshot(**kwargs)
  1. See ConvertRecoveryPointToSnapshotRequestRequestTypeDef

create_endpoint_access

Creates an Amazon Redshift Serverless managed VPC endpoint.

Type annotations and code completion for boto3.client("redshift-serverless").create_endpoint_access method. boto3 documentation

Method definition
def create_endpoint_access(
    self,
    *,
    endpointName: str,
    subnetIds: Sequence[str],
    workgroupName: str,
    vpcSecurityGroupIds: Sequence[str] = ...,
) -> CreateEndpointAccessResponseTypeDef:  # (1)
    ...
  1. See CreateEndpointAccessResponseTypeDef
Usage example with kwargs
kwargs: CreateEndpointAccessRequestRequestTypeDef = {  # (1)
    "endpointName": ...,
    "subnetIds": ...,
    "workgroupName": ...,
}

parent.create_endpoint_access(**kwargs)
  1. See CreateEndpointAccessRequestRequestTypeDef

create_namespace

Creates a namespace in Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").create_namespace method. boto3 documentation

Method definition
def create_namespace(
    self,
    *,
    namespaceName: str,
    adminUserPassword: str = ...,
    adminUsername: str = ...,
    dbName: str = ...,
    defaultIamRoleArn: str = ...,
    iamRoles: Sequence[str] = ...,
    kmsKeyId: str = ...,
    logExports: Sequence[LogExportType] = ...,  # (1)
    tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateNamespaceResponseTypeDef:  # (3)
    ...
  1. See LogExportType
  2. See TagTypeDef
  3. See CreateNamespaceResponseTypeDef
Usage example with kwargs
kwargs: CreateNamespaceRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
}

parent.create_namespace(**kwargs)
  1. See CreateNamespaceRequestRequestTypeDef

create_snapshot

Creates a snapshot of all databases in a namespace.

Type annotations and code completion for boto3.client("redshift-serverless").create_snapshot method. boto3 documentation

Method definition
def create_snapshot(
    self,
    *,
    namespaceName: str,
    snapshotName: str,
    retentionPeriod: int = ...,
    tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateSnapshotResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateSnapshotResponseTypeDef
Usage example with kwargs
kwargs: CreateSnapshotRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
    "snapshotName": ...,
}

parent.create_snapshot(**kwargs)
  1. See CreateSnapshotRequestRequestTypeDef

create_usage_limit

Creates a usage limit for a specified Amazon Redshift Serverless usage type.

Type annotations and code completion for boto3.client("redshift-serverless").create_usage_limit method. boto3 documentation

Method definition
def create_usage_limit(
    self,
    *,
    amount: int,
    resourceArn: str,
    usageType: UsageLimitUsageTypeType,  # (1)
    breachAction: UsageLimitBreachActionType = ...,  # (2)
    period: UsageLimitPeriodType = ...,  # (3)
) -> CreateUsageLimitResponseTypeDef:  # (4)
    ...
  1. See UsageLimitUsageTypeType
  2. See UsageLimitBreachActionType
  3. See UsageLimitPeriodType
  4. See CreateUsageLimitResponseTypeDef
Usage example with kwargs
kwargs: CreateUsageLimitRequestRequestTypeDef = {  # (1)
    "amount": ...,
    "resourceArn": ...,
    "usageType": ...,
}

parent.create_usage_limit(**kwargs)
  1. See CreateUsageLimitRequestRequestTypeDef

create_workgroup

Creates an workgroup in Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").create_workgroup method. boto3 documentation

Method definition
def create_workgroup(
    self,
    *,
    namespaceName: str,
    workgroupName: str,
    baseCapacity: int = ...,
    configParameters: Sequence[ConfigParameterTypeDef] = ...,  # (1)
    enhancedVpcRouting: bool = ...,
    port: int = ...,
    publiclyAccessible: bool = ...,
    securityGroupIds: Sequence[str] = ...,
    subnetIds: Sequence[str] = ...,
    tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateWorkgroupResponseTypeDef:  # (3)
    ...
  1. See ConfigParameterTypeDef
  2. See TagTypeDef
  3. See CreateWorkgroupResponseTypeDef
Usage example with kwargs
kwargs: CreateWorkgroupRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
    "workgroupName": ...,
}

parent.create_workgroup(**kwargs)
  1. See CreateWorkgroupRequestRequestTypeDef

delete_endpoint_access

Deletes an Amazon Redshift Serverless managed VPC endpoint.

Type annotations and code completion for boto3.client("redshift-serverless").delete_endpoint_access method. boto3 documentation

Method definition
def delete_endpoint_access(
    self,
    *,
    endpointName: str,
) -> DeleteEndpointAccessResponseTypeDef:  # (1)
    ...
  1. See DeleteEndpointAccessResponseTypeDef
Usage example with kwargs
kwargs: DeleteEndpointAccessRequestRequestTypeDef = {  # (1)
    "endpointName": ...,
}

parent.delete_endpoint_access(**kwargs)
  1. See DeleteEndpointAccessRequestRequestTypeDef

delete_namespace

Deletes a namespace from Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").delete_namespace method. boto3 documentation

Method definition
def delete_namespace(
    self,
    *,
    namespaceName: str,
    finalSnapshotName: str = ...,
    finalSnapshotRetentionPeriod: int = ...,
) -> DeleteNamespaceResponseTypeDef:  # (1)
    ...
  1. See DeleteNamespaceResponseTypeDef
Usage example with kwargs
kwargs: DeleteNamespaceRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
}

parent.delete_namespace(**kwargs)
  1. See DeleteNamespaceRequestRequestTypeDef

delete_resource_policy

Deletes the specified resource policy.

Type annotations and code completion for boto3.client("redshift-serverless").delete_resource_policy method. boto3 documentation

Method definition
def delete_resource_policy(
    self,
    *,
    resourceArn: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteResourcePolicyRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.delete_resource_policy(**kwargs)
  1. See DeleteResourcePolicyRequestRequestTypeDef

delete_snapshot

Deletes a snapshot from Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").delete_snapshot method. boto3 documentation

Method definition
def delete_snapshot(
    self,
    *,
    snapshotName: str,
) -> DeleteSnapshotResponseTypeDef:  # (1)
    ...
  1. See DeleteSnapshotResponseTypeDef
Usage example with kwargs
kwargs: DeleteSnapshotRequestRequestTypeDef = {  # (1)
    "snapshotName": ...,
}

parent.delete_snapshot(**kwargs)
  1. See DeleteSnapshotRequestRequestTypeDef

delete_usage_limit

Deletes a usage limit from Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").delete_usage_limit method. boto3 documentation

Method definition
def delete_usage_limit(
    self,
    *,
    usageLimitId: str,
) -> DeleteUsageLimitResponseTypeDef:  # (1)
    ...
  1. See DeleteUsageLimitResponseTypeDef
Usage example with kwargs
kwargs: DeleteUsageLimitRequestRequestTypeDef = {  # (1)
    "usageLimitId": ...,
}

parent.delete_usage_limit(**kwargs)
  1. See DeleteUsageLimitRequestRequestTypeDef

delete_workgroup

Deletes a workgroup.

Type annotations and code completion for boto3.client("redshift-serverless").delete_workgroup method. boto3 documentation

Method definition
def delete_workgroup(
    self,
    *,
    workgroupName: str,
) -> DeleteWorkgroupResponseTypeDef:  # (1)
    ...
  1. See DeleteWorkgroupResponseTypeDef
Usage example with kwargs
kwargs: DeleteWorkgroupRequestRequestTypeDef = {  # (1)
    "workgroupName": ...,
}

parent.delete_workgroup(**kwargs)
  1. See DeleteWorkgroupRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("redshift-serverless").generate_presigned_url method. boto3 documentation

Method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_credentials

Returns a database user name and temporary password with temporary authorization to log in to Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").get_credentials method. boto3 documentation

Method definition
def get_credentials(
    self,
    *,
    workgroupName: str,
    dbName: str = ...,
    durationSeconds: int = ...,
) -> GetCredentialsResponseTypeDef:  # (1)
    ...
  1. See GetCredentialsResponseTypeDef
Usage example with kwargs
kwargs: GetCredentialsRequestRequestTypeDef = {  # (1)
    "workgroupName": ...,
}

parent.get_credentials(**kwargs)
  1. See GetCredentialsRequestRequestTypeDef

get_endpoint_access

Returns information, such as the name, about a VPC endpoint.

Type annotations and code completion for boto3.client("redshift-serverless").get_endpoint_access method. boto3 documentation

Method definition
def get_endpoint_access(
    self,
    *,
    endpointName: str,
) -> GetEndpointAccessResponseTypeDef:  # (1)
    ...
  1. See GetEndpointAccessResponseTypeDef
Usage example with kwargs
kwargs: GetEndpointAccessRequestRequestTypeDef = {  # (1)
    "endpointName": ...,
}

parent.get_endpoint_access(**kwargs)
  1. See GetEndpointAccessRequestRequestTypeDef

get_namespace

Returns information about a namespace in Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").get_namespace method. boto3 documentation

Method definition
def get_namespace(
    self,
    *,
    namespaceName: str,
) -> GetNamespaceResponseTypeDef:  # (1)
    ...
  1. See GetNamespaceResponseTypeDef
Usage example with kwargs
kwargs: GetNamespaceRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
}

parent.get_namespace(**kwargs)
  1. See GetNamespaceRequestRequestTypeDef

get_recovery_point

Returns information about a recovery point.

Type annotations and code completion for boto3.client("redshift-serverless").get_recovery_point method. boto3 documentation

Method definition
def get_recovery_point(
    self,
    *,
    recoveryPointId: str,
) -> GetRecoveryPointResponseTypeDef:  # (1)
    ...
  1. See GetRecoveryPointResponseTypeDef
Usage example with kwargs
kwargs: GetRecoveryPointRequestRequestTypeDef = {  # (1)
    "recoveryPointId": ...,
}

parent.get_recovery_point(**kwargs)
  1. See GetRecoveryPointRequestRequestTypeDef

get_resource_policy

Returns a resource policy.

Type annotations and code completion for boto3.client("redshift-serverless").get_resource_policy method. boto3 documentation

Method definition
def get_resource_policy(
    self,
    *,
    resourceArn: str,
) -> GetResourcePolicyResponseTypeDef:  # (1)
    ...
  1. See GetResourcePolicyResponseTypeDef
Usage example with kwargs
kwargs: GetResourcePolicyRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.get_resource_policy(**kwargs)
  1. See GetResourcePolicyRequestRequestTypeDef

get_snapshot

Returns information about a specific snapshot.

Type annotations and code completion for boto3.client("redshift-serverless").get_snapshot method. boto3 documentation

Method definition
def get_snapshot(
    self,
    *,
    ownerAccount: str = ...,
    snapshotArn: str = ...,
    snapshotName: str = ...,
) -> GetSnapshotResponseTypeDef:  # (1)
    ...
  1. See GetSnapshotResponseTypeDef
Usage example with kwargs
kwargs: GetSnapshotRequestRequestTypeDef = {  # (1)
    "ownerAccount": ...,
}

parent.get_snapshot(**kwargs)
  1. See GetSnapshotRequestRequestTypeDef

get_table_restore_status

Returns information about a TableRestoreStatus object.

Type annotations and code completion for boto3.client("redshift-serverless").get_table_restore_status method. boto3 documentation

Method definition
def get_table_restore_status(
    self,
    *,
    tableRestoreRequestId: str,
) -> GetTableRestoreStatusResponseTypeDef:  # (1)
    ...
  1. See GetTableRestoreStatusResponseTypeDef
Usage example with kwargs
kwargs: GetTableRestoreStatusRequestRequestTypeDef = {  # (1)
    "tableRestoreRequestId": ...,
}

parent.get_table_restore_status(**kwargs)
  1. See GetTableRestoreStatusRequestRequestTypeDef

get_usage_limit

Returns information about a usage limit.

Type annotations and code completion for boto3.client("redshift-serverless").get_usage_limit method. boto3 documentation

Method definition
def get_usage_limit(
    self,
    *,
    usageLimitId: str,
) -> GetUsageLimitResponseTypeDef:  # (1)
    ...
  1. See GetUsageLimitResponseTypeDef
Usage example with kwargs
kwargs: GetUsageLimitRequestRequestTypeDef = {  # (1)
    "usageLimitId": ...,
}

parent.get_usage_limit(**kwargs)
  1. See GetUsageLimitRequestRequestTypeDef

get_workgroup

Returns information about a specific workgroup.

Type annotations and code completion for boto3.client("redshift-serverless").get_workgroup method. boto3 documentation

Method definition
def get_workgroup(
    self,
    *,
    workgroupName: str,
) -> GetWorkgroupResponseTypeDef:  # (1)
    ...
  1. See GetWorkgroupResponseTypeDef
Usage example with kwargs
kwargs: GetWorkgroupRequestRequestTypeDef = {  # (1)
    "workgroupName": ...,
}

parent.get_workgroup(**kwargs)
  1. See GetWorkgroupRequestRequestTypeDef

list_endpoint_access

Returns an array of EndpointAccess objects and relevant information.

Type annotations and code completion for boto3.client("redshift-serverless").list_endpoint_access method. boto3 documentation

Method definition
def list_endpoint_access(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
    vpcId: str = ...,
    workgroupName: str = ...,
) -> ListEndpointAccessResponseTypeDef:  # (1)
    ...
  1. See ListEndpointAccessResponseTypeDef
Usage example with kwargs
kwargs: ListEndpointAccessRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_endpoint_access(**kwargs)
  1. See ListEndpointAccessRequestRequestTypeDef

list_namespaces

Returns information about a list of specified namespaces.

Type annotations and code completion for boto3.client("redshift-serverless").list_namespaces method. boto3 documentation

Method definition
def list_namespaces(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListNamespacesResponseTypeDef:  # (1)
    ...
  1. See ListNamespacesResponseTypeDef
Usage example with kwargs
kwargs: ListNamespacesRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_namespaces(**kwargs)
  1. See ListNamespacesRequestRequestTypeDef

list_recovery_points

Returns an array of recovery points.

Type annotations and code completion for boto3.client("redshift-serverless").list_recovery_points method. boto3 documentation

Method definition
def list_recovery_points(
    self,
    *,
    endTime: Union[datetime, str] = ...,
    maxResults: int = ...,
    namespaceArn: str = ...,
    namespaceName: str = ...,
    nextToken: str = ...,
    startTime: Union[datetime, str] = ...,
) -> ListRecoveryPointsResponseTypeDef:  # (1)
    ...
  1. See ListRecoveryPointsResponseTypeDef
Usage example with kwargs
kwargs: ListRecoveryPointsRequestRequestTypeDef = {  # (1)
    "endTime": ...,
}

parent.list_recovery_points(**kwargs)
  1. See ListRecoveryPointsRequestRequestTypeDef

list_snapshots

Returns a list of snapshots.

Type annotations and code completion for boto3.client("redshift-serverless").list_snapshots method. boto3 documentation

Method definition
def list_snapshots(
    self,
    *,
    endTime: Union[datetime, str] = ...,
    maxResults: int = ...,
    namespaceArn: str = ...,
    namespaceName: str = ...,
    nextToken: str = ...,
    ownerAccount: str = ...,
    startTime: Union[datetime, str] = ...,
) -> ListSnapshotsResponseTypeDef:  # (1)
    ...
  1. See ListSnapshotsResponseTypeDef
Usage example with kwargs
kwargs: ListSnapshotsRequestRequestTypeDef = {  # (1)
    "endTime": ...,
}

parent.list_snapshots(**kwargs)
  1. See ListSnapshotsRequestRequestTypeDef

list_table_restore_status

Returns information about an array of TableRestoreStatus objects.

Type annotations and code completion for boto3.client("redshift-serverless").list_table_restore_status method. boto3 documentation

Method definition
def list_table_restore_status(
    self,
    *,
    maxResults: int = ...,
    namespaceName: str = ...,
    nextToken: str = ...,
    workgroupName: str = ...,
) -> ListTableRestoreStatusResponseTypeDef:  # (1)
    ...
  1. See ListTableRestoreStatusResponseTypeDef
Usage example with kwargs
kwargs: ListTableRestoreStatusRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_table_restore_status(**kwargs)
  1. See ListTableRestoreStatusRequestRequestTypeDef

list_tags_for_resource

Lists the tags assigned to a resource.

Type annotations and code completion for boto3.client("redshift-serverless").list_tags_for_resource method. boto3 documentation

Method definition
def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

list_usage_limits

Lists all usage limits within Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").list_usage_limits method. boto3 documentation

Method definition
def list_usage_limits(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
    resourceArn: str = ...,
    usageType: UsageLimitUsageTypeType = ...,  # (1)
) -> ListUsageLimitsResponseTypeDef:  # (2)
    ...
  1. See UsageLimitUsageTypeType
  2. See ListUsageLimitsResponseTypeDef
Usage example with kwargs
kwargs: ListUsageLimitsRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_usage_limits(**kwargs)
  1. See ListUsageLimitsRequestRequestTypeDef

list_workgroups

Returns information about a list of specified workgroups.

Type annotations and code completion for boto3.client("redshift-serverless").list_workgroups method. boto3 documentation

Method definition
def list_workgroups(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListWorkgroupsResponseTypeDef:  # (1)
    ...
  1. See ListWorkgroupsResponseTypeDef
Usage example with kwargs
kwargs: ListWorkgroupsRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_workgroups(**kwargs)
  1. See ListWorkgroupsRequestRequestTypeDef

put_resource_policy

Creates or updates a resource policy.

Type annotations and code completion for boto3.client("redshift-serverless").put_resource_policy method. boto3 documentation

Method definition
def put_resource_policy(
    self,
    *,
    policy: str,
    resourceArn: str,
) -> PutResourcePolicyResponseTypeDef:  # (1)
    ...
  1. See PutResourcePolicyResponseTypeDef
Usage example with kwargs
kwargs: PutResourcePolicyRequestRequestTypeDef = {  # (1)
    "policy": ...,
    "resourceArn": ...,
}

parent.put_resource_policy(**kwargs)
  1. See PutResourcePolicyRequestRequestTypeDef

restore_from_recovery_point

Restore the data from a recovery point.

Type annotations and code completion for boto3.client("redshift-serverless").restore_from_recovery_point method. boto3 documentation

Method definition
def restore_from_recovery_point(
    self,
    *,
    namespaceName: str,
    recoveryPointId: str,
    workgroupName: str,
) -> RestoreFromRecoveryPointResponseTypeDef:  # (1)
    ...
  1. See RestoreFromRecoveryPointResponseTypeDef
Usage example with kwargs
kwargs: RestoreFromRecoveryPointRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
    "recoveryPointId": ...,
    "workgroupName": ...,
}

parent.restore_from_recovery_point(**kwargs)
  1. See RestoreFromRecoveryPointRequestRequestTypeDef

restore_from_snapshot

Restores a namespace from a snapshot.

Type annotations and code completion for boto3.client("redshift-serverless").restore_from_snapshot method. boto3 documentation

Method definition
def restore_from_snapshot(
    self,
    *,
    namespaceName: str,
    workgroupName: str,
    ownerAccount: str = ...,
    snapshotArn: str = ...,
    snapshotName: str = ...,
) -> RestoreFromSnapshotResponseTypeDef:  # (1)
    ...
  1. See RestoreFromSnapshotResponseTypeDef
Usage example with kwargs
kwargs: RestoreFromSnapshotRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
    "workgroupName": ...,
}

parent.restore_from_snapshot(**kwargs)
  1. See RestoreFromSnapshotRequestRequestTypeDef

restore_table_from_snapshot

Restores a table from a snapshot to your Amazon Redshift Serverless instance.

Type annotations and code completion for boto3.client("redshift-serverless").restore_table_from_snapshot method. boto3 documentation

Method definition
def restore_table_from_snapshot(
    self,
    *,
    namespaceName: str,
    newTableName: str,
    snapshotName: str,
    sourceDatabaseName: str,
    sourceTableName: str,
    workgroupName: str,
    activateCaseSensitiveIdentifier: bool = ...,
    sourceSchemaName: str = ...,
    targetDatabaseName: str = ...,
    targetSchemaName: str = ...,
) -> RestoreTableFromSnapshotResponseTypeDef:  # (1)
    ...
  1. See RestoreTableFromSnapshotResponseTypeDef
Usage example with kwargs
kwargs: RestoreTableFromSnapshotRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
    "newTableName": ...,
    "snapshotName": ...,
    "sourceDatabaseName": ...,
    "sourceTableName": ...,
    "workgroupName": ...,
}

parent.restore_table_from_snapshot(**kwargs)
  1. See RestoreTableFromSnapshotRequestRequestTypeDef

tag_resource

Assigns one or more tags to a resource.

Type annotations and code completion for boto3.client("redshift-serverless").tag_resource method. boto3 documentation

Method definition
def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource

Removes a tag or set of tags from a resource.

Type annotations and code completion for boto3.client("redshift-serverless").untag_resource method. boto3 documentation

Method definition
def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_endpoint_access

Updates an Amazon Redshift Serverless managed endpoint.

Type annotations and code completion for boto3.client("redshift-serverless").update_endpoint_access method. boto3 documentation

Method definition
def update_endpoint_access(
    self,
    *,
    endpointName: str,
    vpcSecurityGroupIds: Sequence[str] = ...,
) -> UpdateEndpointAccessResponseTypeDef:  # (1)
    ...
  1. See UpdateEndpointAccessResponseTypeDef
Usage example with kwargs
kwargs: UpdateEndpointAccessRequestRequestTypeDef = {  # (1)
    "endpointName": ...,
}

parent.update_endpoint_access(**kwargs)
  1. See UpdateEndpointAccessRequestRequestTypeDef

update_namespace

Updates a namespace with the specified settings.

Type annotations and code completion for boto3.client("redshift-serverless").update_namespace method. boto3 documentation

Method definition
def update_namespace(
    self,
    *,
    namespaceName: str,
    adminUserPassword: str = ...,
    adminUsername: str = ...,
    defaultIamRoleArn: str = ...,
    iamRoles: Sequence[str] = ...,
    kmsKeyId: str = ...,
    logExports: Sequence[LogExportType] = ...,  # (1)
) -> UpdateNamespaceResponseTypeDef:  # (2)
    ...
  1. See LogExportType
  2. See UpdateNamespaceResponseTypeDef
Usage example with kwargs
kwargs: UpdateNamespaceRequestRequestTypeDef = {  # (1)
    "namespaceName": ...,
}

parent.update_namespace(**kwargs)
  1. See UpdateNamespaceRequestRequestTypeDef

update_snapshot

Updates a snapshot.

Type annotations and code completion for boto3.client("redshift-serverless").update_snapshot method. boto3 documentation

Method definition
def update_snapshot(
    self,
    *,
    snapshotName: str,
    retentionPeriod: int = ...,
) -> UpdateSnapshotResponseTypeDef:  # (1)
    ...
  1. See UpdateSnapshotResponseTypeDef
Usage example with kwargs
kwargs: UpdateSnapshotRequestRequestTypeDef = {  # (1)
    "snapshotName": ...,
}

parent.update_snapshot(**kwargs)
  1. See UpdateSnapshotRequestRequestTypeDef

update_usage_limit

Update a usage limit in Amazon Redshift Serverless.

Type annotations and code completion for boto3.client("redshift-serverless").update_usage_limit method. boto3 documentation

Method definition
def update_usage_limit(
    self,
    *,
    usageLimitId: str,
    amount: int = ...,
    breachAction: UsageLimitBreachActionType = ...,  # (1)
) -> UpdateUsageLimitResponseTypeDef:  # (2)
    ...
  1. See UsageLimitBreachActionType
  2. See UpdateUsageLimitResponseTypeDef
Usage example with kwargs
kwargs: UpdateUsageLimitRequestRequestTypeDef = {  # (1)
    "usageLimitId": ...,
}

parent.update_usage_limit(**kwargs)
  1. See UpdateUsageLimitRequestRequestTypeDef

update_workgroup

Updates a workgroup with the specified configuration settings.

Type annotations and code completion for boto3.client("redshift-serverless").update_workgroup method. boto3 documentation

Method definition
def update_workgroup(
    self,
    *,
    workgroupName: str,
    baseCapacity: int = ...,
    configParameters: Sequence[ConfigParameterTypeDef] = ...,  # (1)
    enhancedVpcRouting: bool = ...,
    port: int = ...,
    publiclyAccessible: bool = ...,
    securityGroupIds: Sequence[str] = ...,
    subnetIds: Sequence[str] = ...,
) -> UpdateWorkgroupResponseTypeDef:  # (2)
    ...
  1. See ConfigParameterTypeDef
  2. See UpdateWorkgroupResponseTypeDef
Usage example with kwargs
kwargs: UpdateWorkgroupRequestRequestTypeDef = {  # (1)
    "workgroupName": ...,
}

parent.update_workgroup(**kwargs)
  1. See UpdateWorkgroupRequestRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("redshift-serverless").get_paginator method with overloads.