CloudDirectoryClient#
Index > CloudDirectory > CloudDirectoryClient
Auto-generated documentation for CloudDirectory type annotations stubs module mypy-boto3-clouddirectory.
CloudDirectoryClient#
Type annotations and code completion for boto3.client("clouddirectory")
.
boto3 documentation
# CloudDirectoryClient usage example
from boto3.session import Session
from mypy_boto3_clouddirectory.client import CloudDirectoryClient
def get_clouddirectory_client() -> CloudDirectoryClient:
return Session().client("clouddirectory")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("clouddirectory").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("clouddirectory")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.BatchWriteException,
client.exceptions.CannotListParentOfRootException,
client.exceptions.ClientError,
client.exceptions.DirectoryAlreadyExistsException,
client.exceptions.DirectoryDeletedException,
client.exceptions.DirectoryNotDisabledException,
client.exceptions.DirectoryNotEnabledException,
client.exceptions.FacetAlreadyExistsException,
client.exceptions.FacetInUseException,
client.exceptions.FacetNotFoundException,
client.exceptions.FacetValidationException,
client.exceptions.IncompatibleSchemaException,
client.exceptions.IndexedAttributeMissingException,
client.exceptions.InternalServiceException,
client.exceptions.InvalidArnException,
client.exceptions.InvalidAttachmentException,
client.exceptions.InvalidFacetUpdateException,
client.exceptions.InvalidNextTokenException,
client.exceptions.InvalidRuleException,
client.exceptions.InvalidSchemaDocException,
client.exceptions.InvalidTaggingRequestException,
client.exceptions.LimitExceededException,
client.exceptions.LinkNameAlreadyInUseException,
client.exceptions.NotIndexException,
client.exceptions.NotNodeException,
client.exceptions.NotPolicyException,
client.exceptions.ObjectAlreadyDetachedException,
client.exceptions.ObjectNotDetachedException,
client.exceptions.ResourceNotFoundException,
client.exceptions.RetryableConflictException,
client.exceptions.SchemaAlreadyExistsException,
client.exceptions.SchemaAlreadyPublishedException,
client.exceptions.StillContainsLinksException,
client.exceptions.UnsupportedIndexTypeException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_clouddirectory.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
add_facet_to_object#
Adds a new Facet to an object.
Type annotations and code completion for boto3.client("clouddirectory").add_facet_to_object
method.
boto3 documentation
# add_facet_to_object method definition
def add_facet_to_object(
self,
*,
DirectoryArn: str,
SchemaFacet: SchemaFacetTypeDef, # (1)
ObjectReference: ObjectReferenceTypeDef, # (2)
ObjectAttributeList: Sequence[Union[AttributeKeyAndValueTypeDef, AttributeKeyAndValueExtraOutputTypeDef]] = ..., # (3)
) -> Dict[str, Any]:
...
- See SchemaFacetTypeDef
- See ObjectReferenceTypeDef
- See AttributeKeyAndValueTypeDef AttributeKeyAndValueExtraOutputTypeDef
# add_facet_to_object method usage example with argument unpacking
kwargs: AddFacetToObjectRequestRequestTypeDef = { # (1)
"DirectoryArn": ...,
"SchemaFacet": ...,
"ObjectReference": ...,
}
parent.add_facet_to_object(**kwargs)
apply_schema#
Copies the input published schema, at the specified version, into the Directory with the same name and version as that of the published schema.
Type annotations and code completion for boto3.client("clouddirectory").apply_schema
method.
boto3 documentation
# apply_schema method definition
def apply_schema(
self,
*,
PublishedSchemaArn: str,
DirectoryArn: str,
) -> ApplySchemaResponseTypeDef: # (1)
...
# apply_schema method usage example with argument unpacking
kwargs: ApplySchemaRequestRequestTypeDef = { # (1)
"PublishedSchemaArn": ...,
"DirectoryArn": ...,
}
parent.apply_schema(**kwargs)
attach_object#
Attaches an existing object to another object.
Type annotations and code completion for boto3.client("clouddirectory").attach_object
method.
boto3 documentation
# attach_object method definition
def attach_object(
self,
*,
DirectoryArn: str,