BedrockClient.create_inference_profile
rboto-bedrock==0.4.0 · Service index · Types
Model summary (excerpt): Creates an application inference profile to track metrics and costs when invoking a model. To create an application inference profile for a foundation model in one region, specify the ARN of the model in that region. To create an application inference profile for a foundation model across multiple regions, specify the ARN of the system-defined inference profile that contains the regions that...
Install and imports
from rboto import BedrockClient
from collections.abc import Sequence
from rboto_bedrock.types import (
CreateInferenceProfileOutput,
InferenceProfileModelSource,
Tag,
)
Signature
async def create_inference_profile(
*,
inference_profile_name: str,
model_source: InferenceProfileModelSource,
description: str | None = None,
client_request_token: str | None = None,
tags: Sequence[Tag] | None = None,
) -> CreateInferenceProfileOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
inference_profile_name |
Yes | A name for the inference profile. |
model_source |
Yes | The foundation model or system-defined inference profile that the inference profile will track metrics and costs for. |
description |
No | A description for the inference profile. |
client_request_token |
No | A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency . |
tags |
No | An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide . |
Output
CreateInferenceProfileOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
inference_profile_arn |
str |
Always present | — |
status |
InferenceProfileStatusOutput | None |
Always present | InferenceProfileStatusOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CreateInferenceProfileOutput, InferenceProfileModelSource, Tag
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, TooManyTagsError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.