Skip to content

update_config

update_config(
    config_id: Uuid,
    name: SafeName,
    config_type: ConfigCapabilityType,
    config_data: ConfigTypeData,
    *,
    config_overrides: Optional[GroundStationClientConfig] = None,
) -> ConfigIdResponse

Updates the Config used when scheduling contacts.

Updating a Config will not update the execution parameters for existing future contacts scheduled with this Config.

Parameters:

Raises:

Source code in docs_src/capo_groundstation/_services/ground_station.py
def update_config(
    self,
    config_id: "capo_groundstation.types.uuid.Uuid",
    name: "capo_groundstation.types.safe_name.SafeName",
    config_type: "capo_groundstation.types.config_capability_type.ConfigCapabilityType",
    config_data: "capo_groundstation.types.config_type_data.ConfigTypeData",
    *,
    config_overrides: Optional[GroundStationClientConfig] = None,
) -> "capo_groundstation.types.config_id_response.ConfigIdResponse":
    """<p>Updates the <code>Config</code> used when scheduling contacts.</p> <p>Updating a <code>Config</code> will not update the execution parameters for existing future contacts scheduled with this <code>Config</code>.</p>

    Args:
        config_id: <p>UUID of a <code>Config</code>.</p>
        name: <p>Name of a <code>Config</code>.</p>
        config_type: <p>Type of a <code>Config</code>.</p>
        config_data: <p>Parameters of a <code>Config</code>.</p>

    Raises:
        capo_groundstation.errors.dependency_exception.DependencyException: <p>Dependency encountered an error.</p>
        capo_groundstation.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters are not valid.</p>
        capo_groundstation.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource was not found.</p>
        capo_groundstation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_groundstation.types.update_config_request.UpdateConfigRequest]",
    ) -> OperationResponse[
        "capo_groundstation.types.config_id_response.ConfigIdResponse"
    ]:
        import capo_groundstation._operations.ground_station.update_config

        output, http_response = (
            capo_groundstation._operations.ground_station.update_config.update_config(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateConfig")
    )
    input_: capo_groundstation.types.update_config_request.UpdateConfigRequest = {
        "config_id": config_id,
        "name": name,
        "config_type": config_type,
        "config_data": config_data,
    }

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