Skip to content

create_network_analyzer_configuration

create_network_analyzer_configuration(
    name: NetworkAnalyzerConfigurationName,
    *,
    config_overrides: Optional[IoTWirelessClientConfig] = None,
    trace_content: Optional[TraceContent] = None,
    wireless_devices: Optional[WirelessDeviceList] = None,
    wireless_gateways: Optional[WirelessGatewayList] = None,
    description: Optional[Description] = None,
    tags: Optional[TagList] = None,
    client_request_token: Optional[ClientRequestToken] = None,
    multicast_groups: Optional[NetworkAnalyzerMulticastGroupList] = None,
) -> CreateNetworkAnalyzerConfigurationResponse

Creates a new network analyzer configuration.

Parameters:

  • wireless_devices (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_gateways (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.

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

    Multicast Group resources to add to the network analyzer configruation. Provide the MulticastGroupId of the resource to add in the input array.

Raises:

Source code in docs_src/capo_iot_wireless/_services/io_t_wireless.py
def create_network_analyzer_configuration(
    self,
    name: "capo_iot_wireless.types.network_analyzer_configuration_name.NetworkAnalyzerConfigurationName",
    *,
    config_overrides: Optional[IoTWirelessClientConfig] = None,
    trace_content: Optional[
        "capo_iot_wireless.types.trace_content.TraceContent"
    ] = None,
    wireless_devices: Optional[
        "capo_iot_wireless.types.wireless_device_list.WirelessDeviceList"
    ] = None,
    wireless_gateways: Optional[
        "capo_iot_wireless.types.wireless_gateway_list.WirelessGatewayList"
    ] = None,
    description: Optional["capo_iot_wireless.types.description.Description"] = None,
    tags: Optional["capo_iot_wireless.types.tag_list.TagList"] = None,
    client_request_token: Optional[
        "capo_iot_wireless.types.client_request_token.ClientRequestToken"
    ] = None,
    multicast_groups: Optional[
        "capo_iot_wireless.types.network_analyzer_multicast_group_list.NetworkAnalyzerMulticastGroupList"
    ] = None,
) -> "capo_iot_wireless.types.create_network_analyzer_configuration_response.CreateNetworkAnalyzerConfigurationResponse":
    """<p>Creates a new network analyzer configuration.</p>

    Args:
        wireless_devices: <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_gateways: <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>
        multicast_groups: <p>Multicast Group resources to add to the network analyzer configruation. Provide the <code>MulticastGroupId</code> of the resource to add 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.conflict_exception.ConflictException: <p>Adding, updating, or deleting the resource can cause an inconsistent state.</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.
    """

    def _handler(
        req: "OperationRequest[capo_iot_wireless.types.create_network_analyzer_configuration_request.CreateNetworkAnalyzerConfigurationRequest]",
    ) -> OperationResponse[
        "capo_iot_wireless.types.create_network_analyzer_configuration_response.CreateNetworkAnalyzerConfigurationResponse"
    ]:
        import capo_iot_wireless._operations.iotwireless.create_network_analyzer_configuration

        output, http_response = (
            capo_iot_wireless._operations.iotwireless.create_network_analyzer_configuration.create_network_analyzer_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateNetworkAnalyzerConfiguration")
    )
    input_: capo_iot_wireless.types.create_network_analyzer_configuration_request.CreateNetworkAnalyzerConfigurationRequest = {
        "name": name
    }
    if trace_content is not None:
        input_["trace_content"] = trace_content
    if wireless_devices is not None:
        input_["wireless_devices"] = wireless_devices
    if wireless_gateways is not None:
        input_["wireless_gateways"] = wireless_gateways
    if description is not None:
        input_["description"] = description
    if tags is not None:
        input_["tags"] = tags
    if client_request_token is None:
        client_request_token = str(uuid.uuid4())
    input_["client_request_token"] = client_request_token
    if multicast_groups is not None:
        input_["multicast_groups"] = multicast_groups

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output