Get the event configuration for a particular resource identifier.
Parameters:
-
identifier
(Identifier)
–
Resource identifier to opt in for event messaging.
-
identifier_type
(IdentifierType)
–
Identifier type of the particular resource identifier for event configuration.
-
partner_type
(Optional[EventNotificationPartnerType], default:
None
)
–
Partner type of the resource if the identifier type is PartnerAccountId.
Raises:
Source code in docs_src/capo_iot_wireless/_services/async_io_t_wireless.py
| async def get_resource_event_configuration(
self,
identifier: "capo_iot_wireless.types.identifier.Identifier",
identifier_type: "capo_iot_wireless.types.identifier_type.IdentifierType",
*,
config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
partner_type: Optional[
"capo_iot_wireless.types.event_notification_partner_type.EventNotificationPartnerType"
] = None,
) -> "capo_iot_wireless.types.get_resource_event_configuration_response.GetResourceEventConfigurationResponse":
"""<p>Get the event configuration for a particular resource identifier.</p>
Args:
identifier: <p>Resource identifier to opt in for event messaging.</p>
identifier_type: <p>Identifier type of the particular resource identifier for event configuration.</p>
partner_type: <p>Partner type of the resource if the identifier type is <code>PartnerAccountId</code>.</p>
Raises:
capo_iot_wireless.errors.access_denied_exception.AccessDeniedException: <p>User does not have permission to perform this action.</p>
capo_iot_wireless.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing a request.</p>
capo_iot_wireless.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource does not exist.</p>
capo_iot_wireless.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded the allowed API request rate.</p>
capo_iot_wireless.errors.validation_exception.ValidationException: <p>The input did not meet the specified constraints.</p>
capo_iot_wireless.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iot_wireless.types.get_resource_event_configuration_request.GetResourceEventConfigurationRequest]",
) -> AsyncOperationResponse[
"capo_iot_wireless.types.get_resource_event_configuration_response.GetResourceEventConfigurationResponse"
]:
import capo_iot_wireless._operations.iotwireless.get_resource_event_configuration
(
output,
http_response,
) = await capo_iot_wireless._operations.iotwireless.get_resource_event_configuration.async_get_resource_event_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetResourceEventConfiguration")
)
input_: capo_iot_wireless.types.get_resource_event_configuration_request.GetResourceEventConfigurationRequest = {
"identifier": identifier,
"identifier_type": identifier_type,
}
if partner_type is not None:
input_["partner_type"] = partner_type
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|