list_inference_profiles
¶
list_inference_profiles(
*,
config_overrides: Optional[BedrockClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
type_equals: Optional[InferenceProfileType] = None,
project_identifier: Optional[ProjectIdentifier] = None,
) -> ListInferenceProfilesResponse
Returns a list of inference profiles that you can use. For more information, see Increase throughput and resilience with cross-region inference in Amazon Bedrock. in the Amazon Bedrock User Guide.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. -
next_token(Optional[PaginationToken], default:None) –If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. -
type_equals(Optional[InferenceProfileType], default:None) –Filters for inference profiles that match the type you specify.
-
SYSTEM_DEFINED– The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles. -
APPLICATION– The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
-
-
project_identifier(Optional[ProjectIdentifier], default:None) –The ID or Amazon Resource Name (ARN) of a project. Amazon Bedrock uses the project's trusted access program participation when determining which system-defined inference profiles to return. The project must belong to your account in the same AWS Region and partition as the request.
If you omit this parameter or specify
default, Amazon Bedrock uses your account's participation, including organization inheritance.A project that doesn't exist or is archived causes a
ValidationException. Specifying a project other thandefaultwithtypeEqualsset toAPPLICATIONalso causes aValidationException. OmittypeEqualsor set it toSYSTEM_DEFINEDto list system-defined inference profiles for the project.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 | |