update_channel_namespace
async
¶
update_channel_namespace(
api_id: String,
name: Namespace,
*,
config_overrides: Optional[AsyncAppSyncClientConfig] = None,
subscribe_auth_modes: Optional[AuthModes] = None,
publish_auth_modes: Optional[AuthModes] = None,
code_handlers: Optional[Code] = None,
handler_configs: Optional[HandlerConfigs] = None,
) -> UpdateChannelNamespaceResponse
Updates a ChannelNamespace associated with an Api.
Parameters:
-
api_id(String) –The
ApiID. -
name(Namespace) –The name of the
ChannelNamespace. -
subscribe_auth_modes(Optional[AuthModes], default:None) –The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the default
Apiauthorization configuration. -
publish_auth_modes(Optional[AuthModes], default:None) –The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the default
Apiauthorization configuration. -
code_handlers(Optional[Code], default:None) –The event handler functions that run custom business logic to process published events and subscribe requests.
-
handler_configs(Optional[HandlerConfigs], default:None) –The configuration for the
OnPublishandOnSubscribehandlers.
Raises:
-
AccessDeniedException–You don't have access to perform this operation on this resource.
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException–Another modification is in progress at this time and it must complete before you can make your change.
-
InternalFailureException–An internal AppSync error occurred. Try your request again.
-
NotFoundException–The resource specified in the request was not found. Check the resource, and then try again.
-
UnauthorizedException–You aren't authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appsync/_services/async_app_sync.py
4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 | |