Interface BedrockClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptiondefault BatchDeleteEvaluationJobResponse
batchDeleteEvaluationJob
(Consumer<BatchDeleteEvaluationJobRequest.Builder> batchDeleteEvaluationJobRequest) Deletes a batch of evaluation jobs.default BatchDeleteEvaluationJobResponse
batchDeleteEvaluationJob
(BatchDeleteEvaluationJobRequest batchDeleteEvaluationJobRequest) Deletes a batch of evaluation jobs.static BedrockClientBuilder
builder()
Create a builder that can be used to configure and create aBedrockClient
.cancelAutomatedReasoningPolicyBuildWorkflow
(Consumer<CancelAutomatedReasoningPolicyBuildWorkflowRequest.Builder> cancelAutomatedReasoningPolicyBuildWorkflowRequest) Cancels a running Automated Reasoning policy build workflow.cancelAutomatedReasoningPolicyBuildWorkflow
(CancelAutomatedReasoningPolicyBuildWorkflowRequest cancelAutomatedReasoningPolicyBuildWorkflowRequest) Cancels a running Automated Reasoning policy build workflow.static BedrockClient
create()
Create aBedrockClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createAutomatedReasoningPolicy
(Consumer<CreateAutomatedReasoningPolicyRequest.Builder> createAutomatedReasoningPolicyRequest) Creates an Automated Reasoning policy for Amazon Bedrock Guardrails.createAutomatedReasoningPolicy
(CreateAutomatedReasoningPolicyRequest createAutomatedReasoningPolicyRequest) Creates an Automated Reasoning policy for Amazon Bedrock Guardrails.createAutomatedReasoningPolicyTestCase
(Consumer<CreateAutomatedReasoningPolicyTestCaseRequest.Builder> createAutomatedReasoningPolicyTestCaseRequest) Creates a test for an Automated Reasoning policy.createAutomatedReasoningPolicyTestCase
(CreateAutomatedReasoningPolicyTestCaseRequest createAutomatedReasoningPolicyTestCaseRequest) Creates a test for an Automated Reasoning policy.createAutomatedReasoningPolicyVersion
(Consumer<CreateAutomatedReasoningPolicyVersionRequest.Builder> createAutomatedReasoningPolicyVersionRequest) Creates a new version of an existing Automated Reasoning policy.createAutomatedReasoningPolicyVersion
(CreateAutomatedReasoningPolicyVersionRequest createAutomatedReasoningPolicyVersionRequest) Creates a new version of an existing Automated Reasoning policy.default CreateCustomModelResponse
createCustomModel
(Consumer<CreateCustomModelRequest.Builder> createCustomModelRequest) Creates a new custom model in Amazon Bedrock.default CreateCustomModelResponse
createCustomModel
(CreateCustomModelRequest createCustomModelRequest) Creates a new custom model in Amazon Bedrock.createCustomModelDeployment
(Consumer<CreateCustomModelDeploymentRequest.Builder> createCustomModelDeploymentRequest) Deploys a custom model for on-demand inference in Amazon Bedrock.createCustomModelDeployment
(CreateCustomModelDeploymentRequest createCustomModelDeploymentRequest) Deploys a custom model for on-demand inference in Amazon Bedrock.default CreateEvaluationJobResponse
createEvaluationJob
(Consumer<CreateEvaluationJobRequest.Builder> createEvaluationJobRequest) Creates an evaluation job.default CreateEvaluationJobResponse
createEvaluationJob
(CreateEvaluationJobRequest createEvaluationJobRequest) Creates an evaluation job.createFoundationModelAgreement
(Consumer<CreateFoundationModelAgreementRequest.Builder> createFoundationModelAgreementRequest) Request a model access agreement for the specified model.createFoundationModelAgreement
(CreateFoundationModelAgreementRequest createFoundationModelAgreementRequest) Request a model access agreement for the specified model.default CreateGuardrailResponse
createGuardrail
(Consumer<CreateGuardrailRequest.Builder> createGuardrailRequest) Creates a guardrail to block topics and to implement safeguards for your generative AI applications.default CreateGuardrailResponse
createGuardrail
(CreateGuardrailRequest createGuardrailRequest) Creates a guardrail to block topics and to implement safeguards for your generative AI applications.default CreateGuardrailVersionResponse
createGuardrailVersion
(Consumer<CreateGuardrailVersionRequest.Builder> createGuardrailVersionRequest) Creates a version of the guardrail.default CreateGuardrailVersionResponse
createGuardrailVersion
(CreateGuardrailVersionRequest createGuardrailVersionRequest) Creates a version of the guardrail.default CreateInferenceProfileResponse
createInferenceProfile
(Consumer<CreateInferenceProfileRequest.Builder> createInferenceProfileRequest) Creates an application inference profile to track metrics and costs when invoking a model.default CreateInferenceProfileResponse
createInferenceProfile
(CreateInferenceProfileRequest createInferenceProfileRequest) Creates an application inference profile to track metrics and costs when invoking a model.createMarketplaceModelEndpoint
(Consumer<CreateMarketplaceModelEndpointRequest.Builder> createMarketplaceModelEndpointRequest) Creates an endpoint for a model from Amazon Bedrock Marketplace.createMarketplaceModelEndpoint
(CreateMarketplaceModelEndpointRequest createMarketplaceModelEndpointRequest) Creates an endpoint for a model from Amazon Bedrock Marketplace.default CreateModelCopyJobResponse
createModelCopyJob
(Consumer<CreateModelCopyJobRequest.Builder> createModelCopyJobRequest) Copies a model to another region so that it can be used there.default CreateModelCopyJobResponse
createModelCopyJob
(CreateModelCopyJobRequest createModelCopyJobRequest) Copies a model to another region so that it can be used there.createModelCustomizationJob
(Consumer<CreateModelCustomizationJobRequest.Builder> createModelCustomizationJobRequest) Creates a fine-tuning job to customize a base model.createModelCustomizationJob
(CreateModelCustomizationJobRequest createModelCustomizationJobRequest) Creates a fine-tuning job to customize a base model.default CreateModelImportJobResponse
createModelImportJob
(Consumer<CreateModelImportJobRequest.Builder> createModelImportJobRequest) Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker.default CreateModelImportJobResponse
createModelImportJob
(CreateModelImportJobRequest createModelImportJobRequest) Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker.default CreateModelInvocationJobResponse
createModelInvocationJob
(Consumer<CreateModelInvocationJobRequest.Builder> createModelInvocationJobRequest) Creates a batch inference job to invoke a model on multiple prompts.default CreateModelInvocationJobResponse
createModelInvocationJob
(CreateModelInvocationJobRequest createModelInvocationJobRequest) Creates a batch inference job to invoke a model on multiple prompts.default CreatePromptRouterResponse
createPromptRouter
(Consumer<CreatePromptRouterRequest.Builder> createPromptRouterRequest) Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.default CreatePromptRouterResponse
createPromptRouter
(CreatePromptRouterRequest createPromptRouterRequest) Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.createProvisionedModelThroughput
(Consumer<CreateProvisionedModelThroughputRequest.Builder> createProvisionedModelThroughputRequest) Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify.createProvisionedModelThroughput
(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest) Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify.deleteAutomatedReasoningPolicy
(Consumer<DeleteAutomatedReasoningPolicyRequest.Builder> deleteAutomatedReasoningPolicyRequest) Deletes an Automated Reasoning policy or policy version.deleteAutomatedReasoningPolicy
(DeleteAutomatedReasoningPolicyRequest deleteAutomatedReasoningPolicyRequest) Deletes an Automated Reasoning policy or policy version.deleteAutomatedReasoningPolicyBuildWorkflow
(Consumer<DeleteAutomatedReasoningPolicyBuildWorkflowRequest.Builder> deleteAutomatedReasoningPolicyBuildWorkflowRequest) Deletes an Automated Reasoning policy build workflow and its associated artifacts.deleteAutomatedReasoningPolicyBuildWorkflow
(DeleteAutomatedReasoningPolicyBuildWorkflowRequest deleteAutomatedReasoningPolicyBuildWorkflowRequest) Deletes an Automated Reasoning policy build workflow and its associated artifacts.deleteAutomatedReasoningPolicyTestCase
(Consumer<DeleteAutomatedReasoningPolicyTestCaseRequest.Builder> deleteAutomatedReasoningPolicyTestCaseRequest) Deletes an Automated Reasoning policy test.deleteAutomatedReasoningPolicyTestCase
(DeleteAutomatedReasoningPolicyTestCaseRequest deleteAutomatedReasoningPolicyTestCaseRequest) Deletes an Automated Reasoning policy test.default DeleteCustomModelResponse
deleteCustomModel
(Consumer<DeleteCustomModelRequest.Builder> deleteCustomModelRequest) Deletes a custom model that you created earlier.default DeleteCustomModelResponse
deleteCustomModel
(DeleteCustomModelRequest deleteCustomModelRequest) Deletes a custom model that you created earlier.deleteCustomModelDeployment
(Consumer<DeleteCustomModelDeploymentRequest.Builder> deleteCustomModelDeploymentRequest) Deletes a custom model deployment.deleteCustomModelDeployment
(DeleteCustomModelDeploymentRequest deleteCustomModelDeploymentRequest) Deletes a custom model deployment.deleteFoundationModelAgreement
(Consumer<DeleteFoundationModelAgreementRequest.Builder> deleteFoundationModelAgreementRequest) Delete the model access agreement for the specified model.deleteFoundationModelAgreement
(DeleteFoundationModelAgreementRequest deleteFoundationModelAgreementRequest) Delete the model access agreement for the specified model.default DeleteGuardrailResponse
deleteGuardrail
(Consumer<DeleteGuardrailRequest.Builder> deleteGuardrailRequest) Deletes a guardrail.default DeleteGuardrailResponse
deleteGuardrail
(DeleteGuardrailRequest deleteGuardrailRequest) Deletes a guardrail.default DeleteImportedModelResponse
deleteImportedModel
(Consumer<DeleteImportedModelRequest.Builder> deleteImportedModelRequest) Deletes a custom model that you imported earlier.default DeleteImportedModelResponse
deleteImportedModel
(DeleteImportedModelRequest deleteImportedModelRequest) Deletes a custom model that you imported earlier.default DeleteInferenceProfileResponse
deleteInferenceProfile
(Consumer<DeleteInferenceProfileRequest.Builder> deleteInferenceProfileRequest) Deletes an application inference profile.default DeleteInferenceProfileResponse
deleteInferenceProfile
(DeleteInferenceProfileRequest deleteInferenceProfileRequest) Deletes an application inference profile.deleteMarketplaceModelEndpoint
(Consumer<DeleteMarketplaceModelEndpointRequest.Builder> deleteMarketplaceModelEndpointRequest) Deletes an endpoint for a model from Amazon Bedrock Marketplace.deleteMarketplaceModelEndpoint
(DeleteMarketplaceModelEndpointRequest deleteMarketplaceModelEndpointRequest) Deletes an endpoint for a model from Amazon Bedrock Marketplace.deleteModelInvocationLoggingConfiguration
(Consumer<DeleteModelInvocationLoggingConfigurationRequest.Builder> deleteModelInvocationLoggingConfigurationRequest) Delete the invocation logging.deleteModelInvocationLoggingConfiguration
(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest) Delete the invocation logging.default DeletePromptRouterResponse
deletePromptRouter
(Consumer<DeletePromptRouterRequest.Builder> deletePromptRouterRequest) Deletes a specified prompt router.default DeletePromptRouterResponse
deletePromptRouter
(DeletePromptRouterRequest deletePromptRouterRequest) Deletes a specified prompt router.deleteProvisionedModelThroughput
(Consumer<DeleteProvisionedModelThroughputRequest.Builder> deleteProvisionedModelThroughputRequest) Deletes a Provisioned Throughput.deleteProvisionedModelThroughput
(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest) Deletes a Provisioned Throughput.deregisterMarketplaceModelEndpoint
(Consumer<DeregisterMarketplaceModelEndpointRequest.Builder> deregisterMarketplaceModelEndpointRequest) Deregisters an endpoint for a model from Amazon Bedrock Marketplace.deregisterMarketplaceModelEndpoint
(DeregisterMarketplaceModelEndpointRequest deregisterMarketplaceModelEndpointRequest) Deregisters an endpoint for a model from Amazon Bedrock Marketplace.exportAutomatedReasoningPolicyVersion
(Consumer<ExportAutomatedReasoningPolicyVersionRequest.Builder> exportAutomatedReasoningPolicyVersionRequest) Exports the policy definition for an Automated Reasoning policy version.exportAutomatedReasoningPolicyVersion
(ExportAutomatedReasoningPolicyVersionRequest exportAutomatedReasoningPolicyVersionRequest) Exports the policy definition for an Automated Reasoning policy version.getAutomatedReasoningPolicy
(Consumer<GetAutomatedReasoningPolicyRequest.Builder> getAutomatedReasoningPolicyRequest) Retrieves details about an Automated Reasoning policy or policy version.getAutomatedReasoningPolicy
(GetAutomatedReasoningPolicyRequest getAutomatedReasoningPolicyRequest) Retrieves details about an Automated Reasoning policy or policy version.getAutomatedReasoningPolicyAnnotations
(Consumer<GetAutomatedReasoningPolicyAnnotationsRequest.Builder> getAutomatedReasoningPolicyAnnotationsRequest) Retrieves the current annotations for an Automated Reasoning policy build workflow.getAutomatedReasoningPolicyAnnotations
(GetAutomatedReasoningPolicyAnnotationsRequest getAutomatedReasoningPolicyAnnotationsRequest) Retrieves the current annotations for an Automated Reasoning policy build workflow.getAutomatedReasoningPolicyBuildWorkflow
(Consumer<GetAutomatedReasoningPolicyBuildWorkflowRequest.Builder> getAutomatedReasoningPolicyBuildWorkflowRequest) Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.getAutomatedReasoningPolicyBuildWorkflow
(GetAutomatedReasoningPolicyBuildWorkflowRequest getAutomatedReasoningPolicyBuildWorkflowRequest) Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.getAutomatedReasoningPolicyBuildWorkflowResultAssets
(Consumer<GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.Builder> getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest) Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.getAutomatedReasoningPolicyBuildWorkflowResultAssets
(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest) Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.getAutomatedReasoningPolicyNextScenario
(Consumer<GetAutomatedReasoningPolicyNextScenarioRequest.Builder> getAutomatedReasoningPolicyNextScenarioRequest) Retrieves the next test scenario for validating an Automated Reasoning policy.getAutomatedReasoningPolicyNextScenario
(GetAutomatedReasoningPolicyNextScenarioRequest getAutomatedReasoningPolicyNextScenarioRequest) Retrieves the next test scenario for validating an Automated Reasoning policy.getAutomatedReasoningPolicyTestCase
(Consumer<GetAutomatedReasoningPolicyTestCaseRequest.Builder> getAutomatedReasoningPolicyTestCaseRequest) Retrieves details about a specific Automated Reasoning policy test.getAutomatedReasoningPolicyTestCase
(GetAutomatedReasoningPolicyTestCaseRequest getAutomatedReasoningPolicyTestCaseRequest) Retrieves details about a specific Automated Reasoning policy test.getAutomatedReasoningPolicyTestResult
(Consumer<GetAutomatedReasoningPolicyTestResultRequest.Builder> getAutomatedReasoningPolicyTestResultRequest) Retrieves the test result for a specific Automated Reasoning policy test.getAutomatedReasoningPolicyTestResult
(GetAutomatedReasoningPolicyTestResultRequest getAutomatedReasoningPolicyTestResultRequest) Retrieves the test result for a specific Automated Reasoning policy test.default GetCustomModelResponse
getCustomModel
(Consumer<GetCustomModelRequest.Builder> getCustomModelRequest) Get the properties associated with a Amazon Bedrock custom model that you have created.default GetCustomModelResponse
getCustomModel
(GetCustomModelRequest getCustomModelRequest) Get the properties associated with a Amazon Bedrock custom model that you have created.default GetCustomModelDeploymentResponse
getCustomModelDeployment
(Consumer<GetCustomModelDeploymentRequest.Builder> getCustomModelDeploymentRequest) Retrieves information about a custom model deployment, including its status, configuration, and metadata.default GetCustomModelDeploymentResponse
getCustomModelDeployment
(GetCustomModelDeploymentRequest getCustomModelDeploymentRequest) Retrieves information about a custom model deployment, including its status, configuration, and metadata.default GetEvaluationJobResponse
getEvaluationJob
(Consumer<GetEvaluationJobRequest.Builder> getEvaluationJobRequest) Gets information about an evaluation job, such as the status of the job.default GetEvaluationJobResponse
getEvaluationJob
(GetEvaluationJobRequest getEvaluationJobRequest) Gets information about an evaluation job, such as the status of the job.default GetFoundationModelResponse
getFoundationModel
(Consumer<GetFoundationModelRequest.Builder> getFoundationModelRequest) Get details about a Amazon Bedrock foundation model.default GetFoundationModelResponse
getFoundationModel
(GetFoundationModelRequest getFoundationModelRequest) Get details about a Amazon Bedrock foundation model.getFoundationModelAvailability
(Consumer<GetFoundationModelAvailabilityRequest.Builder> getFoundationModelAvailabilityRequest) Get information about the Foundation model availability.getFoundationModelAvailability
(GetFoundationModelAvailabilityRequest getFoundationModelAvailabilityRequest) Get information about the Foundation model availability.default GetGuardrailResponse
getGuardrail
(Consumer<GetGuardrailRequest.Builder> getGuardrailRequest) Gets details about a guardrail.default GetGuardrailResponse
getGuardrail
(GetGuardrailRequest getGuardrailRequest) Gets details about a guardrail.default GetImportedModelResponse
getImportedModel
(Consumer<GetImportedModelRequest.Builder> getImportedModelRequest) Gets properties associated with a customized model you imported.default GetImportedModelResponse
getImportedModel
(GetImportedModelRequest getImportedModelRequest) Gets properties associated with a customized model you imported.default GetInferenceProfileResponse
getInferenceProfile
(Consumer<GetInferenceProfileRequest.Builder> getInferenceProfileRequest) Gets information about an inference profile.default GetInferenceProfileResponse
getInferenceProfile
(GetInferenceProfileRequest getInferenceProfileRequest) Gets information about an inference profile.getMarketplaceModelEndpoint
(Consumer<GetMarketplaceModelEndpointRequest.Builder> getMarketplaceModelEndpointRequest) Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.getMarketplaceModelEndpoint
(GetMarketplaceModelEndpointRequest getMarketplaceModelEndpointRequest) Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.default GetModelCopyJobResponse
getModelCopyJob
(Consumer<GetModelCopyJobRequest.Builder> getModelCopyJobRequest) Retrieves information about a model copy job.default GetModelCopyJobResponse
getModelCopyJob
(GetModelCopyJobRequest getModelCopyJobRequest) Retrieves information about a model copy job.default GetModelCustomizationJobResponse
getModelCustomizationJob
(Consumer<GetModelCustomizationJobRequest.Builder> getModelCustomizationJobRequest) Retrieves the properties associated with a model-customization job, including the status of the job.default GetModelCustomizationJobResponse
getModelCustomizationJob
(GetModelCustomizationJobRequest getModelCustomizationJobRequest) Retrieves the properties associated with a model-customization job, including the status of the job.default GetModelImportJobResponse
getModelImportJob
(Consumer<GetModelImportJobRequest.Builder> getModelImportJobRequest) Retrieves the properties associated with import model job, including the status of the job.default GetModelImportJobResponse
getModelImportJob
(GetModelImportJobRequest getModelImportJobRequest) Retrieves the properties associated with import model job, including the status of the job.default GetModelInvocationJobResponse
getModelInvocationJob
(Consumer<GetModelInvocationJobRequest.Builder> getModelInvocationJobRequest) Gets details about a batch inference job.default GetModelInvocationJobResponse
getModelInvocationJob
(GetModelInvocationJobRequest getModelInvocationJobRequest) Gets details about a batch inference job.getModelInvocationLoggingConfiguration
(Consumer<GetModelInvocationLoggingConfigurationRequest.Builder> getModelInvocationLoggingConfigurationRequest) Get the current configuration values for model invocation logging.getModelInvocationLoggingConfiguration
(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest) Get the current configuration values for model invocation logging.default GetPromptRouterResponse
getPromptRouter
(Consumer<GetPromptRouterRequest.Builder> getPromptRouterRequest) Retrieves details about a prompt router.default GetPromptRouterResponse
getPromptRouter
(GetPromptRouterRequest getPromptRouterRequest) Retrieves details about a prompt router.getProvisionedModelThroughput
(Consumer<GetProvisionedModelThroughputRequest.Builder> getProvisionedModelThroughputRequest) Returns details for a Provisioned Throughput.getProvisionedModelThroughput
(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest) Returns details for a Provisioned Throughput.default GetUseCaseForModelAccessResponse
getUseCaseForModelAccess
(Consumer<GetUseCaseForModelAccessRequest.Builder> getUseCaseForModelAccessRequest) Get usecase for model access.default GetUseCaseForModelAccessResponse
getUseCaseForModelAccess
(GetUseCaseForModelAccessRequest getUseCaseForModelAccessRequest) Get usecase for model access.listAutomatedReasoningPolicies
(Consumer<ListAutomatedReasoningPoliciesRequest.Builder> listAutomatedReasoningPoliciesRequest) Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN.listAutomatedReasoningPolicies
(ListAutomatedReasoningPoliciesRequest listAutomatedReasoningPoliciesRequest) Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN.listAutomatedReasoningPoliciesPaginator
(Consumer<ListAutomatedReasoningPoliciesRequest.Builder> listAutomatedReasoningPoliciesRequest) This is a variant oflistAutomatedReasoningPolicies(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesRequest)
operation.listAutomatedReasoningPoliciesPaginator
(ListAutomatedReasoningPoliciesRequest listAutomatedReasoningPoliciesRequest) This is a variant oflistAutomatedReasoningPolicies(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesRequest)
operation.listAutomatedReasoningPolicyBuildWorkflows
(Consumer<ListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder> listAutomatedReasoningPolicyBuildWorkflowsRequest) Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.listAutomatedReasoningPolicyBuildWorkflows
(ListAutomatedReasoningPolicyBuildWorkflowsRequest listAutomatedReasoningPolicyBuildWorkflowsRequest) Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.listAutomatedReasoningPolicyBuildWorkflowsPaginator
(Consumer<ListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder> listAutomatedReasoningPolicyBuildWorkflowsRequest) listAutomatedReasoningPolicyBuildWorkflowsPaginator
(ListAutomatedReasoningPolicyBuildWorkflowsRequest listAutomatedReasoningPolicyBuildWorkflowsRequest) listAutomatedReasoningPolicyTestCases
(Consumer<ListAutomatedReasoningPolicyTestCasesRequest.Builder> listAutomatedReasoningPolicyTestCasesRequest) Lists tests for an Automated Reasoning policy.listAutomatedReasoningPolicyTestCases
(ListAutomatedReasoningPolicyTestCasesRequest listAutomatedReasoningPolicyTestCasesRequest) Lists tests for an Automated Reasoning policy.listAutomatedReasoningPolicyTestCasesPaginator
(Consumer<ListAutomatedReasoningPolicyTestCasesRequest.Builder> listAutomatedReasoningPolicyTestCasesRequest) listAutomatedReasoningPolicyTestCasesPaginator
(ListAutomatedReasoningPolicyTestCasesRequest listAutomatedReasoningPolicyTestCasesRequest) listAutomatedReasoningPolicyTestResults
(Consumer<ListAutomatedReasoningPolicyTestResultsRequest.Builder> listAutomatedReasoningPolicyTestResultsRequest) Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.listAutomatedReasoningPolicyTestResults
(ListAutomatedReasoningPolicyTestResultsRequest listAutomatedReasoningPolicyTestResultsRequest) Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.listAutomatedReasoningPolicyTestResultsPaginator
(Consumer<ListAutomatedReasoningPolicyTestResultsRequest.Builder> listAutomatedReasoningPolicyTestResultsRequest) listAutomatedReasoningPolicyTestResultsPaginator
(ListAutomatedReasoningPolicyTestResultsRequest listAutomatedReasoningPolicyTestResultsRequest) listCustomModelDeployments
(Consumer<ListCustomModelDeploymentsRequest.Builder> listCustomModelDeploymentsRequest) Lists custom model deployments in your account.listCustomModelDeployments
(ListCustomModelDeploymentsRequest listCustomModelDeploymentsRequest) Lists custom model deployments in your account.listCustomModelDeploymentsPaginator
(Consumer<ListCustomModelDeploymentsRequest.Builder> listCustomModelDeploymentsRequest) This is a variant oflistCustomModelDeployments(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsRequest)
operation.listCustomModelDeploymentsPaginator
(ListCustomModelDeploymentsRequest listCustomModelDeploymentsRequest) This is a variant oflistCustomModelDeployments(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsRequest)
operation.default ListCustomModelsResponse
listCustomModels
(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) Returns a list of the custom models that you have created with theCreateModelCustomizationJob
operation.default ListCustomModelsResponse
listCustomModels
(ListCustomModelsRequest listCustomModelsRequest) Returns a list of the custom models that you have created with theCreateModelCustomizationJob
operation.default ListCustomModelsIterable
listCustomModelsPaginator
(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) This is a variant oflistCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)
operation.default ListCustomModelsIterable
listCustomModelsPaginator
(ListCustomModelsRequest listCustomModelsRequest) This is a variant oflistCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)
operation.default ListEvaluationJobsResponse
listEvaluationJobs
(Consumer<ListEvaluationJobsRequest.Builder> listEvaluationJobsRequest) Lists all existing evaluation jobs.default ListEvaluationJobsResponse
listEvaluationJobs
(ListEvaluationJobsRequest listEvaluationJobsRequest) Lists all existing evaluation jobs.default ListEvaluationJobsIterable
listEvaluationJobsPaginator
(Consumer<ListEvaluationJobsRequest.Builder> listEvaluationJobsRequest) This is a variant oflistEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)
operation.default ListEvaluationJobsIterable
listEvaluationJobsPaginator
(ListEvaluationJobsRequest listEvaluationJobsRequest) This is a variant oflistEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)
operation.listFoundationModelAgreementOffers
(Consumer<ListFoundationModelAgreementOffersRequest.Builder> listFoundationModelAgreementOffersRequest) Get the offers associated with the specified model.listFoundationModelAgreementOffers
(ListFoundationModelAgreementOffersRequest listFoundationModelAgreementOffersRequest) Get the offers associated with the specified model.default ListFoundationModelsResponse
listFoundationModels
(Consumer<ListFoundationModelsRequest.Builder> listFoundationModelsRequest) Lists Amazon Bedrock foundation models that you can use.default ListFoundationModelsResponse
listFoundationModels
(ListFoundationModelsRequest listFoundationModelsRequest) Lists Amazon Bedrock foundation models that you can use.default ListGuardrailsResponse
listGuardrails
(Consumer<ListGuardrailsRequest.Builder> listGuardrailsRequest) Lists details about all the guardrails in an account.default ListGuardrailsResponse
listGuardrails
(ListGuardrailsRequest listGuardrailsRequest) Lists details about all the guardrails in an account.default ListGuardrailsIterable
listGuardrailsPaginator
(Consumer<ListGuardrailsRequest.Builder> listGuardrailsRequest) This is a variant oflistGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)
operation.default ListGuardrailsIterable
listGuardrailsPaginator
(ListGuardrailsRequest listGuardrailsRequest) This is a variant oflistGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)
operation.default ListImportedModelsResponse
listImportedModels
(Consumer<ListImportedModelsRequest.Builder> listImportedModelsRequest) Returns a list of models you've imported.default ListImportedModelsResponse
listImportedModels
(ListImportedModelsRequest listImportedModelsRequest) Returns a list of models you've imported.default ListImportedModelsIterable
listImportedModelsPaginator
(Consumer<ListImportedModelsRequest.Builder> listImportedModelsRequest) This is a variant oflistImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)
operation.default ListImportedModelsIterable
listImportedModelsPaginator
(ListImportedModelsRequest listImportedModelsRequest) This is a variant oflistImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)
operation.default ListInferenceProfilesResponse
listInferenceProfiles
(Consumer<ListInferenceProfilesRequest.Builder> listInferenceProfilesRequest) Returns a list of inference profiles that you can use.default ListInferenceProfilesResponse
listInferenceProfiles
(ListInferenceProfilesRequest listInferenceProfilesRequest) Returns a list of inference profiles that you can use.default ListInferenceProfilesIterable
listInferenceProfilesPaginator
(Consumer<ListInferenceProfilesRequest.Builder> listInferenceProfilesRequest) This is a variant oflistInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)
operation.default ListInferenceProfilesIterable
listInferenceProfilesPaginator
(ListInferenceProfilesRequest listInferenceProfilesRequest) This is a variant oflistInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)
operation.listMarketplaceModelEndpoints
(Consumer<ListMarketplaceModelEndpointsRequest.Builder> listMarketplaceModelEndpointsRequest) Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.listMarketplaceModelEndpoints
(ListMarketplaceModelEndpointsRequest listMarketplaceModelEndpointsRequest) Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.listMarketplaceModelEndpointsPaginator
(Consumer<ListMarketplaceModelEndpointsRequest.Builder> listMarketplaceModelEndpointsRequest) This is a variant oflistMarketplaceModelEndpoints(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsRequest)
operation.listMarketplaceModelEndpointsPaginator
(ListMarketplaceModelEndpointsRequest listMarketplaceModelEndpointsRequest) This is a variant oflistMarketplaceModelEndpoints(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsRequest)
operation.default ListModelCopyJobsResponse
listModelCopyJobs
(Consumer<ListModelCopyJobsRequest.Builder> listModelCopyJobsRequest) Returns a list of model copy jobs that you have submitted.default ListModelCopyJobsResponse
listModelCopyJobs
(ListModelCopyJobsRequest listModelCopyJobsRequest) Returns a list of model copy jobs that you have submitted.default ListModelCopyJobsIterable
listModelCopyJobsPaginator
(Consumer<ListModelCopyJobsRequest.Builder> listModelCopyJobsRequest) This is a variant oflistModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)
operation.default ListModelCopyJobsIterable
listModelCopyJobsPaginator
(ListModelCopyJobsRequest listModelCopyJobsRequest) This is a variant oflistModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)
operation.listModelCustomizationJobs
(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest) Returns a list of model customization jobs that you have submitted.listModelCustomizationJobs
(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest) Returns a list of model customization jobs that you have submitted.listModelCustomizationJobsPaginator
(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest) This is a variant oflistModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation.listModelCustomizationJobsPaginator
(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest) This is a variant oflistModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation.default ListModelImportJobsResponse
listModelImportJobs
(Consumer<ListModelImportJobsRequest.Builder> listModelImportJobsRequest) Returns a list of import jobs you've submitted.default ListModelImportJobsResponse
listModelImportJobs
(ListModelImportJobsRequest listModelImportJobsRequest) Returns a list of import jobs you've submitted.default ListModelImportJobsIterable
listModelImportJobsPaginator
(Consumer<ListModelImportJobsRequest.Builder> listModelImportJobsRequest) This is a variant oflistModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)
operation.default ListModelImportJobsIterable
listModelImportJobsPaginator
(ListModelImportJobsRequest listModelImportJobsRequest) This is a variant oflistModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)
operation.default ListModelInvocationJobsResponse
listModelInvocationJobs
(Consumer<ListModelInvocationJobsRequest.Builder> listModelInvocationJobsRequest) Lists all batch inference jobs in the account.default ListModelInvocationJobsResponse
listModelInvocationJobs
(ListModelInvocationJobsRequest listModelInvocationJobsRequest) Lists all batch inference jobs in the account.default ListModelInvocationJobsIterable
listModelInvocationJobsPaginator
(Consumer<ListModelInvocationJobsRequest.Builder> listModelInvocationJobsRequest) This is a variant oflistModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)
operation.default ListModelInvocationJobsIterable
listModelInvocationJobsPaginator
(ListModelInvocationJobsRequest listModelInvocationJobsRequest) This is a variant oflistModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)
operation.default ListPromptRoutersResponse
listPromptRouters
(Consumer<ListPromptRoutersRequest.Builder> listPromptRoutersRequest) Retrieves a list of prompt routers.default ListPromptRoutersResponse
listPromptRouters
(ListPromptRoutersRequest listPromptRoutersRequest) Retrieves a list of prompt routers.default ListPromptRoutersIterable
listPromptRoutersPaginator
(Consumer<ListPromptRoutersRequest.Builder> listPromptRoutersRequest) This is a variant oflistPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)
operation.default ListPromptRoutersIterable
listPromptRoutersPaginator
(ListPromptRoutersRequest listPromptRoutersRequest) This is a variant oflistPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)
operation.listProvisionedModelThroughputs
(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest) Lists the Provisioned Throughputs in the account.listProvisionedModelThroughputs
(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest) Lists the Provisioned Throughputs in the account.listProvisionedModelThroughputsPaginator
(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest) This is a variant oflistProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation.listProvisionedModelThroughputsPaginator
(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest) This is a variant oflistProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List the tags associated with the specified resource.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) List the tags associated with the specified resource.putModelInvocationLoggingConfiguration
(Consumer<PutModelInvocationLoggingConfigurationRequest.Builder> putModelInvocationLoggingConfigurationRequest) Set the configuration values for model invocation logging.putModelInvocationLoggingConfiguration
(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest) Set the configuration values for model invocation logging.default PutUseCaseForModelAccessResponse
putUseCaseForModelAccess
(Consumer<PutUseCaseForModelAccessRequest.Builder> putUseCaseForModelAccessRequest) Put usecase for model access.default PutUseCaseForModelAccessResponse
putUseCaseForModelAccess
(PutUseCaseForModelAccessRequest putUseCaseForModelAccessRequest) Put usecase for model access.registerMarketplaceModelEndpoint
(Consumer<RegisterMarketplaceModelEndpointRequest.Builder> registerMarketplaceModelEndpointRequest) Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.registerMarketplaceModelEndpoint
(RegisterMarketplaceModelEndpointRequest registerMarketplaceModelEndpointRequest) Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
startAutomatedReasoningPolicyBuildWorkflow
(Consumer<StartAutomatedReasoningPolicyBuildWorkflowRequest.Builder> startAutomatedReasoningPolicyBuildWorkflowRequest) Starts a new build workflow for an Automated Reasoning policy.startAutomatedReasoningPolicyBuildWorkflow
(StartAutomatedReasoningPolicyBuildWorkflowRequest startAutomatedReasoningPolicyBuildWorkflowRequest) Starts a new build workflow for an Automated Reasoning policy.startAutomatedReasoningPolicyTestWorkflow
(Consumer<StartAutomatedReasoningPolicyTestWorkflowRequest.Builder> startAutomatedReasoningPolicyTestWorkflowRequest) Initiates a test workflow to validate Automated Reasoning policy tests.startAutomatedReasoningPolicyTestWorkflow
(StartAutomatedReasoningPolicyTestWorkflowRequest startAutomatedReasoningPolicyTestWorkflowRequest) Initiates a test workflow to validate Automated Reasoning policy tests.default StopEvaluationJobResponse
stopEvaluationJob
(Consumer<StopEvaluationJobRequest.Builder> stopEvaluationJobRequest) Stops an evaluation job that is current being created or running.default StopEvaluationJobResponse
stopEvaluationJob
(StopEvaluationJobRequest stopEvaluationJobRequest) Stops an evaluation job that is current being created or running.stopModelCustomizationJob
(Consumer<StopModelCustomizationJobRequest.Builder> stopModelCustomizationJobRequest) Stops an active model customization job.stopModelCustomizationJob
(StopModelCustomizationJobRequest stopModelCustomizationJobRequest) Stops an active model customization job.default StopModelInvocationJobResponse
stopModelInvocationJob
(Consumer<StopModelInvocationJobRequest.Builder> stopModelInvocationJobRequest) Stops a batch inference job.default StopModelInvocationJobResponse
stopModelInvocationJob
(StopModelInvocationJobRequest stopModelInvocationJobRequest) Stops a batch inference job.default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associate tags with a resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Associate tags with a resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Remove one or more tags from a resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Remove one or more tags from a resource.updateAutomatedReasoningPolicy
(Consumer<UpdateAutomatedReasoningPolicyRequest.Builder> updateAutomatedReasoningPolicyRequest) Updates an existing Automated Reasoning policy with new rules, variables, or configuration.updateAutomatedReasoningPolicy
(UpdateAutomatedReasoningPolicyRequest updateAutomatedReasoningPolicyRequest) Updates an existing Automated Reasoning policy with new rules, variables, or configuration.updateAutomatedReasoningPolicyAnnotations
(Consumer<UpdateAutomatedReasoningPolicyAnnotationsRequest.Builder> updateAutomatedReasoningPolicyAnnotationsRequest) Updates the annotations for an Automated Reasoning policy build workflow.updateAutomatedReasoningPolicyAnnotations
(UpdateAutomatedReasoningPolicyAnnotationsRequest updateAutomatedReasoningPolicyAnnotationsRequest) Updates the annotations for an Automated Reasoning policy build workflow.updateAutomatedReasoningPolicyTestCase
(Consumer<UpdateAutomatedReasoningPolicyTestCaseRequest.Builder> updateAutomatedReasoningPolicyTestCaseRequest) Updates an existing Automated Reasoning policy test.updateAutomatedReasoningPolicyTestCase
(UpdateAutomatedReasoningPolicyTestCaseRequest updateAutomatedReasoningPolicyTestCaseRequest) Updates an existing Automated Reasoning policy test.default UpdateGuardrailResponse
updateGuardrail
(Consumer<UpdateGuardrailRequest.Builder> updateGuardrailRequest) Updates a guardrail with the values you specify.default UpdateGuardrailResponse
updateGuardrail
(UpdateGuardrailRequest updateGuardrailRequest) Updates a guardrail with the values you specify.updateMarketplaceModelEndpoint
(Consumer<UpdateMarketplaceModelEndpointRequest.Builder> updateMarketplaceModelEndpointRequest) Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.updateMarketplaceModelEndpoint
(UpdateMarketplaceModelEndpointRequest updateMarketplaceModelEndpointRequest) Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.updateProvisionedModelThroughput
(Consumer<UpdateProvisionedModelThroughputRequest.Builder> updateProvisionedModelThroughputRequest) Updates the name or associated model for a Provisioned Throughput.updateProvisionedModelThroughput
(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest) Updates the name or associated model for a Provisioned Throughput.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
batchDeleteEvaluationJob
default BatchDeleteEvaluationJobResponse batchDeleteEvaluationJob(BatchDeleteEvaluationJobRequest batchDeleteEvaluationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has following status
FAILED
,COMPLETED
, andSTOPPED
. You can request up to 25 model evaluation jobs be deleted in a single request.- Parameters:
batchDeleteEvaluationJobRequest
-- Returns:
- Result of the BatchDeleteEvaluationJob operation returned by the service.
- See Also:
-
batchDeleteEvaluationJob
default BatchDeleteEvaluationJobResponse batchDeleteEvaluationJob(Consumer<BatchDeleteEvaluationJobRequest.Builder> batchDeleteEvaluationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has following status
FAILED
,COMPLETED
, andSTOPPED
. You can request up to 25 model evaluation jobs be deleted in a single request.
This is a convenience which creates an instance of the
BatchDeleteEvaluationJobRequest.Builder
avoiding the need to create one manually viaBatchDeleteEvaluationJobRequest.builder()
- Parameters:
batchDeleteEvaluationJobRequest
- AConsumer
that will call methods onBatchDeleteEvaluationJobRequest.Builder
to create a request.- Returns:
- Result of the BatchDeleteEvaluationJob operation returned by the service.
- See Also:
-
cancelAutomatedReasoningPolicyBuildWorkflow
default CancelAutomatedReasoningPolicyBuildWorkflowResponse cancelAutomatedReasoningPolicyBuildWorkflow(CancelAutomatedReasoningPolicyBuildWorkflowRequest cancelAutomatedReasoningPolicyBuildWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Cancels a running Automated Reasoning policy build workflow. This stops the policy generation process and prevents further processing of the source documents.
- Parameters:
cancelAutomatedReasoningPolicyBuildWorkflowRequest
-- Returns:
- Result of the CancelAutomatedReasoningPolicyBuildWorkflow operation returned by the service.
- See Also:
-
cancelAutomatedReasoningPolicyBuildWorkflow
default CancelAutomatedReasoningPolicyBuildWorkflowResponse cancelAutomatedReasoningPolicyBuildWorkflow(Consumer<CancelAutomatedReasoningPolicyBuildWorkflowRequest.Builder> cancelAutomatedReasoningPolicyBuildWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Cancels a running Automated Reasoning policy build workflow. This stops the policy generation process and prevents further processing of the source documents.
This is a convenience which creates an instance of the
CancelAutomatedReasoningPolicyBuildWorkflowRequest.Builder
avoiding the need to create one manually viaCancelAutomatedReasoningPolicyBuildWorkflowRequest.builder()
- Parameters:
cancelAutomatedReasoningPolicyBuildWorkflowRequest
- AConsumer
that will call methods onCancelAutomatedReasoningPolicyBuildWorkflowRequest.Builder
to create a request.- Returns:
- Result of the CancelAutomatedReasoningPolicyBuildWorkflow operation returned by the service.
- See Also:
-
createAutomatedReasoningPolicy
default CreateAutomatedReasoningPolicyResponse createAutomatedReasoningPolicy(CreateAutomatedReasoningPolicyRequest createAutomatedReasoningPolicyRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates an Automated Reasoning policy for Amazon Bedrock Guardrails. Automated Reasoning policies use mathematical techniques to detect hallucinations, suggest corrections, and highlight unstated assumptions in the responses of your GenAI application.
To create a policy, you upload a source document that describes the rules that you're encoding. Automated Reasoning extracts important concepts from the source document that will become variables in the policy and infers policy rules.
- Parameters:
createAutomatedReasoningPolicyRequest
-- Returns:
- Result of the CreateAutomatedReasoningPolicy operation returned by the service.
- See Also:
-
createAutomatedReasoningPolicy
default CreateAutomatedReasoningPolicyResponse createAutomatedReasoningPolicy(Consumer<CreateAutomatedReasoningPolicyRequest.Builder> createAutomatedReasoningPolicyRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates an Automated Reasoning policy for Amazon Bedrock Guardrails. Automated Reasoning policies use mathematical techniques to detect hallucinations, suggest corrections, and highlight unstated assumptions in the responses of your GenAI application.
To create a policy, you upload a source document that describes the rules that you're encoding. Automated Reasoning extracts important concepts from the source document that will become variables in the policy and infers policy rules.
This is a convenience which creates an instance of the
CreateAutomatedReasoningPolicyRequest.Builder
avoiding the need to create one manually viaCreateAutomatedReasoningPolicyRequest.builder()
- Parameters:
createAutomatedReasoningPolicyRequest
- AConsumer
that will call methods onCreateAutomatedReasoningPolicyRequest.Builder
to create a request.- Returns:
- Result of the CreateAutomatedReasoningPolicy operation returned by the service.
- See Also:
-
createAutomatedReasoningPolicyTestCase
default CreateAutomatedReasoningPolicyTestCaseResponse createAutomatedReasoningPolicyTestCase(CreateAutomatedReasoningPolicyTestCaseRequest createAutomatedReasoningPolicyTestCaseRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a test for an Automated Reasoning policy. Tests validate that your policy works as expected by providing sample inputs and expected outcomes. Use tests to verify policy behavior before deploying to production.
- Parameters:
createAutomatedReasoningPolicyTestCaseRequest
-- Returns:
- Result of the CreateAutomatedReasoningPolicyTestCase operation returned by the service.
- See Also:
-
createAutomatedReasoningPolicyTestCase
default CreateAutomatedReasoningPolicyTestCaseResponse createAutomatedReasoningPolicyTestCase(Consumer<CreateAutomatedReasoningPolicyTestCaseRequest.Builder> createAutomatedReasoningPolicyTestCaseRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a test for an Automated Reasoning policy. Tests validate that your policy works as expected by providing sample inputs and expected outcomes. Use tests to verify policy behavior before deploying to production.
This is a convenience which creates an instance of the
CreateAutomatedReasoningPolicyTestCaseRequest.Builder
avoiding the need to create one manually viaCreateAutomatedReasoningPolicyTestCaseRequest.builder()
- Parameters:
createAutomatedReasoningPolicyTestCaseRequest
- AConsumer
that will call methods onCreateAutomatedReasoningPolicyTestCaseRequest.Builder
to create a request.- Returns:
- Result of the CreateAutomatedReasoningPolicyTestCase operation returned by the service.
- See Also:
-
createAutomatedReasoningPolicyVersion
default CreateAutomatedReasoningPolicyVersionResponse createAutomatedReasoningPolicyVersion(CreateAutomatedReasoningPolicyVersionRequest createAutomatedReasoningPolicyVersionRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a new version of an existing Automated Reasoning policy. This allows you to iterate on your policy rules while maintaining previous versions for rollback or comparison purposes.
- Parameters:
createAutomatedReasoningPolicyVersionRequest
-- Returns:
- Result of the CreateAutomatedReasoningPolicyVersion operation returned by the service.
- See Also:
-
createAutomatedReasoningPolicyVersion
default CreateAutomatedReasoningPolicyVersionResponse createAutomatedReasoningPolicyVersion(Consumer<CreateAutomatedReasoningPolicyVersionRequest.Builder> createAutomatedReasoningPolicyVersionRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a new version of an existing Automated Reasoning policy. This allows you to iterate on your policy rules while maintaining previous versions for rollback or comparison purposes.
This is a convenience which creates an instance of the
CreateAutomatedReasoningPolicyVersionRequest.Builder
avoiding the need to create one manually viaCreateAutomatedReasoningPolicyVersionRequest.builder()
- Parameters:
createAutomatedReasoningPolicyVersionRequest
- AConsumer
that will call methods onCreateAutomatedReasoningPolicyVersionRequest.Builder
to create a request.- Returns:
- Result of the CreateAutomatedReasoningPolicyVersion operation returned by the service.
- See Also:
-
createCustomModel
default CreateCustomModelResponse createCustomModel(CreateCustomModelRequest createCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a new custom model in Amazon Bedrock. After the model is active, you can use it for inference.
To use the model for inference, you must purchase Provisioned Throughput for it. You can't use On-demand inference with these custom models. For more information about Provisioned Throughput, see Provisioned Throughput.
The model appears in
ListCustomModels
with acustomizationType
ofimported
. To track the status of the new model, you use theGetCustomModel
API operation. The model can be in the following states:-
Creating
- Initial state during validation and registration -
Active
- Model is ready for use in inference -
Failed
- Creation process encountered an error
Related APIs
- Parameters:
createCustomModelRequest
-- Returns:
- Result of the CreateCustomModel operation returned by the service.
- See Also:
-
-
createCustomModel
default CreateCustomModelResponse createCustomModel(Consumer<CreateCustomModelRequest.Builder> createCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a new custom model in Amazon Bedrock. After the model is active, you can use it for inference.
To use the model for inference, you must purchase Provisioned Throughput for it. You can't use On-demand inference with these custom models. For more information about Provisioned Throughput, see Provisioned Throughput.
The model appears in
ListCustomModels
with acustomizationType
ofimported
. To track the status of the new model, you use theGetCustomModel
API operation. The model can be in the following states:-
Creating
- Initial state during validation and registration -
Active
- Model is ready for use in inference -
Failed
- Creation process encountered an error
Related APIs
This is a convenience which creates an instance of the
CreateCustomModelRequest.Builder
avoiding the need to create one manually viaCreateCustomModelRequest.builder()
- Parameters:
createCustomModelRequest
- AConsumer
that will call methods onCreateCustomModelRequest.Builder
to create a request.- Returns:
- Result of the CreateCustomModel operation returned by the service.
- See Also:
-
-
createCustomModelDeployment
default CreateCustomModelDeploymentResponse createCustomModelDeployment(CreateCustomModelDeploymentRequest createCustomModelDeploymentRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deploys a custom model for on-demand inference in Amazon Bedrock. After you deploy your custom model, you use the deployment's Amazon Resource Name (ARN) as the
modelId
parameter when you submit prompts and generate responses with model inference.For more information about setting up on-demand inference for custom models, see Set up inference for a custom model.
The following actions are related to the
CreateCustomModelDeployment
operation:- Parameters:
createCustomModelDeploymentRequest
-- Returns:
- Result of the CreateCustomModelDeployment operation returned by the service.
- See Also:
-
createCustomModelDeployment
default CreateCustomModelDeploymentResponse createCustomModelDeployment(Consumer<CreateCustomModelDeploymentRequest.Builder> createCustomModelDeploymentRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deploys a custom model for on-demand inference in Amazon Bedrock. After you deploy your custom model, you use the deployment's Amazon Resource Name (ARN) as the
modelId
parameter when you submit prompts and generate responses with model inference.For more information about setting up on-demand inference for custom models, see Set up inference for a custom model.
The following actions are related to the
CreateCustomModelDeployment
operation:
This is a convenience which creates an instance of the
CreateCustomModelDeploymentRequest.Builder
avoiding the need to create one manually viaCreateCustomModelDeploymentRequest.builder()
- Parameters:
createCustomModelDeploymentRequest
- AConsumer
that will call methods onCreateCustomModelDeploymentRequest.Builder
to create a request.- Returns:
- Result of the CreateCustomModelDeployment operation returned by the service.
- See Also:
-
createEvaluationJob
default CreateEvaluationJobResponse createEvaluationJob(CreateEvaluationJobRequest createEvaluationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates an evaluation job.
- Parameters:
createEvaluationJobRequest
-- Returns:
- Result of the CreateEvaluationJob operation returned by the service.
- See Also:
-
createEvaluationJob
default CreateEvaluationJobResponse createEvaluationJob(Consumer<CreateEvaluationJobRequest.Builder> createEvaluationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates an evaluation job.
This is a convenience which creates an instance of the
CreateEvaluationJobRequest.Builder
avoiding the need to create one manually viaCreateEvaluationJobRequest.builder()
- Parameters:
createEvaluationJobRequest
- AConsumer
that will call methods onCreateEvaluationJobRequest.Builder
to create a request.- Returns:
- Result of the CreateEvaluationJob operation returned by the service.
- See Also:
-
createFoundationModelAgreement
default CreateFoundationModelAgreementResponse createFoundationModelAgreement(CreateFoundationModelAgreementRequest createFoundationModelAgreementRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Request a model access agreement for the specified model.
- Parameters:
createFoundationModelAgreementRequest
-- Returns:
- Result of the CreateFoundationModelAgreement operation returned by the service.
- See Also:
-
createFoundationModelAgreement
default CreateFoundationModelAgreementResponse createFoundationModelAgreement(Consumer<CreateFoundationModelAgreementRequest.Builder> createFoundationModelAgreementRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Request a model access agreement for the specified model.
This is a convenience which creates an instance of the
CreateFoundationModelAgreementRequest.Builder
avoiding the need to create one manually viaCreateFoundationModelAgreementRequest.builder()
- Parameters:
createFoundationModelAgreementRequest
- AConsumer
that will call methods onCreateFoundationModelAgreementRequest.Builder
to create a request.- Returns:
- Result of the CreateFoundationModelAgreement operation returned by the service.
- See Also:
-
createGuardrail
default CreateGuardrailResponse createGuardrail(CreateGuardrailRequest createGuardrailRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
You can configure the following policies in a guardrail to avoid undesirable and harmful content, filter out denied topics and words, and remove sensitive information for privacy protection.
-
Content filters - Adjust filter strengths to block input prompts or model responses containing harmful content.
-
Denied topics - Define a set of topics that are undesirable in the context of your application. These topics will be blocked if detected in user queries or model responses.
-
Word filters - Configure filters to block undesirable words, phrases, and profanity. Such words can include offensive terms, competitor names etc.
-
Sensitive information filters - Block or mask sensitive information such as personally identifiable information (PII) or custom regex in user inputs and model responses.
In addition to the above policies, you can also configure the messages to be returned to the user if a user input or model response is in violation of the policies defined in the guardrail.
For more information, see Amazon Bedrock Guardrails in the Amazon Bedrock User Guide.
- Parameters:
createGuardrailRequest
-- Returns:
- Result of the CreateGuardrail operation returned by the service.
- See Also:
-
-
createGuardrail
default CreateGuardrailResponse createGuardrail(Consumer<CreateGuardrailRequest.Builder> createGuardrailRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
You can configure the following policies in a guardrail to avoid undesirable and harmful content, filter out denied topics and words, and remove sensitive information for privacy protection.
-
Content filters - Adjust filter strengths to block input prompts or model responses containing harmful content.
-
Denied topics - Define a set of topics that are undesirable in the context of your application. These topics will be blocked if detected in user queries or model responses.
-
Word filters - Configure filters to block undesirable words, phrases, and profanity. Such words can include offensive terms, competitor names etc.
-
Sensitive information filters - Block or mask sensitive information such as personally identifiable information (PII) or custom regex in user inputs and model responses.
In addition to the above policies, you can also configure the messages to be returned to the user if a user input or model response is in violation of the policies defined in the guardrail.
For more information, see Amazon Bedrock Guardrails in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
CreateGuardrailRequest.Builder
avoiding the need to create one manually viaCreateGuardrailRequest.builder()
- Parameters:
createGuardrailRequest
- AConsumer
that will call methods onCreateGuardrailRequest.Builder
to create a request.- Returns:
- Result of the CreateGuardrail operation returned by the service.
- See Also:
-
-
createGuardrailVersion
default CreateGuardrailVersionResponse createGuardrailVersion(CreateGuardrailVersionRequest createGuardrailVersionRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a version of the guardrail. Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.
- Parameters:
createGuardrailVersionRequest
-- Returns:
- Result of the CreateGuardrailVersion operation returned by the service.
- See Also:
-
createGuardrailVersion
default CreateGuardrailVersionResponse createGuardrailVersion(Consumer<CreateGuardrailVersionRequest.Builder> createGuardrailVersionRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a version of the guardrail. Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.
This is a convenience which creates an instance of the
CreateGuardrailVersionRequest.Builder
avoiding the need to create one manually viaCreateGuardrailVersionRequest.builder()
- Parameters:
createGuardrailVersionRequest
- AConsumer
that will call methods onCreateGuardrailVersionRequest.Builder
to create a request.- Returns:
- Result of the CreateGuardrailVersion operation returned by the service.
- See Also:
-
createInferenceProfile
default CreateInferenceProfileResponse createInferenceProfile(CreateInferenceProfileRequest createInferenceProfileRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException 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 you want to route requests to. For more information, see Increase throughput and resilience with cross-region inference in Amazon Bedrock. in the Amazon Bedrock User Guide.
- Parameters:
createInferenceProfileRequest
-- Returns:
- Result of the CreateInferenceProfile operation returned by the service.
- See Also:
-
createInferenceProfile
default CreateInferenceProfileResponse createInferenceProfile(Consumer<CreateInferenceProfileRequest.Builder> createInferenceProfileRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException 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 you want to route requests to. For more information, see Increase throughput and resilience with cross-region inference in Amazon Bedrock. in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
CreateInferenceProfileRequest.Builder
avoiding the need to create one manually viaCreateInferenceProfileRequest.builder()
- Parameters:
createInferenceProfileRequest
- AConsumer
that will call methods onCreateInferenceProfileRequest.Builder
to create a request.- Returns:
- Result of the CreateInferenceProfile operation returned by the service.
- See Also:
-
createMarketplaceModelEndpoint
default CreateMarketplaceModelEndpointResponse createMarketplaceModelEndpoint(CreateMarketplaceModelEndpointRequest createMarketplaceModelEndpointRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.
- Parameters:
createMarketplaceModelEndpointRequest
-- Returns:
- Result of the CreateMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
createMarketplaceModelEndpoint
default CreateMarketplaceModelEndpointResponse createMarketplaceModelEndpoint(Consumer<CreateMarketplaceModelEndpointRequest.Builder> createMarketplaceModelEndpointRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.
This is a convenience which creates an instance of the
CreateMarketplaceModelEndpointRequest.Builder
avoiding the need to create one manually viaCreateMarketplaceModelEndpointRequest.builder()
- Parameters:
createMarketplaceModelEndpointRequest
- AConsumer
that will call methods onCreateMarketplaceModelEndpointRequest.Builder
to create a request.- Returns:
- Result of the CreateMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
createModelCopyJob
default CreateModelCopyJobResponse createModelCopyJob(CreateModelCopyJobRequest createModelCopyJobRequest) throws ResourceNotFoundException, AccessDeniedException, InternalServerException, TooManyTagsException, AwsServiceException, SdkClientException, BedrockException Copies a model to another region so that it can be used there. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
- Parameters:
createModelCopyJobRequest
-- Returns:
- Result of the CreateModelCopyJob operation returned by the service.
- See Also:
-
createModelCopyJob
default CreateModelCopyJobResponse createModelCopyJob(Consumer<CreateModelCopyJobRequest.Builder> createModelCopyJobRequest) throws ResourceNotFoundException, AccessDeniedException, InternalServerException, TooManyTagsException, AwsServiceException, SdkClientException, BedrockException Copies a model to another region so that it can be used there. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
CreateModelCopyJobRequest.Builder
avoiding the need to create one manually viaCreateModelCopyJobRequest.builder()
- Parameters:
createModelCopyJobRequest
- AConsumer
that will call methods onCreateModelCopyJobRequest.Builder
to create a request.- Returns:
- Result of the CreateModelCopyJob operation returned by the service.
- See Also:
-
createModelCustomizationJob
default CreateModelCustomizationJobResponse createModelCustomizationJob(CreateModelCustomizationJobRequest createModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a fine-tuning job to customize a base model.
You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.
For information on the format of training and validation data, see Prepare the datasets.
Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the
GetModelCustomizationJob
operation to retrieve the job status.For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
createModelCustomizationJobRequest
-- Returns:
- Result of the CreateModelCustomizationJob operation returned by the service.
- See Also:
-
createModelCustomizationJob
default CreateModelCustomizationJobResponse createModelCustomizationJob(Consumer<CreateModelCustomizationJobRequest.Builder> createModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a fine-tuning job to customize a base model.
You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.
For information on the format of training and validation data, see Prepare the datasets.
Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the
GetModelCustomizationJob
operation to retrieve the job status.For more information, see Custom models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
CreateModelCustomizationJobRequest.Builder
avoiding the need to create one manually viaCreateModelCustomizationJobRequest.builder()
- Parameters:
createModelCustomizationJobRequest
- AConsumer
that will call methods onCreateModelCustomizationJobRequest.Builder
to create a request.- Returns:
- Result of the CreateModelCustomizationJob operation returned by the service.
- See Also:
-
createModelImportJob
default CreateModelImportJobResponse createModelImportJob(CreateModelImportJobRequest createModelImportJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model
- Parameters:
createModelImportJobRequest
-- Returns:
- Result of the CreateModelImportJob operation returned by the service.
- See Also:
-
createModelImportJob
default CreateModelImportJobResponse createModelImportJob(Consumer<CreateModelImportJobRequest.Builder> createModelImportJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model
This is a convenience which creates an instance of the
CreateModelImportJobRequest.Builder
avoiding the need to create one manually viaCreateModelImportJobRequest.builder()
- Parameters:
createModelImportJobRequest
- AConsumer
that will call methods onCreateModelImportJobRequest.Builder
to create a request.- Returns:
- Result of the CreateModelImportJob operation returned by the service.
- See Also:
-
createModelInvocationJob
default CreateModelInvocationJobResponse createModelInvocationJob(CreateModelInvocationJobRequest createModelInvocationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a batch inference job to invoke a model on multiple prompts. Format your data according to Format your inference data and upload it to an Amazon S3 bucket. For more information, see Process multiple prompts with batch inference.
The response returns a
jobArn
that you can use to stop or get details about the job.- Parameters:
createModelInvocationJobRequest
-- Returns:
- Result of the CreateModelInvocationJob operation returned by the service.
- See Also:
-
createModelInvocationJob
default CreateModelInvocationJobResponse createModelInvocationJob(Consumer<CreateModelInvocationJobRequest.Builder> createModelInvocationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a batch inference job to invoke a model on multiple prompts. Format your data according to Format your inference data and upload it to an Amazon S3 bucket. For more information, see Process multiple prompts with batch inference.
The response returns a
jobArn
that you can use to stop or get details about the job.
This is a convenience which creates an instance of the
CreateModelInvocationJobRequest.Builder
avoiding the need to create one manually viaCreateModelInvocationJobRequest.builder()
- Parameters:
createModelInvocationJobRequest
- AConsumer
that will call methods onCreateModelInvocationJobRequest.Builder
to create a request.- Returns:
- Result of the CreateModelInvocationJob operation returned by the service.
- See Also:
-
createPromptRouter
default CreatePromptRouterResponse createPromptRouter(CreatePromptRouterRequest createPromptRouterRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.
- Parameters:
createPromptRouterRequest
-- Returns:
- Result of the CreatePromptRouter operation returned by the service.
- See Also:
-
createPromptRouter
default CreatePromptRouterResponse createPromptRouter(Consumer<CreatePromptRouterRequest.Builder> createPromptRouterRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.
This is a convenience which creates an instance of the
CreatePromptRouterRequest.Builder
avoiding the need to create one manually viaCreatePromptRouterRequest.builder()
- Parameters:
createPromptRouterRequest
- AConsumer
that will call methods onCreatePromptRouterRequest.Builder
to create a request.- Returns:
- Result of the CreatePromptRouter operation returned by the service.
- See Also:
-
createProvisionedModelThroughput
default CreateProvisionedModelThroughputResponse createProvisionedModelThroughput(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
- Parameters:
createProvisionedModelThroughputRequest
-- Returns:
- Result of the CreateProvisionedModelThroughput operation returned by the service.
- See Also:
-
createProvisionedModelThroughput
default CreateProvisionedModelThroughputResponse createProvisionedModelThroughput(Consumer<CreateProvisionedModelThroughputRequest.Builder> createProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
CreateProvisionedModelThroughputRequest.Builder
avoiding the need to create one manually viaCreateProvisionedModelThroughputRequest.builder()
- Parameters:
createProvisionedModelThroughputRequest
- AConsumer
that will call methods onCreateProvisionedModelThroughputRequest.Builder
to create a request.- Returns:
- Result of the CreateProvisionedModelThroughput operation returned by the service.
- See Also:
-
deleteAutomatedReasoningPolicy
default DeleteAutomatedReasoningPolicyResponse deleteAutomatedReasoningPolicy(DeleteAutomatedReasoningPolicyRequest deleteAutomatedReasoningPolicyRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an Automated Reasoning policy or policy version. This operation is idempotent. If you delete a policy more than once, each call succeeds. Deleting a policy removes it permanently and cannot be undone.
- Parameters:
deleteAutomatedReasoningPolicyRequest
-- Returns:
- Result of the DeleteAutomatedReasoningPolicy operation returned by the service.
- See Also:
-
deleteAutomatedReasoningPolicy
default DeleteAutomatedReasoningPolicyResponse deleteAutomatedReasoningPolicy(Consumer<DeleteAutomatedReasoningPolicyRequest.Builder> deleteAutomatedReasoningPolicyRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an Automated Reasoning policy or policy version. This operation is idempotent. If you delete a policy more than once, each call succeeds. Deleting a policy removes it permanently and cannot be undone.
This is a convenience which creates an instance of the
DeleteAutomatedReasoningPolicyRequest.Builder
avoiding the need to create one manually viaDeleteAutomatedReasoningPolicyRequest.builder()
- Parameters:
deleteAutomatedReasoningPolicyRequest
- AConsumer
that will call methods onDeleteAutomatedReasoningPolicyRequest.Builder
to create a request.- Returns:
- Result of the DeleteAutomatedReasoningPolicy operation returned by the service.
- See Also:
-
deleteAutomatedReasoningPolicyBuildWorkflow
default DeleteAutomatedReasoningPolicyBuildWorkflowResponse deleteAutomatedReasoningPolicyBuildWorkflow(DeleteAutomatedReasoningPolicyBuildWorkflowRequest deleteAutomatedReasoningPolicyBuildWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an Automated Reasoning policy build workflow and its associated artifacts. This permanently removes the workflow history and any generated assets.
- Parameters:
deleteAutomatedReasoningPolicyBuildWorkflowRequest
-- Returns:
- Result of the DeleteAutomatedReasoningPolicyBuildWorkflow operation returned by the service.
- See Also:
-
deleteAutomatedReasoningPolicyBuildWorkflow
default DeleteAutomatedReasoningPolicyBuildWorkflowResponse deleteAutomatedReasoningPolicyBuildWorkflow(Consumer<DeleteAutomatedReasoningPolicyBuildWorkflowRequest.Builder> deleteAutomatedReasoningPolicyBuildWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an Automated Reasoning policy build workflow and its associated artifacts. This permanently removes the workflow history and any generated assets.
This is a convenience which creates an instance of the
DeleteAutomatedReasoningPolicyBuildWorkflowRequest.Builder
avoiding the need to create one manually viaDeleteAutomatedReasoningPolicyBuildWorkflowRequest.builder()
- Parameters:
deleteAutomatedReasoningPolicyBuildWorkflowRequest
- AConsumer
that will call methods onDeleteAutomatedReasoningPolicyBuildWorkflowRequest.Builder
to create a request.- Returns:
- Result of the DeleteAutomatedReasoningPolicyBuildWorkflow operation returned by the service.
- See Also:
-
deleteAutomatedReasoningPolicyTestCase
default DeleteAutomatedReasoningPolicyTestCaseResponse deleteAutomatedReasoningPolicyTestCase(DeleteAutomatedReasoningPolicyTestCaseRequest deleteAutomatedReasoningPolicyTestCaseRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ResourceInUseException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an Automated Reasoning policy test. This operation is idempotent; if you delete a test more than once, each call succeeds.
- Parameters:
deleteAutomatedReasoningPolicyTestCaseRequest
-- Returns:
- Result of the DeleteAutomatedReasoningPolicyTestCase operation returned by the service.
- See Also:
-
deleteAutomatedReasoningPolicyTestCase
default DeleteAutomatedReasoningPolicyTestCaseResponse deleteAutomatedReasoningPolicyTestCase(Consumer<DeleteAutomatedReasoningPolicyTestCaseRequest.Builder> deleteAutomatedReasoningPolicyTestCaseRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ResourceInUseException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an Automated Reasoning policy test. This operation is idempotent; if you delete a test more than once, each call succeeds.
This is a convenience which creates an instance of the
DeleteAutomatedReasoningPolicyTestCaseRequest.Builder
avoiding the need to create one manually viaDeleteAutomatedReasoningPolicyTestCaseRequest.builder()
- Parameters:
deleteAutomatedReasoningPolicyTestCaseRequest
- AConsumer
that will call methods onDeleteAutomatedReasoningPolicyTestCaseRequest.Builder
to create a request.- Returns:
- Result of the DeleteAutomatedReasoningPolicyTestCase operation returned by the service.
- See Also:
-
deleteCustomModel
default DeleteCustomModelResponse deleteCustomModel(DeleteCustomModelRequest deleteCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
deleteCustomModelRequest
-- Returns:
- Result of the DeleteCustomModel operation returned by the service.
- See Also:
-
deleteCustomModel
default DeleteCustomModelResponse deleteCustomModel(Consumer<DeleteCustomModelRequest.Builder> deleteCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
DeleteCustomModelRequest.Builder
avoiding the need to create one manually viaDeleteCustomModelRequest.builder()
- Parameters:
deleteCustomModelRequest
- AConsumer
that will call methods onDeleteCustomModelRequest.Builder
to create a request.- Returns:
- Result of the DeleteCustomModel operation returned by the service.
- See Also:
-
deleteCustomModelDeployment
default DeleteCustomModelDeploymentResponse deleteCustomModelDeployment(DeleteCustomModelDeploymentRequest deleteCustomModelDeploymentRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a custom model deployment. This operation stops the deployment and removes it from your account. After deletion, the deployment ARN can no longer be used for inference requests.
The following actions are related to the
DeleteCustomModelDeployment
operation:- Parameters:
deleteCustomModelDeploymentRequest
-- Returns:
- Result of the DeleteCustomModelDeployment operation returned by the service.
- See Also:
-
deleteCustomModelDeployment
default DeleteCustomModelDeploymentResponse deleteCustomModelDeployment(Consumer<DeleteCustomModelDeploymentRequest.Builder> deleteCustomModelDeploymentRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a custom model deployment. This operation stops the deployment and removes it from your account. After deletion, the deployment ARN can no longer be used for inference requests.
The following actions are related to the
DeleteCustomModelDeployment
operation:
This is a convenience which creates an instance of the
DeleteCustomModelDeploymentRequest.Builder
avoiding the need to create one manually viaDeleteCustomModelDeploymentRequest.builder()
- Parameters:
deleteCustomModelDeploymentRequest
- AConsumer
that will call methods onDeleteCustomModelDeploymentRequest.Builder
to create a request.- Returns:
- Result of the DeleteCustomModelDeployment operation returned by the service.
- See Also:
-
deleteFoundationModelAgreement
default DeleteFoundationModelAgreementResponse deleteFoundationModelAgreement(DeleteFoundationModelAgreementRequest deleteFoundationModelAgreementRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Delete the model access agreement for the specified model.
- Parameters:
deleteFoundationModelAgreementRequest
-- Returns:
- Result of the DeleteFoundationModelAgreement operation returned by the service.
- See Also:
-
deleteFoundationModelAgreement
default DeleteFoundationModelAgreementResponse deleteFoundationModelAgreement(Consumer<DeleteFoundationModelAgreementRequest.Builder> deleteFoundationModelAgreementRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Delete the model access agreement for the specified model.
This is a convenience which creates an instance of the
DeleteFoundationModelAgreementRequest.Builder
avoiding the need to create one manually viaDeleteFoundationModelAgreementRequest.builder()
- Parameters:
deleteFoundationModelAgreementRequest
- AConsumer
that will call methods onDeleteFoundationModelAgreementRequest.Builder
to create a request.- Returns:
- Result of the DeleteFoundationModelAgreement operation returned by the service.
- See Also:
-
deleteGuardrail
default DeleteGuardrailResponse deleteGuardrail(DeleteGuardrailRequest deleteGuardrailRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a guardrail.
-
To delete a guardrail, only specify the ARN of the guardrail in the
guardrailIdentifier
field. If you delete a guardrail, all of its versions will be deleted. -
To delete a version of a guardrail, specify the ARN of the guardrail in the
guardrailIdentifier
field and the version in theguardrailVersion
field.
- Parameters:
deleteGuardrailRequest
-- Returns:
- Result of the DeleteGuardrail operation returned by the service.
- See Also:
-
-
deleteGuardrail
default DeleteGuardrailResponse deleteGuardrail(Consumer<DeleteGuardrailRequest.Builder> deleteGuardrailRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a guardrail.
-
To delete a guardrail, only specify the ARN of the guardrail in the
guardrailIdentifier
field. If you delete a guardrail, all of its versions will be deleted. -
To delete a version of a guardrail, specify the ARN of the guardrail in the
guardrailIdentifier
field and the version in theguardrailVersion
field.
This is a convenience which creates an instance of the
DeleteGuardrailRequest.Builder
avoiding the need to create one manually viaDeleteGuardrailRequest.builder()
- Parameters:
deleteGuardrailRequest
- AConsumer
that will call methods onDeleteGuardrailRequest.Builder
to create a request.- Returns:
- Result of the DeleteGuardrail operation returned by the service.
- See Also:
-
-
deleteImportedModel
default DeleteImportedModelResponse deleteImportedModel(DeleteImportedModelRequest deleteImportedModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.
- Parameters:
deleteImportedModelRequest
-- Returns:
- Result of the DeleteImportedModel operation returned by the service.
- See Also:
-
deleteImportedModel
default DeleteImportedModelResponse deleteImportedModel(Consumer<DeleteImportedModelRequest.Builder> deleteImportedModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
DeleteImportedModelRequest.Builder
avoiding the need to create one manually viaDeleteImportedModelRequest.builder()
- Parameters:
deleteImportedModelRequest
- AConsumer
that will call methods onDeleteImportedModelRequest.Builder
to create a request.- Returns:
- Result of the DeleteImportedModel operation returned by the service.
- See Also:
-
deleteInferenceProfile
default DeleteInferenceProfileResponse deleteInferenceProfile(DeleteInferenceProfileRequest deleteInferenceProfileRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an application inference profile. For more information, see Increase throughput and resilience with cross-region inference in Amazon Bedrock. in the Amazon Bedrock User Guide.
- Parameters:
deleteInferenceProfileRequest
-- Returns:
- Result of the DeleteInferenceProfile operation returned by the service.
- See Also:
-
deleteInferenceProfile
default DeleteInferenceProfileResponse deleteInferenceProfile(Consumer<DeleteInferenceProfileRequest.Builder> deleteInferenceProfileRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an application inference profile. For more information, see Increase throughput and resilience with cross-region inference in Amazon Bedrock. in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
DeleteInferenceProfileRequest.Builder
avoiding the need to create one manually viaDeleteInferenceProfileRequest.builder()
- Parameters:
deleteInferenceProfileRequest
- AConsumer
that will call methods onDeleteInferenceProfileRequest.Builder
to create a request.- Returns:
- Result of the DeleteInferenceProfile operation returned by the service.
- See Also:
-
deleteMarketplaceModelEndpoint
default DeleteMarketplaceModelEndpointResponse deleteMarketplaceModelEndpoint(DeleteMarketplaceModelEndpointRequest deleteMarketplaceModelEndpointRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an endpoint for a model from Amazon Bedrock Marketplace.
- Parameters:
deleteMarketplaceModelEndpointRequest
-- Returns:
- Result of the DeleteMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
deleteMarketplaceModelEndpoint
default DeleteMarketplaceModelEndpointResponse deleteMarketplaceModelEndpoint(Consumer<DeleteMarketplaceModelEndpointRequest.Builder> deleteMarketplaceModelEndpointRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes an endpoint for a model from Amazon Bedrock Marketplace.
This is a convenience which creates an instance of the
DeleteMarketplaceModelEndpointRequest.Builder
avoiding the need to create one manually viaDeleteMarketplaceModelEndpointRequest.builder()
- Parameters:
deleteMarketplaceModelEndpointRequest
- AConsumer
that will call methods onDeleteMarketplaceModelEndpointRequest.Builder
to create a request.- Returns:
- Result of the DeleteMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
deleteModelInvocationLoggingConfiguration
default DeleteModelInvocationLoggingConfigurationResponse deleteModelInvocationLoggingConfiguration(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Delete the invocation logging.
- Parameters:
deleteModelInvocationLoggingConfigurationRequest
-- Returns:
- Result of the DeleteModelInvocationLoggingConfiguration operation returned by the service.
- See Also:
-
deleteModelInvocationLoggingConfiguration
default DeleteModelInvocationLoggingConfigurationResponse deleteModelInvocationLoggingConfiguration(Consumer<DeleteModelInvocationLoggingConfigurationRequest.Builder> deleteModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Delete the invocation logging.
This is a convenience which creates an instance of the
DeleteModelInvocationLoggingConfigurationRequest.Builder
avoiding the need to create one manually viaDeleteModelInvocationLoggingConfigurationRequest.builder()
- Parameters:
deleteModelInvocationLoggingConfigurationRequest
- AConsumer
that will call methods onDeleteModelInvocationLoggingConfigurationRequest.Builder
to create a request.- Returns:
- Result of the DeleteModelInvocationLoggingConfiguration operation returned by the service.
- See Also:
-
deletePromptRouter
default DeletePromptRouterResponse deletePromptRouter(DeletePromptRouterRequest deletePromptRouterRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a specified prompt router. This action cannot be undone.
- Parameters:
deletePromptRouterRequest
-- Returns:
- Result of the DeletePromptRouter operation returned by the service.
- See Also:
-
deletePromptRouter
default DeletePromptRouterResponse deletePromptRouter(Consumer<DeletePromptRouterRequest.Builder> deletePromptRouterRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a specified prompt router. This action cannot be undone.
This is a convenience which creates an instance of the
DeletePromptRouterRequest.Builder
avoiding the need to create one manually viaDeletePromptRouterRequest.builder()
- Parameters:
deletePromptRouterRequest
- AConsumer
that will call methods onDeletePromptRouterRequest.Builder
to create a request.- Returns:
- Result of the DeletePromptRouter operation returned by the service.
- See Also:
-
deleteProvisionedModelThroughput
default DeleteProvisionedModelThroughputResponse deleteProvisionedModelThroughput(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
- Parameters:
deleteProvisionedModelThroughputRequest
-- Returns:
- Result of the DeleteProvisionedModelThroughput operation returned by the service.
- See Also:
-
deleteProvisionedModelThroughput
default DeleteProvisionedModelThroughputResponse deleteProvisionedModelThroughput(Consumer<DeleteProvisionedModelThroughputRequest.Builder> deleteProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
DeleteProvisionedModelThroughputRequest.Builder
avoiding the need to create one manually viaDeleteProvisionedModelThroughputRequest.builder()
- Parameters:
deleteProvisionedModelThroughputRequest
- AConsumer
that will call methods onDeleteProvisionedModelThroughputRequest.Builder
to create a request.- Returns:
- Result of the DeleteProvisionedModelThroughput operation returned by the service.
- See Also:
-
deregisterMarketplaceModelEndpoint
default DeregisterMarketplaceModelEndpointResponse deregisterMarketplaceModelEndpoint(DeregisterMarketplaceModelEndpointRequest deregisterMarketplaceModelEndpointRequest) throws ResourceNotFoundException, ServiceUnavailableException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deregisters an endpoint for a model from Amazon Bedrock Marketplace. This operation removes the endpoint's association with Amazon Bedrock but does not delete the underlying Amazon SageMaker endpoint.
- Parameters:
deregisterMarketplaceModelEndpointRequest
-- Returns:
- Result of the DeregisterMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
deregisterMarketplaceModelEndpoint
default DeregisterMarketplaceModelEndpointResponse deregisterMarketplaceModelEndpoint(Consumer<DeregisterMarketplaceModelEndpointRequest.Builder> deregisterMarketplaceModelEndpointRequest) throws ResourceNotFoundException, ServiceUnavailableException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Deregisters an endpoint for a model from Amazon Bedrock Marketplace. This operation removes the endpoint's association with Amazon Bedrock but does not delete the underlying Amazon SageMaker endpoint.
This is a convenience which creates an instance of the
DeregisterMarketplaceModelEndpointRequest.Builder
avoiding the need to create one manually viaDeregisterMarketplaceModelEndpointRequest.builder()
- Parameters:
deregisterMarketplaceModelEndpointRequest
- AConsumer
that will call methods onDeregisterMarketplaceModelEndpointRequest.Builder
to create a request.- Returns:
- Result of the DeregisterMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
exportAutomatedReasoningPolicyVersion
default ExportAutomatedReasoningPolicyVersionResponse exportAutomatedReasoningPolicyVersion(ExportAutomatedReasoningPolicyVersionRequest exportAutomatedReasoningPolicyVersionRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Exports the policy definition for an Automated Reasoning policy version. Returns the complete policy definition including rules, variables, and custom variable types in a structured format.
- Parameters:
exportAutomatedReasoningPolicyVersionRequest
-- Returns:
- Result of the ExportAutomatedReasoningPolicyVersion operation returned by the service.
- See Also:
-
exportAutomatedReasoningPolicyVersion
default ExportAutomatedReasoningPolicyVersionResponse exportAutomatedReasoningPolicyVersion(Consumer<ExportAutomatedReasoningPolicyVersionRequest.Builder> exportAutomatedReasoningPolicyVersionRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Exports the policy definition for an Automated Reasoning policy version. Returns the complete policy definition including rules, variables, and custom variable types in a structured format.
This is a convenience which creates an instance of the
ExportAutomatedReasoningPolicyVersionRequest.Builder
avoiding the need to create one manually viaExportAutomatedReasoningPolicyVersionRequest.builder()
- Parameters:
exportAutomatedReasoningPolicyVersionRequest
- AConsumer
that will call methods onExportAutomatedReasoningPolicyVersionRequest.Builder
to create a request.- Returns:
- Result of the ExportAutomatedReasoningPolicyVersion operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicy
default GetAutomatedReasoningPolicyResponse getAutomatedReasoningPolicy(GetAutomatedReasoningPolicyRequest getAutomatedReasoningPolicyRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves details about an Automated Reasoning policy or policy version. Returns information including the policy definition, metadata, and timestamps.
- Parameters:
getAutomatedReasoningPolicyRequest
-- Returns:
- Result of the GetAutomatedReasoningPolicy operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicy
default GetAutomatedReasoningPolicyResponse getAutomatedReasoningPolicy(Consumer<GetAutomatedReasoningPolicyRequest.Builder> getAutomatedReasoningPolicyRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves details about an Automated Reasoning policy or policy version. Returns information including the policy definition, metadata, and timestamps.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyRequest.Builder
avoiding the need to create one manually viaGetAutomatedReasoningPolicyRequest.builder()
- Parameters:
getAutomatedReasoningPolicyRequest
- AConsumer
that will call methods onGetAutomatedReasoningPolicyRequest.Builder
to create a request.- Returns:
- Result of the GetAutomatedReasoningPolicy operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyAnnotations
default GetAutomatedReasoningPolicyAnnotationsResponse getAutomatedReasoningPolicyAnnotations(GetAutomatedReasoningPolicyAnnotationsRequest getAutomatedReasoningPolicyAnnotationsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the current annotations for an Automated Reasoning policy build workflow. Annotations contain corrections to the rules, variables and types to be applied to the policy.
- Parameters:
getAutomatedReasoningPolicyAnnotationsRequest
-- Returns:
- Result of the GetAutomatedReasoningPolicyAnnotations operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyAnnotations
default GetAutomatedReasoningPolicyAnnotationsResponse getAutomatedReasoningPolicyAnnotations(Consumer<GetAutomatedReasoningPolicyAnnotationsRequest.Builder> getAutomatedReasoningPolicyAnnotationsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the current annotations for an Automated Reasoning policy build workflow. Annotations contain corrections to the rules, variables and types to be applied to the policy.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyAnnotationsRequest.Builder
avoiding the need to create one manually viaGetAutomatedReasoningPolicyAnnotationsRequest.builder()
- Parameters:
getAutomatedReasoningPolicyAnnotationsRequest
- AConsumer
that will call methods onGetAutomatedReasoningPolicyAnnotationsRequest.Builder
to create a request.- Returns:
- Result of the GetAutomatedReasoningPolicyAnnotations operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyBuildWorkflow
default GetAutomatedReasoningPolicyBuildWorkflowResponse getAutomatedReasoningPolicyBuildWorkflow(GetAutomatedReasoningPolicyBuildWorkflowRequest getAutomatedReasoningPolicyBuildWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.
- Parameters:
getAutomatedReasoningPolicyBuildWorkflowRequest
-- Returns:
- Result of the GetAutomatedReasoningPolicyBuildWorkflow operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyBuildWorkflow
default GetAutomatedReasoningPolicyBuildWorkflowResponse getAutomatedReasoningPolicyBuildWorkflow(Consumer<GetAutomatedReasoningPolicyBuildWorkflowRequest.Builder> getAutomatedReasoningPolicyBuildWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyBuildWorkflowRequest.Builder
avoiding the need to create one manually viaGetAutomatedReasoningPolicyBuildWorkflowRequest.builder()
- Parameters:
getAutomatedReasoningPolicyBuildWorkflowRequest
- AConsumer
that will call methods onGetAutomatedReasoningPolicyBuildWorkflowRequest.Builder
to create a request.- Returns:
- Result of the GetAutomatedReasoningPolicyBuildWorkflow operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyBuildWorkflowResultAssets
default GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse getAutomatedReasoningPolicyBuildWorkflowResultAssets(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.
- Parameters:
getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest
-- Returns:
- Result of the GetAutomatedReasoningPolicyBuildWorkflowResultAssets operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyBuildWorkflowResultAssets
default GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse getAutomatedReasoningPolicyBuildWorkflowResultAssets(Consumer<GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.Builder> getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.Builder
avoiding the need to create one manually viaGetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.builder()
- Parameters:
getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest
- AConsumer
that will call methods onGetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.Builder
to create a request.- Returns:
- Result of the GetAutomatedReasoningPolicyBuildWorkflowResultAssets operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyNextScenario
default GetAutomatedReasoningPolicyNextScenarioResponse getAutomatedReasoningPolicyNextScenario(GetAutomatedReasoningPolicyNextScenarioRequest getAutomatedReasoningPolicyNextScenarioRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the next test scenario for validating an Automated Reasoning policy. This is used during the interactive policy refinement process to test policy behavior.
- Parameters:
getAutomatedReasoningPolicyNextScenarioRequest
-- Returns:
- Result of the GetAutomatedReasoningPolicyNextScenario operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyNextScenario
default GetAutomatedReasoningPolicyNextScenarioResponse getAutomatedReasoningPolicyNextScenario(Consumer<GetAutomatedReasoningPolicyNextScenarioRequest.Builder> getAutomatedReasoningPolicyNextScenarioRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the next test scenario for validating an Automated Reasoning policy. This is used during the interactive policy refinement process to test policy behavior.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyNextScenarioRequest.Builder
avoiding the need to create one manually viaGetAutomatedReasoningPolicyNextScenarioRequest.builder()
- Parameters:
getAutomatedReasoningPolicyNextScenarioRequest
- AConsumer
that will call methods onGetAutomatedReasoningPolicyNextScenarioRequest.Builder
to create a request.- Returns:
- Result of the GetAutomatedReasoningPolicyNextScenario operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyTestCase
default GetAutomatedReasoningPolicyTestCaseResponse getAutomatedReasoningPolicyTestCase(GetAutomatedReasoningPolicyTestCaseRequest getAutomatedReasoningPolicyTestCaseRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves details about a specific Automated Reasoning policy test.
- Parameters:
getAutomatedReasoningPolicyTestCaseRequest
-- Returns:
- Result of the GetAutomatedReasoningPolicyTestCase operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyTestCase
default GetAutomatedReasoningPolicyTestCaseResponse getAutomatedReasoningPolicyTestCase(Consumer<GetAutomatedReasoningPolicyTestCaseRequest.Builder> getAutomatedReasoningPolicyTestCaseRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves details about a specific Automated Reasoning policy test.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyTestCaseRequest.Builder
avoiding the need to create one manually viaGetAutomatedReasoningPolicyTestCaseRequest.builder()
- Parameters:
getAutomatedReasoningPolicyTestCaseRequest
- AConsumer
that will call methods onGetAutomatedReasoningPolicyTestCaseRequest.Builder
to create a request.- Returns:
- Result of the GetAutomatedReasoningPolicyTestCase operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyTestResult
default GetAutomatedReasoningPolicyTestResultResponse getAutomatedReasoningPolicyTestResult(GetAutomatedReasoningPolicyTestResultRequest getAutomatedReasoningPolicyTestResultRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.
- Parameters:
getAutomatedReasoningPolicyTestResultRequest
-- Returns:
- Result of the GetAutomatedReasoningPolicyTestResult operation returned by the service.
- See Also:
-
getAutomatedReasoningPolicyTestResult
default GetAutomatedReasoningPolicyTestResultResponse getAutomatedReasoningPolicyTestResult(Consumer<GetAutomatedReasoningPolicyTestResultRequest.Builder> getAutomatedReasoningPolicyTestResultRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyTestResultRequest.Builder
avoiding the need to create one manually viaGetAutomatedReasoningPolicyTestResultRequest.builder()
- Parameters:
getAutomatedReasoningPolicyTestResultRequest
- AConsumer
that will call methods onGetAutomatedReasoningPolicyTestResultRequest.Builder
to create a request.- Returns:
- Result of the GetAutomatedReasoningPolicyTestResult operation returned by the service.
- See Also:
-
getCustomModel
default GetCustomModelResponse getCustomModel(GetCustomModelRequest getCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get the properties associated with a Amazon Bedrock custom model that you have created. For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
getCustomModelRequest
-- Returns:
- Result of the GetCustomModel operation returned by the service.
- See Also:
-
getCustomModel
default GetCustomModelResponse getCustomModel(Consumer<GetCustomModelRequest.Builder> getCustomModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get the properties associated with a Amazon Bedrock custom model that you have created. For more information, see Custom models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
GetCustomModelRequest.Builder
avoiding the need to create one manually viaGetCustomModelRequest.builder()
- Parameters:
getCustomModelRequest
- AConsumer
that will call methods onGetCustomModelRequest.Builder
to create a request.- Returns:
- Result of the GetCustomModel operation returned by the service.
- See Also:
-
getCustomModelDeployment
default GetCustomModelDeploymentResponse getCustomModelDeployment(GetCustomModelDeploymentRequest getCustomModelDeploymentRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves information about a custom model deployment, including its status, configuration, and metadata. Use this operation to monitor the deployment status and retrieve details needed for inference requests.
The following actions are related to the
GetCustomModelDeployment
operation:- Parameters:
getCustomModelDeploymentRequest
-- Returns:
- Result of the GetCustomModelDeployment operation returned by the service.
- See Also:
-
getCustomModelDeployment
default GetCustomModelDeploymentResponse getCustomModelDeployment(Consumer<GetCustomModelDeploymentRequest.Builder> getCustomModelDeploymentRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves information about a custom model deployment, including its status, configuration, and metadata. Use this operation to monitor the deployment status and retrieve details needed for inference requests.
The following actions are related to the
GetCustomModelDeployment
operation:
This is a convenience which creates an instance of the
GetCustomModelDeploymentRequest.Builder
avoiding the need to create one manually viaGetCustomModelDeploymentRequest.builder()
- Parameters:
getCustomModelDeploymentRequest
- AConsumer
that will call methods onGetCustomModelDeploymentRequest.Builder
to create a request.- Returns:
- Result of the GetCustomModelDeployment operation returned by the service.
- See Also:
-
getEvaluationJob
default GetEvaluationJobResponse getEvaluationJob(GetEvaluationJobRequest getEvaluationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets information about an evaluation job, such as the status of the job.
- Parameters:
getEvaluationJobRequest
-- Returns:
- Result of the GetEvaluationJob operation returned by the service.
- See Also:
-
getEvaluationJob
default GetEvaluationJobResponse getEvaluationJob(Consumer<GetEvaluationJobRequest.Builder> getEvaluationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets information about an evaluation job, such as the status of the job.
This is a convenience which creates an instance of the
GetEvaluationJobRequest.Builder
avoiding the need to create one manually viaGetEvaluationJobRequest.builder()
- Parameters:
getEvaluationJobRequest
- AConsumer
that will call methods onGetEvaluationJobRequest.Builder
to create a request.- Returns:
- Result of the GetEvaluationJob operation returned by the service.
- See Also:
-
getFoundationModel
default GetFoundationModelResponse getFoundationModel(GetFoundationModelRequest getFoundationModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get details about a Amazon Bedrock foundation model.
- Parameters:
getFoundationModelRequest
-- Returns:
- Result of the GetFoundationModel operation returned by the service.
- See Also:
-
getFoundationModel
default GetFoundationModelResponse getFoundationModel(Consumer<GetFoundationModelRequest.Builder> getFoundationModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get details about a Amazon Bedrock foundation model.
This is a convenience which creates an instance of the
GetFoundationModelRequest.Builder
avoiding the need to create one manually viaGetFoundationModelRequest.builder()
- Parameters:
getFoundationModelRequest
- AConsumer
that will call methods onGetFoundationModelRequest.Builder
to create a request.- Returns:
- Result of the GetFoundationModel operation returned by the service.
- See Also:
-
getFoundationModelAvailability
default GetFoundationModelAvailabilityResponse getFoundationModelAvailability(GetFoundationModelAvailabilityRequest getFoundationModelAvailabilityRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get information about the Foundation model availability.
- Parameters:
getFoundationModelAvailabilityRequest
-- Returns:
- Result of the GetFoundationModelAvailability operation returned by the service.
- See Also:
-
getFoundationModelAvailability
default GetFoundationModelAvailabilityResponse getFoundationModelAvailability(Consumer<GetFoundationModelAvailabilityRequest.Builder> getFoundationModelAvailabilityRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get information about the Foundation model availability.
This is a convenience which creates an instance of the
GetFoundationModelAvailabilityRequest.Builder
avoiding the need to create one manually viaGetFoundationModelAvailabilityRequest.builder()
- Parameters:
getFoundationModelAvailabilityRequest
- AConsumer
that will call methods onGetFoundationModelAvailabilityRequest.Builder
to create a request.- Returns:
- Result of the GetFoundationModelAvailability operation returned by the service.
- See Also:
-
getGuardrail
default GetGuardrailResponse getGuardrail(GetGuardrailRequest getGuardrailRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets details about a guardrail. If you don't specify a version, the response returns details for the
DRAFT
version.- Parameters:
getGuardrailRequest
-- Returns:
- Result of the GetGuardrail operation returned by the service.
- See Also:
-
getGuardrail
default GetGuardrailResponse getGuardrail(Consumer<GetGuardrailRequest.Builder> getGuardrailRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets details about a guardrail. If you don't specify a version, the response returns details for the
DRAFT
version.
This is a convenience which creates an instance of the
GetGuardrailRequest.Builder
avoiding the need to create one manually viaGetGuardrailRequest.builder()
- Parameters:
getGuardrailRequest
- AConsumer
that will call methods onGetGuardrailRequest.Builder
to create a request.- Returns:
- Result of the GetGuardrail operation returned by the service.
- See Also:
-
getImportedModel
default GetImportedModelResponse getImportedModel(GetImportedModelRequest getImportedModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets properties associated with a customized model you imported.
- Parameters:
getImportedModelRequest
-- Returns:
- Result of the GetImportedModel operation returned by the service.
- See Also:
-
getImportedModel
default GetImportedModelResponse getImportedModel(Consumer<GetImportedModelRequest.Builder> getImportedModelRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets properties associated with a customized model you imported.
This is a convenience which creates an instance of the
GetImportedModelRequest.Builder
avoiding the need to create one manually viaGetImportedModelRequest.builder()
- Parameters:
getImportedModelRequest
- AConsumer
that will call methods onGetImportedModelRequest.Builder
to create a request.- Returns:
- Result of the GetImportedModel operation returned by the service.
- See Also:
-
getInferenceProfile
default GetInferenceProfileResponse getInferenceProfile(GetInferenceProfileRequest getInferenceProfileRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets information about an inference profile. For more information, see Increase throughput and resilience with cross-region inference in Amazon Bedrock. in the Amazon Bedrock User Guide.
- Parameters:
getInferenceProfileRequest
-- Returns:
- Result of the GetInferenceProfile operation returned by the service.
- See Also:
-
getInferenceProfile
default GetInferenceProfileResponse getInferenceProfile(Consumer<GetInferenceProfileRequest.Builder> getInferenceProfileRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets information about an inference profile. For more information, see Increase throughput and resilience with cross-region inference in Amazon Bedrock. in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
GetInferenceProfileRequest.Builder
avoiding the need to create one manually viaGetInferenceProfileRequest.builder()
- Parameters:
getInferenceProfileRequest
- AConsumer
that will call methods onGetInferenceProfileRequest.Builder
to create a request.- Returns:
- Result of the GetInferenceProfile operation returned by the service.
- See Also:
-
getMarketplaceModelEndpoint
default GetMarketplaceModelEndpointResponse getMarketplaceModelEndpoint(GetMarketplaceModelEndpointRequest getMarketplaceModelEndpointRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
- Parameters:
getMarketplaceModelEndpointRequest
-- Returns:
- Result of the GetMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
getMarketplaceModelEndpoint
default GetMarketplaceModelEndpointResponse getMarketplaceModelEndpoint(Consumer<GetMarketplaceModelEndpointRequest.Builder> getMarketplaceModelEndpointRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
This is a convenience which creates an instance of the
GetMarketplaceModelEndpointRequest.Builder
avoiding the need to create one manually viaGetMarketplaceModelEndpointRequest.builder()
- Parameters:
getMarketplaceModelEndpointRequest
- AConsumer
that will call methods onGetMarketplaceModelEndpointRequest.Builder
to create a request.- Returns:
- Result of the GetMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
getModelCopyJob
default GetModelCopyJobResponse getModelCopyJob(GetModelCopyJobRequest getModelCopyJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves information about a model copy job. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
- Parameters:
getModelCopyJobRequest
-- Returns:
- Result of the GetModelCopyJob operation returned by the service.
- See Also:
-
getModelCopyJob
default GetModelCopyJobResponse getModelCopyJob(Consumer<GetModelCopyJobRequest.Builder> getModelCopyJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves information about a model copy job. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
GetModelCopyJobRequest.Builder
avoiding the need to create one manually viaGetModelCopyJobRequest.builder()
- Parameters:
getModelCopyJobRequest
- AConsumer
that will call methods onGetModelCopyJobRequest.Builder
to create a request.- Returns:
- Result of the GetModelCopyJob operation returned by the service.
- See Also:
-
getModelCustomizationJob
default GetModelCustomizationJobResponse getModelCustomizationJob(GetModelCustomizationJobRequest getModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
getModelCustomizationJobRequest
-- Returns:
- Result of the GetModelCustomizationJob operation returned by the service.
- See Also:
-
getModelCustomizationJob
default GetModelCustomizationJobResponse getModelCustomizationJob(Consumer<GetModelCustomizationJobRequest.Builder> getModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
GetModelCustomizationJobRequest.Builder
avoiding the need to create one manually viaGetModelCustomizationJobRequest.builder()
- Parameters:
getModelCustomizationJobRequest
- AConsumer
that will call methods onGetModelCustomizationJobRequest.Builder
to create a request.- Returns:
- Result of the GetModelCustomizationJob operation returned by the service.
- See Also:
-
getModelImportJob
default GetModelImportJobResponse getModelImportJob(GetModelImportJobRequest getModelImportJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the properties associated with import model job, including the status of the job. For more information, see Import a customized model in the Amazon Bedrock User Guide.
- Parameters:
getModelImportJobRequest
-- Returns:
- Result of the GetModelImportJob operation returned by the service.
- See Also:
-
getModelImportJob
default GetModelImportJobResponse getModelImportJob(Consumer<GetModelImportJobRequest.Builder> getModelImportJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves the properties associated with import model job, including the status of the job. For more information, see Import a customized model in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
GetModelImportJobRequest.Builder
avoiding the need to create one manually viaGetModelImportJobRequest.builder()
- Parameters:
getModelImportJobRequest
- AConsumer
that will call methods onGetModelImportJobRequest.Builder
to create a request.- Returns:
- Result of the GetModelImportJob operation returned by the service.
- See Also:
-
getModelInvocationJob
default GetModelInvocationJobResponse getModelInvocationJob(GetModelInvocationJobRequest getModelInvocationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets details about a batch inference job. For more information, see Monitor batch inference jobs
- Parameters:
getModelInvocationJobRequest
-- Returns:
- Result of the GetModelInvocationJob operation returned by the service.
- See Also:
-
getModelInvocationJob
default GetModelInvocationJobResponse getModelInvocationJob(Consumer<GetModelInvocationJobRequest.Builder> getModelInvocationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Gets details about a batch inference job. For more information, see Monitor batch inference jobs
This is a convenience which creates an instance of the
GetModelInvocationJobRequest.Builder
avoiding the need to create one manually viaGetModelInvocationJobRequest.builder()
- Parameters:
getModelInvocationJobRequest
- AConsumer
that will call methods onGetModelInvocationJobRequest.Builder
to create a request.- Returns:
- Result of the GetModelInvocationJob operation returned by the service.
- See Also:
-
getModelInvocationLoggingConfiguration
default GetModelInvocationLoggingConfigurationResponse getModelInvocationLoggingConfiguration(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get the current configuration values for model invocation logging.
- Parameters:
getModelInvocationLoggingConfigurationRequest
-- Returns:
- Result of the GetModelInvocationLoggingConfiguration operation returned by the service.
- See Also:
-
getModelInvocationLoggingConfiguration
default GetModelInvocationLoggingConfigurationResponse getModelInvocationLoggingConfiguration(Consumer<GetModelInvocationLoggingConfigurationRequest.Builder> getModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get the current configuration values for model invocation logging.
This is a convenience which creates an instance of the
GetModelInvocationLoggingConfigurationRequest.Builder
avoiding the need to create one manually viaGetModelInvocationLoggingConfigurationRequest.builder()
- Parameters:
getModelInvocationLoggingConfigurationRequest
- AConsumer
that will call methods onGetModelInvocationLoggingConfigurationRequest.Builder
to create a request.- Returns:
- Result of the GetModelInvocationLoggingConfiguration operation returned by the service.
- See Also:
-
getPromptRouter
default GetPromptRouterResponse getPromptRouter(GetPromptRouterRequest getPromptRouterRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves details about a prompt router.
- Parameters:
getPromptRouterRequest
-- Returns:
- Result of the GetPromptRouter operation returned by the service.
- See Also:
-
getPromptRouter
default GetPromptRouterResponse getPromptRouter(Consumer<GetPromptRouterRequest.Builder> getPromptRouterRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves details about a prompt router.
This is a convenience which creates an instance of the
GetPromptRouterRequest.Builder
avoiding the need to create one manually viaGetPromptRouterRequest.builder()
- Parameters:
getPromptRouterRequest
- AConsumer
that will call methods onGetPromptRouterRequest.Builder
to create a request.- Returns:
- Result of the GetPromptRouter operation returned by the service.
- See Also:
-
getProvisionedModelThroughput
default GetProvisionedModelThroughputResponse getProvisionedModelThroughput(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
- Parameters:
getProvisionedModelThroughputRequest
-- Returns:
- Result of the GetProvisionedModelThroughput operation returned by the service.
- See Also:
-
getProvisionedModelThroughput
default GetProvisionedModelThroughputResponse getProvisionedModelThroughput(Consumer<GetProvisionedModelThroughputRequest.Builder> getProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
GetProvisionedModelThroughputRequest.Builder
avoiding the need to create one manually viaGetProvisionedModelThroughputRequest.builder()
- Parameters:
getProvisionedModelThroughputRequest
- AConsumer
that will call methods onGetProvisionedModelThroughputRequest.Builder
to create a request.- Returns:
- Result of the GetProvisionedModelThroughput operation returned by the service.
- See Also:
-
getUseCaseForModelAccess
default GetUseCaseForModelAccessResponse getUseCaseForModelAccess(GetUseCaseForModelAccessRequest getUseCaseForModelAccessRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get usecase for model access.
- Parameters:
getUseCaseForModelAccessRequest
-- Returns:
- Result of the GetUseCaseForModelAccess operation returned by the service.
- See Also:
-
getUseCaseForModelAccess
default GetUseCaseForModelAccessResponse getUseCaseForModelAccess(Consumer<GetUseCaseForModelAccessRequest.Builder> getUseCaseForModelAccessRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get usecase for model access.
This is a convenience which creates an instance of the
GetUseCaseForModelAccessRequest.Builder
avoiding the need to create one manually viaGetUseCaseForModelAccessRequest.builder()
- Parameters:
getUseCaseForModelAccessRequest
- AConsumer
that will call methods onGetUseCaseForModelAccessRequest.Builder
to create a request.- Returns:
- Result of the GetUseCaseForModelAccess operation returned by the service.
- See Also:
-
listAutomatedReasoningPolicies
default ListAutomatedReasoningPoliciesResponse listAutomatedReasoningPolicies(ListAutomatedReasoningPoliciesRequest listAutomatedReasoningPoliciesRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN. This helps you manage and discover existing policies.
- Parameters:
listAutomatedReasoningPoliciesRequest
-- Returns:
- Result of the ListAutomatedReasoningPolicies operation returned by the service.
- See Also:
-
listAutomatedReasoningPolicies
default ListAutomatedReasoningPoliciesResponse listAutomatedReasoningPolicies(Consumer<ListAutomatedReasoningPoliciesRequest.Builder> listAutomatedReasoningPoliciesRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN. This helps you manage and discover existing policies.
This is a convenience which creates an instance of the
ListAutomatedReasoningPoliciesRequest.Builder
avoiding the need to create one manually viaListAutomatedReasoningPoliciesRequest.builder()
- Parameters:
listAutomatedReasoningPoliciesRequest
- AConsumer
that will call methods onListAutomatedReasoningPoliciesRequest.Builder
to create a request.- Returns:
- Result of the ListAutomatedReasoningPolicies operation returned by the service.
- See Also:
-
listAutomatedReasoningPoliciesPaginator
default ListAutomatedReasoningPoliciesIterable listAutomatedReasoningPoliciesPaginator(ListAutomatedReasoningPoliciesRequest listAutomatedReasoningPoliciesRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listAutomatedReasoningPolicies(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesIterable responses = client.listAutomatedReasoningPoliciesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesIterable responses = client .listAutomatedReasoningPoliciesPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesIterable responses = client.listAutomatedReasoningPoliciesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAutomatedReasoningPolicies(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesRequest)
operation.- Parameters:
listAutomatedReasoningPoliciesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomatedReasoningPoliciesPaginator
default ListAutomatedReasoningPoliciesIterable listAutomatedReasoningPoliciesPaginator(Consumer<ListAutomatedReasoningPoliciesRequest.Builder> listAutomatedReasoningPoliciesRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listAutomatedReasoningPolicies(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesIterable responses = client.listAutomatedReasoningPoliciesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesIterable responses = client .listAutomatedReasoningPoliciesPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesIterable responses = client.listAutomatedReasoningPoliciesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAutomatedReasoningPolicies(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesRequest)
operation.
This is a convenience which creates an instance of the
ListAutomatedReasoningPoliciesRequest.Builder
avoiding the need to create one manually viaListAutomatedReasoningPoliciesRequest.builder()
- Parameters:
listAutomatedReasoningPoliciesRequest
- AConsumer
that will call methods onListAutomatedReasoningPoliciesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomatedReasoningPolicyBuildWorkflows
default ListAutomatedReasoningPolicyBuildWorkflowsResponse listAutomatedReasoningPolicyBuildWorkflows(ListAutomatedReasoningPolicyBuildWorkflowsRequest listAutomatedReasoningPolicyBuildWorkflowsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.
- Parameters:
listAutomatedReasoningPolicyBuildWorkflowsRequest
-- Returns:
- Result of the ListAutomatedReasoningPolicyBuildWorkflows operation returned by the service.
- See Also:
-
listAutomatedReasoningPolicyBuildWorkflows
default ListAutomatedReasoningPolicyBuildWorkflowsResponse listAutomatedReasoningPolicyBuildWorkflows(Consumer<ListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder> listAutomatedReasoningPolicyBuildWorkflowsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.
This is a convenience which creates an instance of the
ListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder
avoiding the need to create one manually viaListAutomatedReasoningPolicyBuildWorkflowsRequest.builder()
- Parameters:
listAutomatedReasoningPolicyBuildWorkflowsRequest
- AConsumer
that will call methods onListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder
to create a request.- Returns:
- Result of the ListAutomatedReasoningPolicyBuildWorkflows operation returned by the service.
- See Also:
-
listAutomatedReasoningPolicyBuildWorkflowsPaginator
default ListAutomatedReasoningPolicyBuildWorkflowsIterable listAutomatedReasoningPolicyBuildWorkflowsPaginator(ListAutomatedReasoningPolicyBuildWorkflowsRequest listAutomatedReasoningPolicyBuildWorkflowsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listAutomatedReasoningPolicyBuildWorkflows(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsIterable responses = client.listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsIterable responses = client .listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsIterable responses = client.listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAutomatedReasoningPolicyBuildWorkflows(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsRequest)
operation.- Parameters:
listAutomatedReasoningPolicyBuildWorkflowsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomatedReasoningPolicyBuildWorkflowsPaginator
default ListAutomatedReasoningPolicyBuildWorkflowsIterable listAutomatedReasoningPolicyBuildWorkflowsPaginator(Consumer<ListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder> listAutomatedReasoningPolicyBuildWorkflowsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listAutomatedReasoningPolicyBuildWorkflows(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsIterable responses = client.listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsIterable responses = client .listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsIterable responses = client.listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAutomatedReasoningPolicyBuildWorkflows(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsRequest)
operation.
This is a convenience which creates an instance of the
ListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder
avoiding the need to create one manually viaListAutomatedReasoningPolicyBuildWorkflowsRequest.builder()
- Parameters:
listAutomatedReasoningPolicyBuildWorkflowsRequest
- AConsumer
that will call methods onListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomatedReasoningPolicyTestCases
default ListAutomatedReasoningPolicyTestCasesResponse listAutomatedReasoningPolicyTestCases(ListAutomatedReasoningPolicyTestCasesRequest listAutomatedReasoningPolicyTestCasesRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists tests for an Automated Reasoning policy. We recommend using pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listAutomatedReasoningPolicyTestCasesRequest
-- Returns:
- Result of the ListAutomatedReasoningPolicyTestCases operation returned by the service.
- See Also:
-
listAutomatedReasoningPolicyTestCases
default ListAutomatedReasoningPolicyTestCasesResponse listAutomatedReasoningPolicyTestCases(Consumer<ListAutomatedReasoningPolicyTestCasesRequest.Builder> listAutomatedReasoningPolicyTestCasesRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists tests for an Automated Reasoning policy. We recommend using pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListAutomatedReasoningPolicyTestCasesRequest.Builder
avoiding the need to create one manually viaListAutomatedReasoningPolicyTestCasesRequest.builder()
- Parameters:
listAutomatedReasoningPolicyTestCasesRequest
- AConsumer
that will call methods onListAutomatedReasoningPolicyTestCasesRequest.Builder
to create a request.- Returns:
- Result of the ListAutomatedReasoningPolicyTestCases operation returned by the service.
- See Also:
-
listAutomatedReasoningPolicyTestCasesPaginator
default ListAutomatedReasoningPolicyTestCasesIterable listAutomatedReasoningPolicyTestCasesPaginator(ListAutomatedReasoningPolicyTestCasesRequest listAutomatedReasoningPolicyTestCasesRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listAutomatedReasoningPolicyTestCases(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesIterable responses = client.listAutomatedReasoningPolicyTestCasesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesIterable responses = client .listAutomatedReasoningPolicyTestCasesPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesIterable responses = client.listAutomatedReasoningPolicyTestCasesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAutomatedReasoningPolicyTestCases(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesRequest)
operation.- Parameters:
listAutomatedReasoningPolicyTestCasesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomatedReasoningPolicyTestCasesPaginator
default ListAutomatedReasoningPolicyTestCasesIterable listAutomatedReasoningPolicyTestCasesPaginator(Consumer<ListAutomatedReasoningPolicyTestCasesRequest.Builder> listAutomatedReasoningPolicyTestCasesRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listAutomatedReasoningPolicyTestCases(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesIterable responses = client.listAutomatedReasoningPolicyTestCasesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesIterable responses = client .listAutomatedReasoningPolicyTestCasesPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesIterable responses = client.listAutomatedReasoningPolicyTestCasesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAutomatedReasoningPolicyTestCases(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesRequest)
operation.
This is a convenience which creates an instance of the
ListAutomatedReasoningPolicyTestCasesRequest.Builder
avoiding the need to create one manually viaListAutomatedReasoningPolicyTestCasesRequest.builder()
- Parameters:
listAutomatedReasoningPolicyTestCasesRequest
- AConsumer
that will call methods onListAutomatedReasoningPolicyTestCasesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomatedReasoningPolicyTestResults
default ListAutomatedReasoningPolicyTestResultsResponse listAutomatedReasoningPolicyTestResults(ListAutomatedReasoningPolicyTestResultsRequest listAutomatedReasoningPolicyTestResultsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.
- Parameters:
listAutomatedReasoningPolicyTestResultsRequest
-- Returns:
- Result of the ListAutomatedReasoningPolicyTestResults operation returned by the service.
- See Also:
-
listAutomatedReasoningPolicyTestResults
default ListAutomatedReasoningPolicyTestResultsResponse listAutomatedReasoningPolicyTestResults(Consumer<ListAutomatedReasoningPolicyTestResultsRequest.Builder> listAutomatedReasoningPolicyTestResultsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.
This is a convenience which creates an instance of the
ListAutomatedReasoningPolicyTestResultsRequest.Builder
avoiding the need to create one manually viaListAutomatedReasoningPolicyTestResultsRequest.builder()
- Parameters:
listAutomatedReasoningPolicyTestResultsRequest
- AConsumer
that will call methods onListAutomatedReasoningPolicyTestResultsRequest.Builder
to create a request.- Returns:
- Result of the ListAutomatedReasoningPolicyTestResults operation returned by the service.
- See Also:
-
listAutomatedReasoningPolicyTestResultsPaginator
default ListAutomatedReasoningPolicyTestResultsIterable listAutomatedReasoningPolicyTestResultsPaginator(ListAutomatedReasoningPolicyTestResultsRequest listAutomatedReasoningPolicyTestResultsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listAutomatedReasoningPolicyTestResults(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsIterable responses = client.listAutomatedReasoningPolicyTestResultsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsIterable responses = client .listAutomatedReasoningPolicyTestResultsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsIterable responses = client.listAutomatedReasoningPolicyTestResultsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAutomatedReasoningPolicyTestResults(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsRequest)
operation.- Parameters:
listAutomatedReasoningPolicyTestResultsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomatedReasoningPolicyTestResultsPaginator
default ListAutomatedReasoningPolicyTestResultsIterable listAutomatedReasoningPolicyTestResultsPaginator(Consumer<ListAutomatedReasoningPolicyTestResultsRequest.Builder> listAutomatedReasoningPolicyTestResultsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listAutomatedReasoningPolicyTestResults(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsIterable responses = client.listAutomatedReasoningPolicyTestResultsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsIterable responses = client .listAutomatedReasoningPolicyTestResultsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsIterable responses = client.listAutomatedReasoningPolicyTestResultsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAutomatedReasoningPolicyTestResults(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsRequest)
operation.
This is a convenience which creates an instance of the
ListAutomatedReasoningPolicyTestResultsRequest.Builder
avoiding the need to create one manually viaListAutomatedReasoningPolicyTestResultsRequest.builder()
- Parameters:
listAutomatedReasoningPolicyTestResultsRequest
- AConsumer
that will call methods onListAutomatedReasoningPolicyTestResultsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCustomModelDeployments
default ListCustomModelDeploymentsResponse listCustomModelDeployments(ListCustomModelDeploymentsRequest listCustomModelDeploymentsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists custom model deployments in your account. You can filter the results by creation time, name, status, and associated model. Use this operation to manage and monitor your custom model deployments.
We recommend using pagination to ensure that the operation returns quickly and successfully.
The following actions are related to the
ListCustomModelDeployments
operation:- Parameters:
listCustomModelDeploymentsRequest
-- Returns:
- Result of the ListCustomModelDeployments operation returned by the service.
- See Also:
-
listCustomModelDeployments
default ListCustomModelDeploymentsResponse listCustomModelDeployments(Consumer<ListCustomModelDeploymentsRequest.Builder> listCustomModelDeploymentsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists custom model deployments in your account. You can filter the results by creation time, name, status, and associated model. Use this operation to manage and monitor your custom model deployments.
We recommend using pagination to ensure that the operation returns quickly and successfully.
The following actions are related to the
ListCustomModelDeployments
operation:
This is a convenience which creates an instance of the
ListCustomModelDeploymentsRequest.Builder
avoiding the need to create one manually viaListCustomModelDeploymentsRequest.builder()
- Parameters:
listCustomModelDeploymentsRequest
- AConsumer
that will call methods onListCustomModelDeploymentsRequest.Builder
to create a request.- Returns:
- Result of the ListCustomModelDeployments operation returned by the service.
- See Also:
-
listCustomModelDeploymentsPaginator
default ListCustomModelDeploymentsIterable listCustomModelDeploymentsPaginator(ListCustomModelDeploymentsRequest listCustomModelDeploymentsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listCustomModelDeployments(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsIterable responses = client.listCustomModelDeploymentsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsIterable responses = client .listCustomModelDeploymentsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsIterable responses = client.listCustomModelDeploymentsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomModelDeployments(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsRequest)
operation.- Parameters:
listCustomModelDeploymentsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCustomModelDeploymentsPaginator
default ListCustomModelDeploymentsIterable listCustomModelDeploymentsPaginator(Consumer<ListCustomModelDeploymentsRequest.Builder> listCustomModelDeploymentsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listCustomModelDeployments(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsIterable responses = client.listCustomModelDeploymentsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsIterable responses = client .listCustomModelDeploymentsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsIterable responses = client.listCustomModelDeploymentsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomModelDeployments(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsRequest)
operation.
This is a convenience which creates an instance of the
ListCustomModelDeploymentsRequest.Builder
avoiding the need to create one manually viaListCustomModelDeploymentsRequest.builder()
- Parameters:
listCustomModelDeploymentsRequest
- AConsumer
that will call methods onListCustomModelDeploymentsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCustomModels
default ListCustomModelsResponse listCustomModels(ListCustomModelsRequest listCustomModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of the custom models that you have created with the
CreateModelCustomizationJob
operation.For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
listCustomModelsRequest
-- Returns:
- Result of the ListCustomModels operation returned by the service.
- See Also:
-
listCustomModels
default ListCustomModelsResponse listCustomModels(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of the custom models that you have created with the
CreateModelCustomizationJob
operation.For more information, see Custom models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListCustomModelsRequest.Builder
avoiding the need to create one manually viaListCustomModelsRequest.builder()
- Parameters:
listCustomModelsRequest
- AConsumer
that will call methods onListCustomModelsRequest.Builder
to create a request.- Returns:
- Result of the ListCustomModels operation returned by the service.
- See Also:
-
listCustomModelsPaginator
default ListCustomModelsIterable listCustomModelsPaginator(ListCustomModelsRequest listCustomModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client.listCustomModelsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client .listCustomModelsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListCustomModelsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client.listCustomModelsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)
operation.- Parameters:
listCustomModelsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCustomModelsPaginator
default ListCustomModelsIterable listCustomModelsPaginator(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client.listCustomModelsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client .listCustomModelsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListCustomModelsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelsIterable responses = client.listCustomModelsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)
operation.
This is a convenience which creates an instance of the
ListCustomModelsRequest.Builder
avoiding the need to create one manually viaListCustomModelsRequest.builder()
- Parameters:
listCustomModelsRequest
- AConsumer
that will call methods onListCustomModelsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEvaluationJobs
default ListEvaluationJobsResponse listEvaluationJobs(ListEvaluationJobsRequest listEvaluationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists all existing evaluation jobs.
- Parameters:
listEvaluationJobsRequest
-- Returns:
- Result of the ListEvaluationJobs operation returned by the service.
- See Also:
-
listEvaluationJobs
default ListEvaluationJobsResponse listEvaluationJobs(Consumer<ListEvaluationJobsRequest.Builder> listEvaluationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists all existing evaluation jobs.
This is a convenience which creates an instance of the
ListEvaluationJobsRequest.Builder
avoiding the need to create one manually viaListEvaluationJobsRequest.builder()
- Parameters:
listEvaluationJobsRequest
- AConsumer
that will call methods onListEvaluationJobsRequest.Builder
to create a request.- Returns:
- Result of the ListEvaluationJobs operation returned by the service.
- See Also:
-
listEvaluationJobsPaginator
default ListEvaluationJobsIterable listEvaluationJobsPaginator(ListEvaluationJobsRequest listEvaluationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsIterable responses = client.listEvaluationJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsIterable responses = client .listEvaluationJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsIterable responses = client.listEvaluationJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)
operation.- Parameters:
listEvaluationJobsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEvaluationJobsPaginator
default ListEvaluationJobsIterable listEvaluationJobsPaginator(Consumer<ListEvaluationJobsRequest.Builder> listEvaluationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsIterable responses = client.listEvaluationJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsIterable responses = client .listEvaluationJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsIterable responses = client.listEvaluationJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)
operation.
This is a convenience which creates an instance of the
ListEvaluationJobsRequest.Builder
avoiding the need to create one manually viaListEvaluationJobsRequest.builder()
- Parameters:
listEvaluationJobsRequest
- AConsumer
that will call methods onListEvaluationJobsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFoundationModelAgreementOffers
default ListFoundationModelAgreementOffersResponse listFoundationModelAgreementOffers(ListFoundationModelAgreementOffersRequest listFoundationModelAgreementOffersRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get the offers associated with the specified model.
- Parameters:
listFoundationModelAgreementOffersRequest
-- Returns:
- Result of the ListFoundationModelAgreementOffers operation returned by the service.
- See Also:
-
listFoundationModelAgreementOffers
default ListFoundationModelAgreementOffersResponse listFoundationModelAgreementOffers(Consumer<ListFoundationModelAgreementOffersRequest.Builder> listFoundationModelAgreementOffersRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Get the offers associated with the specified model.
This is a convenience which creates an instance of the
ListFoundationModelAgreementOffersRequest.Builder
avoiding the need to create one manually viaListFoundationModelAgreementOffersRequest.builder()
- Parameters:
listFoundationModelAgreementOffersRequest
- AConsumer
that will call methods onListFoundationModelAgreementOffersRequest.Builder
to create a request.- Returns:
- Result of the ListFoundationModelAgreementOffers operation returned by the service.
- See Also:
-
listFoundationModels
default ListFoundationModelsResponse listFoundationModels(ListFoundationModelsRequest listFoundationModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon Bedrock User Guide.
- Parameters:
listFoundationModelsRequest
-- Returns:
- Result of the ListFoundationModels operation returned by the service.
- See Also:
-
listFoundationModels
default ListFoundationModelsResponse listFoundationModels(Consumer<ListFoundationModelsRequest.Builder> listFoundationModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListFoundationModelsRequest.Builder
avoiding the need to create one manually viaListFoundationModelsRequest.builder()
- Parameters:
listFoundationModelsRequest
- AConsumer
that will call methods onListFoundationModelsRequest.Builder
to create a request.- Returns:
- Result of the ListFoundationModels operation returned by the service.
- See Also:
-
listGuardrails
default ListGuardrailsResponse listGuardrails(ListGuardrailsRequest listGuardrailsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists details about all the guardrails in an account. To list the
DRAFT
version of all your guardrails, don't specify theguardrailIdentifier
field. To list all versions of a guardrail, specify the ARN of the guardrail in theguardrailIdentifier
field.You can set the maximum number of results to return in a response in the
maxResults
field. If there are more results than the number you set, the response returns anextToken
that you can send in anotherListGuardrails
request to see the next batch of results.- Parameters:
listGuardrailsRequest
-- Returns:
- Result of the ListGuardrails operation returned by the service.
- See Also:
-
listGuardrails
default ListGuardrailsResponse listGuardrails(Consumer<ListGuardrailsRequest.Builder> listGuardrailsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists details about all the guardrails in an account. To list the
DRAFT
version of all your guardrails, don't specify theguardrailIdentifier
field. To list all versions of a guardrail, specify the ARN of the guardrail in theguardrailIdentifier
field.You can set the maximum number of results to return in a response in the
maxResults
field. If there are more results than the number you set, the response returns anextToken
that you can send in anotherListGuardrails
request to see the next batch of results.
This is a convenience which creates an instance of the
ListGuardrailsRequest.Builder
avoiding the need to create one manually viaListGuardrailsRequest.builder()
- Parameters:
listGuardrailsRequest
- AConsumer
that will call methods onListGuardrailsRequest.Builder
to create a request.- Returns:
- Result of the ListGuardrails operation returned by the service.
- See Also:
-
listGuardrailsPaginator
default ListGuardrailsIterable listGuardrailsPaginator(ListGuardrailsRequest listGuardrailsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListGuardrailsIterable responses = client.listGuardrailsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListGuardrailsIterable responses = client.listGuardrailsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListGuardrailsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListGuardrailsIterable responses = client.listGuardrailsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)
operation.- Parameters:
listGuardrailsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listGuardrailsPaginator
default ListGuardrailsIterable listGuardrailsPaginator(Consumer<ListGuardrailsRequest.Builder> listGuardrailsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListGuardrailsIterable responses = client.listGuardrailsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListGuardrailsIterable responses = client.listGuardrailsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListGuardrailsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListGuardrailsIterable responses = client.listGuardrailsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)
operation.
This is a convenience which creates an instance of the
ListGuardrailsRequest.Builder
avoiding the need to create one manually viaListGuardrailsRequest.builder()
- Parameters:
listGuardrailsRequest
- AConsumer
that will call methods onListGuardrailsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listImportedModels
default ListImportedModelsResponse listImportedModels(ListImportedModelsRequest listImportedModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of models you've imported. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
- Parameters:
listImportedModelsRequest
-- Returns:
- Result of the ListImportedModels operation returned by the service.
- See Also:
-
listImportedModels
default ListImportedModelsResponse listImportedModels(Consumer<ListImportedModelsRequest.Builder> listImportedModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of models you've imported. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListImportedModelsRequest.Builder
avoiding the need to create one manually viaListImportedModelsRequest.builder()
- Parameters:
listImportedModelsRequest
- AConsumer
that will call methods onListImportedModelsRequest.Builder
to create a request.- Returns:
- Result of the ListImportedModels operation returned by the service.
- See Also:
-
listImportedModelsPaginator
default ListImportedModelsIterable listImportedModelsPaginator(ListImportedModelsRequest listImportedModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListImportedModelsIterable responses = client.listImportedModelsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListImportedModelsIterable responses = client .listImportedModelsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListImportedModelsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListImportedModelsIterable responses = client.listImportedModelsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)
operation.- Parameters:
listImportedModelsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listImportedModelsPaginator
default ListImportedModelsIterable listImportedModelsPaginator(Consumer<ListImportedModelsRequest.Builder> listImportedModelsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListImportedModelsIterable responses = client.listImportedModelsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListImportedModelsIterable responses = client .listImportedModelsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListImportedModelsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListImportedModelsIterable responses = client.listImportedModelsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)
operation.
This is a convenience which creates an instance of the
ListImportedModelsRequest.Builder
avoiding the need to create one manually viaListImportedModelsRequest.builder()
- Parameters:
listImportedModelsRequest
- AConsumer
that will call methods onListImportedModelsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listInferenceProfiles
default ListInferenceProfilesResponse listInferenceProfiles(ListInferenceProfilesRequest listInferenceProfilesRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException 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:
listInferenceProfilesRequest
-- Returns:
- Result of the ListInferenceProfiles operation returned by the service.
- See Also:
-
listInferenceProfiles
default ListInferenceProfilesResponse listInferenceProfiles(Consumer<ListInferenceProfilesRequest.Builder> listInferenceProfilesRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException 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.
This is a convenience which creates an instance of the
ListInferenceProfilesRequest.Builder
avoiding the need to create one manually viaListInferenceProfilesRequest.builder()
- Parameters:
listInferenceProfilesRequest
- AConsumer
that will call methods onListInferenceProfilesRequest.Builder
to create a request.- Returns:
- Result of the ListInferenceProfiles operation returned by the service.
- See Also:
-
listInferenceProfilesPaginator
default ListInferenceProfilesIterable listInferenceProfilesPaginator(ListInferenceProfilesRequest listInferenceProfilesRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesIterable responses = client.listInferenceProfilesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesIterable responses = client .listInferenceProfilesPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesIterable responses = client.listInferenceProfilesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)
operation.- Parameters:
listInferenceProfilesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listInferenceProfilesPaginator
default ListInferenceProfilesIterable listInferenceProfilesPaginator(Consumer<ListInferenceProfilesRequest.Builder> listInferenceProfilesRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesIterable responses = client.listInferenceProfilesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesIterable responses = client .listInferenceProfilesPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesIterable responses = client.listInferenceProfilesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)
operation.
This is a convenience which creates an instance of the
ListInferenceProfilesRequest.Builder
avoiding the need to create one manually viaListInferenceProfilesRequest.builder()
- Parameters:
listInferenceProfilesRequest
- AConsumer
that will call methods onListInferenceProfilesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listMarketplaceModelEndpoints
default ListMarketplaceModelEndpointsResponse listMarketplaceModelEndpoints(ListMarketplaceModelEndpointsRequest listMarketplaceModelEndpointsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
- Parameters:
listMarketplaceModelEndpointsRequest
-- Returns:
- Result of the ListMarketplaceModelEndpoints operation returned by the service.
- See Also:
-
listMarketplaceModelEndpoints
default ListMarketplaceModelEndpointsResponse listMarketplaceModelEndpoints(Consumer<ListMarketplaceModelEndpointsRequest.Builder> listMarketplaceModelEndpointsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
This is a convenience which creates an instance of the
ListMarketplaceModelEndpointsRequest.Builder
avoiding the need to create one manually viaListMarketplaceModelEndpointsRequest.builder()
- Parameters:
listMarketplaceModelEndpointsRequest
- AConsumer
that will call methods onListMarketplaceModelEndpointsRequest.Builder
to create a request.- Returns:
- Result of the ListMarketplaceModelEndpoints operation returned by the service.
- See Also:
-
listMarketplaceModelEndpointsPaginator
default ListMarketplaceModelEndpointsIterable listMarketplaceModelEndpointsPaginator(ListMarketplaceModelEndpointsRequest listMarketplaceModelEndpointsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listMarketplaceModelEndpoints(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsIterable responses = client.listMarketplaceModelEndpointsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsIterable responses = client .listMarketplaceModelEndpointsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsIterable responses = client.listMarketplaceModelEndpointsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMarketplaceModelEndpoints(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsRequest)
operation.- Parameters:
listMarketplaceModelEndpointsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listMarketplaceModelEndpointsPaginator
default ListMarketplaceModelEndpointsIterable listMarketplaceModelEndpointsPaginator(Consumer<ListMarketplaceModelEndpointsRequest.Builder> listMarketplaceModelEndpointsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listMarketplaceModelEndpoints(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsIterable responses = client.listMarketplaceModelEndpointsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsIterable responses = client .listMarketplaceModelEndpointsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsIterable responses = client.listMarketplaceModelEndpointsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMarketplaceModelEndpoints(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsRequest)
operation.
This is a convenience which creates an instance of the
ListMarketplaceModelEndpointsRequest.Builder
avoiding the need to create one manually viaListMarketplaceModelEndpointsRequest.builder()
- Parameters:
listMarketplaceModelEndpointsRequest
- AConsumer
that will call methods onListMarketplaceModelEndpointsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listModelCopyJobs
default ListModelCopyJobsResponse listModelCopyJobs(ListModelCopyJobsRequest listModelCopyJobsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of model copy jobs that you have submitted. You can filter the jobs to return based on one or more criteria. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
- Parameters:
listModelCopyJobsRequest
-- Returns:
- Result of the ListModelCopyJobs operation returned by the service.
- See Also:
-
listModelCopyJobs
default ListModelCopyJobsResponse listModelCopyJobs(Consumer<ListModelCopyJobsRequest.Builder> listModelCopyJobsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of model copy jobs that you have submitted. You can filter the jobs to return based on one or more criteria. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListModelCopyJobsRequest.Builder
avoiding the need to create one manually viaListModelCopyJobsRequest.builder()
- Parameters:
listModelCopyJobsRequest
- AConsumer
that will call methods onListModelCopyJobsRequest.Builder
to create a request.- Returns:
- Result of the ListModelCopyJobs operation returned by the service.
- See Also:
-
listModelCopyJobsPaginator
default ListModelCopyJobsIterable listModelCopyJobsPaginator(ListModelCopyJobsRequest listModelCopyJobsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsIterable responses = client.listModelCopyJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsIterable responses = client .listModelCopyJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsIterable responses = client.listModelCopyJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)
operation.- Parameters:
listModelCopyJobsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listModelCopyJobsPaginator
default ListModelCopyJobsIterable listModelCopyJobsPaginator(Consumer<ListModelCopyJobsRequest.Builder> listModelCopyJobsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsIterable responses = client.listModelCopyJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsIterable responses = client .listModelCopyJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsIterable responses = client.listModelCopyJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)
operation.
This is a convenience which creates an instance of the
ListModelCopyJobsRequest.Builder
avoiding the need to create one manually viaListModelCopyJobsRequest.builder()
- Parameters:
listModelCopyJobsRequest
- AConsumer
that will call methods onListModelCopyJobsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listModelCustomizationJobs
default ListModelCustomizationJobsResponse listModelCustomizationJobs(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria.
For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
listModelCustomizationJobsRequest
-- Returns:
- Result of the ListModelCustomizationJobs operation returned by the service.
- See Also:
-
listModelCustomizationJobs
default ListModelCustomizationJobsResponse listModelCustomizationJobs(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria.
For more information, see Custom models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListModelCustomizationJobsRequest.Builder
avoiding the need to create one manually viaListModelCustomizationJobsRequest.builder()
- Parameters:
listModelCustomizationJobsRequest
- AConsumer
that will call methods onListModelCustomizationJobsRequest.Builder
to create a request.- Returns:
- Result of the ListModelCustomizationJobs operation returned by the service.
- See Also:
-
listModelCustomizationJobsPaginator
default ListModelCustomizationJobsIterable listModelCustomizationJobsPaginator(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client.listModelCustomizationJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client .listModelCustomizationJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client.listModelCustomizationJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation.- Parameters:
listModelCustomizationJobsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listModelCustomizationJobsPaginator
default ListModelCustomizationJobsIterable listModelCustomizationJobsPaginator(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client.listModelCustomizationJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client .listModelCustomizationJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsIterable responses = client.listModelCustomizationJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)
operation.
This is a convenience which creates an instance of the
ListModelCustomizationJobsRequest.Builder
avoiding the need to create one manually viaListModelCustomizationJobsRequest.builder()
- Parameters:
listModelCustomizationJobsRequest
- AConsumer
that will call methods onListModelCustomizationJobsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listModelImportJobs
default ListModelImportJobsResponse listModelImportJobs(ListModelImportJobsRequest listModelImportJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
- Parameters:
listModelImportJobsRequest
-- Returns:
- Result of the ListModelImportJobs operation returned by the service.
- See Also:
-
listModelImportJobs
default ListModelImportJobsResponse listModelImportJobs(Consumer<ListModelImportJobsRequest.Builder> listModelImportJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListModelImportJobsRequest.Builder
avoiding the need to create one manually viaListModelImportJobsRequest.builder()
- Parameters:
listModelImportJobsRequest
- AConsumer
that will call methods onListModelImportJobsRequest.Builder
to create a request.- Returns:
- Result of the ListModelImportJobs operation returned by the service.
- See Also:
-
listModelImportJobsPaginator
default ListModelImportJobsIterable listModelImportJobsPaginator(ListModelImportJobsRequest listModelImportJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsIterable responses = client.listModelImportJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsIterable responses = client .listModelImportJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListModelImportJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsIterable responses = client.listModelImportJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)
operation.- Parameters:
listModelImportJobsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listModelImportJobsPaginator
default ListModelImportJobsIterable listModelImportJobsPaginator(Consumer<ListModelImportJobsRequest.Builder> listModelImportJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsIterable responses = client.listModelImportJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsIterable responses = client .listModelImportJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListModelImportJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsIterable responses = client.listModelImportJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)
operation.
This is a convenience which creates an instance of the
ListModelImportJobsRequest.Builder
avoiding the need to create one manually viaListModelImportJobsRequest.builder()
- Parameters:
listModelImportJobsRequest
- AConsumer
that will call methods onListModelImportJobsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listModelInvocationJobs
default ListModelInvocationJobsResponse listModelInvocationJobs(ListModelInvocationJobsRequest listModelInvocationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists all batch inference jobs in the account. For more information, see View details about a batch inference job.
- Parameters:
listModelInvocationJobsRequest
-- Returns:
- Result of the ListModelInvocationJobs operation returned by the service.
- See Also:
-
listModelInvocationJobs
default ListModelInvocationJobsResponse listModelInvocationJobs(Consumer<ListModelInvocationJobsRequest.Builder> listModelInvocationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists all batch inference jobs in the account. For more information, see View details about a batch inference job.
This is a convenience which creates an instance of the
ListModelInvocationJobsRequest.Builder
avoiding the need to create one manually viaListModelInvocationJobsRequest.builder()
- Parameters:
listModelInvocationJobsRequest
- AConsumer
that will call methods onListModelInvocationJobsRequest.Builder
to create a request.- Returns:
- Result of the ListModelInvocationJobs operation returned by the service.
- See Also:
-
listModelInvocationJobsPaginator
default ListModelInvocationJobsIterable listModelInvocationJobsPaginator(ListModelInvocationJobsRequest listModelInvocationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsIterable responses = client.listModelInvocationJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsIterable responses = client .listModelInvocationJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsIterable responses = client.listModelInvocationJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)
operation.- Parameters:
listModelInvocationJobsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listModelInvocationJobsPaginator
default ListModelInvocationJobsIterable listModelInvocationJobsPaginator(Consumer<ListModelInvocationJobsRequest.Builder> listModelInvocationJobsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsIterable responses = client.listModelInvocationJobsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsIterable responses = client .listModelInvocationJobsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsIterable responses = client.listModelInvocationJobsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)
operation.
This is a convenience which creates an instance of the
ListModelInvocationJobsRequest.Builder
avoiding the need to create one manually viaListModelInvocationJobsRequest.builder()
- Parameters:
listModelInvocationJobsRequest
- AConsumer
that will call methods onListModelInvocationJobsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPromptRouters
default ListPromptRoutersResponse listPromptRouters(ListPromptRoutersRequest listPromptRoutersRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves a list of prompt routers.
- Parameters:
listPromptRoutersRequest
-- Returns:
- Result of the ListPromptRouters operation returned by the service.
- See Also:
-
listPromptRouters
default ListPromptRoutersResponse listPromptRouters(Consumer<ListPromptRoutersRequest.Builder> listPromptRoutersRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Retrieves a list of prompt routers.
This is a convenience which creates an instance of the
ListPromptRoutersRequest.Builder
avoiding the need to create one manually viaListPromptRoutersRequest.builder()
- Parameters:
listPromptRoutersRequest
- AConsumer
that will call methods onListPromptRoutersRequest.Builder
to create a request.- Returns:
- Result of the ListPromptRouters operation returned by the service.
- See Also:
-
listPromptRoutersPaginator
default ListPromptRoutersIterable listPromptRoutersPaginator(ListPromptRoutersRequest listPromptRoutersRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersIterable responses = client.listPromptRoutersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersIterable responses = client .listPromptRoutersPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListPromptRoutersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersIterable responses = client.listPromptRoutersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)
operation.- Parameters:
listPromptRoutersRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPromptRoutersPaginator
default ListPromptRoutersIterable listPromptRoutersPaginator(Consumer<ListPromptRoutersRequest.Builder> listPromptRoutersRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersIterable responses = client.listPromptRoutersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersIterable responses = client .listPromptRoutersPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListPromptRoutersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersIterable responses = client.listPromptRoutersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)
operation.
This is a convenience which creates an instance of the
ListPromptRoutersRequest.Builder
avoiding the need to create one manually viaListPromptRoutersRequest.builder()
- Parameters:
listPromptRoutersRequest
- AConsumer
that will call methods onListPromptRoutersRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProvisionedModelThroughputs
default ListProvisionedModelThroughputsResponse listProvisionedModelThroughputs(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
- Parameters:
listProvisionedModelThroughputsRequest
-- Returns:
- Result of the ListProvisionedModelThroughputs operation returned by the service.
- See Also:
-
listProvisionedModelThroughputs
default ListProvisionedModelThroughputsResponse listProvisionedModelThroughputs(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListProvisionedModelThroughputsRequest.Builder
avoiding the need to create one manually viaListProvisionedModelThroughputsRequest.builder()
- Parameters:
listProvisionedModelThroughputsRequest
- AConsumer
that will call methods onListProvisionedModelThroughputsRequest.Builder
to create a request.- Returns:
- Result of the ListProvisionedModelThroughputs operation returned by the service.
- See Also:
-
listProvisionedModelThroughputsPaginator
default ListProvisionedModelThroughputsIterable listProvisionedModelThroughputsPaginator(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client.listProvisionedModelThroughputsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client .listProvisionedModelThroughputsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client.listProvisionedModelThroughputsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation.- Parameters:
listProvisionedModelThroughputsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProvisionedModelThroughputsPaginator
default ListProvisionedModelThroughputsIterable listProvisionedModelThroughputsPaginator(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException This is a variant of
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client.listProvisionedModelThroughputsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client .listProvisionedModelThroughputsPaginator(request); for (software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsIterable responses = client.listProvisionedModelThroughputsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)
operation.
This is a convenience which creates an instance of the
ListProvisionedModelThroughputsRequest.Builder
avoiding the need to create one manually viaListProvisionedModelThroughputsRequest.builder()
- Parameters:
listProvisionedModelThroughputsRequest
- AConsumer
that will call methods onListProvisionedModelThroughputsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException List the tags associated with the specified resource.
For more information, see Tagging resources in the Amazon Bedrock User Guide.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException List the tags associated with the specified resource.
For more information, see Tagging resources in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
putModelInvocationLoggingConfiguration
default PutModelInvocationLoggingConfigurationResponse putModelInvocationLoggingConfiguration(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Set the configuration values for model invocation logging.
- Parameters:
putModelInvocationLoggingConfigurationRequest
-- Returns:
- Result of the PutModelInvocationLoggingConfiguration operation returned by the service.
- See Also:
-
putModelInvocationLoggingConfiguration
default PutModelInvocationLoggingConfigurationResponse putModelInvocationLoggingConfiguration(Consumer<PutModelInvocationLoggingConfigurationRequest.Builder> putModelInvocationLoggingConfigurationRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Set the configuration values for model invocation logging.
This is a convenience which creates an instance of the
PutModelInvocationLoggingConfigurationRequest.Builder
avoiding the need to create one manually viaPutModelInvocationLoggingConfigurationRequest.builder()
- Parameters:
putModelInvocationLoggingConfigurationRequest
- AConsumer
that will call methods onPutModelInvocationLoggingConfigurationRequest.Builder
to create a request.- Returns:
- Result of the PutModelInvocationLoggingConfiguration operation returned by the service.
- See Also:
-
putUseCaseForModelAccess
default PutUseCaseForModelAccessResponse putUseCaseForModelAccess(PutUseCaseForModelAccessRequest putUseCaseForModelAccessRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Put usecase for model access.
- Parameters:
putUseCaseForModelAccessRequest
-- Returns:
- Result of the PutUseCaseForModelAccess operation returned by the service.
- See Also:
-
putUseCaseForModelAccess
default PutUseCaseForModelAccessResponse putUseCaseForModelAccess(Consumer<PutUseCaseForModelAccessRequest.Builder> putUseCaseForModelAccessRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Put usecase for model access.
This is a convenience which creates an instance of the
PutUseCaseForModelAccessRequest.Builder
avoiding the need to create one manually viaPutUseCaseForModelAccessRequest.builder()
- Parameters:
putUseCaseForModelAccessRequest
- AConsumer
that will call methods onPutUseCaseForModelAccessRequest.Builder
to create a request.- Returns:
- Result of the PutUseCaseForModelAccess operation returned by the service.
- See Also:
-
registerMarketplaceModelEndpoint
default RegisterMarketplaceModelEndpointResponse registerMarketplaceModelEndpoint(RegisterMarketplaceModelEndpointRequest registerMarketplaceModelEndpointRequest) throws ResourceNotFoundException, ServiceUnavailableException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
- Parameters:
registerMarketplaceModelEndpointRequest
-- Returns:
- Result of the RegisterMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
registerMarketplaceModelEndpoint
default RegisterMarketplaceModelEndpointResponse registerMarketplaceModelEndpoint(Consumer<RegisterMarketplaceModelEndpointRequest.Builder> registerMarketplaceModelEndpointRequest) throws ResourceNotFoundException, ServiceUnavailableException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
This is a convenience which creates an instance of the
RegisterMarketplaceModelEndpointRequest.Builder
avoiding the need to create one manually viaRegisterMarketplaceModelEndpointRequest.builder()
- Parameters:
registerMarketplaceModelEndpointRequest
- AConsumer
that will call methods onRegisterMarketplaceModelEndpointRequest.Builder
to create a request.- Returns:
- Result of the RegisterMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
startAutomatedReasoningPolicyBuildWorkflow
default StartAutomatedReasoningPolicyBuildWorkflowResponse startAutomatedReasoningPolicyBuildWorkflow(StartAutomatedReasoningPolicyBuildWorkflowRequest startAutomatedReasoningPolicyBuildWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ResourceInUseException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Starts a new build workflow for an Automated Reasoning policy. This initiates the process of analyzing source documents and generating policy rules, variables, and types.
- Parameters:
startAutomatedReasoningPolicyBuildWorkflowRequest
-- Returns:
- Result of the StartAutomatedReasoningPolicyBuildWorkflow operation returned by the service.
- See Also:
-
startAutomatedReasoningPolicyBuildWorkflow
default StartAutomatedReasoningPolicyBuildWorkflowResponse startAutomatedReasoningPolicyBuildWorkflow(Consumer<StartAutomatedReasoningPolicyBuildWorkflowRequest.Builder> startAutomatedReasoningPolicyBuildWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ResourceInUseException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Starts a new build workflow for an Automated Reasoning policy. This initiates the process of analyzing source documents and generating policy rules, variables, and types.
This is a convenience which creates an instance of the
StartAutomatedReasoningPolicyBuildWorkflowRequest.Builder
avoiding the need to create one manually viaStartAutomatedReasoningPolicyBuildWorkflowRequest.builder()
- Parameters:
startAutomatedReasoningPolicyBuildWorkflowRequest
- AConsumer
that will call methods onStartAutomatedReasoningPolicyBuildWorkflowRequest.Builder
to create a request.- Returns:
- Result of the StartAutomatedReasoningPolicyBuildWorkflow operation returned by the service.
- See Also:
-
startAutomatedReasoningPolicyTestWorkflow
default StartAutomatedReasoningPolicyTestWorkflowResponse startAutomatedReasoningPolicyTestWorkflow(StartAutomatedReasoningPolicyTestWorkflowRequest startAutomatedReasoningPolicyTestWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ResourceInUseException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Initiates a test workflow to validate Automated Reasoning policy tests. The workflow executes the specified tests against the policy and generates validation results.
- Parameters:
startAutomatedReasoningPolicyTestWorkflowRequest
-- Returns:
- Result of the StartAutomatedReasoningPolicyTestWorkflow operation returned by the service.
- See Also:
-
startAutomatedReasoningPolicyTestWorkflow
default StartAutomatedReasoningPolicyTestWorkflowResponse startAutomatedReasoningPolicyTestWorkflow(Consumer<StartAutomatedReasoningPolicyTestWorkflowRequest.Builder> startAutomatedReasoningPolicyTestWorkflowRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ResourceInUseException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Initiates a test workflow to validate Automated Reasoning policy tests. The workflow executes the specified tests against the policy and generates validation results.
This is a convenience which creates an instance of the
StartAutomatedReasoningPolicyTestWorkflowRequest.Builder
avoiding the need to create one manually viaStartAutomatedReasoningPolicyTestWorkflowRequest.builder()
- Parameters:
startAutomatedReasoningPolicyTestWorkflowRequest
- AConsumer
that will call methods onStartAutomatedReasoningPolicyTestWorkflowRequest.Builder
to create a request.- Returns:
- Result of the StartAutomatedReasoningPolicyTestWorkflow operation returned by the service.
- See Also:
-
stopEvaluationJob
default StopEvaluationJobResponse stopEvaluationJob(StopEvaluationJobRequest stopEvaluationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Stops an evaluation job that is current being created or running.
- Parameters:
stopEvaluationJobRequest
-- Returns:
- Result of the StopEvaluationJob operation returned by the service.
- See Also:
-
stopEvaluationJob
default StopEvaluationJobResponse stopEvaluationJob(Consumer<StopEvaluationJobRequest.Builder> stopEvaluationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Stops an evaluation job that is current being created or running.
This is a convenience which creates an instance of the
StopEvaluationJobRequest.Builder
avoiding the need to create one manually viaStopEvaluationJobRequest.builder()
- Parameters:
stopEvaluationJobRequest
- AConsumer
that will call methods onStopEvaluationJobRequest.Builder
to create a request.- Returns:
- Result of the StopEvaluationJob operation returned by the service.
- See Also:
-
stopModelCustomizationJob
default StopModelCustomizationJobResponse stopModelCustomizationJob(StopModelCustomizationJobRequest stopModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
stopModelCustomizationJobRequest
-- Returns:
- Result of the StopModelCustomizationJob operation returned by the service.
- See Also:
-
stopModelCustomizationJob
default StopModelCustomizationJobResponse stopModelCustomizationJob(Consumer<StopModelCustomizationJobRequest.Builder> stopModelCustomizationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
StopModelCustomizationJobRequest.Builder
avoiding the need to create one manually viaStopModelCustomizationJobRequest.builder()
- Parameters:
stopModelCustomizationJobRequest
- AConsumer
that will call methods onStopModelCustomizationJobRequest.Builder
to create a request.- Returns:
- Result of the StopModelCustomizationJob operation returned by the service.
- See Also:
-
stopModelInvocationJob
default StopModelInvocationJobResponse stopModelInvocationJob(StopModelInvocationJobRequest stopModelInvocationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException 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:
stopModelInvocationJobRequest
-- Returns:
- Result of the StopModelInvocationJob operation returned by the service.
- See Also:
-
stopModelInvocationJob
default StopModelInvocationJobResponse stopModelInvocationJob(Consumer<StopModelInvocationJobRequest.Builder> stopModelInvocationJobRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Stops a batch inference job. You're only charged for tokens that were already processed. For more information, see Stop a batch inference job.
This is a convenience which creates an instance of the
StopModelInvocationJobRequest.Builder
avoiding the need to create one manually viaStopModelInvocationJobRequest.builder()
- Parameters:
stopModelInvocationJobRequest
- AConsumer
that will call methods onStopModelInvocationJobRequest.Builder
to create a request.- Returns:
- Result of the StopModelInvocationJob operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, TooManyTagsException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateAutomatedReasoningPolicy
default UpdateAutomatedReasoningPolicyResponse updateAutomatedReasoningPolicy(UpdateAutomatedReasoningPolicyRequest updateAutomatedReasoningPolicyRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates an existing Automated Reasoning policy with new rules, variables, or configuration. This creates a new version of the policy while preserving the previous version.
- Parameters:
updateAutomatedReasoningPolicyRequest
-- Returns:
- Result of the UpdateAutomatedReasoningPolicy operation returned by the service.
- See Also:
-
updateAutomatedReasoningPolicy
default UpdateAutomatedReasoningPolicyResponse updateAutomatedReasoningPolicy(Consumer<UpdateAutomatedReasoningPolicyRequest.Builder> updateAutomatedReasoningPolicyRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, TooManyTagsException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates an existing Automated Reasoning policy with new rules, variables, or configuration. This creates a new version of the policy while preserving the previous version.
This is a convenience which creates an instance of the
UpdateAutomatedReasoningPolicyRequest.Builder
avoiding the need to create one manually viaUpdateAutomatedReasoningPolicyRequest.builder()
- Parameters:
updateAutomatedReasoningPolicyRequest
- AConsumer
that will call methods onUpdateAutomatedReasoningPolicyRequest.Builder
to create a request.- Returns:
- Result of the UpdateAutomatedReasoningPolicy operation returned by the service.
- See Also:
-
updateAutomatedReasoningPolicyAnnotations
default UpdateAutomatedReasoningPolicyAnnotationsResponse updateAutomatedReasoningPolicyAnnotations(UpdateAutomatedReasoningPolicyAnnotationsRequest updateAutomatedReasoningPolicyAnnotationsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates the annotations for an Automated Reasoning policy build workflow. This allows you to modify extracted rules, variables, and types before finalizing the policy.
- Parameters:
updateAutomatedReasoningPolicyAnnotationsRequest
-- Returns:
- Result of the UpdateAutomatedReasoningPolicyAnnotations operation returned by the service.
- See Also:
-
updateAutomatedReasoningPolicyAnnotations
default UpdateAutomatedReasoningPolicyAnnotationsResponse updateAutomatedReasoningPolicyAnnotations(Consumer<UpdateAutomatedReasoningPolicyAnnotationsRequest.Builder> updateAutomatedReasoningPolicyAnnotationsRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates the annotations for an Automated Reasoning policy build workflow. This allows you to modify extracted rules, variables, and types before finalizing the policy.
This is a convenience which creates an instance of the
UpdateAutomatedReasoningPolicyAnnotationsRequest.Builder
avoiding the need to create one manually viaUpdateAutomatedReasoningPolicyAnnotationsRequest.builder()
- Parameters:
updateAutomatedReasoningPolicyAnnotationsRequest
- AConsumer
that will call methods onUpdateAutomatedReasoningPolicyAnnotationsRequest.Builder
to create a request.- Returns:
- Result of the UpdateAutomatedReasoningPolicyAnnotations operation returned by the service.
- See Also:
-
updateAutomatedReasoningPolicyTestCase
default UpdateAutomatedReasoningPolicyTestCaseResponse updateAutomatedReasoningPolicyTestCase(UpdateAutomatedReasoningPolicyTestCaseRequest updateAutomatedReasoningPolicyTestCaseRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ResourceInUseException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
- Parameters:
updateAutomatedReasoningPolicyTestCaseRequest
-- Returns:
- Result of the UpdateAutomatedReasoningPolicyTestCase operation returned by the service.
- See Also:
-
updateAutomatedReasoningPolicyTestCase
default UpdateAutomatedReasoningPolicyTestCaseResponse updateAutomatedReasoningPolicyTestCase(Consumer<UpdateAutomatedReasoningPolicyTestCaseRequest.Builder> updateAutomatedReasoningPolicyTestCaseRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ResourceInUseException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
This is a convenience which creates an instance of the
UpdateAutomatedReasoningPolicyTestCaseRequest.Builder
avoiding the need to create one manually viaUpdateAutomatedReasoningPolicyTestCaseRequest.builder()
- Parameters:
updateAutomatedReasoningPolicyTestCaseRequest
- AConsumer
that will call methods onUpdateAutomatedReasoningPolicyTestCaseRequest.Builder
to create a request.- Returns:
- Result of the UpdateAutomatedReasoningPolicyTestCase operation returned by the service.
- See Also:
-
updateGuardrail
default UpdateGuardrailResponse updateGuardrail(UpdateGuardrailRequest updateGuardrailRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates a guardrail with the values you specify.
-
Specify a
name
and optionaldescription
. -
Specify messages for when the guardrail successfully blocks a prompt or a model response in the
blockedInputMessaging
andblockedOutputsMessaging
fields. -
Specify topics for the guardrail to deny in the
topicPolicyConfig
object. Each GuardrailTopicConfig object in thetopicsConfig
list pertains to one topic.-
Give a
name
anddescription
so that the guardrail can properly identify the topic. -
Specify
DENY
in thetype
field. -
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the
examples
list.
-
-
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the
contentPolicyConfig
object. Each GuardrailContentFilterConfig object in thefiltersConfig
list pertains to a harmful category. For more information, see Content filters. For more information about the fields in a content filter, see GuardrailContentFilterConfig.-
Specify the category in the
type
field. -
Specify the strength of the filter for prompts in the
inputStrength
field and for model responses in thestrength
field of the GuardrailContentFilterConfig.
-
-
(Optional) For security, include the ARN of a KMS key in the
kmsKeyId
field.
- Parameters:
updateGuardrailRequest
-- Returns:
- Result of the UpdateGuardrail operation returned by the service.
- See Also:
-
-
updateGuardrail
default UpdateGuardrailResponse updateGuardrail(Consumer<UpdateGuardrailRequest.Builder> updateGuardrailRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates a guardrail with the values you specify.
-
Specify a
name
and optionaldescription
. -
Specify messages for when the guardrail successfully blocks a prompt or a model response in the
blockedInputMessaging
andblockedOutputsMessaging
fields. -
Specify topics for the guardrail to deny in the
topicPolicyConfig
object. Each GuardrailTopicConfig object in thetopicsConfig
list pertains to one topic.-
Give a
name
anddescription
so that the guardrail can properly identify the topic. -
Specify
DENY
in thetype
field. -
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the
examples
list.
-
-
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the
contentPolicyConfig
object. Each GuardrailContentFilterConfig object in thefiltersConfig
list pertains to a harmful category. For more information, see Content filters. For more information about the fields in a content filter, see GuardrailContentFilterConfig.-
Specify the category in the
type
field. -
Specify the strength of the filter for prompts in the
inputStrength
field and for model responses in thestrength
field of the GuardrailContentFilterConfig.
-
-
(Optional) For security, include the ARN of a KMS key in the
kmsKeyId
field.
This is a convenience which creates an instance of the
UpdateGuardrailRequest.Builder
avoiding the need to create one manually viaUpdateGuardrailRequest.builder()
- Parameters:
updateGuardrailRequest
- AConsumer
that will call methods onUpdateGuardrailRequest.Builder
to create a request.- Returns:
- Result of the UpdateGuardrail operation returned by the service.
- See Also:
-
-
updateMarketplaceModelEndpoint
default UpdateMarketplaceModelEndpointResponse updateMarketplaceModelEndpoint(UpdateMarketplaceModelEndpointRequest updateMarketplaceModelEndpointRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
- Parameters:
updateMarketplaceModelEndpointRequest
-- Returns:
- Result of the UpdateMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
updateMarketplaceModelEndpoint
default UpdateMarketplaceModelEndpointResponse updateMarketplaceModelEndpoint(Consumer<UpdateMarketplaceModelEndpointRequest.Builder> updateMarketplaceModelEndpointRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, ConflictException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
This is a convenience which creates an instance of the
UpdateMarketplaceModelEndpointRequest.Builder
avoiding the need to create one manually viaUpdateMarketplaceModelEndpointRequest.builder()
- Parameters:
updateMarketplaceModelEndpointRequest
- AConsumer
that will call methods onUpdateMarketplaceModelEndpointRequest.Builder
to create a request.- Returns:
- Result of the UpdateMarketplaceModelEndpoint operation returned by the service.
- See Also:
-
updateProvisionedModelThroughput
default UpdateProvisionedModelThroughputResponse updateProvisionedModelThroughput(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
- Parameters:
updateProvisionedModelThroughputRequest
-- Returns:
- Result of the UpdateProvisionedModelThroughput operation returned by the service.
- See Also:
-
updateProvisionedModelThroughput
default UpdateProvisionedModelThroughputResponse updateProvisionedModelThroughput(Consumer<UpdateProvisionedModelThroughputRequest.Builder> updateProvisionedModelThroughputRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, BedrockException Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
UpdateProvisionedModelThroughputRequest.Builder
avoiding the need to create one manually viaUpdateProvisionedModelThroughputRequest.builder()
- Parameters:
updateProvisionedModelThroughputRequest
- AConsumer
that will call methods onUpdateProvisionedModelThroughputRequest.Builder
to create a request.- Returns:
- Result of the UpdateProvisionedModelThroughput operation returned by the service.
- See Also:
-
create
Create aBedrockClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aBedrockClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-