Skip to content

SchemasClient

Index > Schemas > SchemasClient

Auto-generated documentation for Schemas type annotations stubs module types-aiobotocore-schemas.

SchemasClient

Type annotations and code completion for session.client("schemas") boto3 documentation

Usage example
from aioboto3.session import Session
from types_aiobotocore_schemas.client import SchemasClient

session = Session()
async with session.client("schemas") as client:
    client: SchemasClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("schemas").exceptions structure.

Usage example
async with session.client("schemas") as client:
    try:
        do_something(client)
    except (
            client.BadRequestException,
        client.ClientError,
        client.ConflictException,
        client.ForbiddenException,
        client.GoneException,
        client.InternalServerErrorException,
        client.NotFoundException,
        client.PreconditionFailedException,
        client.ServiceUnavailableException,
        client.TooManyRequestsException,
        client.UnauthorizedException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_schemas.client import Exceptions

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

Methods

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for session.client("schemas").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 session.client("schemas").close method. boto3 documentation

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

create_discoverer

Creates a discoverer.

Type annotations and code completion for session.client("schemas").create_discoverer method. boto3 documentation

Method definition
await def create_discoverer(
    self,
    *,
    SourceArn: str,
    Description: str = ...,
    CrossAccount: bool = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateDiscovererResponseTypeDef:  # (1)
    ...
  1. See CreateDiscovererResponseTypeDef
Usage example with kwargs
kwargs: CreateDiscovererRequestRequestTypeDef = {  # (1)
    "SourceArn": ...,
}

parent.create_discoverer(**kwargs)
  1. See CreateDiscovererRequestRequestTypeDef

create_registry

Creates a registry.

Type annotations and code completion for session.client("schemas").create_registry method. boto3 documentation

Method definition
await def create_registry(
    self,
    *,
    RegistryName: str,
    Description: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateRegistryResponseTypeDef:  # (1)
    ...
  1. See CreateRegistryResponseTypeDef
Usage example with kwargs
kwargs: CreateRegistryRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
}

parent.create_registry(**kwargs)
  1. See CreateRegistryRequestRequestTypeDef

create_schema

Creates a schema definition.

Type annotations and code completion for session.client("schemas").create_schema method. boto3 documentation

Method definition
await def create_schema(
    self,
    *,
    Content: str,
    RegistryName: str,
    SchemaName: str,
    Type: TypeType,  # (1)
    Description: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateSchemaResponseTypeDef:  # (2)
    ...
  1. See TypeType
  2. See CreateSchemaResponseTypeDef
Usage example with kwargs
kwargs: CreateSchemaRequestRequestTypeDef = {  # (1)
    "Content": ...,
    "RegistryName": ...,
    "SchemaName": ...,
    "Type": ...,
}

parent.create_schema(**kwargs)
  1. See CreateSchemaRequestRequestTypeDef

delete_discoverer

Deletes a discoverer.

Type annotations and code completion for session.client("schemas").delete_discoverer method. boto3 documentation

Method definition
await def delete_discoverer(
    self,
    *,
    DiscovererId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteDiscovererRequestRequestTypeDef = {  # (1)
    "DiscovererId": ...,
}

parent.delete_discoverer(**kwargs)
  1. See DeleteDiscovererRequestRequestTypeDef

delete_registry

Deletes a Registry.

Type annotations and code completion for session.client("schemas").delete_registry method. boto3 documentation

Method definition
await def delete_registry(
    self,
    *,
    RegistryName: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteRegistryRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
}

parent.delete_registry(**kwargs)
  1. See DeleteRegistryRequestRequestTypeDef

delete_resource_policy

Delete the resource-based policy attached to the specified registry.

Type annotations and code completion for session.client("schemas").delete_resource_policy method. boto3 documentation

Method definition
await def delete_resource_policy(
    self,
    *,
    RegistryName: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteResourcePolicyRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
}

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

delete_schema

Delete a schema definition.

Type annotations and code completion for session.client("schemas").delete_schema method. boto3 documentation

Method definition
await def delete_schema(
    self,
    *,
    RegistryName: str,
    SchemaName: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteSchemaRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
    "SchemaName": ...,
}

parent.delete_schema(**kwargs)
  1. See DeleteSchemaRequestRequestTypeDef

delete_schema_version

Delete the schema version definition See also: AWS API Documentation.

Type annotations and code completion for session.client("schemas").delete_schema_version method. boto3 documentation

Method definition
await def delete_schema_version(
    self,
    *,
    RegistryName: str,
    SchemaName: str,
    SchemaVersion: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteSchemaVersionRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
    "SchemaName": ...,
    "SchemaVersion": ...,
}

parent.delete_schema_version(**kwargs)
  1. See DeleteSchemaVersionRequestRequestTypeDef

describe_code_binding

Describe the code binding URI.

Type annotations and code completion for session.client("schemas").describe_code_binding method. boto3 documentation

Method definition
await def describe_code_binding(
    self,
    *,
    Language: str,
    RegistryName: str,
    SchemaName: str,
    SchemaVersion: str = ...,
) -> DescribeCodeBindingResponseTypeDef:  # (1)
    ...
  1. See DescribeCodeBindingResponseTypeDef
Usage example with kwargs
kwargs: DescribeCodeBindingRequestRequestTypeDef = {  # (1)
    "Language": ...,
    "RegistryName": ...,
    "SchemaName": ...,
}

parent.describe_code_binding(**kwargs)
  1. See DescribeCodeBindingRequestRequestTypeDef

describe_discoverer

Describes the discoverer.

Type annotations and code completion for session.client("schemas").describe_discoverer method. boto3 documentation

Method definition
await def describe_discoverer(
    self,
    *,
    DiscovererId: str,
) -> DescribeDiscovererResponseTypeDef:  # (1)
    ...
  1. See DescribeDiscovererResponseTypeDef
Usage example with kwargs
kwargs: DescribeDiscovererRequestRequestTypeDef = {  # (1)
    "DiscovererId": ...,
}

parent.describe_discoverer(**kwargs)
  1. See DescribeDiscovererRequestRequestTypeDef

describe_registry

Describes the registry.

Type annotations and code completion for session.client("schemas").describe_registry method. boto3 documentation

Method definition
await def describe_registry(
    self,
    *,
    RegistryName: str,
) -> DescribeRegistryResponseTypeDef:  # (1)
    ...
  1. See DescribeRegistryResponseTypeDef
Usage example with kwargs
kwargs: DescribeRegistryRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
}

parent.describe_registry(**kwargs)
  1. See DescribeRegistryRequestRequestTypeDef

describe_schema

Retrieve the schema definition.

Type annotations and code completion for session.client("schemas").describe_schema method. boto3 documentation

Method definition
await def describe_schema(
    self,
    *,
    RegistryName: str,
    SchemaName: str,
    SchemaVersion: str = ...,
) -> DescribeSchemaResponseTypeDef:  # (1)
    ...
  1. See DescribeSchemaResponseTypeDef
Usage example with kwargs
kwargs: DescribeSchemaRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
    "SchemaName": ...,
}

parent.describe_schema(**kwargs)
  1. See DescribeSchemaRequestRequestTypeDef

export_schema

See also: AWS API Documentation.

Type annotations and code completion for session.client("schemas").export_schema method. boto3 documentation

Method definition
await def export_schema(
    self,
    *,
    RegistryName: str,
    SchemaName: str,
    Type: str,
    SchemaVersion: str = ...,
) -> ExportSchemaResponseTypeDef:  # (1)
    ...
  1. See ExportSchemaResponseTypeDef
Usage example with kwargs
kwargs: ExportSchemaRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
    "SchemaName": ...,
    "Type": ...,
}

parent.export_schema(**kwargs)
  1. See ExportSchemaRequestRequestTypeDef

generate_presigned_url

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

Type annotations and code completion for session.client("schemas").generate_presigned_url method. boto3 documentation

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

get_code_binding_source

Get the code binding source URI.

Type annotations and code completion for session.client("schemas").get_code_binding_source method. boto3 documentation

Method definition
await def get_code_binding_source(
    self,
    *,
    Language: str,
    RegistryName: str,
    SchemaName: str,
    SchemaVersion: str = ...,
) -> GetCodeBindingSourceResponseTypeDef:  # (1)
    ...
  1. See GetCodeBindingSourceResponseTypeDef
Usage example with kwargs
kwargs: GetCodeBindingSourceRequestRequestTypeDef = {  # (1)
    "Language": ...,
    "RegistryName": ...,
    "SchemaName": ...,
}

parent.get_code_binding_source(**kwargs)
  1. See GetCodeBindingSourceRequestRequestTypeDef

get_discovered_schema

Get the discovered schema that was generated based on sampled events.

Type annotations and code completion for session.client("schemas").get_discovered_schema method. boto3 documentation

Method definition
await def get_discovered_schema(
    self,
    *,
    Events: Sequence[str],
    Type: TypeType,  # (1)
) -> GetDiscoveredSchemaResponseTypeDef:  # (2)
    ...
  1. See TypeType
  2. See GetDiscoveredSchemaResponseTypeDef
Usage example with kwargs
kwargs: GetDiscoveredSchemaRequestRequestTypeDef = {  # (1)
    "Events": ...,
    "Type": ...,
}

parent.get_discovered_schema(**kwargs)
  1. See GetDiscoveredSchemaRequestRequestTypeDef

get_resource_policy

Retrieves the resource-based policy attached to a given registry.

Type annotations and code completion for session.client("schemas").get_resource_policy method. boto3 documentation

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

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

list_discoverers

List the discoverers.

Type annotations and code completion for session.client("schemas").list_discoverers method. boto3 documentation

Method definition
await def list_discoverers(
    self,
    *,
    DiscovererIdPrefix: str = ...,
    Limit: int = ...,
    NextToken: str = ...,
    SourceArnPrefix: str = ...,
) -> ListDiscoverersResponseTypeDef:  # (1)
    ...
  1. See ListDiscoverersResponseTypeDef
Usage example with kwargs
kwargs: ListDiscoverersRequestRequestTypeDef = {  # (1)
    "DiscovererIdPrefix": ...,
}

parent.list_discoverers(**kwargs)
  1. See ListDiscoverersRequestRequestTypeDef

list_registries

List the registries.

Type annotations and code completion for session.client("schemas").list_registries method. boto3 documentation

Method definition
await def list_registries(
    self,
    *,
    Limit: int = ...,
    NextToken: str = ...,
    RegistryNamePrefix: str = ...,
    Scope: str = ...,
) -> ListRegistriesResponseTypeDef:  # (1)
    ...
  1. See ListRegistriesResponseTypeDef
Usage example with kwargs
kwargs: ListRegistriesRequestRequestTypeDef = {  # (1)
    "Limit": ...,
}

parent.list_registries(**kwargs)
  1. See ListRegistriesRequestRequestTypeDef

list_schema_versions

Provides a list of the schema versions and related information.

Type annotations and code completion for session.client("schemas").list_schema_versions method. boto3 documentation

Method definition
await def list_schema_versions(
    self,
    *,
    RegistryName: str,
    SchemaName: str,
    Limit: int = ...,
    NextToken: str = ...,
) -> ListSchemaVersionsResponseTypeDef:  # (1)
    ...
  1. See ListSchemaVersionsResponseTypeDef
Usage example with kwargs
kwargs: ListSchemaVersionsRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
    "SchemaName": ...,
}

