delete_app_instance_admin(
app_instance_admin_arn: ChimeArn,
app_instance_arn: ChimeArn,
*,
config_overrides: Optional[ChimeSDKIdentityClientConfig] = None,
) -> None
Demotes an AppInstanceAdmin to an AppInstanceUser or AppInstanceBot. This action does not delete the user.
Parameters:
-
app_instance_admin_arn
(ChimeArn)
–
The ARN of the AppInstance's administrator.
-
app_instance_arn
(ChimeArn)
–
The ARN of the AppInstance.
Raises:
Source code in docs_src/capo_chime_sdk_identity/_services/chime_sdk_identity.py
| def delete_app_instance_admin(
self,
app_instance_admin_arn: "capo_chime_sdk_identity.types.chime_arn.ChimeArn",
app_instance_arn: "capo_chime_sdk_identity.types.chime_arn.ChimeArn",
*,
config_overrides: Optional[ChimeSDKIdentityClientConfig] = None,
) -> None:
"""<p>Demotes an <code>AppInstanceAdmin</code> to an <code>AppInstanceUser</code> or <code>AppInstanceBot</code>. This action does not delete the user.</p>
Args:
app_instance_admin_arn: <p>The ARN of the <code>AppInstance</code>'s administrator.</p>
app_instance_arn: <p>The ARN of the <code>AppInstance</code>.</p>
Raises:
capo_chime_sdk_identity.errors.bad_request_exception.BadRequestException: <p>The input parameters don't match the service's restrictions.</p>
capo_chime_sdk_identity.errors.conflict_exception.ConflictException: <p>The request could not be processed because of conflict in the current state of the resource.</p>
capo_chime_sdk_identity.errors.forbidden_exception.ForbiddenException: <p>The client is permanently forbidden from making the request.</p>
capo_chime_sdk_identity.errors.resource_limit_exceeded_exception.ResourceLimitExceededException: <p>The request exceeds the resource limit.</p>
capo_chime_sdk_identity.errors.service_failure_exception.ServiceFailureException: <p>The service encountered an unexpected error.</p>
capo_chime_sdk_identity.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
capo_chime_sdk_identity.errors.throttled_client_exception.ThrottledClientException: <p>The client exceeded its request rate limit.</p>
capo_chime_sdk_identity.errors.unauthorized_client_exception.UnauthorizedClientException: <p>The client is not currently authorized to make the request.</p>
capo_chime_sdk_identity.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_chime_sdk_identity.types.delete_app_instance_admin_request.DeleteAppInstanceAdminRequest]",
) -> OperationResponse[None]:
import capo_chime_sdk_identity._operations.chime_identity_service.delete_app_instance_admin
output, http_response = (
capo_chime_sdk_identity._operations.chime_identity_service.delete_app_instance_admin.delete_app_instance_admin(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteAppInstanceAdmin")
)
input_: capo_chime_sdk_identity.types.delete_app_instance_admin_request.DeleteAppInstanceAdminRequest = {
"app_instance_admin_arn": app_instance_admin_arn,
"app_instance_arn": app_instance_arn,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|