Skip to content

update_network_analyzer_configuration async

update_network_analyzer_configuration(
    configuration_name: NetworkAnalyzerConfigurationName,
    *,
    config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
    trace_content: Optional[TraceContent] = None,
    wireless_devices_to_add: Optional[WirelessDeviceList] = None,
    wireless_devices_to_remove: Optional[WirelessDeviceList] = None,
    wireless_gateways_to_add: Optional[WirelessGatewayList] = None,
    wireless_gateways_to_remove: Optional[WirelessGatewayList] = None,
    description: Optional[Description] = None,
    multicast_groups_to_add: Optional[NetworkAnalyzerMulticastGroupList] = None,
    multicast_groups_to_remove: Optional[NetworkAnalyzerMulticastGroupList] = None,
) -> UpdateNetworkAnalyzerConfigurationResponse

Update network analyzer configuration.

Parameters:

  • wireless_devices_to_add (Optional[WirelessDeviceList], default: None ) –

    Wireless device resources to add to the network analyzer configuration. Provide the WirelessDeviceId of the resource to add in the input array.

  • wireless_devices_to_remove (Optional[WirelessDeviceList], default: None ) –

    Wireless device resources to remove from the network analyzer configuration. Provide the WirelessDeviceId of the resources to remove in the input array.

  • wireless_gateways_to_add (Optional[WirelessGatewayList], default: None ) –

    Wireless gateway resources to add to the network analyzer configuration. Provide the WirelessGatewayId of the resource to add in the input array.

  • wireless_gateways_to_remove (Optional[WirelessGatewayList], default: None ) –

    Wireless gateway resources to remove from the network analyzer configuration. Provide the WirelessGatewayId of the resources to remove in the input array.

  • multicast_groups_to_add (Optional[NetworkAnalyzerMulticastGroupList], default: None ) –

    Multicast group resources to add to the network analyzer configuration. Provide the MulticastGroupId of the resource to add in the input array.

  • multicast_groups_to_remove (Optional[NetworkAnalyzerMulticastGroupList], default: None ) –

    Multicast group resources to remove from the network analyzer configuration. Provide the MulticastGroupId of the resources to remove in the input array.

Raises:

Source code in docs_src/capo_iot_wireless/_services/async_io_t_wireless.py
async def update_network_analyzer_configuration(
    self,
    configuration_name: "capo_iot_wireless.types.network_analyzer_configuration_name.NetworkAnalyzerConfigurationName",
    *,
    config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
    trace_content: Optional[
        "capo_iot_wireless.types.trace_content.TraceContent"
    ] = None,
    wireless_devices_to_add: Optional[
        "capo_iot_wireless.types.wireless_device_list.WirelessDeviceList"
    ] = None,
    wireless_devices_to_remove: Optional[
        "capo_iot_wireless.types.wireless_device_list.WirelessDeviceList"
    ] = None,
    wireless_gateways_to_add: Optional[
        "capo_iot_wireless.types.wireless_gateway_list.WirelessGatewayList"
    ] = None,
    wireless_gateways_to_remove: Optional[
        "capo_iot_wireless.types.wireless_gateway_list.WirelessGatewayList"
    ] = None,
    description: Optional["capo_iot_wireless.types.description.Description"] = None,
    multicast_groups_to_add: Optional[
        "capo_iot_wireless.types.network_analyzer_multicast_group_list.NetworkAnalyzerMulticastGroupList"
    ] = None,
    multicast_groups_to_remove: Optional[
        "capo_iot_wireless.types.network_analyzer_multicast_group_list.NetworkAnalyzerMulticastGroupList"
    ] = None,
) -> "capo_iot_wireless.types.update_network_analyzer_configuration_response.UpdateNetworkAnalyzerConfigurationResponse":
    """<p>Update network analyzer configuration.</p>

    Args:
        wireless_devices_to_add: <p>Wireless device resources to add to the network analyzer configuration. Provide the <code>WirelessDeviceId</code> of the resource to add in the input array.</p>
        wireless_devices_to_remove: <p>Wireless device resources to remove from the network analyzer configuration. Provide the <code>WirelessDeviceId</code> of the resources to remove in the input array.</p>
        wireless_gateways_to_add: <p>Wireless gateway resources to add to the network analyzer configuration. Provide the <code>WirelessGatewayId</code> of the resource to add in the input array.</p>
        wireless_gateways_to_remove: <p>Wireless gateway resources to remove from the network analyzer configuration. Provide the <code>WirelessGatewayId</code> of the resources to remove in the input array.</p>
        multicast_groups_to_add: <p>Multicast group resources to add to the network analyzer configuration. Provide the <code>MulticastGroupId</code> of the resource to add in the input array.</p>
        multicast_groups_to_remove: <p>Multicast group resources to remove from the network analyzer configuration. Provide the <code>MulticastGroupId</code> of the resources to remove in the input array.</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.update_network_analyzer_configuration_request.UpdateNetworkAnalyzerConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_iot_wireless.types.update_network_analyzer_configuration_response.UpdateNetworkAnalyzerConfigurationResponse"
    ]:
        import capo_iot_wireless._operations.iotwireless.update_network_analyzer_configuration

        (
            output,
            http_response,
        ) = await capo_iot_wireless._operations.iotwireless.update_network_analyzer_configuration.async_update_network_analyzer_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateNetworkAnalyzerConfiguration")
    )
    input_: capo_iot_wireless.types.update_network_analyzer_configuration_request.UpdateNetworkAnalyzerConfigurationRequest = {
        "configuration_name": configuration_name
    }
    if trace_content is not None:
        input_["trace_content"] = trace_content
    if wireless_devices_to_add is not None:
        input_["wireless_devices_to_add"] = wireless_devices_to_add
    if wireless_devices_to_remove is not None:
        input_["wireless_devices_to_remove"] = wireless_devices_to_remove
    if wireless_gateways_to_add is not None:
        input_["wireless_gateways_to_add"] = wireless_gateways_to_add
    if wireless_gateways_to_remove is not None:
        input_["wireless_gateways_to_remove"] = wireless_gateways_to_remove
    if description is not None:
        input_["description"] = description
    if multicast_groups_to_add is not None:
        input_["multicast_groups_to_add"] = multicast_groups_to_add
    if multicast_groups_to_remove is not None:
        input_["multicast_groups_to_remove"] = multicast_groups_to_remove

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output