parent.list_schema_versions(**kwargs)
  1. See ListSchemaVersionsRequestRequestTypeDef

list_schemas

List the schemas.

Type annotations and code completion for session.client("schemas").list_schemas method. boto3 documentation

Method definition
await def list_schemas(
    self,
    *,
    RegistryName: str,
    Limit: int = ...,
    NextToken: str = ...,
    SchemaNamePrefix: str = ...,
) -> ListSchemasResponseTypeDef:  # (1)
    ...
  1. See ListSchemasResponseTypeDef
Usage example with kwargs
kwargs: ListSchemasRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
}

parent.list_schemas(**kwargs)
  1. See ListSchemasRequestRequestTypeDef

list_tags_for_resource

Get tags for resource.

Type annotations and code completion for session.client("schemas").list_tags_for_resource method. boto3 documentation

Method definition
await 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

put_code_binding

Put code binding URI See also: AWS API Documentation.

Type annotations and code completion for session.client("schemas").put_code_binding method. boto3 documentation

Method definition
await def put_code_binding(
    self,
    *,
    Language: str,
    RegistryName: str,
    SchemaName: str,
    SchemaVersion: str = ...,
) -> PutCodeBindingResponseTypeDef:  # (1)
    ...
  1. See PutCodeBindingResponseTypeDef
