Skip to content

stop_model_invocation_job

Operation

stop_model_invocation_job

stop_model_invocation_job(request: StopModelInvocationJobInput | StopModelInvocationJobInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[StopModelInvocationJobInputDict]) -> StopModelInvocationJobOutput

Stops a batch inference job. You're only charged for tokens that were already processed. For more information, see Stop a batch inference job.

Parameters:

Name Type Description Default
request StopModelInvocationJobInput | StopModelInvocationJobInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[StopModelInvocationJobInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
StopModelInvocationJobOutput

An instance of StopModelInvocationJobOutput.

stop_model_invocation_job async

stop_model_invocation_job(request: StopModelInvocationJobInput | StopModelInvocationJobInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[StopModelInvocationJobInputDict]) -> StopModelInvocationJobOutput

Stops a batch inference job. You're only charged for tokens that were already processed. For more information, see Stop a batch inference job.

Parameters:

Name Type Description Default
request StopModelInvocationJobInput | StopModelInvocationJobInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[StopModelInvocationJobInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
StopModelInvocationJobOutput

An instance of StopModelInvocationJobOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

StopModelInvocationJobInputDict

Bases: TypedDict

Dictionary form of StopModelInvocationJobInput.

Attributes

job_identifier instance-attribute
job_identifier: Required[str]

The Amazon Resource Name (ARN) of the batch inference job to stop.

StopModelInvocationJobInput dataclass

Bases: _SerdeShape

Dataclass for StopModelInvocationJobInput structure.

Attributes

job_identifier class-attribute instance-attribute
job_identifier: str | None = ...

The Amazon Resource Name (ARN) of the batch inference job to stop.

Output

StopModelInvocationJobOutput dataclass

Bases: _SerdeShape

Dataclass for StopModelInvocationJobOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.