Retrieves an ID namespace association.
Parameters:
-
id_namespace_association_identifier
(IdNamespaceAssociationIdentifier)
–
The unique identifier of the ID namespace association that you want to retrieve.
-
membership_identifier
(MembershipIdentifier)
–
The unique identifier of the membership that contains the ID namespace association that you want to retrieve.
Raises:
Source code in docs_src/capo_cleanrooms/_services/async_clean_rooms.py
| async def get_id_namespace_association(
self,
id_namespace_association_identifier: "capo_cleanrooms.types.id_namespace_association_identifier.IdNamespaceAssociationIdentifier",
membership_identifier: "capo_cleanrooms.types.membership_identifier.MembershipIdentifier",
*,
config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.get_id_namespace_association_output.GetIdNamespaceAssociationOutput":
"""<p>Retrieves an ID namespace association.</p>
Args:
id_namespace_association_identifier: <p>The unique identifier of the ID namespace association that you want to retrieve.</p>
membership_identifier: <p>The unique identifier of the membership that contains the ID namespace association that you want to retrieve.</p>
Raises:
capo_cleanrooms.errors.access_denied_exception.AccessDeniedException: <p>Caller does not have sufficient access to perform this action.</p>
capo_cleanrooms.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_cleanrooms.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
capo_cleanrooms.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cleanrooms.types.get_id_namespace_association_input.GetIdNamespaceAssociationInput]",
) -> AsyncOperationResponse[
"capo_cleanrooms.types.get_id_namespace_association_output.GetIdNamespaceAssociationOutput"
]:
import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.get_id_namespace_association
(
output,
http_response,
) = await capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.get_id_namespace_association.async_get_id_namespace_association(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetIdNamespaceAssociation")
)
input_: capo_cleanrooms.types.get_id_namespace_association_input.GetIdNamespaceAssociationInput = {
"id_namespace_association_identifier": id_namespace_association_identifier,
"membership_identifier": membership_identifier,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|