AWS Fundamentals Logo
AWS Fundamentals
aws bedrock

AWS Amazon Bedrock CLI Commands

98 CLI commands available for Amazon Bedrock.

CommandSample
batch-delete-evaluation-job

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.

cancel-automated-reasoning-policy-build-workflow

Cancels a running Automated Reasoning policy build workflow. This stops the policy generation process and prevents further processing of the source documents.

create-automated-reasoning-policy

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

create-automated-reasoning-policy-test-case

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.

create-automated-reasoning-policy-version

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.

create-custom-model

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 P

create-custom-model-deployment

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 inf

create-evaluation-job

Creates an evaluation job.

create-foundation-model-agreement

Request a model access agreement for the specified model.

create-guardrail

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. Conte

create-guardrail-version

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.

create-inference-profile

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 r

create-marketplace-model-endpoint

Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.

create-model-copy-job

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.

create-model-customization-job

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 gener

create-model-import-job

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

create-model-invocation-job

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 d

create-prompt-router

Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.

create-provisioned-model-throughput

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.

delete-automated-reasoning-policy

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.

delete-automated-reasoning-policy-build-workflow

Deletes an Automated Reasoning policy build workflow and its associated artifacts. This permanently removes the workflow history and any generated assets.

delete-automated-reasoning-policy-test-case

Deletes an Automated Reasoning policy test. This operation is idempotent; if you delete a test more than once, each call succeeds.

delete-custom-model

Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.

delete-custom-model-deployment

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

delete-enforced-guardrail-configuration

Deletes the account-level enforced guardrail configuration.

delete-foundation-model-agreement

Delete the model access agreement for the specified model.

delete-guardrail

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 versio

delete-imported-model

Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.

delete-inference-profile

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.

delete-marketplace-model-endpoint

Deletes an endpoint for a model from Amazon Bedrock Marketplace.

delete-model-invocation-logging-configuration

Delete the invocation logging.

delete-prompt-router

Deletes a specified prompt router. This action cannot be undone.

delete-provisioned-model-throughput

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.

deregister-marketplace-model-endpoint

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.

export-automated-reasoning-policy-version

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.

get-automated-reasoning-policy

Retrieves details about an Automated Reasoning policy or policy version. Returns information including the policy definition, metadata, and timestamps.

get-automated-reasoning-policy-annotations

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.

get-automated-reasoning-policy-build-workflow

Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.

get-automated-reasoning-policy-build-workflow-result-assets

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

Retrieves the next test scenario for validating an Automated Reasoning policy. This is used during the interactive policy refinement process to test policy behavior.

get-automated-reasoning-policy-test-case

Retrieves details about a specific Automated Reasoning policy test.

get-automated-reasoning-policy-test-result

Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.

get-custom-model

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.

get-custom-model-deployment

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: CreateCust

get-evaluation-job

Gets information about an evaluation job, such as the status of the job.

get-foundation-model

Get details about a Amazon Bedrock foundation model.

get-foundation-model-availability

Get information about the Foundation model availability.

get-guardrail

Gets details about a guardrail. If you don't specify a version, the response returns details for the DRAFT version.

get-imported-model

Gets properties associated with a customized model you imported.

get-inference-profile

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.

get-marketplace-model-endpoint

Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.

get-model-copy-job

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.

get-model-customization-job

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.

get-model-import-job

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.

get-model-invocation-job

Gets details about a batch inference job. For more information, see Monitor batch inference jobs

get-model-invocation-logging-configuration

Get the current configuration values for model invocation logging.

get-prompt-router

Retrieves details about a prompt router.

get-provisioned-model-throughput

Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

get-use-case-for-model-access

Get usecase for model access.

list-automated-reasoning-policies

Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN. This helps you manage and discover existing policies.

list-automated-reasoning-policy-build-workflows

Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.

list-automated-reasoning-policy-test-cases

Lists tests for an Automated Reasoning policy. We recommend using pagination to ensure that the operation returns quickly and successfully.

list-automated-reasoning-policy-test-results

Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.

list-custom-model-deployments

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 fo

list-custom-models

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.

list-enforced-guardrails-configuration

Lists the account-level enforced guardrail configurations.

list-evaluation-jobs

Lists all existing evaluation jobs.

list-foundation-model-agreement-offers

Get the offers associated with the specified model.

list-foundation-models

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.

list-guardrails

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 re

list-imported-models

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.

list-inference-profiles

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.

list-marketplace-model-endpoints

Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.

list-model-copy-jobs

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.

list-model-customization-jobs

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.

list-model-import-jobs

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.

list-model-invocation-jobs

Lists all batch inference jobs in the account. For more information, see View details about a batch inference job.

list-prompt-routers

Retrieves a list of prompt routers.

list-provisioned-model-throughputs

Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

list-tags-for-resource

List the tags associated with the specified resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

put-enforced-guardrail-configuration

Sets the account-level enforced guardrail configuration.

put-model-invocation-logging-configuration

Set the configuration values for model invocation logging.

put-use-case-for-model-access

Put usecase for model access.

register-marketplace-model-endpoint

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

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.

start-automated-reasoning-policy-test-workflow

Initiates a test workflow to validate Automated Reasoning policy tests. The workflow executes the specified tests against the policy and generates validation results.

stop-evaluation-job

Stops an evaluation job that is current being created or running.

stop-model-customization-job

Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.

stop-model-invocation-job

Stops a batch inference job. You're only charged for tokens that were already processed. For more information, see Stop a batch inference job.

tag-resource

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

untag-resource

Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

update-automated-reasoning-policy

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.

update-automated-reasoning-policy-annotations

Updates the annotations for an Automated Reasoning policy build workflow. This allows you to modify extracted rules, variables, and types before finalizing the policy.

update-automated-reasoning-policy-test-case

Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.

update-custom-model-deployment

Updates a custom model deployment with a new custom model. This allows you to deploy updated models without creating new deployment endpoints.

update-guardrail

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 to

update-marketplace-model-endpoint

Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.

update-provisioned-model-throughput

Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Stats

Total Commands98
ServiceBedrock