Skip to content

DataZoneClient#

Index > DataZone > DataZoneClient

Auto-generated documentation for DataZone type annotations stubs module mypy-boto3-datazone.

DataZoneClient#

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

# DataZoneClient usage example

from boto3.session import Session
from mypy_boto3_datazone.client import DataZoneClient

def get_datazone_client() -> DataZoneClient:
    return Session().client("datazone")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("datazone")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.UnauthorizedException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_datazone.client import Exceptions

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

Methods#

accept_predictions#

Accepts automatically generated business-friendly metadata for your Amazon DataZone assets.

Type annotations and code completion for boto3.client("datazone").accept_predictions method. boto3 documentation

# accept_predictions method definition

def accept_predictions(
    self,
    *,
    domainIdentifier: str,
    identifier: str,
    acceptChoices: Sequence[AcceptChoiceTypeDef] = ...,  # (1)
    acceptRule: AcceptRuleTypeDef = ...,  # (2)
    clientToken: str = ...,
    revision: str = ...,
) -> AcceptPredictionsOutputTypeDef:  # (3)
    ...
  1. See AcceptChoiceTypeDef
  2. See AcceptRuleTypeDef
  3. See AcceptPredictionsOutputTypeDef
# accept_predictions method usage example with argument unpacking

kwargs: AcceptPredictionsInputRequestTypeDef = {  # (1)
    "domainIdentifier": ...,
    "identifier": ...,
}

parent.accept_predictions(**kwargs)
  1. See AcceptPredictionsInputRequestTypeDef

accept_subscription_request#

Accepts a subscription request to a specific asset.

Type annotations and code completion for boto3.client("datazone").accept_subscription_request method. boto3 documentation

# accept_subscription_request method definition

def accept_subscription_request(
    self,
    *,
    domainIdentifier: str,
    identifier: str,
    decisionComment: str = ...,
) -> AcceptSubscriptionRequestOutputTypeDef:  # (1)
    ...
  1. See AcceptSubscriptionRequestOutputTypeDef
# accept_subscription_request method usage example with argument unpacking

kwargs: AcceptSubscriptionRequestInputRequestTypeDef = {  # (1)
    "domainIdentifier": ...,
    "identifier": ...,
}

parent.accept_subscription_request(**kwargs)
  1. See AcceptSubscriptionRequestInputRequestTypeDef

associate_environment_role#

Associates the environment role in Amazon DataZone.

Type annotations and code completion for boto3.client("datazone").associate_environment_role method. boto3 documentation

# associate_environment_role method definition

def associate_environment_role(
    self,
    *,
    domainIdentifier: str,
    environmentIdentifier: str,
    environmentRoleArn: str,
) -> Dict[str, Any]:
    ...
# associate_environment_role method usage example with argument unpacking

kwargs: AssociateEnvironmentRoleInputRequestTypeDef = {  # (1)
    "domainIdentifier": ...,
    "environmentIdentifier": ...,
    "environmentRoleArn": ...,
}

parent.associate_environment_role(**kwargs)
  1. See AssociateEnvironmentRoleInputRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("datazone").can_paginate method. boto3 documentation

# can_paginate method definition

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

cancel_metadata_generation_run#

Cancels the metadata generation run.

Type annotations and code completion for boto3.client("datazone").cancel_metadata_generation_run method.