Usage example with kwargs
kwargs: PutCodeBindingRequestRequestTypeDef = {  # (1)
    "Language": ...,
    "RegistryName": ...,
    "SchemaName": ...,
}

parent.put_code_binding(**kwargs)
  1. See PutCodeBindingRequestRequestTypeDef

put_resource_policy

The name of the policy.

Type annotations and code completion for session.client("schemas").put_resource_policy method. boto3 documentation

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

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

search_schemas

Search the schemas See also: AWS API Documentation.

Type annotations and code completion for session.client("schemas").search_schemas method. boto3 documentation

Method definition
await def search_schemas(
    self,
    *,
    Keywords: str,
    RegistryName: str,
    Limit: int = ...,
    NextToken: str = ...,
) -> SearchSchemasResponseTypeDef:  # (1)
    ...
  1. See SearchSchemasResponseTypeDef
Usage example with kwargs
kwargs: SearchSchemasRequestRequestTypeDef = {  # (1)
    "Keywords": ...,
    "RegistryName": ...,
}

parent.search_schemas(**kwargs)
  1. See SearchSchemasRequestRequestTypeDef

start_discoverer

Starts the discoverer See also: AWS API Documentation.

Type annotations and code completion for session.client("schemas").start_discoverer method. boto3 documentation

Method definition
await def start_discoverer(
    self,
    *,
    DiscovererId: str,
) -> StartDiscovererResponseTypeDef:  # (1)
    ...
  1. See StartDiscovererResponseTypeDef
