Interface BedrockAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbatchDeleteEvaluationJob(Consumer<BatchDeleteEvaluationJobRequest.Builder> batchDeleteEvaluationJobRequest) Deletes a batch of evaluation jobs.batchDeleteEvaluationJob(BatchDeleteEvaluationJobRequest batchDeleteEvaluationJobRequest) Deletes a batch of evaluation jobs.static BedrockAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aBedrockAsyncClient.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 BedrockAsyncClientcreate()Create aBedrockAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand 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.createCustomModel(Consumer<CreateCustomModelRequest.Builder> createCustomModelRequest) Creates a new custom model in Amazon Bedrock.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.createEvaluationJob(Consumer<CreateEvaluationJobRequest.Builder> createEvaluationJobRequest) Creates an evaluation job.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 CompletableFuture<CreateGuardrailResponse> createGuardrail(Consumer<CreateGuardrailRequest.Builder> createGuardrailRequest) Creates a guardrail to block topics and to implement safeguards for your generative AI applications.default CompletableFuture<CreateGuardrailResponse> createGuardrail(CreateGuardrailRequest createGuardrailRequest) Creates a guardrail to block topics and to implement safeguards for your generative AI applications.createGuardrailVersion(Consumer<CreateGuardrailVersionRequest.Builder> createGuardrailVersionRequest) Creates a version of the guardrail.createGuardrailVersion(CreateGuardrailVersionRequest createGuardrailVersionRequest) Creates a version of the guardrail.createInferenceProfile(Consumer<CreateInferenceProfileRequest.Builder> createInferenceProfileRequest) Creates an application inference profile to track metrics and costs when invoking a model.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.createModelCopyJob(Consumer<CreateModelCopyJobRequest.Builder> createModelCopyJobRequest) Copies a model to another region so that it can be used there.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.createModelImportJob(Consumer<CreateModelImportJobRequest.Builder> createModelImportJobRequest) Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker.createModelImportJob(CreateModelImportJobRequest createModelImportJobRequest) Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker.createModelInvocationJob(Consumer<CreateModelInvocationJobRequest.Builder> createModelInvocationJobRequest) Creates a batch inference job to invoke a model on multiple prompts.createModelInvocationJob(CreateModelInvocationJobRequest createModelInvocationJobRequest) Creates a batch inference job to invoke a model on multiple prompts.createPromptRouter(Consumer<CreatePromptRouterRequest.Builder> createPromptRouterRequest) Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.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.deleteCustomModel(Consumer<DeleteCustomModelRequest.Builder> deleteCustomModelRequest) Deletes a custom model that you created earlier.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 CompletableFuture<DeleteGuardrailResponse> deleteGuardrail(Consumer<DeleteGuardrailRequest.Builder> deleteGuardrailRequest) Deletes a guardrail.default CompletableFuture<DeleteGuardrailResponse> deleteGuardrail(DeleteGuardrailRequest deleteGuardrailRequest) Deletes a guardrail.deleteImportedModel(Consumer<DeleteImportedModelRequest.Builder> deleteImportedModelRequest) Deletes a custom model that you imported earlier.deleteImportedModel(DeleteImportedModelRequest deleteImportedModelRequest) Deletes a custom model that you imported earlier.deleteInferenceProfile(Consumer<DeleteInferenceProfileRequest.Builder> deleteInferenceProfileRequest) Deletes an application inference profile.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.deletePromptRouter(Consumer<DeletePromptRouterRequest.Builder> deletePromptRouterRequest) Deletes a specified prompt router.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 CompletableFuture<GetCustomModelResponse> getCustomModel(Consumer<GetCustomModelRequest.Builder> getCustomModelRequest) Get the properties associated with a Amazon Bedrock custom model that you have created.default CompletableFuture<GetCustomModelResponse> getCustomModel(GetCustomModelRequest getCustomModelRequest) Get the properties associated with a Amazon Bedrock custom model that you have created.getCustomModelDeployment(Consumer<GetCustomModelDeploymentRequest.Builder> getCustomModelDeploymentRequest) Retrieves information about a custom model deployment, including its status, configuration, and metadata.getCustomModelDeployment(GetCustomModelDeploymentRequest getCustomModelDeploymentRequest) Retrieves information about a custom model deployment, including its status, configuration, and metadata.getEvaluationJob(Consumer<GetEvaluationJobRequest.Builder> getEvaluationJobRequest) Gets information about an evaluation job, such as the status of the job.getEvaluationJob(GetEvaluationJobRequest getEvaluationJobRequest) Gets information about an evaluation job, such as the status of the job.getFoundationModel(Consumer<GetFoundationModelRequest.Builder> getFoundationModelRequest) Get details about a Amazon Bedrock foundation model.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 CompletableFuture<GetGuardrailResponse> getGuardrail(Consumer<GetGuardrailRequest.Builder> getGuardrailRequest) Gets details about a guardrail.default CompletableFuture<GetGuardrailResponse> getGuardrail(GetGuardrailRequest getGuardrailRequest) Gets details about a guardrail.getImportedModel(Consumer<GetImportedModelRequest.Builder> getImportedModelRequest) Gets properties associated with a customized model you imported.getImportedModel(GetImportedModelRequest getImportedModelRequest) Gets properties associated with a customized model you imported.getInferenceProfile(Consumer<GetInferenceProfileRequest.Builder> getInferenceProfileRequest) Gets information about an inference profile.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 CompletableFuture<GetModelCopyJobResponse> getModelCopyJob(Consumer<GetModelCopyJobRequest.Builder> getModelCopyJobRequest) Retrieves information about a model copy job.default CompletableFuture<GetModelCopyJobResponse> getModelCopyJob(GetModelCopyJobRequest getModelCopyJobRequest) Retrieves information about a model copy job.getModelCustomizationJob(Consumer<GetModelCustomizationJobRequest.Builder> getModelCustomizationJobRequest) Retrieves the properties associated with a model-customization job, including the status of the job.getModelCustomizationJob(GetModelCustomizationJobRequest getModelCustomizationJobRequest) Retrieves the properties associated with a model-customization job, including the status of the job.getModelImportJob(Consumer<GetModelImportJobRequest.Builder> getModelImportJobRequest) Retrieves the properties associated with import model job, including the status of the job.getModelImportJob(GetModelImportJobRequest getModelImportJobRequest) Retrieves the properties associated with import model job, including the status of the job.getModelInvocationJob(Consumer<GetModelInvocationJobRequest.Builder> getModelInvocationJobRequest) Gets details about a batch inference job.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 CompletableFuture<GetPromptRouterResponse> getPromptRouter(Consumer<GetPromptRouterRequest.Builder> getPromptRouterRequest) Retrieves details about a prompt router.default CompletableFuture<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.getUseCaseForModelAccess(Consumer<GetUseCaseForModelAccessRequest.Builder> getUseCaseForModelAccessRequest) Get usecase for model access.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.listCustomModels(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) Returns a list of the custom models that you have created with theCreateModelCustomizationJoboperation.listCustomModels(ListCustomModelsRequest listCustomModelsRequest) Returns a list of the custom models that you have created with theCreateModelCustomizationJoboperation.default ListCustomModelsPublisherlistCustomModelsPaginator(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) This is a variant oflistCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)operation.default ListCustomModelsPublisherlistCustomModelsPaginator(ListCustomModelsRequest listCustomModelsRequest) This is a variant oflistCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)operation.listEvaluationJobs(Consumer<ListEvaluationJobsRequest.Builder> listEvaluationJobsRequest) Lists all existing evaluation jobs.listEvaluationJobs(ListEvaluationJobsRequest listEvaluationJobsRequest) Lists all existing evaluation jobs.default ListEvaluationJobsPublisherlistEvaluationJobsPaginator(Consumer<ListEvaluationJobsRequest.Builder> listEvaluationJobsRequest) This is a variant oflistEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)operation.default ListEvaluationJobsPublisherlistEvaluationJobsPaginator(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.listFoundationModels(Consumer<ListFoundationModelsRequest.Builder> listFoundationModelsRequest) Lists Amazon Bedrock foundation models that you can use.listFoundationModels(ListFoundationModelsRequest listFoundationModelsRequest) Lists Amazon Bedrock foundation models that you can use.default CompletableFuture<ListGuardrailsResponse> listGuardrails(Consumer<ListGuardrailsRequest.Builder> listGuardrailsRequest) Lists details about all the guardrails in an account.default CompletableFuture<ListGuardrailsResponse> listGuardrails(ListGuardrailsRequest listGuardrailsRequest) Lists details about all the guardrails in an account.default ListGuardrailsPublisherlistGuardrailsPaginator(Consumer<ListGuardrailsRequest.Builder> listGuardrailsRequest) This is a variant oflistGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)operation.default ListGuardrailsPublisherlistGuardrailsPaginator(ListGuardrailsRequest listGuardrailsRequest) This is a variant oflistGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)operation.listImportedModels(Consumer<ListImportedModelsRequest.Builder> listImportedModelsRequest) Returns a list of models you've imported.listImportedModels(ListImportedModelsRequest listImportedModelsRequest) Returns a list of models you've imported.default ListImportedModelsPublisherlistImportedModelsPaginator(Consumer<ListImportedModelsRequest.Builder> listImportedModelsRequest) This is a variant oflistImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)operation.default ListImportedModelsPublisherlistImportedModelsPaginator(ListImportedModelsRequest listImportedModelsRequest) This is a variant oflistImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)operation.listInferenceProfiles(Consumer<ListInferenceProfilesRequest.Builder> listInferenceProfilesRequest) Returns a list of inference profiles that you can use.listInferenceProfiles(ListInferenceProfilesRequest listInferenceProfilesRequest) Returns a list of inference profiles that you can use.default ListInferenceProfilesPublisherlistInferenceProfilesPaginator(Consumer<ListInferenceProfilesRequest.Builder> listInferenceProfilesRequest) This is a variant oflistInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)operation.default ListInferenceProfilesPublisherlistInferenceProfilesPaginator(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.listModelCopyJobs(Consumer<ListModelCopyJobsRequest.Builder> listModelCopyJobsRequest) Returns a list of model copy jobs that you have submitted.listModelCopyJobs(ListModelCopyJobsRequest listModelCopyJobsRequest) Returns a list of model copy jobs that you have submitted.default ListModelCopyJobsPublisherlistModelCopyJobsPaginator(Consumer<ListModelCopyJobsRequest.Builder> listModelCopyJobsRequest) This is a variant oflistModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)operation.default ListModelCopyJobsPublisherlistModelCopyJobsPaginator(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.listModelImportJobs(Consumer<ListModelImportJobsRequest.Builder> listModelImportJobsRequest) Returns a list of import jobs you've submitted.listModelImportJobs(ListModelImportJobsRequest listModelImportJobsRequest) Returns a list of import jobs you've submitted.default ListModelImportJobsPublisherlistModelImportJobsPaginator(Consumer<ListModelImportJobsRequest.Builder> listModelImportJobsRequest) This is a variant oflistModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)operation.default ListModelImportJobsPublisherlistModelImportJobsPaginator(ListModelImportJobsRequest listModelImportJobsRequest) This is a variant oflistModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)operation.listModelInvocationJobs(Consumer<ListModelInvocationJobsRequest.Builder> listModelInvocationJobsRequest) Lists all batch inference jobs in the account.listModelInvocationJobs(ListModelInvocationJobsRequest listModelInvocationJobsRequest) Lists all batch inference jobs in the account.default ListModelInvocationJobsPublisherlistModelInvocationJobsPaginator(Consumer<ListModelInvocationJobsRequest.Builder> listModelInvocationJobsRequest) This is a variant oflistModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)operation.default ListModelInvocationJobsPublisherlistModelInvocationJobsPaginator(ListModelInvocationJobsRequest listModelInvocationJobsRequest) This is a variant oflistModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)operation.listPromptRouters(Consumer<ListPromptRoutersRequest.Builder> listPromptRoutersRequest) Retrieves a list of prompt routers.listPromptRouters(ListPromptRoutersRequest listPromptRoutersRequest) Retrieves a list of prompt routers.default ListPromptRoutersPublisherlistPromptRoutersPaginator(Consumer<ListPromptRoutersRequest.Builder> listPromptRoutersRequest) This is a variant oflistPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)operation.default ListPromptRoutersPublisherlistPromptRoutersPaginator(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.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List the tags associated with the specified resource.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.putUseCaseForModelAccess(Consumer<PutUseCaseForModelAccessRequest.Builder> putUseCaseForModelAccessRequest) Put usecase for model access.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., ClientOverrideConfigurationstartAutomatedReasoningPolicyBuildWorkflow(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.stopEvaluationJob(Consumer<StopEvaluationJobRequest.Builder> stopEvaluationJobRequest) Stops an evaluation job that is current being created or running.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.stopModelInvocationJob(Consumer<StopModelInvocationJobRequest.Builder> stopModelInvocationJobRequest) Stops a batch inference job.stopModelInvocationJob(StopModelInvocationJobRequest stopModelInvocationJobRequest) Stops a batch inference job.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associate tags with a resource.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Associate tags with a resource.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Remove one or more tags from a resource.default CompletableFuture<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 CompletableFuture<UpdateGuardrailResponse> updateGuardrail(Consumer<UpdateGuardrailRequest.Builder> updateGuardrailRequest) Updates a guardrail with the values you specify.default CompletableFuture<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
closeMethods 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 CompletableFuture<BatchDeleteEvaluationJobResponse> batchDeleteEvaluationJob(BatchDeleteEvaluationJobRequest batchDeleteEvaluationJobRequest) 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:
- A Java Future containing the result of the BatchDeleteEvaluationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteEvaluationJob
default CompletableFuture<BatchDeleteEvaluationJobResponse> batchDeleteEvaluationJob(Consumer<BatchDeleteEvaluationJobRequest.Builder> batchDeleteEvaluationJobRequest) 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.Builderavoiding the need to create one manually viaBatchDeleteEvaluationJobRequest.builder()- Parameters:
batchDeleteEvaluationJobRequest- AConsumerthat will call methods onBatchDeleteEvaluationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchDeleteEvaluationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelAutomatedReasoningPolicyBuildWorkflow
default CompletableFuture<CancelAutomatedReasoningPolicyBuildWorkflowResponse> cancelAutomatedReasoningPolicyBuildWorkflow(CancelAutomatedReasoningPolicyBuildWorkflowRequest cancelAutomatedReasoningPolicyBuildWorkflowRequest) 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:
- A Java Future containing the result of the CancelAutomatedReasoningPolicyBuildWorkflow operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelAutomatedReasoningPolicyBuildWorkflow
default CompletableFuture<CancelAutomatedReasoningPolicyBuildWorkflowResponse> cancelAutomatedReasoningPolicyBuildWorkflow(Consumer<CancelAutomatedReasoningPolicyBuildWorkflowRequest.Builder> cancelAutomatedReasoningPolicyBuildWorkflowRequest) 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.Builderavoiding the need to create one manually viaCancelAutomatedReasoningPolicyBuildWorkflowRequest.builder()- Parameters:
cancelAutomatedReasoningPolicyBuildWorkflowRequest- AConsumerthat will call methods onCancelAutomatedReasoningPolicyBuildWorkflowRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CancelAutomatedReasoningPolicyBuildWorkflow operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAutomatedReasoningPolicy
default CompletableFuture<CreateAutomatedReasoningPolicyResponse> createAutomatedReasoningPolicy(CreateAutomatedReasoningPolicyRequest createAutomatedReasoningPolicyRequest) 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:
- A Java Future containing the result of the CreateAutomatedReasoningPolicy operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAutomatedReasoningPolicy
default CompletableFuture<CreateAutomatedReasoningPolicyResponse> createAutomatedReasoningPolicy(Consumer<CreateAutomatedReasoningPolicyRequest.Builder> createAutomatedReasoningPolicyRequest) 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.Builderavoiding the need to create one manually viaCreateAutomatedReasoningPolicyRequest.builder()- Parameters:
createAutomatedReasoningPolicyRequest- AConsumerthat will call methods onCreateAutomatedReasoningPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateAutomatedReasoningPolicy operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAutomatedReasoningPolicyTestCase
default CompletableFuture<CreateAutomatedReasoningPolicyTestCaseResponse> createAutomatedReasoningPolicyTestCase(CreateAutomatedReasoningPolicyTestCaseRequest createAutomatedReasoningPolicyTestCaseRequest) 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:
- A Java Future containing the result of the CreateAutomatedReasoningPolicyTestCase operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAutomatedReasoningPolicyTestCase
default CompletableFuture<CreateAutomatedReasoningPolicyTestCaseResponse> createAutomatedReasoningPolicyTestCase(Consumer<CreateAutomatedReasoningPolicyTestCaseRequest.Builder> createAutomatedReasoningPolicyTestCaseRequest) 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.Builderavoiding the need to create one manually viaCreateAutomatedReasoningPolicyTestCaseRequest.builder()- Parameters:
createAutomatedReasoningPolicyTestCaseRequest- AConsumerthat will call methods onCreateAutomatedReasoningPolicyTestCaseRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateAutomatedReasoningPolicyTestCase operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAutomatedReasoningPolicyVersion
default CompletableFuture<CreateAutomatedReasoningPolicyVersionResponse> createAutomatedReasoningPolicyVersion(CreateAutomatedReasoningPolicyVersionRequest createAutomatedReasoningPolicyVersionRequest) 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:
- A Java Future containing the result of the CreateAutomatedReasoningPolicyVersion operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAutomatedReasoningPolicyVersion
default CompletableFuture<CreateAutomatedReasoningPolicyVersionResponse> createAutomatedReasoningPolicyVersion(Consumer<CreateAutomatedReasoningPolicyVersionRequest.Builder> createAutomatedReasoningPolicyVersionRequest) 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.Builderavoiding the need to create one manually viaCreateAutomatedReasoningPolicyVersionRequest.builder()- Parameters:
createAutomatedReasoningPolicyVersionRequest- AConsumerthat will call methods onCreateAutomatedReasoningPolicyVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateAutomatedReasoningPolicyVersion operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCustomModel
default CompletableFuture<CreateCustomModelResponse> createCustomModel(CreateCustomModelRequest createCustomModelRequest) 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
ListCustomModelswith acustomizationTypeofimported. To track the status of the new model, you use theGetCustomModelAPI 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:
- A Java Future containing the result of the CreateCustomModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
createCustomModel
default CompletableFuture<CreateCustomModelResponse> createCustomModel(Consumer<CreateCustomModelRequest.Builder> createCustomModelRequest) 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
ListCustomModelswith acustomizationTypeofimported. To track the status of the new model, you use theGetCustomModelAPI 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.Builderavoiding the need to create one manually viaCreateCustomModelRequest.builder()- Parameters:
createCustomModelRequest- AConsumerthat will call methods onCreateCustomModelRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateCustomModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
createCustomModelDeployment
default CompletableFuture<CreateCustomModelDeploymentResponse> createCustomModelDeployment(CreateCustomModelDeploymentRequest createCustomModelDeploymentRequest) 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
modelIdparameter 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
CreateCustomModelDeploymentoperation:- Parameters:
createCustomModelDeploymentRequest-- Returns:
- A Java Future containing the result of the CreateCustomModelDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCustomModelDeployment
default CompletableFuture<CreateCustomModelDeploymentResponse> createCustomModelDeployment(Consumer<CreateCustomModelDeploymentRequest.Builder> createCustomModelDeploymentRequest) 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
modelIdparameter 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
CreateCustomModelDeploymentoperation:
This is a convenience which creates an instance of the
CreateCustomModelDeploymentRequest.Builderavoiding the need to create one manually viaCreateCustomModelDeploymentRequest.builder()- Parameters:
createCustomModelDeploymentRequest- AConsumerthat will call methods onCreateCustomModelDeploymentRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateCustomModelDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEvaluationJob
default CompletableFuture<CreateEvaluationJobResponse> createEvaluationJob(CreateEvaluationJobRequest createEvaluationJobRequest) Creates an evaluation job.
- Parameters:
createEvaluationJobRequest-- Returns:
- A Java Future containing the result of the CreateEvaluationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEvaluationJob
default CompletableFuture<CreateEvaluationJobResponse> createEvaluationJob(Consumer<CreateEvaluationJobRequest.Builder> createEvaluationJobRequest) Creates an evaluation job.
This is a convenience which creates an instance of the
CreateEvaluationJobRequest.Builderavoiding the need to create one manually viaCreateEvaluationJobRequest.builder()- Parameters:
createEvaluationJobRequest- AConsumerthat will call methods onCreateEvaluationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateEvaluationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createFoundationModelAgreement
default CompletableFuture<CreateFoundationModelAgreementResponse> createFoundationModelAgreement(CreateFoundationModelAgreementRequest createFoundationModelAgreementRequest) Request a model access agreement for the specified model.
- Parameters:
createFoundationModelAgreementRequest-- Returns:
- A Java Future containing the result of the CreateFoundationModelAgreement operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createFoundationModelAgreement
default CompletableFuture<CreateFoundationModelAgreementResponse> createFoundationModelAgreement(Consumer<CreateFoundationModelAgreementRequest.Builder> createFoundationModelAgreementRequest) Request a model access agreement for the specified model.
This is a convenience which creates an instance of the
CreateFoundationModelAgreementRequest.Builderavoiding the need to create one manually viaCreateFoundationModelAgreementRequest.builder()- Parameters:
createFoundationModelAgreementRequest- AConsumerthat will call methods onCreateFoundationModelAgreementRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateFoundationModelAgreement operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createGuardrail
default CompletableFuture<CreateGuardrailResponse> createGuardrail(CreateGuardrailRequest createGuardrailRequest) 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:
- A Java Future containing the result of the CreateGuardrail operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
createGuardrail
default CompletableFuture<CreateGuardrailResponse> createGuardrail(Consumer<CreateGuardrailRequest.Builder> createGuardrailRequest) 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.Builderavoiding the need to create one manually viaCreateGuardrailRequest.builder()- Parameters:
createGuardrailRequest- AConsumerthat will call methods onCreateGuardrailRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateGuardrail operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
createGuardrailVersion
default CompletableFuture<CreateGuardrailVersionResponse> createGuardrailVersion(CreateGuardrailVersionRequest createGuardrailVersionRequest) 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:
- A Java Future containing the result of the CreateGuardrailVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createGuardrailVersion
default CompletableFuture<CreateGuardrailVersionResponse> createGuardrailVersion(Consumer<CreateGuardrailVersionRequest.Builder> createGuardrailVersionRequest) 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.Builderavoiding the need to create one manually viaCreateGuardrailVersionRequest.builder()- Parameters:
createGuardrailVersionRequest- AConsumerthat will call methods onCreateGuardrailVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateGuardrailVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createInferenceProfile
default CompletableFuture<CreateInferenceProfileResponse> createInferenceProfile(CreateInferenceProfileRequest createInferenceProfileRequest) 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:
- A Java Future containing the result of the CreateInferenceProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createInferenceProfile
default CompletableFuture<CreateInferenceProfileResponse> createInferenceProfile(Consumer<CreateInferenceProfileRequest.Builder> createInferenceProfileRequest) 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.Builderavoiding the need to create one manually viaCreateInferenceProfileRequest.builder()- Parameters:
createInferenceProfileRequest- AConsumerthat will call methods onCreateInferenceProfileRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateInferenceProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createMarketplaceModelEndpoint
default CompletableFuture<CreateMarketplaceModelEndpointResponse> createMarketplaceModelEndpoint(CreateMarketplaceModelEndpointRequest createMarketplaceModelEndpointRequest) Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.
- Parameters:
createMarketplaceModelEndpointRequest-- Returns:
- A Java Future containing the result of the CreateMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createMarketplaceModelEndpoint
default CompletableFuture<CreateMarketplaceModelEndpointResponse> createMarketplaceModelEndpoint(Consumer<CreateMarketplaceModelEndpointRequest.Builder> createMarketplaceModelEndpointRequest) 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.Builderavoiding the need to create one manually viaCreateMarketplaceModelEndpointRequest.builder()- Parameters:
createMarketplaceModelEndpointRequest- AConsumerthat will call methods onCreateMarketplaceModelEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createModelCopyJob
default CompletableFuture<CreateModelCopyJobResponse> createModelCopyJob(CreateModelCopyJobRequest createModelCopyJobRequest) 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:
- A Java Future containing the result of the CreateModelCopyJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createModelCopyJob
default CompletableFuture<CreateModelCopyJobResponse> createModelCopyJob(Consumer<CreateModelCopyJobRequest.Builder> createModelCopyJobRequest) 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.Builderavoiding the need to create one manually viaCreateModelCopyJobRequest.builder()- Parameters:
createModelCopyJobRequest- AConsumerthat will call methods onCreateModelCopyJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateModelCopyJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createModelCustomizationJob
default CompletableFuture<CreateModelCustomizationJobResponse> createModelCustomizationJob(CreateModelCustomizationJobRequest createModelCustomizationJobRequest) 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
GetModelCustomizationJoboperation to retrieve the job status.For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
createModelCustomizationJobRequest-- Returns:
- A Java Future containing the result of the CreateModelCustomizationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createModelCustomizationJob
default CompletableFuture<CreateModelCustomizationJobResponse> createModelCustomizationJob(Consumer<CreateModelCustomizationJobRequest.Builder> createModelCustomizationJobRequest) 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
GetModelCustomizationJoboperation 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.Builderavoiding the need to create one manually viaCreateModelCustomizationJobRequest.builder()- Parameters:
createModelCustomizationJobRequest- AConsumerthat will call methods onCreateModelCustomizationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateModelCustomizationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createModelImportJob
default CompletableFuture<CreateModelImportJobResponse> createModelImportJob(CreateModelImportJobRequest createModelImportJobRequest) 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:
- A Java Future containing the result of the CreateModelImportJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createModelImportJob
default CompletableFuture<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. For more information, see Import a customized model
This is a convenience which creates an instance of the
CreateModelImportJobRequest.Builderavoiding the need to create one manually viaCreateModelImportJobRequest.builder()- Parameters:
createModelImportJobRequest- AConsumerthat will call methods onCreateModelImportJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateModelImportJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createModelInvocationJob
default CompletableFuture<CreateModelInvocationJobResponse> createModelInvocationJob(CreateModelInvocationJobRequest createModelInvocationJobRequest) 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
jobArnthat you can use to stop or get details about the job.- Parameters:
createModelInvocationJobRequest-- Returns:
- A Java Future containing the result of the CreateModelInvocationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createModelInvocationJob
default CompletableFuture<CreateModelInvocationJobResponse> createModelInvocationJob(Consumer<CreateModelInvocationJobRequest.Builder> createModelInvocationJobRequest) 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
jobArnthat you can use to stop or get details about the job.
This is a convenience which creates an instance of the
CreateModelInvocationJobRequest.Builderavoiding the need to create one manually viaCreateModelInvocationJobRequest.builder()- Parameters:
createModelInvocationJobRequest- AConsumerthat will call methods onCreateModelInvocationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateModelInvocationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPromptRouter
default CompletableFuture<CreatePromptRouterResponse> createPromptRouter(CreatePromptRouterRequest createPromptRouterRequest) Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.
- Parameters:
createPromptRouterRequest-- Returns:
- A Java Future containing the result of the CreatePromptRouter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPromptRouter
default CompletableFuture<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.
This is a convenience which creates an instance of the
CreatePromptRouterRequest.Builderavoiding the need to create one manually viaCreatePromptRouterRequest.builder()- Parameters:
createPromptRouterRequest- AConsumerthat will call methods onCreatePromptRouterRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreatePromptRouter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createProvisionedModelThroughput
default CompletableFuture<CreateProvisionedModelThroughputResponse> createProvisionedModelThroughput(CreateProvisionedModelThroughputRequest createProvisionedModelThroughputRequest) 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:
- A Java Future containing the result of the CreateProvisionedModelThroughput operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createProvisionedModelThroughput
default CompletableFuture<CreateProvisionedModelThroughputResponse> 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. 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.Builderavoiding the need to create one manually viaCreateProvisionedModelThroughputRequest.builder()- Parameters:
createProvisionedModelThroughputRequest- AConsumerthat will call methods onCreateProvisionedModelThroughputRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateProvisionedModelThroughput operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAutomatedReasoningPolicy
default CompletableFuture<DeleteAutomatedReasoningPolicyResponse> deleteAutomatedReasoningPolicy(DeleteAutomatedReasoningPolicyRequest deleteAutomatedReasoningPolicyRequest) 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:
- A Java Future containing the result of the DeleteAutomatedReasoningPolicy operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAutomatedReasoningPolicy
default CompletableFuture<DeleteAutomatedReasoningPolicyResponse> deleteAutomatedReasoningPolicy(Consumer<DeleteAutomatedReasoningPolicyRequest.Builder> deleteAutomatedReasoningPolicyRequest) 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.Builderavoiding the need to create one manually viaDeleteAutomatedReasoningPolicyRequest.builder()- Parameters:
deleteAutomatedReasoningPolicyRequest- AConsumerthat will call methods onDeleteAutomatedReasoningPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteAutomatedReasoningPolicy operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAutomatedReasoningPolicyBuildWorkflow
default CompletableFuture<DeleteAutomatedReasoningPolicyBuildWorkflowResponse> deleteAutomatedReasoningPolicyBuildWorkflow(DeleteAutomatedReasoningPolicyBuildWorkflowRequest deleteAutomatedReasoningPolicyBuildWorkflowRequest) Deletes an Automated Reasoning policy build workflow and its associated artifacts. This permanently removes the workflow history and any generated assets.
- Parameters:
deleteAutomatedReasoningPolicyBuildWorkflowRequest-- Returns:
- A Java Future containing the result of the DeleteAutomatedReasoningPolicyBuildWorkflow operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAutomatedReasoningPolicyBuildWorkflow
default CompletableFuture<DeleteAutomatedReasoningPolicyBuildWorkflowResponse> deleteAutomatedReasoningPolicyBuildWorkflow(Consumer<DeleteAutomatedReasoningPolicyBuildWorkflowRequest.Builder> deleteAutomatedReasoningPolicyBuildWorkflowRequest) 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.Builderavoiding the need to create one manually viaDeleteAutomatedReasoningPolicyBuildWorkflowRequest.builder()- Parameters:
deleteAutomatedReasoningPolicyBuildWorkflowRequest- AConsumerthat will call methods onDeleteAutomatedReasoningPolicyBuildWorkflowRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteAutomatedReasoningPolicyBuildWorkflow operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAutomatedReasoningPolicyTestCase
default CompletableFuture<DeleteAutomatedReasoningPolicyTestCaseResponse> deleteAutomatedReasoningPolicyTestCase(DeleteAutomatedReasoningPolicyTestCaseRequest deleteAutomatedReasoningPolicyTestCaseRequest) Deletes an Automated Reasoning policy test. This operation is idempotent; if you delete a test more than once, each call succeeds.
- Parameters:
deleteAutomatedReasoningPolicyTestCaseRequest-- Returns:
- A Java Future containing the result of the DeleteAutomatedReasoningPolicyTestCase operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAutomatedReasoningPolicyTestCase
default CompletableFuture<DeleteAutomatedReasoningPolicyTestCaseResponse> deleteAutomatedReasoningPolicyTestCase(Consumer<DeleteAutomatedReasoningPolicyTestCaseRequest.Builder> deleteAutomatedReasoningPolicyTestCaseRequest) 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.Builderavoiding the need to create one manually viaDeleteAutomatedReasoningPolicyTestCaseRequest.builder()- Parameters:
deleteAutomatedReasoningPolicyTestCaseRequest- AConsumerthat will call methods onDeleteAutomatedReasoningPolicyTestCaseRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteAutomatedReasoningPolicyTestCase operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCustomModel
default CompletableFuture<DeleteCustomModelResponse> deleteCustomModel(DeleteCustomModelRequest deleteCustomModelRequest) Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
deleteCustomModelRequest-- Returns:
- A Java Future containing the result of the DeleteCustomModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCustomModel
default CompletableFuture<DeleteCustomModelResponse> deleteCustomModel(Consumer<DeleteCustomModelRequest.Builder> deleteCustomModelRequest) 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.Builderavoiding the need to create one manually viaDeleteCustomModelRequest.builder()- Parameters:
deleteCustomModelRequest- AConsumerthat will call methods onDeleteCustomModelRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteCustomModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCustomModelDeployment
default CompletableFuture<DeleteCustomModelDeploymentResponse> deleteCustomModelDeployment(DeleteCustomModelDeploymentRequest deleteCustomModelDeploymentRequest) 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
DeleteCustomModelDeploymentoperation:- Parameters:
deleteCustomModelDeploymentRequest-- Returns:
- A Java Future containing the result of the DeleteCustomModelDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCustomModelDeployment
default CompletableFuture<DeleteCustomModelDeploymentResponse> deleteCustomModelDeployment(Consumer<DeleteCustomModelDeploymentRequest.Builder> deleteCustomModelDeploymentRequest) 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
DeleteCustomModelDeploymentoperation:
This is a convenience which creates an instance of the
DeleteCustomModelDeploymentRequest.Builderavoiding the need to create one manually viaDeleteCustomModelDeploymentRequest.builder()- Parameters:
deleteCustomModelDeploymentRequest- AConsumerthat will call methods onDeleteCustomModelDeploymentRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteCustomModelDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteFoundationModelAgreement
default CompletableFuture<DeleteFoundationModelAgreementResponse> deleteFoundationModelAgreement(DeleteFoundationModelAgreementRequest deleteFoundationModelAgreementRequest) Delete the model access agreement for the specified model.
- Parameters:
deleteFoundationModelAgreementRequest-- Returns:
- A Java Future containing the result of the DeleteFoundationModelAgreement operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteFoundationModelAgreement
default CompletableFuture<DeleteFoundationModelAgreementResponse> deleteFoundationModelAgreement(Consumer<DeleteFoundationModelAgreementRequest.Builder> deleteFoundationModelAgreementRequest) Delete the model access agreement for the specified model.
This is a convenience which creates an instance of the
DeleteFoundationModelAgreementRequest.Builderavoiding the need to create one manually viaDeleteFoundationModelAgreementRequest.builder()- Parameters:
deleteFoundationModelAgreementRequest- AConsumerthat will call methods onDeleteFoundationModelAgreementRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteFoundationModelAgreement operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteGuardrail
default CompletableFuture<DeleteGuardrailResponse> deleteGuardrail(DeleteGuardrailRequest deleteGuardrailRequest) Deletes a guardrail.
-
To delete a guardrail, only specify the ARN of the guardrail in the
guardrailIdentifierfield. 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
guardrailIdentifierfield and the version in theguardrailVersionfield.
- Parameters:
deleteGuardrailRequest-- Returns:
- A Java Future containing the result of the DeleteGuardrail operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
deleteGuardrail
default CompletableFuture<DeleteGuardrailResponse> deleteGuardrail(Consumer<DeleteGuardrailRequest.Builder> deleteGuardrailRequest) Deletes a guardrail.
-
To delete a guardrail, only specify the ARN of the guardrail in the
guardrailIdentifierfield. 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
guardrailIdentifierfield and the version in theguardrailVersionfield.
This is a convenience which creates an instance of the
DeleteGuardrailRequest.Builderavoiding the need to create one manually viaDeleteGuardrailRequest.builder()- Parameters:
deleteGuardrailRequest- AConsumerthat will call methods onDeleteGuardrailRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteGuardrail operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
deleteImportedModel
default CompletableFuture<DeleteImportedModelResponse> deleteImportedModel(DeleteImportedModelRequest deleteImportedModelRequest) 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:
- A Java Future containing the result of the DeleteImportedModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteImportedModel
default CompletableFuture<DeleteImportedModelResponse> deleteImportedModel(Consumer<DeleteImportedModelRequest.Builder> deleteImportedModelRequest) 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.Builderavoiding the need to create one manually viaDeleteImportedModelRequest.builder()- Parameters:
deleteImportedModelRequest- AConsumerthat will call methods onDeleteImportedModelRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteImportedModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteInferenceProfile
default CompletableFuture<DeleteInferenceProfileResponse> deleteInferenceProfile(DeleteInferenceProfileRequest deleteInferenceProfileRequest) 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:
- A Java Future containing the result of the DeleteInferenceProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteInferenceProfile
default CompletableFuture<DeleteInferenceProfileResponse> deleteInferenceProfile(Consumer<DeleteInferenceProfileRequest.Builder> deleteInferenceProfileRequest) 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.Builderavoiding the need to create one manually viaDeleteInferenceProfileRequest.builder()- Parameters:
deleteInferenceProfileRequest- AConsumerthat will call methods onDeleteInferenceProfileRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteInferenceProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteMarketplaceModelEndpoint
default CompletableFuture<DeleteMarketplaceModelEndpointResponse> deleteMarketplaceModelEndpoint(DeleteMarketplaceModelEndpointRequest deleteMarketplaceModelEndpointRequest) Deletes an endpoint for a model from Amazon Bedrock Marketplace.
- Parameters:
deleteMarketplaceModelEndpointRequest-- Returns:
- A Java Future containing the result of the DeleteMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteMarketplaceModelEndpoint
default CompletableFuture<DeleteMarketplaceModelEndpointResponse> deleteMarketplaceModelEndpoint(Consumer<DeleteMarketplaceModelEndpointRequest.Builder> deleteMarketplaceModelEndpointRequest) Deletes an endpoint for a model from Amazon Bedrock Marketplace.
This is a convenience which creates an instance of the
DeleteMarketplaceModelEndpointRequest.Builderavoiding the need to create one manually viaDeleteMarketplaceModelEndpointRequest.builder()- Parameters:
deleteMarketplaceModelEndpointRequest- AConsumerthat will call methods onDeleteMarketplaceModelEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteModelInvocationLoggingConfiguration
default CompletableFuture<DeleteModelInvocationLoggingConfigurationResponse> deleteModelInvocationLoggingConfiguration(DeleteModelInvocationLoggingConfigurationRequest deleteModelInvocationLoggingConfigurationRequest) Delete the invocation logging.
- Parameters:
deleteModelInvocationLoggingConfigurationRequest-- Returns:
- A Java Future containing the result of the DeleteModelInvocationLoggingConfiguration operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteModelInvocationLoggingConfiguration
default CompletableFuture<DeleteModelInvocationLoggingConfigurationResponse> deleteModelInvocationLoggingConfiguration(Consumer<DeleteModelInvocationLoggingConfigurationRequest.Builder> deleteModelInvocationLoggingConfigurationRequest) Delete the invocation logging.
This is a convenience which creates an instance of the
DeleteModelInvocationLoggingConfigurationRequest.Builderavoiding the need to create one manually viaDeleteModelInvocationLoggingConfigurationRequest.builder()- Parameters:
deleteModelInvocationLoggingConfigurationRequest- AConsumerthat will call methods onDeleteModelInvocationLoggingConfigurationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteModelInvocationLoggingConfiguration operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deletePromptRouter
default CompletableFuture<DeletePromptRouterResponse> deletePromptRouter(DeletePromptRouterRequest deletePromptRouterRequest) Deletes a specified prompt router. This action cannot be undone.
- Parameters:
deletePromptRouterRequest-- Returns:
- A Java Future containing the result of the DeletePromptRouter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deletePromptRouter
default CompletableFuture<DeletePromptRouterResponse> deletePromptRouter(Consumer<DeletePromptRouterRequest.Builder> deletePromptRouterRequest) Deletes a specified prompt router. This action cannot be undone.
This is a convenience which creates an instance of the
DeletePromptRouterRequest.Builderavoiding the need to create one manually viaDeletePromptRouterRequest.builder()- Parameters:
deletePromptRouterRequest- AConsumerthat will call methods onDeletePromptRouterRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeletePromptRouter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteProvisionedModelThroughput
default CompletableFuture<DeleteProvisionedModelThroughputResponse> deleteProvisionedModelThroughput(DeleteProvisionedModelThroughputRequest deleteProvisionedModelThroughputRequest) 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:
- A Java Future containing the result of the DeleteProvisionedModelThroughput operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteProvisionedModelThroughput
default CompletableFuture<DeleteProvisionedModelThroughputResponse> deleteProvisionedModelThroughput(Consumer<DeleteProvisionedModelThroughputRequest.Builder> deleteProvisionedModelThroughputRequest) 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.Builderavoiding the need to create one manually viaDeleteProvisionedModelThroughputRequest.builder()- Parameters:
deleteProvisionedModelThroughputRequest- AConsumerthat will call methods onDeleteProvisionedModelThroughputRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteProvisionedModelThroughput operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deregisterMarketplaceModelEndpoint
default CompletableFuture<DeregisterMarketplaceModelEndpointResponse> deregisterMarketplaceModelEndpoint(DeregisterMarketplaceModelEndpointRequest deregisterMarketplaceModelEndpointRequest) 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:
- A Java Future containing the result of the DeregisterMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ServiceUnavailableException Returned if the service cannot complete the request.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deregisterMarketplaceModelEndpoint
default CompletableFuture<DeregisterMarketplaceModelEndpointResponse> deregisterMarketplaceModelEndpoint(Consumer<DeregisterMarketplaceModelEndpointRequest.Builder> deregisterMarketplaceModelEndpointRequest) 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.Builderavoiding the need to create one manually viaDeregisterMarketplaceModelEndpointRequest.builder()- Parameters:
deregisterMarketplaceModelEndpointRequest- AConsumerthat will call methods onDeregisterMarketplaceModelEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeregisterMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ServiceUnavailableException Returned if the service cannot complete the request.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
exportAutomatedReasoningPolicyVersion
default CompletableFuture<ExportAutomatedReasoningPolicyVersionResponse> exportAutomatedReasoningPolicyVersion(ExportAutomatedReasoningPolicyVersionRequest exportAutomatedReasoningPolicyVersionRequest) 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:
- A Java Future containing the result of the ExportAutomatedReasoningPolicyVersion operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
exportAutomatedReasoningPolicyVersion
default CompletableFuture<ExportAutomatedReasoningPolicyVersionResponse> exportAutomatedReasoningPolicyVersion(Consumer<ExportAutomatedReasoningPolicyVersionRequest.Builder> exportAutomatedReasoningPolicyVersionRequest) 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.Builderavoiding the need to create one manually viaExportAutomatedReasoningPolicyVersionRequest.builder()- Parameters:
exportAutomatedReasoningPolicyVersionRequest- AConsumerthat will call methods onExportAutomatedReasoningPolicyVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ExportAutomatedReasoningPolicyVersion operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicy
default CompletableFuture<GetAutomatedReasoningPolicyResponse> getAutomatedReasoningPolicy(GetAutomatedReasoningPolicyRequest getAutomatedReasoningPolicyRequest) Retrieves details about an Automated Reasoning policy or policy version. Returns information including the policy definition, metadata, and timestamps.
- Parameters:
getAutomatedReasoningPolicyRequest-- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicy
default CompletableFuture<GetAutomatedReasoningPolicyResponse> getAutomatedReasoningPolicy(Consumer<GetAutomatedReasoningPolicyRequest.Builder> getAutomatedReasoningPolicyRequest) 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.Builderavoiding the need to create one manually viaGetAutomatedReasoningPolicyRequest.builder()- Parameters:
getAutomatedReasoningPolicyRequest- AConsumerthat will call methods onGetAutomatedReasoningPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyAnnotations
default CompletableFuture<GetAutomatedReasoningPolicyAnnotationsResponse> getAutomatedReasoningPolicyAnnotations(GetAutomatedReasoningPolicyAnnotationsRequest getAutomatedReasoningPolicyAnnotationsRequest) 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:
- A Java Future containing the result of the GetAutomatedReasoningPolicyAnnotations operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyAnnotations
default CompletableFuture<GetAutomatedReasoningPolicyAnnotationsResponse> getAutomatedReasoningPolicyAnnotations(Consumer<GetAutomatedReasoningPolicyAnnotationsRequest.Builder> getAutomatedReasoningPolicyAnnotationsRequest) 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.Builderavoiding the need to create one manually viaGetAutomatedReasoningPolicyAnnotationsRequest.builder()- Parameters:
getAutomatedReasoningPolicyAnnotationsRequest- AConsumerthat will call methods onGetAutomatedReasoningPolicyAnnotationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyAnnotations operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyBuildWorkflow
default CompletableFuture<GetAutomatedReasoningPolicyBuildWorkflowResponse> getAutomatedReasoningPolicyBuildWorkflow(GetAutomatedReasoningPolicyBuildWorkflowRequest getAutomatedReasoningPolicyBuildWorkflowRequest) Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.
- Parameters:
getAutomatedReasoningPolicyBuildWorkflowRequest-- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyBuildWorkflow operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyBuildWorkflow
default CompletableFuture<GetAutomatedReasoningPolicyBuildWorkflowResponse> getAutomatedReasoningPolicyBuildWorkflow(Consumer<GetAutomatedReasoningPolicyBuildWorkflowRequest.Builder> getAutomatedReasoningPolicyBuildWorkflowRequest) 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.Builderavoiding the need to create one manually viaGetAutomatedReasoningPolicyBuildWorkflowRequest.builder()- Parameters:
getAutomatedReasoningPolicyBuildWorkflowRequest- AConsumerthat will call methods onGetAutomatedReasoningPolicyBuildWorkflowRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyBuildWorkflow operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyBuildWorkflowResultAssets
default CompletableFuture<GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse> getAutomatedReasoningPolicyBuildWorkflowResultAssets(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest) Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.
- Parameters:
getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest-- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyBuildWorkflowResultAssets operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyBuildWorkflowResultAssets
default CompletableFuture<GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse> 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.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.Builderavoiding the need to create one manually viaGetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.builder()- Parameters:
getAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest- AConsumerthat will call methods onGetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyBuildWorkflowResultAssets operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyNextScenario
default CompletableFuture<GetAutomatedReasoningPolicyNextScenarioResponse> getAutomatedReasoningPolicyNextScenario(GetAutomatedReasoningPolicyNextScenarioRequest getAutomatedReasoningPolicyNextScenarioRequest) 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:
- A Java Future containing the result of the GetAutomatedReasoningPolicyNextScenario operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyNextScenario
default CompletableFuture<GetAutomatedReasoningPolicyNextScenarioResponse> getAutomatedReasoningPolicyNextScenario(Consumer<GetAutomatedReasoningPolicyNextScenarioRequest.Builder> getAutomatedReasoningPolicyNextScenarioRequest) 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.Builderavoiding the need to create one manually viaGetAutomatedReasoningPolicyNextScenarioRequest.builder()- Parameters:
getAutomatedReasoningPolicyNextScenarioRequest- AConsumerthat will call methods onGetAutomatedReasoningPolicyNextScenarioRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyNextScenario operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyTestCase
default CompletableFuture<GetAutomatedReasoningPolicyTestCaseResponse> getAutomatedReasoningPolicyTestCase(GetAutomatedReasoningPolicyTestCaseRequest getAutomatedReasoningPolicyTestCaseRequest) Retrieves details about a specific Automated Reasoning policy test.
- Parameters:
getAutomatedReasoningPolicyTestCaseRequest-- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyTestCase operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyTestCase
default CompletableFuture<GetAutomatedReasoningPolicyTestCaseResponse> getAutomatedReasoningPolicyTestCase(Consumer<GetAutomatedReasoningPolicyTestCaseRequest.Builder> getAutomatedReasoningPolicyTestCaseRequest) Retrieves details about a specific Automated Reasoning policy test.
This is a convenience which creates an instance of the
GetAutomatedReasoningPolicyTestCaseRequest.Builderavoiding the need to create one manually viaGetAutomatedReasoningPolicyTestCaseRequest.builder()- Parameters:
getAutomatedReasoningPolicyTestCaseRequest- AConsumerthat will call methods onGetAutomatedReasoningPolicyTestCaseRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyTestCase operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyTestResult
default CompletableFuture<GetAutomatedReasoningPolicyTestResultResponse> getAutomatedReasoningPolicyTestResult(GetAutomatedReasoningPolicyTestResultRequest getAutomatedReasoningPolicyTestResultRequest) Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.
- Parameters:
getAutomatedReasoningPolicyTestResultRequest-- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyTestResult operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAutomatedReasoningPolicyTestResult
default CompletableFuture<GetAutomatedReasoningPolicyTestResultResponse> getAutomatedReasoningPolicyTestResult(Consumer<GetAutomatedReasoningPolicyTestResultRequest.Builder> getAutomatedReasoningPolicyTestResultRequest) 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.Builderavoiding the need to create one manually viaGetAutomatedReasoningPolicyTestResultRequest.builder()- Parameters:
getAutomatedReasoningPolicyTestResultRequest- AConsumerthat will call methods onGetAutomatedReasoningPolicyTestResultRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAutomatedReasoningPolicyTestResult operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCustomModel
default CompletableFuture<GetCustomModelResponse> getCustomModel(GetCustomModelRequest getCustomModelRequest) 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:
- A Java Future containing the result of the GetCustomModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCustomModel
default CompletableFuture<GetCustomModelResponse> getCustomModel(Consumer<GetCustomModelRequest.Builder> getCustomModelRequest) 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.Builderavoiding the need to create one manually viaGetCustomModelRequest.builder()- Parameters:
getCustomModelRequest- AConsumerthat will call methods onGetCustomModelRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCustomModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCustomModelDeployment
default CompletableFuture<GetCustomModelDeploymentResponse> getCustomModelDeployment(GetCustomModelDeploymentRequest getCustomModelDeploymentRequest) 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
GetCustomModelDeploymentoperation:- Parameters:
getCustomModelDeploymentRequest-- Returns:
- A Java Future containing the result of the GetCustomModelDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCustomModelDeployment
default CompletableFuture<GetCustomModelDeploymentResponse> getCustomModelDeployment(Consumer<GetCustomModelDeploymentRequest.Builder> getCustomModelDeploymentRequest) 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
GetCustomModelDeploymentoperation:
This is a convenience which creates an instance of the
GetCustomModelDeploymentRequest.Builderavoiding the need to create one manually viaGetCustomModelDeploymentRequest.builder()- Parameters:
getCustomModelDeploymentRequest- AConsumerthat will call methods onGetCustomModelDeploymentRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCustomModelDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getEvaluationJob
default CompletableFuture<GetEvaluationJobResponse> getEvaluationJob(GetEvaluationJobRequest getEvaluationJobRequest) Gets information about an evaluation job, such as the status of the job.
- Parameters:
getEvaluationJobRequest-- Returns:
- A Java Future containing the result of the GetEvaluationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getEvaluationJob
default CompletableFuture<GetEvaluationJobResponse> getEvaluationJob(Consumer<GetEvaluationJobRequest.Builder> getEvaluationJobRequest) Gets information about an evaluation job, such as the status of the job.
This is a convenience which creates an instance of the
GetEvaluationJobRequest.Builderavoiding the need to create one manually viaGetEvaluationJobRequest.builder()- Parameters:
getEvaluationJobRequest- AConsumerthat will call methods onGetEvaluationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetEvaluationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getFoundationModel
default CompletableFuture<GetFoundationModelResponse> getFoundationModel(GetFoundationModelRequest getFoundationModelRequest) Get details about a Amazon Bedrock foundation model.
- Parameters:
getFoundationModelRequest-- Returns:
- A Java Future containing the result of the GetFoundationModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getFoundationModel
default CompletableFuture<GetFoundationModelResponse> getFoundationModel(Consumer<GetFoundationModelRequest.Builder> getFoundationModelRequest) Get details about a Amazon Bedrock foundation model.
This is a convenience which creates an instance of the
GetFoundationModelRequest.Builderavoiding the need to create one manually viaGetFoundationModelRequest.builder()- Parameters:
getFoundationModelRequest- AConsumerthat will call methods onGetFoundationModelRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFoundationModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getFoundationModelAvailability
default CompletableFuture<GetFoundationModelAvailabilityResponse> getFoundationModelAvailability(GetFoundationModelAvailabilityRequest getFoundationModelAvailabilityRequest) Get information about the Foundation model availability.
- Parameters:
getFoundationModelAvailabilityRequest-- Returns:
- A Java Future containing the result of the GetFoundationModelAvailability operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getFoundationModelAvailability
default CompletableFuture<GetFoundationModelAvailabilityResponse> getFoundationModelAvailability(Consumer<GetFoundationModelAvailabilityRequest.Builder> getFoundationModelAvailabilityRequest) Get information about the Foundation model availability.
This is a convenience which creates an instance of the
GetFoundationModelAvailabilityRequest.Builderavoiding the need to create one manually viaGetFoundationModelAvailabilityRequest.builder()- Parameters:
getFoundationModelAvailabilityRequest- AConsumerthat will call methods onGetFoundationModelAvailabilityRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFoundationModelAvailability operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getGuardrail
default CompletableFuture<GetGuardrailResponse> getGuardrail(GetGuardrailRequest getGuardrailRequest) Gets details about a guardrail. If you don't specify a version, the response returns details for the
DRAFTversion.- Parameters:
getGuardrailRequest-- Returns:
- A Java Future containing the result of the GetGuardrail operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getGuardrail
default CompletableFuture<GetGuardrailResponse> getGuardrail(Consumer<GetGuardrailRequest.Builder> getGuardrailRequest) Gets details about a guardrail. If you don't specify a version, the response returns details for the
DRAFTversion.
This is a convenience which creates an instance of the
GetGuardrailRequest.Builderavoiding the need to create one manually viaGetGuardrailRequest.builder()- Parameters:
getGuardrailRequest- AConsumerthat will call methods onGetGuardrailRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetGuardrail operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getImportedModel
default CompletableFuture<GetImportedModelResponse> getImportedModel(GetImportedModelRequest getImportedModelRequest) Gets properties associated with a customized model you imported.
- Parameters:
getImportedModelRequest-- Returns:
- A Java Future containing the result of the GetImportedModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getImportedModel
default CompletableFuture<GetImportedModelResponse> getImportedModel(Consumer<GetImportedModelRequest.Builder> getImportedModelRequest) Gets properties associated with a customized model you imported.
This is a convenience which creates an instance of the
GetImportedModelRequest.Builderavoiding the need to create one manually viaGetImportedModelRequest.builder()- Parameters:
getImportedModelRequest- AConsumerthat will call methods onGetImportedModelRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetImportedModel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getInferenceProfile
default CompletableFuture<GetInferenceProfileResponse> getInferenceProfile(GetInferenceProfileRequest getInferenceProfileRequest) 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:
- A Java Future containing the result of the GetInferenceProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getInferenceProfile
default CompletableFuture<GetInferenceProfileResponse> getInferenceProfile(Consumer<GetInferenceProfileRequest.Builder> getInferenceProfileRequest) 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.Builderavoiding the need to create one manually viaGetInferenceProfileRequest.builder()- Parameters:
getInferenceProfileRequest- AConsumerthat will call methods onGetInferenceProfileRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetInferenceProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMarketplaceModelEndpoint
default CompletableFuture<GetMarketplaceModelEndpointResponse> getMarketplaceModelEndpoint(GetMarketplaceModelEndpointRequest getMarketplaceModelEndpointRequest) Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
- Parameters:
getMarketplaceModelEndpointRequest-- Returns:
- A Java Future containing the result of the GetMarketplaceModelEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMarketplaceModelEndpoint
default CompletableFuture<GetMarketplaceModelEndpointResponse> getMarketplaceModelEndpoint(Consumer<GetMarketplaceModelEndpointRequest.Builder> getMarketplaceModelEndpointRequest) Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
This is a convenience which creates an instance of the
GetMarketplaceModelEndpointRequest.Builderavoiding the need to create one manually viaGetMarketplaceModelEndpointRequest.builder()- Parameters:
getMarketplaceModelEndpointRequest- AConsumerthat will call methods onGetMarketplaceModelEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetMarketplaceModelEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelCopyJob
default CompletableFuture<GetModelCopyJobResponse> getModelCopyJob(GetModelCopyJobRequest getModelCopyJobRequest) 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:
- A Java Future containing the result of the GetModelCopyJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelCopyJob
default CompletableFuture<GetModelCopyJobResponse> getModelCopyJob(Consumer<GetModelCopyJobRequest.Builder> getModelCopyJobRequest) 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.Builderavoiding the need to create one manually viaGetModelCopyJobRequest.builder()- Parameters:
getModelCopyJobRequest- AConsumerthat will call methods onGetModelCopyJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetModelCopyJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelCustomizationJob
default CompletableFuture<GetModelCustomizationJobResponse> getModelCustomizationJob(GetModelCustomizationJobRequest getModelCustomizationJobRequest) 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:
- A Java Future containing the result of the GetModelCustomizationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelCustomizationJob
default CompletableFuture<GetModelCustomizationJobResponse> getModelCustomizationJob(Consumer<GetModelCustomizationJobRequest.Builder> getModelCustomizationJobRequest) 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.Builderavoiding the need to create one manually viaGetModelCustomizationJobRequest.builder()- Parameters:
getModelCustomizationJobRequest- AConsumerthat will call methods onGetModelCustomizationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetModelCustomizationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelImportJob
default CompletableFuture<GetModelImportJobResponse> getModelImportJob(GetModelImportJobRequest getModelImportJobRequest) 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:
- A Java Future containing the result of the GetModelImportJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelImportJob
default CompletableFuture<GetModelImportJobResponse> getModelImportJob(Consumer<GetModelImportJobRequest.Builder> getModelImportJobRequest) 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.Builderavoiding the need to create one manually viaGetModelImportJobRequest.builder()- Parameters:
getModelImportJobRequest- AConsumerthat will call methods onGetModelImportJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetModelImportJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelInvocationJob
default CompletableFuture<GetModelInvocationJobResponse> getModelInvocationJob(GetModelInvocationJobRequest getModelInvocationJobRequest) Gets details about a batch inference job. For more information, see Monitor batch inference jobs
- Parameters:
getModelInvocationJobRequest-- Returns:
- A Java Future containing the result of the GetModelInvocationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelInvocationJob
default CompletableFuture<GetModelInvocationJobResponse> getModelInvocationJob(Consumer<GetModelInvocationJobRequest.Builder> getModelInvocationJobRequest) 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.Builderavoiding the need to create one manually viaGetModelInvocationJobRequest.builder()- Parameters:
getModelInvocationJobRequest- AConsumerthat will call methods onGetModelInvocationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetModelInvocationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelInvocationLoggingConfiguration
default CompletableFuture<GetModelInvocationLoggingConfigurationResponse> getModelInvocationLoggingConfiguration(GetModelInvocationLoggingConfigurationRequest getModelInvocationLoggingConfigurationRequest) Get the current configuration values for model invocation logging.
- Parameters:
getModelInvocationLoggingConfigurationRequest-- Returns:
- A Java Future containing the result of the GetModelInvocationLoggingConfiguration operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getModelInvocationLoggingConfiguration
default CompletableFuture<GetModelInvocationLoggingConfigurationResponse> getModelInvocationLoggingConfiguration(Consumer<GetModelInvocationLoggingConfigurationRequest.Builder> getModelInvocationLoggingConfigurationRequest) Get the current configuration values for model invocation logging.
This is a convenience which creates an instance of the
GetModelInvocationLoggingConfigurationRequest.Builderavoiding the need to create one manually viaGetModelInvocationLoggingConfigurationRequest.builder()- Parameters:
getModelInvocationLoggingConfigurationRequest- AConsumerthat will call methods onGetModelInvocationLoggingConfigurationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetModelInvocationLoggingConfiguration operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPromptRouter
default CompletableFuture<GetPromptRouterResponse> getPromptRouter(GetPromptRouterRequest getPromptRouterRequest) Retrieves details about a prompt router.
- Parameters:
getPromptRouterRequest-- Returns:
- A Java Future containing the result of the GetPromptRouter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPromptRouter
default CompletableFuture<GetPromptRouterResponse> getPromptRouter(Consumer<GetPromptRouterRequest.Builder> getPromptRouterRequest) Retrieves details about a prompt router.
This is a convenience which creates an instance of the
GetPromptRouterRequest.Builderavoiding the need to create one manually viaGetPromptRouterRequest.builder()- Parameters:
getPromptRouterRequest- AConsumerthat will call methods onGetPromptRouterRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetPromptRouter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getProvisionedModelThroughput
default CompletableFuture<GetProvisionedModelThroughputResponse> getProvisionedModelThroughput(GetProvisionedModelThroughputRequest getProvisionedModelThroughputRequest) Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
- Parameters:
getProvisionedModelThroughputRequest-- Returns:
- A Java Future containing the result of the GetProvisionedModelThroughput operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getProvisionedModelThroughput
default CompletableFuture<GetProvisionedModelThroughputResponse> getProvisionedModelThroughput(Consumer<GetProvisionedModelThroughputRequest.Builder> getProvisionedModelThroughputRequest) 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.Builderavoiding the need to create one manually viaGetProvisionedModelThroughputRequest.builder()- Parameters:
getProvisionedModelThroughputRequest- AConsumerthat will call methods onGetProvisionedModelThroughputRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetProvisionedModelThroughput operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getUseCaseForModelAccess
default CompletableFuture<GetUseCaseForModelAccessResponse> getUseCaseForModelAccess(GetUseCaseForModelAccessRequest getUseCaseForModelAccessRequest) Get usecase for model access.
- Parameters:
getUseCaseForModelAccessRequest-- Returns:
- A Java Future containing the result of the GetUseCaseForModelAccess operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getUseCaseForModelAccess
default CompletableFuture<GetUseCaseForModelAccessResponse> getUseCaseForModelAccess(Consumer<GetUseCaseForModelAccessRequest.Builder> getUseCaseForModelAccessRequest) Get usecase for model access.
This is a convenience which creates an instance of the
GetUseCaseForModelAccessRequest.Builderavoiding the need to create one manually viaGetUseCaseForModelAccessRequest.builder()- Parameters:
getUseCaseForModelAccessRequest- AConsumerthat will call methods onGetUseCaseForModelAccessRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetUseCaseForModelAccess operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicies
default CompletableFuture<ListAutomatedReasoningPoliciesResponse> listAutomatedReasoningPolicies(ListAutomatedReasoningPoliciesRequest listAutomatedReasoningPoliciesRequest) 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:
- A Java Future containing the result of the ListAutomatedReasoningPolicies operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicies
default CompletableFuture<ListAutomatedReasoningPoliciesResponse> listAutomatedReasoningPolicies(Consumer<ListAutomatedReasoningPoliciesRequest.Builder> listAutomatedReasoningPoliciesRequest) 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.Builderavoiding the need to create one manually viaListAutomatedReasoningPoliciesRequest.builder()- Parameters:
listAutomatedReasoningPoliciesRequest- AConsumerthat will call methods onListAutomatedReasoningPoliciesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListAutomatedReasoningPolicies operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPoliciesPaginator
default ListAutomatedReasoningPoliciesPublisher listAutomatedReasoningPoliciesPaginator(ListAutomatedReasoningPoliciesRequest listAutomatedReasoningPoliciesRequest) This is a variant of
listAutomatedReasoningPolicies(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesPublisher publisher = client.listAutomatedReasoningPoliciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesPublisher publisher = client.listAutomatedReasoningPoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPoliciesPaginator
default ListAutomatedReasoningPoliciesPublisher listAutomatedReasoningPoliciesPaginator(Consumer<ListAutomatedReasoningPoliciesRequest.Builder> listAutomatedReasoningPoliciesRequest) This is a variant of
listAutomatedReasoningPolicies(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesPublisher publisher = client.listAutomatedReasoningPoliciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPoliciesPublisher publisher = client.listAutomatedReasoningPoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPoliciesResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListAutomatedReasoningPoliciesRequest.builder()- Parameters:
listAutomatedReasoningPoliciesRequest- AConsumerthat will call methods onListAutomatedReasoningPoliciesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyBuildWorkflows
default CompletableFuture<ListAutomatedReasoningPolicyBuildWorkflowsResponse> listAutomatedReasoningPolicyBuildWorkflows(ListAutomatedReasoningPolicyBuildWorkflowsRequest listAutomatedReasoningPolicyBuildWorkflowsRequest) Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.
- Parameters:
listAutomatedReasoningPolicyBuildWorkflowsRequest-- Returns:
- A Java Future containing the result of the ListAutomatedReasoningPolicyBuildWorkflows operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyBuildWorkflows
default CompletableFuture<ListAutomatedReasoningPolicyBuildWorkflowsResponse> listAutomatedReasoningPolicyBuildWorkflows(Consumer<ListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder> listAutomatedReasoningPolicyBuildWorkflowsRequest) 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.Builderavoiding the need to create one manually viaListAutomatedReasoningPolicyBuildWorkflowsRequest.builder()- Parameters:
listAutomatedReasoningPolicyBuildWorkflowsRequest- AConsumerthat will call methods onListAutomatedReasoningPolicyBuildWorkflowsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListAutomatedReasoningPolicyBuildWorkflows operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyBuildWorkflowsPaginator
default ListAutomatedReasoningPolicyBuildWorkflowsPublisher listAutomatedReasoningPolicyBuildWorkflowsPaginator(ListAutomatedReasoningPolicyBuildWorkflowsRequest listAutomatedReasoningPolicyBuildWorkflowsRequest) This is a variant of
listAutomatedReasoningPolicyBuildWorkflows(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsPublisher publisher = client.listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsPublisher publisher = client.listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyBuildWorkflowsPaginator
default ListAutomatedReasoningPolicyBuildWorkflowsPublisher listAutomatedReasoningPolicyBuildWorkflowsPaginator(Consumer<ListAutomatedReasoningPolicyBuildWorkflowsRequest.Builder> listAutomatedReasoningPolicyBuildWorkflowsRequest) This is a variant of
listAutomatedReasoningPolicyBuildWorkflows(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsPublisher publisher = client.listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyBuildWorkflowsPublisher publisher = client.listAutomatedReasoningPolicyBuildWorkflowsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyBuildWorkflowsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListAutomatedReasoningPolicyBuildWorkflowsRequest.builder()- Parameters:
listAutomatedReasoningPolicyBuildWorkflowsRequest- AConsumerthat will call methods onListAutomatedReasoningPolicyBuildWorkflowsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyTestCases
default CompletableFuture<ListAutomatedReasoningPolicyTestCasesResponse> listAutomatedReasoningPolicyTestCases(ListAutomatedReasoningPolicyTestCasesRequest listAutomatedReasoningPolicyTestCasesRequest) Lists tests for an Automated Reasoning policy. We recommend using pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listAutomatedReasoningPolicyTestCasesRequest-- Returns:
- A Java Future containing the result of the ListAutomatedReasoningPolicyTestCases operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyTestCases
default CompletableFuture<ListAutomatedReasoningPolicyTestCasesResponse> listAutomatedReasoningPolicyTestCases(Consumer<ListAutomatedReasoningPolicyTestCasesRequest.Builder> listAutomatedReasoningPolicyTestCasesRequest) 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.Builderavoiding the need to create one manually viaListAutomatedReasoningPolicyTestCasesRequest.builder()- Parameters:
listAutomatedReasoningPolicyTestCasesRequest- AConsumerthat will call methods onListAutomatedReasoningPolicyTestCasesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListAutomatedReasoningPolicyTestCases operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyTestCasesPaginator
default ListAutomatedReasoningPolicyTestCasesPublisher listAutomatedReasoningPolicyTestCasesPaginator(ListAutomatedReasoningPolicyTestCasesRequest listAutomatedReasoningPolicyTestCasesRequest) This is a variant of
listAutomatedReasoningPolicyTestCases(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesPublisher publisher = client.listAutomatedReasoningPolicyTestCasesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesPublisher publisher = client.listAutomatedReasoningPolicyTestCasesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyTestCasesPaginator
default ListAutomatedReasoningPolicyTestCasesPublisher listAutomatedReasoningPolicyTestCasesPaginator(Consumer<ListAutomatedReasoningPolicyTestCasesRequest.Builder> listAutomatedReasoningPolicyTestCasesRequest) This is a variant of
listAutomatedReasoningPolicyTestCases(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesPublisher publisher = client.listAutomatedReasoningPolicyTestCasesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestCasesPublisher publisher = client.listAutomatedReasoningPolicyTestCasesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestCasesResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListAutomatedReasoningPolicyTestCasesRequest.builder()- Parameters:
listAutomatedReasoningPolicyTestCasesRequest- AConsumerthat will call methods onListAutomatedReasoningPolicyTestCasesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyTestResults
default CompletableFuture<ListAutomatedReasoningPolicyTestResultsResponse> listAutomatedReasoningPolicyTestResults(ListAutomatedReasoningPolicyTestResultsRequest listAutomatedReasoningPolicyTestResultsRequest) Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.
- Parameters:
listAutomatedReasoningPolicyTestResultsRequest-- Returns:
- A Java Future containing the result of the ListAutomatedReasoningPolicyTestResults operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyTestResults
default CompletableFuture<ListAutomatedReasoningPolicyTestResultsResponse> 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.
This is a convenience which creates an instance of the
ListAutomatedReasoningPolicyTestResultsRequest.Builderavoiding the need to create one manually viaListAutomatedReasoningPolicyTestResultsRequest.builder()- Parameters:
listAutomatedReasoningPolicyTestResultsRequest- AConsumerthat will call methods onListAutomatedReasoningPolicyTestResultsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListAutomatedReasoningPolicyTestResults operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyTestResultsPaginator
default ListAutomatedReasoningPolicyTestResultsPublisher listAutomatedReasoningPolicyTestResultsPaginator(ListAutomatedReasoningPolicyTestResultsRequest listAutomatedReasoningPolicyTestResultsRequest) This is a variant of
listAutomatedReasoningPolicyTestResults(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsPublisher publisher = client.listAutomatedReasoningPolicyTestResultsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsPublisher publisher = client.listAutomatedReasoningPolicyTestResultsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAutomatedReasoningPolicyTestResultsPaginator
default ListAutomatedReasoningPolicyTestResultsPublisher listAutomatedReasoningPolicyTestResultsPaginator(Consumer<ListAutomatedReasoningPolicyTestResultsRequest.Builder> listAutomatedReasoningPolicyTestResultsRequest) This is a variant of
listAutomatedReasoningPolicyTestResults(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsPublisher publisher = client.listAutomatedReasoningPolicyTestResultsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListAutomatedReasoningPolicyTestResultsPublisher publisher = client.listAutomatedReasoningPolicyTestResultsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListAutomatedReasoningPolicyTestResultsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListAutomatedReasoningPolicyTestResultsRequest.builder()- Parameters:
listAutomatedReasoningPolicyTestResultsRequest- AConsumerthat will call methods onListAutomatedReasoningPolicyTestResultsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCustomModelDeployments
default CompletableFuture<ListCustomModelDeploymentsResponse> listCustomModelDeployments(ListCustomModelDeploymentsRequest listCustomModelDeploymentsRequest) 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
ListCustomModelDeploymentsoperation:- Parameters:
listCustomModelDeploymentsRequest-- Returns:
- A Java Future containing the result of the ListCustomModelDeployments operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCustomModelDeployments
default CompletableFuture<ListCustomModelDeploymentsResponse> listCustomModelDeployments(Consumer<ListCustomModelDeploymentsRequest.Builder> listCustomModelDeploymentsRequest) 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
ListCustomModelDeploymentsoperation:
This is a convenience which creates an instance of the
ListCustomModelDeploymentsRequest.Builderavoiding the need to create one manually viaListCustomModelDeploymentsRequest.builder()- Parameters:
listCustomModelDeploymentsRequest- AConsumerthat will call methods onListCustomModelDeploymentsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCustomModelDeployments operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCustomModelDeploymentsPaginator
default ListCustomModelDeploymentsPublisher listCustomModelDeploymentsPaginator(ListCustomModelDeploymentsRequest listCustomModelDeploymentsRequest) This is a variant of
listCustomModelDeployments(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsPublisher publisher = client.listCustomModelDeploymentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsPublisher publisher = client.listCustomModelDeploymentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCustomModelDeploymentsPaginator
default ListCustomModelDeploymentsPublisher listCustomModelDeploymentsPaginator(Consumer<ListCustomModelDeploymentsRequest.Builder> listCustomModelDeploymentsRequest) This is a variant of
listCustomModelDeployments(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsPublisher publisher = client.listCustomModelDeploymentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListCustomModelDeploymentsPublisher publisher = client.listCustomModelDeploymentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListCustomModelDeploymentsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListCustomModelDeploymentsRequest.builder()- Parameters:
listCustomModelDeploymentsRequest- AConsumerthat will call methods onListCustomModelDeploymentsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCustomModels
default CompletableFuture<ListCustomModelsResponse> listCustomModels(ListCustomModelsRequest listCustomModelsRequest) Returns a list of the custom models that you have created with the
CreateModelCustomizationJoboperation.For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
listCustomModelsRequest-- Returns:
- A Java Future containing the result of the ListCustomModels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCustomModels
default CompletableFuture<ListCustomModelsResponse> listCustomModels(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) Returns a list of the custom models that you have created with the
CreateModelCustomizationJoboperation.For more information, see Custom models in the Amazon Bedrock User Guide.
This is a convenience which creates an instance of the
ListCustomModelsRequest.Builderavoiding the need to create one manually viaListCustomModelsRequest.builder()- Parameters:
listCustomModelsRequest- AConsumerthat will call methods onListCustomModelsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCustomModels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCustomModelsPaginator
default ListCustomModelsPublisher listCustomModelsPaginator(ListCustomModelsRequest listCustomModelsRequest) This is a variant of
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelsPublisher publisher = client.listCustomModelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsPublisher publisher = client.listCustomModelsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListCustomModelsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListCustomModelsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCustomModelsPaginator
default ListCustomModelsPublisher listCustomModelsPaginator(Consumer<ListCustomModelsRequest.Builder> listCustomModelsRequest) This is a variant of
listCustomModels(software.amazon.awssdk.services.bedrock.model.ListCustomModelsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListCustomModelsPublisher publisher = client.listCustomModelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListCustomModelsPublisher publisher = client.listCustomModelsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListCustomModelsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListCustomModelsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListCustomModelsRequest.builder()- Parameters:
listCustomModelsRequest- AConsumerthat will call methods onListCustomModelsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEvaluationJobs
default CompletableFuture<ListEvaluationJobsResponse> listEvaluationJobs(ListEvaluationJobsRequest listEvaluationJobsRequest) Lists all existing evaluation jobs.
- Parameters:
listEvaluationJobsRequest-- Returns:
- A Java Future containing the result of the ListEvaluationJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEvaluationJobs
default CompletableFuture<ListEvaluationJobsResponse> listEvaluationJobs(Consumer<ListEvaluationJobsRequest.Builder> listEvaluationJobsRequest) Lists all existing evaluation jobs.
This is a convenience which creates an instance of the
ListEvaluationJobsRequest.Builderavoiding the need to create one manually viaListEvaluationJobsRequest.builder()- Parameters:
listEvaluationJobsRequest- AConsumerthat will call methods onListEvaluationJobsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListEvaluationJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEvaluationJobsPaginator
default ListEvaluationJobsPublisher listEvaluationJobsPaginator(ListEvaluationJobsRequest listEvaluationJobsRequest) This is a variant of
listEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsPublisher publisher = client.listEvaluationJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsPublisher publisher = client.listEvaluationJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEvaluationJobsPaginator
default ListEvaluationJobsPublisher listEvaluationJobsPaginator(Consumer<ListEvaluationJobsRequest.Builder> listEvaluationJobsRequest) This is a variant of
listEvaluationJobs(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsPublisher publisher = client.listEvaluationJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListEvaluationJobsPublisher publisher = client.listEvaluationJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListEvaluationJobsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListEvaluationJobsRequest.builder()- Parameters:
listEvaluationJobsRequest- AConsumerthat will call methods onListEvaluationJobsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFoundationModelAgreementOffers
default CompletableFuture<ListFoundationModelAgreementOffersResponse> listFoundationModelAgreementOffers(ListFoundationModelAgreementOffersRequest listFoundationModelAgreementOffersRequest) Get the offers associated with the specified model.
- Parameters:
listFoundationModelAgreementOffersRequest-- Returns:
- A Java Future containing the result of the ListFoundationModelAgreementOffers operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFoundationModelAgreementOffers
default CompletableFuture<ListFoundationModelAgreementOffersResponse> listFoundationModelAgreementOffers(Consumer<ListFoundationModelAgreementOffersRequest.Builder> listFoundationModelAgreementOffersRequest) Get the offers associated with the specified model.
This is a convenience which creates an instance of the
ListFoundationModelAgreementOffersRequest.Builderavoiding the need to create one manually viaListFoundationModelAgreementOffersRequest.builder()- Parameters:
listFoundationModelAgreementOffersRequest- AConsumerthat will call methods onListFoundationModelAgreementOffersRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListFoundationModelAgreementOffers operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFoundationModels
default CompletableFuture<ListFoundationModelsResponse> listFoundationModels(ListFoundationModelsRequest listFoundationModelsRequest) 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:
- A Java Future containing the result of the ListFoundationModels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFoundationModels
default CompletableFuture<ListFoundationModelsResponse> listFoundationModels(Consumer<ListFoundationModelsRequest.Builder> listFoundationModelsRequest) 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.Builderavoiding the need to create one manually viaListFoundationModelsRequest.builder()- Parameters:
listFoundationModelsRequest- AConsumerthat will call methods onListFoundationModelsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListFoundationModels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listGuardrails
default CompletableFuture<ListGuardrailsResponse> listGuardrails(ListGuardrailsRequest listGuardrailsRequest) Lists details about all the guardrails in an account. To list the
DRAFTversion of all your guardrails, don't specify theguardrailIdentifierfield. To list all versions of a guardrail, specify the ARN of the guardrail in theguardrailIdentifierfield.You can set the maximum number of results to return in a response in the
maxResultsfield. If there are more results than the number you set, the response returns anextTokenthat you can send in anotherListGuardrailsrequest to see the next batch of results.- Parameters:
listGuardrailsRequest-- Returns:
- A Java Future containing the result of the ListGuardrails operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listGuardrails
default CompletableFuture<ListGuardrailsResponse> listGuardrails(Consumer<ListGuardrailsRequest.Builder> listGuardrailsRequest) Lists details about all the guardrails in an account. To list the
DRAFTversion of all your guardrails, don't specify theguardrailIdentifierfield. To list all versions of a guardrail, specify the ARN of the guardrail in theguardrailIdentifierfield.You can set the maximum number of results to return in a response in the
maxResultsfield. If there are more results than the number you set, the response returns anextTokenthat you can send in anotherListGuardrailsrequest to see the next batch of results.
This is a convenience which creates an instance of the
ListGuardrailsRequest.Builderavoiding the need to create one manually viaListGuardrailsRequest.builder()- Parameters:
listGuardrailsRequest- AConsumerthat will call methods onListGuardrailsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListGuardrails operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listGuardrailsPaginator
default ListGuardrailsPublisher listGuardrailsPaginator(ListGuardrailsRequest listGuardrailsRequest) This is a variant of
listGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListGuardrailsPublisher publisher = client.listGuardrailsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListGuardrailsPublisher publisher = client.listGuardrailsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListGuardrailsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListGuardrailsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listGuardrailsPaginator
default ListGuardrailsPublisher listGuardrailsPaginator(Consumer<ListGuardrailsRequest.Builder> listGuardrailsRequest) This is a variant of
listGuardrails(software.amazon.awssdk.services.bedrock.model.ListGuardrailsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListGuardrailsPublisher publisher = client.listGuardrailsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListGuardrailsPublisher publisher = client.listGuardrailsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListGuardrailsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListGuardrailsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListGuardrailsRequest.builder()- Parameters:
listGuardrailsRequest- AConsumerthat will call methods onListGuardrailsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listImportedModels
default CompletableFuture<ListImportedModelsResponse> listImportedModels(ListImportedModelsRequest listImportedModelsRequest) 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:
- A Java Future containing the result of the ListImportedModels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listImportedModels
default CompletableFuture<ListImportedModelsResponse> listImportedModels(Consumer<ListImportedModelsRequest.Builder> listImportedModelsRequest) 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.Builderavoiding the need to create one manually viaListImportedModelsRequest.builder()- Parameters:
listImportedModelsRequest- AConsumerthat will call methods onListImportedModelsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListImportedModels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listImportedModelsPaginator
default ListImportedModelsPublisher listImportedModelsPaginator(ListImportedModelsRequest listImportedModelsRequest) This is a variant of
listImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListImportedModelsPublisher publisher = client.listImportedModelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListImportedModelsPublisher publisher = client.listImportedModelsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListImportedModelsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListImportedModelsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listImportedModelsPaginator
default ListImportedModelsPublisher listImportedModelsPaginator(Consumer<ListImportedModelsRequest.Builder> listImportedModelsRequest) This is a variant of
listImportedModels(software.amazon.awssdk.services.bedrock.model.ListImportedModelsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListImportedModelsPublisher publisher = client.listImportedModelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListImportedModelsPublisher publisher = client.listImportedModelsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListImportedModelsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListImportedModelsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListImportedModelsRequest.builder()- Parameters:
listImportedModelsRequest- AConsumerthat will call methods onListImportedModelsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInferenceProfiles
default CompletableFuture<ListInferenceProfilesResponse> listInferenceProfiles(ListInferenceProfilesRequest listInferenceProfilesRequest) 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:
- A Java Future containing the result of the ListInferenceProfiles operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInferenceProfiles
default CompletableFuture<ListInferenceProfilesResponse> listInferenceProfiles(Consumer<ListInferenceProfilesRequest.Builder> listInferenceProfilesRequest) 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.Builderavoiding the need to create one manually viaListInferenceProfilesRequest.builder()- Parameters:
listInferenceProfilesRequest- AConsumerthat will call methods onListInferenceProfilesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListInferenceProfiles operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInferenceProfilesPaginator
default ListInferenceProfilesPublisher listInferenceProfilesPaginator(ListInferenceProfilesRequest listInferenceProfilesRequest) This is a variant of
listInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesPublisher publisher = client.listInferenceProfilesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesPublisher publisher = client.listInferenceProfilesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInferenceProfilesPaginator
default ListInferenceProfilesPublisher listInferenceProfilesPaginator(Consumer<ListInferenceProfilesRequest.Builder> listInferenceProfilesRequest) This is a variant of
listInferenceProfiles(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesPublisher publisher = client.listInferenceProfilesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListInferenceProfilesPublisher publisher = client.listInferenceProfilesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListInferenceProfilesResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListInferenceProfilesRequest.builder()- Parameters:
listInferenceProfilesRequest- AConsumerthat will call methods onListInferenceProfilesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMarketplaceModelEndpoints
default CompletableFuture<ListMarketplaceModelEndpointsResponse> listMarketplaceModelEndpoints(ListMarketplaceModelEndpointsRequest listMarketplaceModelEndpointsRequest) Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
- Parameters:
listMarketplaceModelEndpointsRequest-- Returns:
- A Java Future containing the result of the ListMarketplaceModelEndpoints operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMarketplaceModelEndpoints
default CompletableFuture<ListMarketplaceModelEndpointsResponse> listMarketplaceModelEndpoints(Consumer<ListMarketplaceModelEndpointsRequest.Builder> listMarketplaceModelEndpointsRequest) 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.Builderavoiding the need to create one manually viaListMarketplaceModelEndpointsRequest.builder()- Parameters:
listMarketplaceModelEndpointsRequest- AConsumerthat will call methods onListMarketplaceModelEndpointsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListMarketplaceModelEndpoints operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMarketplaceModelEndpointsPaginator
default ListMarketplaceModelEndpointsPublisher listMarketplaceModelEndpointsPaginator(ListMarketplaceModelEndpointsRequest listMarketplaceModelEndpointsRequest) This is a variant of
listMarketplaceModelEndpoints(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsPublisher publisher = client.listMarketplaceModelEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsPublisher publisher = client.listMarketplaceModelEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMarketplaceModelEndpointsPaginator
default ListMarketplaceModelEndpointsPublisher listMarketplaceModelEndpointsPaginator(Consumer<ListMarketplaceModelEndpointsRequest.Builder> listMarketplaceModelEndpointsRequest) This is a variant of
listMarketplaceModelEndpoints(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsPublisher publisher = client.listMarketplaceModelEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListMarketplaceModelEndpointsPublisher publisher = client.listMarketplaceModelEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListMarketplaceModelEndpointsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListMarketplaceModelEndpointsRequest.builder()- Parameters:
listMarketplaceModelEndpointsRequest- AConsumerthat will call methods onListMarketplaceModelEndpointsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelCopyJobs
default CompletableFuture<ListModelCopyJobsResponse> listModelCopyJobs(ListModelCopyJobsRequest listModelCopyJobsRequest) 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:
- A Java Future containing the result of the ListModelCopyJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelCopyJobs
default CompletableFuture<ListModelCopyJobsResponse> listModelCopyJobs(Consumer<ListModelCopyJobsRequest.Builder> listModelCopyJobsRequest) 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.Builderavoiding the need to create one manually viaListModelCopyJobsRequest.builder()- Parameters:
listModelCopyJobsRequest- AConsumerthat will call methods onListModelCopyJobsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListModelCopyJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelCopyJobsPaginator
default ListModelCopyJobsPublisher listModelCopyJobsPaginator(ListModelCopyJobsRequest listModelCopyJobsRequest) This is a variant of
listModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsPublisher publisher = client.listModelCopyJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsPublisher publisher = client.listModelCopyJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelCopyJobsPaginator
default ListModelCopyJobsPublisher listModelCopyJobsPaginator(Consumer<ListModelCopyJobsRequest.Builder> listModelCopyJobsRequest) This is a variant of
listModelCopyJobs(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsPublisher publisher = client.listModelCopyJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListModelCopyJobsPublisher publisher = client.listModelCopyJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListModelCopyJobsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListModelCopyJobsRequest.builder()- Parameters:
listModelCopyJobsRequest- AConsumerthat will call methods onListModelCopyJobsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelCustomizationJobs
default CompletableFuture<ListModelCustomizationJobsResponse> listModelCustomizationJobs(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest) 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:
- A Java Future containing the result of the ListModelCustomizationJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelCustomizationJobs
default CompletableFuture<ListModelCustomizationJobsResponse> listModelCustomizationJobs(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest) 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.Builderavoiding the need to create one manually viaListModelCustomizationJobsRequest.builder()- Parameters:
listModelCustomizationJobsRequest- AConsumerthat will call methods onListModelCustomizationJobsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListModelCustomizationJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelCustomizationJobsPaginator
default ListModelCustomizationJobsPublisher listModelCustomizationJobsPaginator(ListModelCustomizationJobsRequest listModelCustomizationJobsRequest) This is a variant of
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsPublisher publisher = client.listModelCustomizationJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsPublisher publisher = client.listModelCustomizationJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelCustomizationJobsPaginator
default ListModelCustomizationJobsPublisher listModelCustomizationJobsPaginator(Consumer<ListModelCustomizationJobsRequest.Builder> listModelCustomizationJobsRequest) This is a variant of
listModelCustomizationJobs(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsPublisher publisher = client.listModelCustomizationJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListModelCustomizationJobsPublisher publisher = client.listModelCustomizationJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListModelCustomizationJobsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListModelCustomizationJobsRequest.builder()- Parameters:
listModelCustomizationJobsRequest- AConsumerthat will call methods onListModelCustomizationJobsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelImportJobs
default CompletableFuture<ListModelImportJobsResponse> listModelImportJobs(ListModelImportJobsRequest listModelImportJobsRequest) 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:
- A Java Future containing the result of the ListModelImportJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelImportJobs
default CompletableFuture<ListModelImportJobsResponse> listModelImportJobs(Consumer<ListModelImportJobsRequest.Builder> listModelImportJobsRequest) 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.Builderavoiding the need to create one manually viaListModelImportJobsRequest.builder()- Parameters:
listModelImportJobsRequest- AConsumerthat will call methods onListModelImportJobsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListModelImportJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelImportJobsPaginator
default ListModelImportJobsPublisher listModelImportJobsPaginator(ListModelImportJobsRequest listModelImportJobsRequest) This is a variant of
listModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsPublisher publisher = client.listModelImportJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsPublisher publisher = client.listModelImportJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListModelImportJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelImportJobsPaginator
default ListModelImportJobsPublisher listModelImportJobsPaginator(Consumer<ListModelImportJobsRequest.Builder> listModelImportJobsRequest) This is a variant of
listModelImportJobs(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsPublisher publisher = client.listModelImportJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListModelImportJobsPublisher publisher = client.listModelImportJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListModelImportJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListModelImportJobsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListModelImportJobsRequest.builder()- Parameters:
listModelImportJobsRequest- AConsumerthat will call methods onListModelImportJobsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelInvocationJobs
default CompletableFuture<ListModelInvocationJobsResponse> listModelInvocationJobs(ListModelInvocationJobsRequest listModelInvocationJobsRequest) Lists all batch inference jobs in the account. For more information, see View details about a batch inference job.
- Parameters:
listModelInvocationJobsRequest-- Returns:
- A Java Future containing the result of the ListModelInvocationJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelInvocationJobs
default CompletableFuture<ListModelInvocationJobsResponse> listModelInvocationJobs(Consumer<ListModelInvocationJobsRequest.Builder> listModelInvocationJobsRequest) 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.Builderavoiding the need to create one manually viaListModelInvocationJobsRequest.builder()- Parameters:
listModelInvocationJobsRequest- AConsumerthat will call methods onListModelInvocationJobsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListModelInvocationJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelInvocationJobsPaginator
default ListModelInvocationJobsPublisher listModelInvocationJobsPaginator(ListModelInvocationJobsRequest listModelInvocationJobsRequest) This is a variant of
listModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsPublisher publisher = client.listModelInvocationJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsPublisher publisher = client.listModelInvocationJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModelInvocationJobsPaginator
default ListModelInvocationJobsPublisher listModelInvocationJobsPaginator(Consumer<ListModelInvocationJobsRequest.Builder> listModelInvocationJobsRequest) This is a variant of
listModelInvocationJobs(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsPublisher publisher = client.listModelInvocationJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListModelInvocationJobsPublisher publisher = client.listModelInvocationJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListModelInvocationJobsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListModelInvocationJobsRequest.builder()- Parameters:
listModelInvocationJobsRequest- AConsumerthat will call methods onListModelInvocationJobsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPromptRouters
default CompletableFuture<ListPromptRoutersResponse> listPromptRouters(ListPromptRoutersRequest listPromptRoutersRequest) Retrieves a list of prompt routers.
- Parameters:
listPromptRoutersRequest-- Returns:
- A Java Future containing the result of the ListPromptRouters operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPromptRouters
default CompletableFuture<ListPromptRoutersResponse> listPromptRouters(Consumer<ListPromptRoutersRequest.Builder> listPromptRoutersRequest) Retrieves a list of prompt routers.
This is a convenience which creates an instance of the
ListPromptRoutersRequest.Builderavoiding the need to create one manually viaListPromptRoutersRequest.builder()- Parameters:
listPromptRoutersRequest- AConsumerthat will call methods onListPromptRoutersRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListPromptRouters operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPromptRoutersPaginator
default ListPromptRoutersPublisher listPromptRoutersPaginator(ListPromptRoutersRequest listPromptRoutersRequest) This is a variant of
listPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersPublisher publisher = client.listPromptRoutersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersPublisher publisher = client.listPromptRoutersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListPromptRoutersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPromptRoutersPaginator
default ListPromptRoutersPublisher listPromptRoutersPaginator(Consumer<ListPromptRoutersRequest.Builder> listPromptRoutersRequest) This is a variant of
listPromptRouters(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersPublisher publisher = client.listPromptRoutersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListPromptRoutersPublisher publisher = client.listPromptRoutersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListPromptRoutersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListPromptRoutersResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListPromptRoutersRequest.builder()- Parameters:
listPromptRoutersRequest- AConsumerthat will call methods onListPromptRoutersRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProvisionedModelThroughputs
default CompletableFuture<ListProvisionedModelThroughputsResponse> listProvisionedModelThroughputs(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest) Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
- Parameters:
listProvisionedModelThroughputsRequest-- Returns:
- A Java Future containing the result of the ListProvisionedModelThroughputs operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProvisionedModelThroughputs
default CompletableFuture<ListProvisionedModelThroughputsResponse> listProvisionedModelThroughputs(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest) 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.Builderavoiding the need to create one manually viaListProvisionedModelThroughputsRequest.builder()- Parameters:
listProvisionedModelThroughputsRequest- AConsumerthat will call methods onListProvisionedModelThroughputsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListProvisionedModelThroughputs operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProvisionedModelThroughputsPaginator
default ListProvisionedModelThroughputsPublisher listProvisionedModelThroughputsPaginator(ListProvisionedModelThroughputsRequest listProvisionedModelThroughputsRequest) This is a variant of
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsPublisher publisher = client.listProvisionedModelThroughputsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsPublisher publisher = client.listProvisionedModelThroughputsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsResponse response) { //... }; });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 publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProvisionedModelThroughputsPaginator
default ListProvisionedModelThroughputsPublisher listProvisionedModelThroughputsPaginator(Consumer<ListProvisionedModelThroughputsRequest.Builder> listProvisionedModelThroughputsRequest) This is a variant of
listProvisionedModelThroughputs(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsPublisher publisher = client.listProvisionedModelThroughputsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrock.paginators.ListProvisionedModelThroughputsPublisher publisher = client.listProvisionedModelThroughputsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrock.model.ListProvisionedModelThroughputsResponse response) { //... }; });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.Builderavoiding the need to create one manually viaListProvisionedModelThroughputsRequest.builder()- Parameters:
listProvisionedModelThroughputsRequest- AConsumerthat will call methods onListProvisionedModelThroughputsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) List the tags associated with the specified resource.
For more information, see Tagging resources in the Amazon Bedrock User Guide.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) 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.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putModelInvocationLoggingConfiguration
default CompletableFuture<PutModelInvocationLoggingConfigurationResponse> putModelInvocationLoggingConfiguration(PutModelInvocationLoggingConfigurationRequest putModelInvocationLoggingConfigurationRequest) Set the configuration values for model invocation logging.
- Parameters:
putModelInvocationLoggingConfigurationRequest-- Returns:
- A Java Future containing the result of the PutModelInvocationLoggingConfiguration operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putModelInvocationLoggingConfiguration
default CompletableFuture<PutModelInvocationLoggingConfigurationResponse> putModelInvocationLoggingConfiguration(Consumer<PutModelInvocationLoggingConfigurationRequest.Builder> putModelInvocationLoggingConfigurationRequest) Set the configuration values for model invocation logging.
This is a convenience which creates an instance of the
PutModelInvocationLoggingConfigurationRequest.Builderavoiding the need to create one manually viaPutModelInvocationLoggingConfigurationRequest.builder()- Parameters:
putModelInvocationLoggingConfigurationRequest- AConsumerthat will call methods onPutModelInvocationLoggingConfigurationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutModelInvocationLoggingConfiguration operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putUseCaseForModelAccess
default CompletableFuture<PutUseCaseForModelAccessResponse> putUseCaseForModelAccess(PutUseCaseForModelAccessRequest putUseCaseForModelAccessRequest) Put usecase for model access.
- Parameters:
putUseCaseForModelAccessRequest-- Returns:
- A Java Future containing the result of the PutUseCaseForModelAccess operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putUseCaseForModelAccess
default CompletableFuture<PutUseCaseForModelAccessResponse> putUseCaseForModelAccess(Consumer<PutUseCaseForModelAccessRequest.Builder> putUseCaseForModelAccessRequest) Put usecase for model access.
This is a convenience which creates an instance of the
PutUseCaseForModelAccessRequest.Builderavoiding the need to create one manually viaPutUseCaseForModelAccessRequest.builder()- Parameters:
putUseCaseForModelAccessRequest- AConsumerthat will call methods onPutUseCaseForModelAccessRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutUseCaseForModelAccess operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
registerMarketplaceModelEndpoint
default CompletableFuture<RegisterMarketplaceModelEndpointResponse> registerMarketplaceModelEndpoint(RegisterMarketplaceModelEndpointRequest registerMarketplaceModelEndpointRequest) Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
- Parameters:
registerMarketplaceModelEndpointRequest-- Returns:
- A Java Future containing the result of the RegisterMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ServiceUnavailableException Returned if the service cannot complete the request.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
registerMarketplaceModelEndpoint
default CompletableFuture<RegisterMarketplaceModelEndpointResponse> registerMarketplaceModelEndpoint(Consumer<RegisterMarketplaceModelEndpointRequest.Builder> registerMarketplaceModelEndpointRequest) 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.Builderavoiding the need to create one manually viaRegisterMarketplaceModelEndpointRequest.builder()- Parameters:
registerMarketplaceModelEndpointRequest- AConsumerthat will call methods onRegisterMarketplaceModelEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RegisterMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ServiceUnavailableException Returned if the service cannot complete the request.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAutomatedReasoningPolicyBuildWorkflow
default CompletableFuture<StartAutomatedReasoningPolicyBuildWorkflowResponse> startAutomatedReasoningPolicyBuildWorkflow(StartAutomatedReasoningPolicyBuildWorkflowRequest startAutomatedReasoningPolicyBuildWorkflowRequest) 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:
- A Java Future containing the result of the StartAutomatedReasoningPolicyBuildWorkflow operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAutomatedReasoningPolicyBuildWorkflow
default CompletableFuture<StartAutomatedReasoningPolicyBuildWorkflowResponse> startAutomatedReasoningPolicyBuildWorkflow(Consumer<StartAutomatedReasoningPolicyBuildWorkflowRequest.Builder> startAutomatedReasoningPolicyBuildWorkflowRequest) 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.Builderavoiding the need to create one manually viaStartAutomatedReasoningPolicyBuildWorkflowRequest.builder()- Parameters:
startAutomatedReasoningPolicyBuildWorkflowRequest- AConsumerthat will call methods onStartAutomatedReasoningPolicyBuildWorkflowRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartAutomatedReasoningPolicyBuildWorkflow operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAutomatedReasoningPolicyTestWorkflow
default CompletableFuture<StartAutomatedReasoningPolicyTestWorkflowResponse> startAutomatedReasoningPolicyTestWorkflow(StartAutomatedReasoningPolicyTestWorkflowRequest startAutomatedReasoningPolicyTestWorkflowRequest) 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:
- A Java Future containing the result of the StartAutomatedReasoningPolicyTestWorkflow operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAutomatedReasoningPolicyTestWorkflow
default CompletableFuture<StartAutomatedReasoningPolicyTestWorkflowResponse> startAutomatedReasoningPolicyTestWorkflow(Consumer<StartAutomatedReasoningPolicyTestWorkflowRequest.Builder> startAutomatedReasoningPolicyTestWorkflowRequest) 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.Builderavoiding the need to create one manually viaStartAutomatedReasoningPolicyTestWorkflowRequest.builder()- Parameters:
startAutomatedReasoningPolicyTestWorkflowRequest- AConsumerthat will call methods onStartAutomatedReasoningPolicyTestWorkflowRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartAutomatedReasoningPolicyTestWorkflow operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopEvaluationJob
default CompletableFuture<StopEvaluationJobResponse> stopEvaluationJob(StopEvaluationJobRequest stopEvaluationJobRequest) Stops an evaluation job that is current being created or running.
- Parameters:
stopEvaluationJobRequest-- Returns:
- A Java Future containing the result of the StopEvaluationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopEvaluationJob
default CompletableFuture<StopEvaluationJobResponse> stopEvaluationJob(Consumer<StopEvaluationJobRequest.Builder> stopEvaluationJobRequest) Stops an evaluation job that is current being created or running.
This is a convenience which creates an instance of the
StopEvaluationJobRequest.Builderavoiding the need to create one manually viaStopEvaluationJobRequest.builder()- Parameters:
stopEvaluationJobRequest- AConsumerthat will call methods onStopEvaluationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopEvaluationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopModelCustomizationJob
default CompletableFuture<StopModelCustomizationJobResponse> stopModelCustomizationJob(StopModelCustomizationJobRequest stopModelCustomizationJobRequest) Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.
- Parameters:
stopModelCustomizationJobRequest-- Returns:
- A Java Future containing the result of the StopModelCustomizationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopModelCustomizationJob
default CompletableFuture<StopModelCustomizationJobResponse> stopModelCustomizationJob(Consumer<StopModelCustomizationJobRequest.Builder> stopModelCustomizationJobRequest) 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.Builderavoiding the need to create one manually viaStopModelCustomizationJobRequest.builder()- Parameters:
stopModelCustomizationJobRequest- AConsumerthat will call methods onStopModelCustomizationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopModelCustomizationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopModelInvocationJob
default CompletableFuture<StopModelInvocationJobResponse> stopModelInvocationJob(StopModelInvocationJobRequest stopModelInvocationJobRequest) 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:
- A Java Future containing the result of the StopModelInvocationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopModelInvocationJob
default CompletableFuture<StopModelInvocationJobResponse> stopModelInvocationJob(Consumer<StopModelInvocationJobRequest.Builder> stopModelInvocationJobRequest) 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.Builderavoiding the need to create one manually viaStopModelInvocationJobRequest.builder()- Parameters:
stopModelInvocationJobRequest- AConsumerthat will call methods onStopModelInvocationJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopModelInvocationJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) 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.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) 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.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAutomatedReasoningPolicy
default CompletableFuture<UpdateAutomatedReasoningPolicyResponse> updateAutomatedReasoningPolicy(UpdateAutomatedReasoningPolicyRequest updateAutomatedReasoningPolicyRequest) 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:
- A Java Future containing the result of the UpdateAutomatedReasoningPolicy operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAutomatedReasoningPolicy
default CompletableFuture<UpdateAutomatedReasoningPolicyResponse> updateAutomatedReasoningPolicy(Consumer<UpdateAutomatedReasoningPolicyRequest.Builder> updateAutomatedReasoningPolicyRequest) 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.Builderavoiding the need to create one manually viaUpdateAutomatedReasoningPolicyRequest.builder()- Parameters:
updateAutomatedReasoningPolicyRequest- AConsumerthat will call methods onUpdateAutomatedReasoningPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAutomatedReasoningPolicy operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAutomatedReasoningPolicyAnnotations
default CompletableFuture<UpdateAutomatedReasoningPolicyAnnotationsResponse> updateAutomatedReasoningPolicyAnnotations(UpdateAutomatedReasoningPolicyAnnotationsRequest updateAutomatedReasoningPolicyAnnotationsRequest) 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:
- A Java Future containing the result of the UpdateAutomatedReasoningPolicyAnnotations operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAutomatedReasoningPolicyAnnotations
default CompletableFuture<UpdateAutomatedReasoningPolicyAnnotationsResponse> updateAutomatedReasoningPolicyAnnotations(Consumer<UpdateAutomatedReasoningPolicyAnnotationsRequest.Builder> updateAutomatedReasoningPolicyAnnotationsRequest) 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.Builderavoiding the need to create one manually viaUpdateAutomatedReasoningPolicyAnnotationsRequest.builder()- Parameters:
updateAutomatedReasoningPolicyAnnotationsRequest- AConsumerthat will call methods onUpdateAutomatedReasoningPolicyAnnotationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAutomatedReasoningPolicyAnnotations operation returned
by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAutomatedReasoningPolicyTestCase
default CompletableFuture<UpdateAutomatedReasoningPolicyTestCaseResponse> updateAutomatedReasoningPolicyTestCase(UpdateAutomatedReasoningPolicyTestCaseRequest updateAutomatedReasoningPolicyTestCaseRequest) Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
- Parameters:
updateAutomatedReasoningPolicyTestCaseRequest-- Returns:
- A Java Future containing the result of the UpdateAutomatedReasoningPolicyTestCase operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAutomatedReasoningPolicyTestCase
default CompletableFuture<UpdateAutomatedReasoningPolicyTestCaseResponse> updateAutomatedReasoningPolicyTestCase(Consumer<UpdateAutomatedReasoningPolicyTestCaseRequest.Builder> updateAutomatedReasoningPolicyTestCaseRequest) 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.Builderavoiding the need to create one manually viaUpdateAutomatedReasoningPolicyTestCaseRequest.builder()- Parameters:
updateAutomatedReasoningPolicyTestCaseRequest- AConsumerthat will call methods onUpdateAutomatedReasoningPolicyTestCaseRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAutomatedReasoningPolicyTestCase operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ResourceInUseException Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateGuardrail
default CompletableFuture<UpdateGuardrailResponse> updateGuardrail(UpdateGuardrailRequest updateGuardrailRequest) Updates a guardrail with the values you specify.
-
Specify a
nameand optionaldescription. -
Specify messages for when the guardrail successfully blocks a prompt or a model response in the
blockedInputMessagingandblockedOutputsMessagingfields. -
Specify topics for the guardrail to deny in the
topicPolicyConfigobject. Each GuardrailTopicConfig object in thetopicsConfiglist pertains to one topic.-
Give a
nameanddescriptionso that the guardrail can properly identify the topic. -
Specify
DENYin thetypefield. -
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the
exampleslist.
-
-
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the
contentPolicyConfigobject. Each GuardrailContentFilterConfig object in thefiltersConfiglist 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
typefield. -
Specify the strength of the filter for prompts in the
inputStrengthfield and for model responses in thestrengthfield of the GuardrailContentFilterConfig.
-
-
(Optional) For security, include the ARN of a KMS key in the
kmsKeyIdfield.
- Parameters:
updateGuardrailRequest-- Returns:
- A Java Future containing the result of the UpdateGuardrail operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
updateGuardrail
default CompletableFuture<UpdateGuardrailResponse> updateGuardrail(Consumer<UpdateGuardrailRequest.Builder> updateGuardrailRequest) Updates a guardrail with the values you specify.
-
Specify a
nameand optionaldescription. -
Specify messages for when the guardrail successfully blocks a prompt or a model response in the
blockedInputMessagingandblockedOutputsMessagingfields. -
Specify topics for the guardrail to deny in the
topicPolicyConfigobject. Each GuardrailTopicConfig object in thetopicsConfiglist pertains to one topic.-
Give a
nameanddescriptionso that the guardrail can properly identify the topic. -
Specify
DENYin thetypefield. -
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the
exampleslist.
-
-
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the
contentPolicyConfigobject. Each GuardrailContentFilterConfig object in thefiltersConfiglist 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
typefield. -
Specify the strength of the filter for prompts in the
inputStrengthfield and for model responses in thestrengthfield of the GuardrailContentFilterConfig.
-
-
(Optional) For security, include the ARN of a KMS key in the
kmsKeyIdfield.
This is a convenience which creates an instance of the
UpdateGuardrailRequest.Builderavoiding the need to create one manually viaUpdateGuardrailRequest.builder()- Parameters:
updateGuardrailRequest- AConsumerthat will call methods onUpdateGuardrailRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateGuardrail operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
updateMarketplaceModelEndpoint
default CompletableFuture<UpdateMarketplaceModelEndpointResponse> updateMarketplaceModelEndpoint(UpdateMarketplaceModelEndpointRequest updateMarketplaceModelEndpointRequest) Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
- Parameters:
updateMarketplaceModelEndpointRequest-- Returns:
- A Java Future containing the result of the UpdateMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateMarketplaceModelEndpoint
default CompletableFuture<UpdateMarketplaceModelEndpointResponse> updateMarketplaceModelEndpoint(Consumer<UpdateMarketplaceModelEndpointRequest.Builder> updateMarketplaceModelEndpointRequest) 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.Builderavoiding the need to create one manually viaUpdateMarketplaceModelEndpointRequest.builder()- Parameters:
updateMarketplaceModelEndpointRequest- AConsumerthat will call methods onUpdateMarketplaceModelEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateMarketplaceModelEndpoint operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- ConflictException Error occurred because of a conflict while performing an operation.
- InternalServerException An internal server error occurred. Retry your request.
- ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateProvisionedModelThroughput
default CompletableFuture<UpdateProvisionedModelThroughputResponse> updateProvisionedModelThroughput(UpdateProvisionedModelThroughputRequest updateProvisionedModelThroughputRequest) 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:
- A Java Future containing the result of the UpdateProvisionedModelThroughput operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateProvisionedModelThroughput
default CompletableFuture<UpdateProvisionedModelThroughputResponse> updateProvisionedModelThroughput(Consumer<UpdateProvisionedModelThroughputRequest.Builder> updateProvisionedModelThroughputRequest) 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.Builderavoiding the need to create one manually viaUpdateProvisionedModelThroughputRequest.builder()- Parameters:
updateProvisionedModelThroughputRequest- AConsumerthat will call methods onUpdateProvisionedModelThroughputRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateProvisionedModelThroughput operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException The request is denied because of missing access permissions.
- ValidationException Input validation failed. Check your request parameters and retry the request.
- InternalServerException An internal server error occurred. Retry your request.
- ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aBedrockAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aBedrockAsyncClient.
-