Class: Aws::Bedrock::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Bedrock::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-bedrock/client.rb
Overview
An API client for Bedrock. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::Bedrock::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#batch_delete_advanced_prompt_optimization_job(params = {}) ⇒ Types::BatchDeleteAdvancedPromptOptimizationJobResponse
Batch delete the specified advanced prompt optimization jobs.
-
#batch_delete_evaluation_job(params = {}) ⇒ Types::BatchDeleteEvaluationJobResponse
Deletes a batch of evaluation jobs.
-
#cancel_automated_reasoning_policy_build_workflow(params = {}) ⇒ Struct
Cancels a running Automated Reasoning policy build workflow.
-
#create_advanced_prompt_optimization_job(params = {}) ⇒ Types::CreateAdvancedPromptOptimizationJobResponse
Creates an asynchronous batch job for advanced prompt optimization.
-
#create_automated_reasoning_policy(params = {}) ⇒ Types::CreateAutomatedReasoningPolicyResponse
Creates an Automated Reasoning policy for Amazon Bedrock Guardrails.
-
#create_automated_reasoning_policy_test_case(params = {}) ⇒ Types::CreateAutomatedReasoningPolicyTestCaseResponse
Creates a test for an Automated Reasoning policy.
-
#create_automated_reasoning_policy_version(params = {}) ⇒ Types::CreateAutomatedReasoningPolicyVersionResponse
Creates a new version of an existing Automated Reasoning policy.
-
#create_custom_model(params = {}) ⇒ Types::CreateCustomModelResponse
Creates a new custom model in Amazon Bedrock.
-
#create_custom_model_deployment(params = {}) ⇒ Types::CreateCustomModelDeploymentResponse
Deploys a custom model for on-demand inference in Amazon Bedrock.
-
#create_evaluation_job(params = {}) ⇒ Types::CreateEvaluationJobResponse
Creates an evaluation job.
-
#create_foundation_model_agreement(params = {}) ⇒ Types::CreateFoundationModelAgreementResponse
Request a model access agreement for the specified model.
-
#create_guardrail(params = {}) ⇒ Types::CreateGuardrailResponse
Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
-
#create_guardrail_version(params = {}) ⇒ Types::CreateGuardrailVersionResponse
Creates a version of the guardrail.
-
#create_inference_profile(params = {}) ⇒ Types::CreateInferenceProfileResponse
Creates an application inference profile to track metrics and costs when invoking a model.
-
#create_marketplace_model_endpoint(params = {}) ⇒ Types::CreateMarketplaceModelEndpointResponse
Creates an endpoint for a model from Amazon Bedrock Marketplace.
-
#create_model_copy_job(params = {}) ⇒ Types::CreateModelCopyJobResponse
Copies a model to another region so that it can be used there.
-
#create_model_customization_job(params = {}) ⇒ Types::CreateModelCustomizationJobResponse
Creates a fine-tuning job to customize a base model.
-
#create_model_import_job(params = {}) ⇒ Types::CreateModelImportJobResponse
Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker.
-
#create_model_invocation_job(params = {}) ⇒ Types::CreateModelInvocationJobResponse
Creates a batch inference job to invoke a model on multiple prompts.
-
#create_prompt_router(params = {}) ⇒ Types::CreatePromptRouterResponse
Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.
-
#create_provisioned_model_throughput(params = {}) ⇒ Types::CreateProvisionedModelThroughputResponse
Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify.
-
#delete_automated_reasoning_policy(params = {}) ⇒ Struct
Deletes an Automated Reasoning policy or policy version.
-
#delete_automated_reasoning_policy_build_workflow(params = {}) ⇒ Struct
Deletes an Automated Reasoning policy build workflow and its associated artifacts.
-
#delete_automated_reasoning_policy_test_case(params = {}) ⇒ Struct
Deletes an Automated Reasoning policy test.
-
#delete_custom_model(params = {}) ⇒ Struct
Deletes a custom model that you created earlier.
-
#delete_custom_model_deployment(params = {}) ⇒ Struct
Deletes a custom model deployment.
-
#delete_enforced_guardrail_configuration(params = {}) ⇒ Struct
Deletes the account-level enforced guardrail configuration.
-
#delete_foundation_model_agreement(params = {}) ⇒ Struct
Delete the model access agreement for the specified model.
-
#delete_guardrail(params = {}) ⇒ Struct
Deletes a guardrail.
-
#delete_imported_model(params = {}) ⇒ Struct
Deletes a custom model that you imported earlier.
-
#delete_inference_profile(params = {}) ⇒ Struct
Deletes an application inference profile.
-
#delete_marketplace_model_endpoint(params = {}) ⇒ Struct
Deletes an endpoint for a model from Amazon Bedrock Marketplace.
-
#delete_model_invocation_logging_configuration(params = {}) ⇒ Struct
Delete the invocation logging.
-
#delete_prompt_router(params = {}) ⇒ Struct
Deletes a specified prompt router.
-
#delete_provisioned_model_throughput(params = {}) ⇒ Struct
Deletes a Provisioned Throughput.
-
#delete_resource_policy(params = {}) ⇒ Struct
Deletes a previously created Bedrock resource policy.
-
#deregister_marketplace_model_endpoint(params = {}) ⇒ Struct
Deregisters an endpoint for a model from Amazon Bedrock Marketplace.
-
#export_automated_reasoning_policy_version(params = {}) ⇒ Types::ExportAutomatedReasoningPolicyVersionResponse
Exports the policy definition for an Automated Reasoning policy version.
-
#get_advanced_prompt_optimization_job(params = {}) ⇒ Types::GetAdvancedPromptOptimizationJobResponse
Retrieves the details and status of an advanced prompt optimization job.
-
#get_automated_reasoning_policy(params = {}) ⇒ Types::GetAutomatedReasoningPolicyResponse
Retrieves details about an Automated Reasoning policy or policy version.
-
#get_automated_reasoning_policy_annotations(params = {}) ⇒ Types::GetAutomatedReasoningPolicyAnnotationsResponse
Retrieves the current annotations for an Automated Reasoning policy build workflow.
-
#get_automated_reasoning_policy_build_workflow(params = {}) ⇒ Types::GetAutomatedReasoningPolicyBuildWorkflowResponse
Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.
-
#get_automated_reasoning_policy_build_workflow_result_assets(params = {}) ⇒ Types::GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse
Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.
-
#get_automated_reasoning_policy_next_scenario(params = {}) ⇒ Types::GetAutomatedReasoningPolicyNextScenarioResponse
Retrieves the next test scenario for validating an Automated Reasoning policy.
-
#get_automated_reasoning_policy_test_case(params = {}) ⇒ Types::GetAutomatedReasoningPolicyTestCaseResponse
Retrieves details about a specific Automated Reasoning policy test.
-
#get_automated_reasoning_policy_test_result(params = {}) ⇒ Types::GetAutomatedReasoningPolicyTestResultResponse
Retrieves the test result for a specific Automated Reasoning policy test.
-
#get_custom_model(params = {}) ⇒ Types::GetCustomModelResponse
Get the properties associated with a Amazon Bedrock custom model that you have created.
-
#get_custom_model_deployment(params = {}) ⇒ Types::GetCustomModelDeploymentResponse
Retrieves information about a custom model deployment, including its status, configuration, and metadata.
-
#get_evaluation_job(params = {}) ⇒ Types::GetEvaluationJobResponse
Gets information about an evaluation job, such as the status of the job.
-
#get_foundation_model(params = {}) ⇒ Types::GetFoundationModelResponse
Get details about a Amazon Bedrock foundation model.
-
#get_foundation_model_availability(params = {}) ⇒ Types::GetFoundationModelAvailabilityResponse
Get information about the Foundation model availability.
-
#get_guardrail(params = {}) ⇒ Types::GetGuardrailResponse
Gets details about a guardrail.
-
#get_imported_model(params = {}) ⇒ Types::GetImportedModelResponse
Gets properties associated with a customized model you imported.
-
#get_inference_profile(params = {}) ⇒ Types::GetInferenceProfileResponse
Gets information about an inference profile.
-
#get_marketplace_model_endpoint(params = {}) ⇒ Types::GetMarketplaceModelEndpointResponse
Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
-
#get_model_copy_job(params = {}) ⇒ Types::GetModelCopyJobResponse
Retrieves information about a model copy job.
-
#get_model_customization_job(params = {}) ⇒ Types::GetModelCustomizationJobResponse
Retrieves the properties associated with a model-customization job, including the status of the job.
-
#get_model_import_job(params = {}) ⇒ Types::GetModelImportJobResponse
Retrieves the properties associated with import model job, including the status of the job.
-
#get_model_invocation_job(params = {}) ⇒ Types::GetModelInvocationJobResponse
Gets details about a batch inference job.
-
#get_model_invocation_logging_configuration(params = {}) ⇒ Types::GetModelInvocationLoggingConfigurationResponse
Get the current configuration values for model invocation logging.
-
#get_prompt_router(params = {}) ⇒ Types::GetPromptRouterResponse
Retrieves details about a prompt router.
-
#get_provisioned_model_throughput(params = {}) ⇒ Types::GetProvisionedModelThroughputResponse
Returns details for a Provisioned Throughput.
-
#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyResponse
Gets the resource policy document for a Bedrock resource.
-
#get_use_case_for_model_access(params = {}) ⇒ Types::GetUseCaseForModelAccessResponse
Get usecase for model access.
-
#list_advanced_prompt_optimization_jobs(params = {}) ⇒ Types::ListAdvancedPromptOptimizationJobsResponse
Lists all advanced prompt optimization jobs for the account.
-
#list_automated_reasoning_policies(params = {}) ⇒ Types::ListAutomatedReasoningPoliciesResponse
Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN.
-
#list_automated_reasoning_policy_build_workflows(params = {}) ⇒ Types::ListAutomatedReasoningPolicyBuildWorkflowsResponse
Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.
-
#list_automated_reasoning_policy_test_cases(params = {}) ⇒ Types::ListAutomatedReasoningPolicyTestCasesResponse
Lists tests for an Automated Reasoning policy.
-
#list_automated_reasoning_policy_test_results(params = {}) ⇒ Types::ListAutomatedReasoningPolicyTestResultsResponse
Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.
-
#list_custom_model_deployments(params = {}) ⇒ Types::ListCustomModelDeploymentsResponse
Lists custom model deployments in your account.
-
#list_custom_models(params = {}) ⇒ Types::ListCustomModelsResponse
Returns a list of the custom models that you have created with the ‘CreateModelCustomizationJob` operation.
-
#list_enforced_guardrails_configuration(params = {}) ⇒ Types::ListEnforcedGuardrailsConfigurationResponse
Lists the account-level enforced guardrail configurations.
-
#list_evaluation_jobs(params = {}) ⇒ Types::ListEvaluationJobsResponse
Lists all existing evaluation jobs.
-
#list_foundation_model_agreement_offers(params = {}) ⇒ Types::ListFoundationModelAgreementOffersResponse
Get the offers associated with the specified model.
-
#list_foundation_models(params = {}) ⇒ Types::ListFoundationModelsResponse
Lists Amazon Bedrock foundation models that you can use.
-
#list_guardrails(params = {}) ⇒ Types::ListGuardrailsResponse
Lists details about all the guardrails in an account.
-
#list_imported_models(params = {}) ⇒ Types::ListImportedModelsResponse
Returns a list of models you’ve imported.
-
#list_inference_profiles(params = {}) ⇒ Types::ListInferenceProfilesResponse
Returns a list of inference profiles that you can use.
-
#list_marketplace_model_endpoints(params = {}) ⇒ Types::ListMarketplaceModelEndpointsResponse
Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
-
#list_model_copy_jobs(params = {}) ⇒ Types::ListModelCopyJobsResponse
Returns a list of model copy jobs that you have submitted.
-
#list_model_customization_jobs(params = {}) ⇒ Types::ListModelCustomizationJobsResponse
Returns a list of model customization jobs that you have submitted.
-
#list_model_import_jobs(params = {}) ⇒ Types::ListModelImportJobsResponse
Returns a list of import jobs you’ve submitted.
-
#list_model_invocation_jobs(params = {}) ⇒ Types::ListModelInvocationJobsResponse
Lists all batch inference jobs in the account.
-
#list_prompt_routers(params = {}) ⇒ Types::ListPromptRoutersResponse
Retrieves a list of prompt routers.
-
#list_provisioned_model_throughputs(params = {}) ⇒ Types::ListProvisionedModelThroughputsResponse
Lists the Provisioned Throughputs in the account.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List the tags associated with the specified resource.
-
#put_enforced_guardrail_configuration(params = {}) ⇒ Types::PutEnforcedGuardrailConfigurationResponse
Sets the account-level enforced guardrail configuration.
-
#put_model_invocation_logging_configuration(params = {}) ⇒ Struct
Set the configuration values for model invocation logging.
-
#put_resource_policy(params = {}) ⇒ Types::PutResourcePolicyResponse
Adds a resource policy for a Bedrock resource.
-
#put_use_case_for_model_access(params = {}) ⇒ Struct
Put usecase for model access.
-
#register_marketplace_model_endpoint(params = {}) ⇒ Types::RegisterMarketplaceModelEndpointResponse
Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
-
#start_automated_reasoning_policy_build_workflow(params = {}) ⇒ Types::StartAutomatedReasoningPolicyBuildWorkflowResponse
Starts a new build workflow for an Automated Reasoning policy.
-
#start_automated_reasoning_policy_test_workflow(params = {}) ⇒ Types::StartAutomatedReasoningPolicyTestWorkflowResponse
Initiates a test workflow to validate Automated Reasoning policy tests.
-
#stop_advanced_prompt_optimization_job(params = {}) ⇒ Struct
Stops an in-progress advanced prompt optimization job.
-
#stop_evaluation_job(params = {}) ⇒ Struct
Stops an evaluation job that is current being created or running.
-
#stop_model_customization_job(params = {}) ⇒ Struct
Stops an active model customization job.
-
#stop_model_invocation_job(params = {}) ⇒ Struct
Stops a batch inference job.
-
#tag_resource(params = {}) ⇒ Struct
Associate tags with a resource.
-
#untag_resource(params = {}) ⇒ Struct
Remove one or more tags from a resource.
-
#update_automated_reasoning_policy(params = {}) ⇒ Types::UpdateAutomatedReasoningPolicyResponse
Updates an existing Automated Reasoning policy with new rules, variables, or configuration.
-
#update_automated_reasoning_policy_annotations(params = {}) ⇒ Types::UpdateAutomatedReasoningPolicyAnnotationsResponse
Updates the annotations for an Automated Reasoning policy build workflow.
-
#update_automated_reasoning_policy_test_case(params = {}) ⇒ Types::UpdateAutomatedReasoningPolicyTestCaseResponse
Updates an existing Automated Reasoning policy test.
-
#update_custom_model_deployment(params = {}) ⇒ Types::UpdateCustomModelDeploymentResponse
Updates a custom model deployment with a new custom model.
-
#update_guardrail(params = {}) ⇒ Types::UpdateGuardrailResponse
Updates a guardrail with the values you specify.
-
#update_marketplace_model_endpoint(params = {}) ⇒ Types::UpdateMarketplaceModelEndpointResponse
Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
-
#update_provisioned_model_throughput(params = {}) ⇒ Struct
Updates the name or associated model for a Provisioned Throughput.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
475 476 477 |
# File 'lib/aws-sdk-bedrock/client.rb', line 475 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8262 8263 8264 |
# File 'lib/aws-sdk-bedrock/client.rb', line 8262 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8265 8266 8267 |
# File 'lib/aws-sdk-bedrock/client.rb', line 8265 def errors_module Errors end |
Instance Method Details
#batch_delete_advanced_prompt_optimization_job(params = {}) ⇒ Types::BatchDeleteAdvancedPromptOptimizationJobResponse
Batch delete the specified advanced prompt optimization jobs.
511 512 513 514 |
# File 'lib/aws-sdk-bedrock/client.rb', line 511 def batch_delete_advanced_prompt_optimization_job(params = {}, = {}) req = build_request(:batch_delete_advanced_prompt_optimization_job, params) req.send_request() end |
#batch_delete_evaluation_job(params = {}) ⇒ Types::BatchDeleteEvaluationJobResponse
Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has following status ‘FAILED`, `COMPLETED`, and `STOPPED`. You can request up to 25 model evaluation jobs be deleted in a single request.
579 580 581 582 |
# File 'lib/aws-sdk-bedrock/client.rb', line 579 def batch_delete_evaluation_job(params = {}, = {}) req = build_request(:batch_delete_evaluation_job, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 |
# File 'lib/aws-sdk-bedrock/client.rb', line 8235 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::Bedrock') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-bedrock' context[:gem_version] = '1.83.0' Seahorse::Client::Request.new(handlers, context) end |
#cancel_automated_reasoning_policy_build_workflow(params = {}) ⇒ Struct
Cancels a running Automated Reasoning policy build workflow. This stops the policy generation process and prevents further processing of the source documents.
610 611 612 613 |
# File 'lib/aws-sdk-bedrock/client.rb', line 610 def cancel_automated_reasoning_policy_build_workflow(params = {}, = {}) req = build_request(:cancel_automated_reasoning_policy_build_workflow, params) req.send_request() end |
#create_advanced_prompt_optimization_job(params = {}) ⇒ Types::CreateAdvancedPromptOptimizationJobResponse
Creates an asynchronous batch job for advanced prompt optimization.
692 693 694 695 |
# File 'lib/aws-sdk-bedrock/client.rb', line 692 def create_advanced_prompt_optimization_job(params = {}, = {}) req = build_request(:create_advanced_prompt_optimization_job, params) req.send_request() end |
#create_automated_reasoning_policy(params = {}) ⇒ Types::CreateAutomatedReasoningPolicyResponse
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.
809 810 811 812 |
# File 'lib/aws-sdk-bedrock/client.rb', line 809 def create_automated_reasoning_policy(params = {}, = {}) req = build_request(:create_automated_reasoning_policy, params) req.send_request() end |
#create_automated_reasoning_policy_test_case(params = {}) ⇒ Types::CreateAutomatedReasoningPolicyTestCaseResponse
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.
912 913 914 915 |
# File 'lib/aws-sdk-bedrock/client.rb', line 912 def create_automated_reasoning_policy_test_case(params = {}, = {}) req = build_request(:create_automated_reasoning_policy_test_case, params) req.send_request() end |
#create_automated_reasoning_policy_version(params = {}) ⇒ Types::CreateAutomatedReasoningPolicyVersionResponse
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.
978 979 980 981 |
# File 'lib/aws-sdk-bedrock/client.rb', line 978 def create_automated_reasoning_policy_version(params = {}, = {}) req = build_request(:create_automated_reasoning_policy_version, params) req.send_request() end |
#create_custom_model(params = {}) ⇒ Types::CreateCustomModelResponse
Creates a new custom model in Amazon Bedrock. After the model is active, you can use it for inference.
To use the model for inference, you must purchase Provisioned Throughput for it. You can’t use On-demand inference with these custom models. For more information about Provisioned Throughput, see [Provisioned Throughput].
The model appears in ‘ListCustomModels` with a `customizationType` of `imported`. To track the status of the new model, you use the `GetCustomModel` API operation. The model can be in the following states:
-
‘Creating` - Initial state during validation and registration
-
‘Active` - Model is ready for use in inference
-
‘Failed` - Creation process encountered an error
**Related APIs**
- GetCustomModel][2
- ListCustomModels][3
- DeleteCustomModel][4
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html [2]: docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModel.html [3]: docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModels.html [4]: docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html
1138 1139 1140 1141 |
# File 'lib/aws-sdk-bedrock/client.rb', line 1138 def create_custom_model(params = {}, = {}) req = build_request(:create_custom_model, params) req.send_request() end |
#create_custom_model_deployment(params = {}) ⇒ Types::CreateCustomModelDeploymentResponse
Deploys a custom model for on-demand inference in Amazon Bedrock. After you deploy your custom model, you use the deployment’s Amazon Resource Name (ARN) as the ‘modelId` parameter when you submit prompts and generate responses with model inference.
For more information about setting up on-demand inference for custom models, see [Set up inference for a custom model].
The following actions are related to the ‘CreateCustomModelDeployment` operation:
- GetCustomModelDeployment][2
- ListCustomModelDeployments][3
- DeleteCustomModelDeployment][4
[1]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html [2]: docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html [3]: docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html [4]: docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html
1224 1225 1226 1227 |
# File 'lib/aws-sdk-bedrock/client.rb', line 1224 def create_custom_model_deployment(params = {}, = {}) req = build_request(:create_custom_model_deployment, params) req.send_request() end |
#create_evaluation_job(params = {}) ⇒ Types::CreateEvaluationJobResponse
Creates an evaluation job.
1723 1724 1725 1726 |
# File 'lib/aws-sdk-bedrock/client.rb', line 1723 def create_evaluation_job(params = {}, = {}) req = build_request(:create_evaluation_job, params) req.send_request() end |
#create_foundation_model_agreement(params = {}) ⇒ Types::CreateFoundationModelAgreementResponse
Request a model access agreement for the specified model.
1755 1756 1757 1758 |
# File 'lib/aws-sdk-bedrock/client.rb', line 1755 def create_foundation_model_agreement(params = {}, = {}) req = build_request(:create_foundation_model_agreement, params) req.send_request() end |
#create_guardrail(params = {}) ⇒ Types::CreateGuardrailResponse
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*.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
1988 1989 1990 1991 |
# File 'lib/aws-sdk-bedrock/client.rb', line 1988 def create_guardrail(params = {}, = {}) req = build_request(:create_guardrail, params) req.send_request() end |
#create_guardrail_version(params = {}) ⇒ Types::CreateGuardrailVersionResponse
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.
2039 2040 2041 2042 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2039 def create_guardrail_version(params = {}, = {}) req = build_request(:create_guardrail_version, params) req.send_request() end |
#create_inference_profile(params = {}) ⇒ Types::CreateInferenceProfileResponse
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.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
2121 2122 2123 2124 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2121 def create_inference_profile(params = {}, = {}) req = build_request(:create_inference_profile, params) req.send_request() end |
#create_marketplace_model_endpoint(params = {}) ⇒ Types::CreateMarketplaceModelEndpointResponse
Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.
2214 2215 2216 2217 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2214 def create_marketplace_model_endpoint(params = {}, = {}) req = build_request(:create_marketplace_model_endpoint, params) req.send_request() end |
#create_model_copy_job(params = {}) ⇒ Types::CreateModelCopyJobResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/copy-model.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
2286 2287 2288 2289 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2286 def create_model_copy_job(params = {}, = {}) req = build_request(:create_model_copy_job, params) req.send_request() end |
#create_model_customization_job(params = {}) ⇒ Types::CreateModelCustomizationJobResponse
Creates a fine-tuning job to customize a base model.
You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.
For information on the format of training and validation data, see [Prepare the datasets].
Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the ‘GetModelCustomizationJob` operation to retrieve the job status.
For more information, see [Custom models] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-prepare.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html [3]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
2502 2503 2504 2505 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2502 def create_model_customization_job(params = {}, = {}) req = build_request(:create_model_customization_job, params) req.send_request() end |
#create_model_import_job(params = {}) ⇒ Types::CreateModelImportJobResponse
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]
[1]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
2593 2594 2595 2596 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2593 def create_model_import_job(params = {}, = {}) req = build_request(:create_model_import_job, params) req.send_request() end |
#create_model_invocation_job(params = {}) ⇒ Types::CreateModelInvocationJobResponse
Creates a batch inference job to invoke a model on multiple prompts. Format your data according to [Format your inference data] and upload it to an Amazon S3 bucket. For more information, see [Process multiple prompts with batch inference].
The response returns a ‘jobArn` that you can use to stop or get details about the job.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data [2]: docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html
2718 2719 2720 2721 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2718 def create_model_invocation_job(params = {}, = {}) req = build_request(:create_model_invocation_job, params) req.send_request() end |
#create_prompt_router(params = {}) ⇒ Types::CreatePromptRouterResponse
Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.
2794 2795 2796 2797 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2794 def create_prompt_router(params = {}, = {}) req = build_request(:create_prompt_router, params) req.send_request() end |
#create_provisioned_model_throughput(params = {}) ⇒ Types::CreateProvisionedModelThroughputResponse
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].
[1]: aws.amazon.com/bedrock/pricing/ [2]: docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html [3]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
2905 2906 2907 2908 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2905 def create_provisioned_model_throughput(params = {}, = {}) req = build_request(:create_provisioned_model_throughput, params) req.send_request() end |
#delete_automated_reasoning_policy(params = {}) ⇒ Struct
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.
2940 2941 2942 2943 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2940 def delete_automated_reasoning_policy(params = {}, = {}) req = build_request(:delete_automated_reasoning_policy, params) req.send_request() end |
#delete_automated_reasoning_policy_build_workflow(params = {}) ⇒ Struct
Deletes an Automated Reasoning policy build workflow and its associated artifacts. This permanently removes the workflow history and any generated assets.
2975 2976 2977 2978 |
# File 'lib/aws-sdk-bedrock/client.rb', line 2975 def delete_automated_reasoning_policy_build_workflow(params = {}, = {}) req = build_request(:delete_automated_reasoning_policy_build_workflow, params) req.send_request() end |
#delete_automated_reasoning_policy_test_case(params = {}) ⇒ Struct
Deletes an Automated Reasoning policy test. This operation is idempotent; if you delete a test more than once, each call succeeds.
3008 3009 3010 3011 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3008 def delete_automated_reasoning_policy_test_case(params = {}, = {}) req = build_request(:delete_automated_reasoning_policy_test_case, params) req.send_request() end |
#delete_custom_model(params = {}) ⇒ Struct
Deletes a custom model that you created earlier. For more information, see [Custom models] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
3036 3037 3038 3039 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3036 def delete_custom_model(params = {}, = {}) req = build_request(:delete_custom_model, params) req.send_request() end |
#delete_custom_model_deployment(params = {}) ⇒ Struct
Deletes a custom model deployment. This operation stops the deployment and removes it from your account. After deletion, the deployment ARN can no longer be used for inference requests.
The following actions are related to the ‘DeleteCustomModelDeployment` operation:
- CreateCustomModelDeployment][1
- GetCustomModelDeployment][2
- ListCustomModelDeployments][3
[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html [2]: docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html [3]: docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html
3076 3077 3078 3079 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3076 def delete_custom_model_deployment(params = {}, = {}) req = build_request(:delete_custom_model_deployment, params) req.send_request() end |
#delete_enforced_guardrail_configuration(params = {}) ⇒ Struct
Deletes the account-level enforced guardrail configuration.
3098 3099 3100 3101 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3098 def delete_enforced_guardrail_configuration(params = {}, = {}) req = build_request(:delete_enforced_guardrail_configuration, params) req.send_request() end |
#delete_foundation_model_agreement(params = {}) ⇒ Struct
Delete the model access agreement for the specified model.
3120 3121 3122 3123 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3120 def delete_foundation_model_agreement(params = {}, = {}) req = build_request(:delete_foundation_model_agreement, params) req.send_request() end |
#delete_guardrail(params = {}) ⇒ Struct
Deletes a guardrail.
-
To delete a guardrail, only specify the ARN of the guardrail in the ‘guardrailIdentifier` field. If you delete a guardrail, all of its versions will be deleted.
-
To delete a version of a guardrail, specify the ARN of the guardrail in the ‘guardrailIdentifier` field and the version in the `guardrailVersion` field.
3154 3155 3156 3157 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3154 def delete_guardrail(params = {}, = {}) req = build_request(:delete_guardrail, params) req.send_request() end |
#delete_imported_model(params = {}) ⇒ Struct
Deletes a custom model that you imported earlier. For more information, see [Import a customized model] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
3183 3184 3185 3186 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3183 def delete_imported_model(params = {}, = {}) req = build_request(:delete_imported_model, params) req.send_request() end |
#delete_inference_profile(params = {}) ⇒ Struct
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.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
3212 3213 3214 3215 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3212 def delete_inference_profile(params = {}, = {}) req = build_request(:delete_inference_profile, params) req.send_request() end |
#delete_marketplace_model_endpoint(params = {}) ⇒ Struct
Deletes an endpoint for a model from Amazon Bedrock Marketplace.
3234 3235 3236 3237 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3234 def delete_marketplace_model_endpoint(params = {}, = {}) req = build_request(:delete_marketplace_model_endpoint, params) req.send_request() end |
#delete_model_invocation_logging_configuration(params = {}) ⇒ Struct
Delete the invocation logging.
3247 3248 3249 3250 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3247 def delete_model_invocation_logging_configuration(params = {}, = {}) req = build_request(:delete_model_invocation_logging_configuration, params) req.send_request() end |
#delete_prompt_router(params = {}) ⇒ Struct
Deletes a specified prompt router. This action cannot be undone.
3269 3270 3271 3272 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3269 def delete_prompt_router(params = {}, = {}) req = build_request(:delete_prompt_router, params) req.send_request() end |
#delete_provisioned_model_throughput(params = {}) ⇒ Struct
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
3298 3299 3300 3301 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3298 def delete_provisioned_model_throughput(params = {}, = {}) req = build_request(:delete_provisioned_model_throughput, params) req.send_request() end |
#delete_resource_policy(params = {}) ⇒ Struct
Deletes a previously created Bedrock resource policy.
3320 3321 3322 3323 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3320 def delete_resource_policy(params = {}, = {}) req = build_request(:delete_resource_policy, params) req.send_request() end |
#deregister_marketplace_model_endpoint(params = {}) ⇒ Struct
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.
3344 3345 3346 3347 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3344 def deregister_marketplace_model_endpoint(params = {}, = {}) req = build_request(:deregister_marketplace_model_endpoint, params) req.send_request() end |
#export_automated_reasoning_policy_version(params = {}) ⇒ Types::ExportAutomatedReasoningPolicyVersionResponse
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.
3390 3391 3392 3393 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3390 def export_automated_reasoning_policy_version(params = {}, = {}) req = build_request(:export_automated_reasoning_policy_version, params) req.send_request() end |
#get_advanced_prompt_optimization_job(params = {}) ⇒ Types::GetAdvancedPromptOptimizationJobResponse
Retrieves the details and status of an advanced prompt optimization job.
3446 3447 3448 3449 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3446 def get_advanced_prompt_optimization_job(params = {}, = {}) req = build_request(:get_advanced_prompt_optimization_job, params) req.send_request() end |
#get_automated_reasoning_policy(params = {}) ⇒ Types::GetAutomatedReasoningPolicyResponse
Retrieves details about an Automated Reasoning policy or policy version. Returns information including the policy definition, metadata, and timestamps.
3494 3495 3496 3497 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3494 def get_automated_reasoning_policy(params = {}, = {}) req = build_request(:get_automated_reasoning_policy, params) req.send_request() end |
#get_automated_reasoning_policy_annotations(params = {}) ⇒ Types::GetAutomatedReasoningPolicyAnnotationsResponse
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.
3576 3577 3578 3579 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3576 def get_automated_reasoning_policy_annotations(params = {}, = {}) req = build_request(:get_automated_reasoning_policy_annotations, params) req.send_request() end |
#get_automated_reasoning_policy_build_workflow(params = {}) ⇒ Types::GetAutomatedReasoningPolicyBuildWorkflowResponse
Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.
3626 3627 3628 3629 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3626 def get_automated_reasoning_policy_build_workflow(params = {}, = {}) req = build_request(:get_automated_reasoning_policy_build_workflow, params) req.send_request() end |
#get_automated_reasoning_policy_build_workflow_result_assets(params = {}) ⇒ Types::GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse
Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.
3842 3843 3844 3845 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3842 def get_automated_reasoning_policy_build_workflow_result_assets(params = {}, = {}) req = build_request(:get_automated_reasoning_policy_build_workflow_result_assets, params) req.send_request() end |
#get_automated_reasoning_policy_next_scenario(params = {}) ⇒ Types::GetAutomatedReasoningPolicyNextScenarioResponse
Retrieves the next test scenario for validating an Automated Reasoning policy. This is used during the interactive policy refinement process to test policy behavior.
3884 3885 3886 3887 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3884 def get_automated_reasoning_policy_next_scenario(params = {}, = {}) req = build_request(:get_automated_reasoning_policy_next_scenario, params) req.send_request() end |
#get_automated_reasoning_policy_test_case(params = {}) ⇒ Types::GetAutomatedReasoningPolicyTestCaseResponse
Retrieves details about a specific Automated Reasoning policy test.
3925 3926 3927 3928 |
# File 'lib/aws-sdk-bedrock/client.rb', line 3925 def get_automated_reasoning_policy_test_case(params = {}, = {}) req = build_request(:get_automated_reasoning_policy_test_case, params) req.send_request() end |
#get_automated_reasoning_policy_test_result(params = {}) ⇒ Types::GetAutomatedReasoningPolicyTestResultResponse
Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.
4082 4083 4084 4085 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4082 def get_automated_reasoning_policy_test_result(params = {}, = {}) req = build_request(:get_automated_reasoning_policy_test_result, params) req.send_request() end |
#get_custom_model(params = {}) ⇒ Types::GetCustomModelResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
4178 4179 4180 4181 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4178 def get_custom_model(params = {}, = {}) req = build_request(:get_custom_model, params) req.send_request() end |
#get_custom_model_deployment(params = {}) ⇒ Types::GetCustomModelDeploymentResponse
Retrieves information about a custom model deployment, including its status, configuration, and metadata. Use this operation to monitor the deployment status and retrieve details needed for inference requests.
The following actions are related to the ‘GetCustomModelDeployment` operation:
- CreateCustomModelDeployment][1
- ListCustomModelDeployments][2
- DeleteCustomModelDeployment][3
[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html [2]: docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html [3]: docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html
4241 4242 4243 4244 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4241 def get_custom_model_deployment(params = {}, = {}) req = build_request(:get_custom_model_deployment, params) req.send_request() end |
#get_evaluation_job(params = {}) ⇒ Types::GetEvaluationJobResponse
Gets information about an evaluation job, such as the status of the job.
4425 4426 4427 4428 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4425 def get_evaluation_job(params = {}, = {}) req = build_request(:get_evaluation_job, params) req.send_request() end |
#get_foundation_model(params = {}) ⇒ Types::GetFoundationModelResponse
Get details about a Amazon Bedrock foundation model.
4470 4471 4472 4473 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4470 def get_foundation_model(params = {}, = {}) req = build_request(:get_foundation_model, params) req.send_request() end |
#get_foundation_model_availability(params = {}) ⇒ Types::GetFoundationModelAvailabilityResponse
Get information about the Foundation model availability.
4507 4508 4509 4510 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4507 def get_foundation_model_availability(params = {}, = {}) req = build_request(:get_foundation_model_availability, params) req.send_request() end |
#get_guardrail(params = {}) ⇒ Types::GetGuardrailResponse
Gets details about a guardrail. If you don’t specify a version, the response returns details for the ‘DRAFT` version.
4638 4639 4640 4641 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4638 def get_guardrail(params = {}, = {}) req = build_request(:get_guardrail, params) req.send_request() end |
#get_imported_model(params = {}) ⇒ Types::GetImportedModelResponse
Gets properties associated with a customized model you imported.
4685 4686 4687 4688 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4685 def get_imported_model(params = {}, = {}) req = build_request(:get_imported_model, params) req.send_request() end |
#get_inference_profile(params = {}) ⇒ Types::GetInferenceProfileResponse
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.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
4736 4737 4738 4739 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4736 def get_inference_profile(params = {}, = {}) req = build_request(:get_inference_profile, params) req.send_request() end |
#get_marketplace_model_endpoint(params = {}) ⇒ Types::GetMarketplaceModelEndpointResponse
Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
4781 4782 4783 4784 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4781 def get_marketplace_model_endpoint(params = {}, = {}) req = build_request(:get_marketplace_model_endpoint, params) req.send_request() end |
#get_model_copy_job(params = {}) ⇒ Types::GetModelCopyJobResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/copy-model.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
4838 4839 4840 4841 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4838 def get_model_copy_job(params = {}, = {}) req = build_request(:get_model_copy_job, params) req.send_request() end |
#get_model_customization_job(params = {}) ⇒ Types::GetModelCustomizationJobResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
4957 4958 4959 4960 |
# File 'lib/aws-sdk-bedrock/client.rb', line 4957 def get_model_customization_job(params = {}, = {}) req = build_request(:get_model_customization_job, params) req.send_request() end |
#get_model_import_job(params = {}) ⇒ Types::GetModelImportJobResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
5019 5020 5021 5022 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5019 def get_model_import_job(params = {}, = {}) req = build_request(:get_model_import_job, params) req.send_request() end |
#get_model_invocation_job(params = {}) ⇒ Types::GetModelInvocationJobResponse
Gets details about a batch inference job. For more information, see
- Monitor batch inference jobs][1
-
[1]: docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-monitor
5097 5098 5099 5100 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5097 def get_model_invocation_job(params = {}, = {}) req = build_request(:get_model_invocation_job, params) req.send_request() end |
#get_model_invocation_logging_configuration(params = {}) ⇒ Types::GetModelInvocationLoggingConfigurationResponse
Get the current configuration values for model invocation logging.
5126 5127 5128 5129 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5126 def get_model_invocation_logging_configuration(params = {}, = {}) req = build_request(:get_model_invocation_logging_configuration, params) req.send_request() end |
#get_prompt_router(params = {}) ⇒ Types::GetPromptRouterResponse
Retrieves details about a prompt router.
5173 5174 5175 5176 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5173 def get_prompt_router(params = {}, = {}) req = build_request(:get_prompt_router, params) req.send_request() end |
#get_provisioned_model_throughput(params = {}) ⇒ Types::GetProvisionedModelThroughputResponse
Returns details for a Provisioned Throughput. For more information, see [Provisioned Throughput] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
5231 5232 5233 5234 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5231 def get_provisioned_model_throughput(params = {}, = {}) req = build_request(:get_provisioned_model_throughput, params) req.send_request() end |
#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyResponse
Gets the resource policy document for a Bedrock resource
5259 5260 5261 5262 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5259 def get_resource_policy(params = {}, = {}) req = build_request(:get_resource_policy, params) req.send_request() end |
#get_use_case_for_model_access(params = {}) ⇒ Types::GetUseCaseForModelAccessResponse
Get usecase for model access.
5278 5279 5280 5281 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5278 def get_use_case_for_model_access(params = {}, = {}) req = build_request(:get_use_case_for_model_access, params) req.send_request() end |
#list_advanced_prompt_optimization_jobs(params = {}) ⇒ Types::ListAdvancedPromptOptimizationJobsResponse
Lists all advanced prompt optimization jobs for the account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5327 5328 5329 5330 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5327 def list_advanced_prompt_optimization_jobs(params = {}, = {}) req = build_request(:list_advanced_prompt_optimization_jobs, params) req.send_request() end |
#list_automated_reasoning_policies(params = {}) ⇒ Types::ListAutomatedReasoningPoliciesResponse
Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN. This helps you manage and discover existing policies.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5379 5380 5381 5382 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5379 def list_automated_reasoning_policies(params = {}, = {}) req = build_request(:list_automated_reasoning_policies, params) req.send_request() end |
#list_automated_reasoning_policy_build_workflows(params = {}) ⇒ Types::ListAutomatedReasoningPolicyBuildWorkflowsResponse
Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5429 5430 5431 5432 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5429 def list_automated_reasoning_policy_build_workflows(params = {}, = {}) req = build_request(:list_automated_reasoning_policy_build_workflows, params) req.send_request() end |
#list_automated_reasoning_policy_test_cases(params = {}) ⇒ Types::ListAutomatedReasoningPolicyTestCasesResponse
Lists tests for an Automated Reasoning policy. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5480 5481 5482 5483 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5480 def list_automated_reasoning_policy_test_cases(params = {}, = {}) req = build_request(:list_automated_reasoning_policy_test_cases, params) req.send_request() end |
#list_automated_reasoning_policy_test_results(params = {}) ⇒ Types::ListAutomatedReasoningPolicyTestResultsResponse
Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5649 5650 5651 5652 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5649 def list_automated_reasoning_policy_test_results(params = {}, = {}) req = build_request(:list_automated_reasoning_policy_test_results, params) req.send_request() end |
#list_custom_model_deployments(params = {}) ⇒ Types::ListCustomModelDeploymentsResponse
Lists custom model deployments in your account. You can filter the results by creation time, name, status, and associated model. Use this operation to manage and monitor your custom model deployments.
We recommend using pagination to ensure that the operation returns quickly and successfully.
The following actions are related to the ‘ListCustomModelDeployments` operation:
- CreateCustomModelDeployment][1
- GetCustomModelDeployment][2
- DeleteCustomModelDeployment][3
[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html [2]: docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html [3]: docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5745 5746 5747 5748 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5745 def list_custom_model_deployments(params = {}, = {}) req = build_request(:list_custom_model_deployments, params) req.send_request() end |
#list_custom_models(params = {}) ⇒ Types::ListCustomModelsResponse
Returns a list of the custom models that you have created with the ‘CreateModelCustomizationJob` operation.
For more information, see [Custom models] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5854 5855 5856 5857 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5854 def list_custom_models(params = {}, = {}) req = build_request(:list_custom_models, params) req.send_request() end |
#list_enforced_guardrails_configuration(params = {}) ⇒ Types::ListEnforcedGuardrailsConfigurationResponse
Lists the account-level enforced guardrail configurations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5902 5903 5904 5905 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5902 def list_enforced_guardrails_configuration(params = {}, = {}) req = build_request(:list_enforced_guardrails_configuration, params) req.send_request() end |
#list_evaluation_jobs(params = {}) ⇒ Types::ListEvaluationJobsResponse
Lists all existing evaluation jobs.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5995 5996 5997 5998 |
# File 'lib/aws-sdk-bedrock/client.rb', line 5995 def list_evaluation_jobs(params = {}, = {}) req = build_request(:list_evaluation_jobs, params) req.send_request() end |
#list_foundation_model_agreement_offers(params = {}) ⇒ Types::ListFoundationModelAgreementOffersResponse
Get the offers associated with the specified model.
6039 6040 6041 6042 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6039 def list_foundation_model_agreement_offers(params = {}, = {}) req = build_request(:list_foundation_model_agreement_offers, params) req.send_request() end |
#list_foundation_models(params = {}) ⇒ Types::ListFoundationModelsResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
6118 6119 6120 6121 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6118 def list_foundation_models(params = {}, = {}) req = build_request(:list_foundation_models, params) req.send_request() end |
#list_guardrails(params = {}) ⇒ Types::ListGuardrailsResponse
Lists details about all the guardrails in an account. To list the ‘DRAFT` version of all your guardrails, don’t specify the ‘guardrailIdentifier` field. To list all versions of a guardrail, specify the ARN of the guardrail in the `guardrailIdentifier` field.
You can set the maximum number of results to return in a response in the ‘maxResults` field. If there are more results than the number you set, the response returns a `nextToken` that you can send in another `ListGuardrails` request to see the next batch of results.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6178 6179 6180 6181 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6178 def list_guardrails(params = {}, = {}) req = build_request(:list_guardrails, params) req.send_request() end |
#list_imported_models(params = {}) ⇒ Types::ListImportedModelsResponse
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][1
-
in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6254 6255 6256 6257 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6254 def list_imported_models(params = {}, = {}) req = build_request(:list_imported_models, params) req.send_request() end |
#list_inference_profiles(params = {}) ⇒ Types::ListInferenceProfilesResponse
Returns a list of inference profiles that you can use. For more information, see [Increase throughput and resilience with cross-region inference in Amazon Bedrock]. in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6325 6326 6327 6328 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6325 def list_inference_profiles(params = {}, = {}) req = build_request(:list_inference_profiles, params) req.send_request() end |
#list_marketplace_model_endpoints(params = {}) ⇒ Types::ListMarketplaceModelEndpointsResponse
Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6375 6376 6377 6378 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6375 def list_marketplace_model_endpoints(params = {}, = {}) req = build_request(:list_marketplace_model_endpoints, params) req.send_request() end |
#list_model_copy_jobs(params = {}) ⇒ Types::ListModelCopyJobsResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/copy-model.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6475 6476 6477 6478 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6475 def list_model_copy_jobs(params = {}, = {}) req = build_request(:list_model_copy_jobs, params) req.send_request() end |
#list_model_customization_jobs(params = {}) ⇒ Types::ListModelCustomizationJobsResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6570 6571 6572 6573 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6570 def list_model_customization_jobs(params = {}, = {}) req = build_request(:list_model_customization_jobs, params) req.send_request() end |
#list_model_import_jobs(params = {}) ⇒ Types::ListModelImportJobsResponse
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].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6653 6654 6655 6656 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6653 def list_model_import_jobs(params = {}, = {}) req = build_request(:list_model_import_jobs, params) req.send_request() end |
#list_model_invocation_jobs(params = {}) ⇒ Types::ListModelInvocationJobsResponse
Lists all batch inference jobs in the account. For more information, see [View details about a batch inference job].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-view.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6802 6803 6804 6805 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6802 def list_model_invocation_jobs(params = {}, = {}) req = build_request(:list_model_invocation_jobs, params) req.send_request() end |
#list_prompt_routers(params = {}) ⇒ Types::ListPromptRoutersResponse
Retrieves a list of prompt routers.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6855 6856 6857 6858 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6855 def list_prompt_routers(params = {}, = {}) req = build_request(:list_prompt_routers, params) req.send_request() end |
#list_provisioned_model_throughputs(params = {}) ⇒ Types::ListProvisionedModelThroughputsResponse
Lists the Provisioned Throughputs in the account. For more information, see [Provisioned Throughput] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6950 6951 6952 6953 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6950 def list_provisioned_model_throughputs(params = {}, = {}) req = build_request(:list_provisioned_model_throughputs, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List the tags associated with the specified resource.
For more information, see [Tagging resources] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
6987 6988 6989 6990 |
# File 'lib/aws-sdk-bedrock/client.rb', line 6987 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_enforced_guardrail_configuration(params = {}) ⇒ Types::PutEnforcedGuardrailConfigurationResponse
Sets the account-level enforced guardrail configuration.
7034 7035 7036 7037 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7034 def put_enforced_guardrail_configuration(params = {}, = {}) req = build_request(:put_enforced_guardrail_configuration, params) req.send_request() end |
#put_model_invocation_logging_configuration(params = {}) ⇒ Struct
Set the configuration values for model invocation logging.
7074 7075 7076 7077 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7074 def put_model_invocation_logging_configuration(params = {}, = {}) req = build_request(:put_model_invocation_logging_configuration, params) req.send_request() end |
#put_resource_policy(params = {}) ⇒ Types::PutResourcePolicyResponse
Adds a resource policy for a Bedrock resource.
7106 7107 7108 7109 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7106 def put_resource_policy(params = {}, = {}) req = build_request(:put_resource_policy, params) req.send_request() end |
#put_use_case_for_model_access(params = {}) ⇒ Struct
Put usecase for model access.
7128 7129 7130 7131 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7128 def put_use_case_for_model_access(params = {}, = {}) req = build_request(:put_use_case_for_model_access, params) req.send_request() end |
#register_marketplace_model_endpoint(params = {}) ⇒ Types::RegisterMarketplaceModelEndpointResponse
Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
7178 7179 7180 7181 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7178 def register_marketplace_model_endpoint(params = {}, = {}) req = build_request(:register_marketplace_model_endpoint, params) req.send_request() end |
#start_automated_reasoning_policy_build_workflow(params = {}) ⇒ Types::StartAutomatedReasoningPolicyBuildWorkflowResponse
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.
7359 7360 7361 7362 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7359 def start_automated_reasoning_policy_build_workflow(params = {}, = {}) req = build_request(:start_automated_reasoning_policy_build_workflow, params) req.send_request() end |
#start_automated_reasoning_policy_test_workflow(params = {}) ⇒ Types::StartAutomatedReasoningPolicyTestWorkflowResponse
Initiates a test workflow to validate Automated Reasoning policy tests. The workflow executes the specified tests against the policy and generates validation results.
7410 7411 7412 7413 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7410 def start_automated_reasoning_policy_test_workflow(params = {}, = {}) req = build_request(:start_automated_reasoning_policy_test_workflow, params) req.send_request() end |
#stop_advanced_prompt_optimization_job(params = {}) ⇒ Struct
Stops an in-progress advanced prompt optimization job.
7432 7433 7434 7435 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7432 def stop_advanced_prompt_optimization_job(params = {}, = {}) req = build_request(:stop_advanced_prompt_optimization_job, params) req.send_request() end |
#stop_evaluation_job(params = {}) ⇒ Struct
Stops an evaluation job that is current being created or running.
7454 7455 7456 7457 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7454 def stop_evaluation_job(params = {}, = {}) req = build_request(:stop_evaluation_job, params) req.send_request() end |
#stop_model_customization_job(params = {}) ⇒ Struct
Stops an active model customization job. For more information, see
- Custom models][1
-
in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
7482 7483 7484 7485 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7482 def stop_model_customization_job(params = {}, = {}) req = build_request(:stop_model_customization_job, params) req.send_request() end |
#stop_model_invocation_job(params = {}) ⇒ Struct
Stops a batch inference job. You’re only charged for tokens that were already processed. For more information, see [Stop a batch inference job].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-stop.html
7510 7511 7512 7513 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7510 def stop_model_invocation_job(params = {}, = {}) req = build_request(:stop_model_invocation_job, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Associate tags with a resource. For more information, see [Tagging resources] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
7546 7547 7548 7549 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7546 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Remove one or more tags from a resource. For more information, see
- Tagging resources][1
-
in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
7577 7578 7579 7580 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7577 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_automated_reasoning_policy(params = {}) ⇒ Types::UpdateAutomatedReasoningPolicyResponse
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.
7655 7656 7657 7658 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7655 def update_automated_reasoning_policy(params = {}, = {}) req = build_request(:update_automated_reasoning_policy, params) req.send_request() end |
#update_automated_reasoning_policy_annotations(params = {}) ⇒ Types::UpdateAutomatedReasoningPolicyAnnotationsResponse
Updates the annotations for an Automated Reasoning policy build workflow. This allows you to modify extracted rules, variables, and types before finalizing the policy.
7783 7784 7785 7786 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7783 def update_automated_reasoning_policy_annotations(params = {}, = {}) req = build_request(:update_automated_reasoning_policy_annotations, params) req.send_request() end |
#update_automated_reasoning_policy_test_case(params = {}) ⇒ Types::UpdateAutomatedReasoningPolicyTestCaseResponse
Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
7851 7852 7853 7854 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7851 def update_automated_reasoning_policy_test_case(params = {}, = {}) req = build_request(:update_automated_reasoning_policy_test_case, params) req.send_request() end |
#update_custom_model_deployment(params = {}) ⇒ Types::UpdateCustomModelDeploymentResponse
Updates a custom model deployment with a new custom model. This allows you to deploy updated models without creating new deployment endpoints.
7887 7888 7889 7890 |
# File 'lib/aws-sdk-bedrock/client.rb', line 7887 def update_custom_model_deployment(params = {}, = {}) req = build_request(:update_custom_model_deployment, params) req.send_request() end |
#update_guardrail(params = {}) ⇒ Types::UpdateGuardrailResponse
Updates a guardrail with the values you specify.
-
Specify a ‘name` and optional `description`.
-
Specify messages for when the guardrail successfully blocks a prompt or a model response in the ‘blockedInputMessaging` and `blockedOutputsMessaging` fields.
-
Specify topics for the guardrail to deny in the ‘topicPolicyConfig` object. Each [GuardrailTopicConfig] object in the `topicsConfig` list pertains to one topic.
-
Give a ‘name` and `description` so that the guardrail can properly identify the topic.
-
Specify ‘DENY` in the `type` field.
-
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the ‘examples` list.
-
-
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the ‘contentPolicyConfig` object. Each
- GuardrailContentFilterConfig][2
-
object in the ‘filtersConfig` list
pertains to a harmful category. For more information, see [Content filters]. For more information about the fields in a content filter, see [GuardrailContentFilterConfig].
-
Specify the category in the ‘type` field.
-
Specify the strength of the filter for prompts in the ‘inputStrength` field and for model responses in the `strength` field of the [GuardrailContentFilterConfig].
-
(Optional) For security, include the ARN of a KMS key in the ‘kmsKeyId` field.
[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailTopicConfig.html [2]: docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html [3]: docs.aws.amazon.com/bedrock/latest/userguide/guardrails-content-filters
8107 8108 8109 8110 |
# File 'lib/aws-sdk-bedrock/client.rb', line 8107 def update_guardrail(params = {}, = {}) req = build_request(:update_guardrail, params) req.send_request() end |
#update_marketplace_model_endpoint(params = {}) ⇒ Types::UpdateMarketplaceModelEndpointResponse
Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
8178 8179 8180 8181 |
# File 'lib/aws-sdk-bedrock/client.rb', line 8178 def update_marketplace_model_endpoint(params = {}, = {}) req = build_request(:update_marketplace_model_endpoint, params) req.send_request() end |
#update_provisioned_model_throughput(params = {}) ⇒ Struct
Updates the name or associated model for a Provisioned Throughput. For more information, see [Provisioned Throughput] in the [Amazon Bedrock User Guide].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html [2]: docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
8226 8227 8228 8229 |
# File 'lib/aws-sdk-bedrock/client.rb', line 8226 def update_provisioned_model_throughput(params = {}, = {}) req = build_request(:update_provisioned_model_throughput, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8255 8256 8257 |
# File 'lib/aws-sdk-bedrock/client.rb', line 8255 def waiter_names [] end |