Usage example with kwargs
kwargs: StartDiscovererRequestRequestTypeDef = {  # (1)
    "DiscovererId": ...,
}

parent.start_discoverer(**kwargs)
  1. See StartDiscovererRequestRequestTypeDef

stop_discoverer

Stops the discoverer See also: AWS API Documentation.

Type annotations and code completion for session.client("schemas").stop_discoverer method. boto3 documentation

Method definition
await def stop_discoverer(
    self,
    *,
    DiscovererId: str,
) -> StopDiscovererResponseTypeDef:  # (1)
    ...
  1. See StopDiscovererResponseTypeDef
Usage example with kwargs
kwargs: StopDiscovererRequestRequestTypeDef = {  # (1)
    "DiscovererId": ...,
}

parent.stop_discoverer(**kwargs)
  1. See StopDiscovererRequestRequestTypeDef

tag_resource

Add tags to a resource.

Type annotations and code completion for session.client("schemas").tag_resource method. boto3 documentation

Method definition
await def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Mapping[str, str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

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

untag_resource

Removes tags from a resource.

Type annotations and code completion for session.client("schemas").untag_resource method. boto3 documentation

Method definition
await def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

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

update_discoverer

Updates the discoverer See also: AWS API Documentation.

Type annotations and code completion for session.client("schemas").update_discoverer method. boto3 documentation

Method definition
await def update_discoverer(
    self,
    *,
    DiscovererId: str,
    Description: str = ...,
    CrossAccount: bool = ...,
) -> UpdateDiscovererResponseTypeDef:  # (1)
    ...
  1. See UpdateDiscovererResponseTypeDef
Usage example with kwargs
kwargs: UpdateDiscovererRequestRequestTypeDef = {  # (1)
    "DiscovererId": ...,
}

parent.update_discoverer(**kwargs)
  1. See UpdateDiscovererRequestRequestTypeDef

update_registry

Updates a registry.

Type annotations and code completion for session.client("schemas").update_registry method. boto3 documentation

Method definition
await def update_registry(
    self,
    *,
    RegistryName: str,
    Description: str = ...,
) -> UpdateRegistryResponseTypeDef:  # (1)
    ...
  1. See UpdateRegistryResponseTypeDef
Usage example with kwargs
kwargs: UpdateRegistryRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
}

parent.update_registry(**kwargs)
  1. See UpdateRegistryRequestRequestTypeDef

update_schema

Updates the schema definition .

Type annotations and code completion for session.client("schemas").update_schema method. boto3 documentation

Method definition
await def update_schema(
    self,
    *,
    RegistryName: str,
    SchemaName: str,
    ClientTokenId: str = ...,
    Content: str = ...,
    Description: str = ...,
    Type: TypeType = ...,  # (1)
) -> UpdateSchemaResponseTypeDef:  # (2)
    ...
  1. See TypeType
  2. See UpdateSchemaResponseTypeDef
Usage example with kwargs
kwargs: UpdateSchemaRequestRequestTypeDef = {  # (1)
    "RegistryName": ...,
    "SchemaName": ...,
}

parent.update_schema(**kwargs)
  1. See UpdateSchemaRequestRequestTypeDef

__aenter__

Type annotations and code completion for session.client("schemas").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> SchemasClient:
    ...

__aexit__

Type annotations and code completion for session.client("schemas").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator

Type annotations and code completion for session.client("schemas").get_paginator method with overloads.

get_waiter

Type annotations and code completion for session.client("schemas").get_waiter method with overloads.