Skip to content

update_network_connector async

update_network_connector(
    network_connector_name: NetworkConnectorName,
    *,
    config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
    subnet_ids: Optional[SubnetIdList] = None,
    security_group_ids: Optional[SecurityGroupIdList] = None,
    network_connector_role_arn: Optional[NetworkConnectorRoleArn] = None,
) -> UpdateNetworkConnectorResponse

Updates a network connector.

Parameters:

Raises:

Source code in docs_src/capo_amplifygen3/_services/async_amplify_gen3.py
async def update_network_connector(
    self,
    network_connector_name: "capo_amplifygen3.types.network_connector_name.NetworkConnectorName",
    *,
    config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
    subnet_ids: Optional[
        "capo_amplifygen3.types.subnet_id_list.SubnetIdList"
    ] = None,
    security_group_ids: Optional[
        "capo_amplifygen3.types.security_group_id_list.SecurityGroupIdList"
    ] = None,
    network_connector_role_arn: Optional[
        "capo_amplifygen3.types.network_connector_role_arn.NetworkConnectorRoleArn"
    ] = None,
) -> "capo_amplifygen3.types.update_network_connector_response.UpdateNetworkConnectorResponse":
    """<p>Updates a network connector.</p>

    Args:
        network_connector_name: <p>The name of the network connector.</p>
        subnet_ids: <p>The IDs of the subnets.</p>
        security_group_ids: <p>The IDs of the security groups.</p>
        network_connector_role_arn: <p>The Amazon Resource Name (ARN) of the IAM role for the network connector.</p>

    Raises:
        capo_amplifygen3.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action.</p>
        capo_amplifygen3.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
        capo_amplifygen3.errors.internal_server_exception.InternalServerException: <p>An internal error occurred. Retry the request.</p>
        capo_amplifygen3.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found.</p>
        capo_amplifygen3.errors.throttling_exception.ThrottlingException: <p>The request was denied because the request rate exceeds the allowed limit.</p>
        capo_amplifygen3.errors.validation_exception.ValidationException: <p>The request contains invalid parameters or is otherwise malformed.</p>
        capo_amplifygen3.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_amplifygen3.types.update_network_connector_request.UpdateNetworkConnectorRequest]",
    ) -> AsyncOperationResponse[
        "capo_amplifygen3.types.update_network_connector_response.UpdateNetworkConnectorResponse"
    ]:
        import capo_amplifygen3._operations.omega.update_network_connector

        (
            output,
            http_response,
        ) = await capo_amplifygen3._operations.omega.update_network_connector.async_update_network_connector(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateNetworkConnector")
    )
    input_: capo_amplifygen3.types.update_network_connector_request.UpdateNetworkConnectorRequest = {
        "network_connector_name": network_connector_name
    }
    if subnet_ids is not None:
        input_["subnet_ids"] = subnet_ids
    if security_group_ids is not None:
        input_["security_group_ids"] = security_group_ids
    if network_connector_role_arn is not None:
        input_["network_connector_role_arn"] = network_connector_role_arn

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