Amazon Bedrock 2023-04-20
- Client: Aws\Bedrock\BedrockClient
- Service ID: bedrock
- Version: 2023-04-20
This page describes the parameters and results for the operations of the Amazon Bedrock (2023-04-20), and shows how to use the Aws\Bedrock\BedrockClient object to call the described operations. This documentation is specific to the 2023-04-20 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName'), where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */).
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */).
- BatchDeleteAdvancedPromptOptimizationJob ( array $params = [] )
- Deletes one or more advanced prompt optimization jobs.
- BatchDeleteEvaluationJob ( array $params = [] )
- Deletes a batch of evaluation jobs.
- CancelAutomatedReasoningPolicyBuildWorkflow ( array $params = [] )
- Cancels a running Automated Reasoning policy build workflow.
- CreateAdvancedPromptOptimizationJob ( array $params = [] )
- Creates an advanced prompt optimization job.
- CreateAutomatedReasoningPolicy ( array $params = [] )
- Creates an Automated Reasoning policy for Amazon Bedrock Guardrails.
- CreateAutomatedReasoningPolicyTestCase ( array $params = [] )
- Creates a test for an Automated Reasoning policy.
- CreateAutomatedReasoningPolicyVersion ( array $params = [] )
- Creates a new version of an existing Automated Reasoning policy.
- CreateCustomModel ( array $params = [] )
- Creates a new custom model in Amazon Bedrock.
- CreateCustomModelDeployment ( array $params = [] )
- Deploys a custom model for on-demand inference in Amazon Bedrock.
- CreateEvaluationJob ( array $params = [] )
- Creates an evaluation job.
- CreateFoundationModelAgreement ( array $params = [] )
- Request a model access agreement for the specified model.
- CreateGuardrail ( array $params = [] )
- Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
- CreateGuardrailVersion ( array $params = [] )
- Creates a version of the guardrail.
- CreateInferenceProfile ( array $params = [] )
- Creates an application inference profile to track metrics and costs when invoking a model.
- CreateMarketplaceModelEndpoint ( array $params = [] )
- Creates an endpoint for a model from Amazon Bedrock Marketplace.
- CreateModelCopyJob ( array $params = [] )
- Copies a model to another region so that it can be used there.
- CreateModelCustomizationJob ( array $params = [] )
- Creates a fine-tuning job to customize a base model.
- CreateModelImportJob ( array $params = [] )
- Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker.
- CreateModelInvocationJob ( array $params = [] )
- Creates a batch inference job to invoke a model on multiple prompts.
- CreatePromptRouter ( array $params = [] )
- Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.
- CreateProvisionedModelThroughput ( array $params = [] )
- Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify.
- DeleteAutomatedReasoningPolicy ( array $params = [] )
- Deletes an Automated Reasoning policy or policy version.
- DeleteAutomatedReasoningPolicyBuildWorkflow ( array $params = [] )
- Deletes an Automated Reasoning policy build workflow and its associated artifacts.
- DeleteAutomatedReasoningPolicyTestCase ( array $params = [] )
- Deletes an Automated Reasoning policy test.
- DeleteCustomModel ( array $params = [] )
- Deletes a custom model that you created earlier.
- DeleteCustomModelDeployment ( array $params = [] )
- Deletes a custom model deployment.
- DeleteEnforcedGuardrailConfiguration ( array $params = [] )
- Deletes the account-level enforced guardrail configuration.
- DeleteFoundationModelAgreement ( array $params = [] )
- Delete the model access agreement for the specified model.
- DeleteGuardrail ( array $params = [] )
- Deletes a guardrail.
- DeleteImportedModel ( array $params = [] )
- Deletes a custom model that you imported earlier.
- DeleteInferenceProfile ( array $params = [] )
- Deletes an application inference profile.
- DeleteMarketplaceModelEndpoint ( array $params = [] )
- Deletes an endpoint for a model from Amazon Bedrock Marketplace.
- DeleteModelInvocationLoggingConfiguration ( array $params = [] )
- Delete the invocation logging.
- DeletePromptRouter ( array $params = [] )
- Deletes a specified prompt router.
- DeleteProvisionedModelThroughput ( array $params = [] )
- Deletes a Provisioned Throughput.
- DeleteResourcePolicy ( array $params = [] )
- Deletes a previously created Bedrock resource policy.
- DeregisterMarketplaceModelEndpoint ( array $params = [] )
- Deregisters an endpoint for a model from Amazon Bedrock Marketplace.
- ExportAutomatedReasoningPolicyVersion ( array $params = [] )
- Exports the policy definition for an Automated Reasoning policy version.
- GetAccountDataRetention ( array $params = [] )
- Returns the account-wide data retention mode for Amazon Bedrock.
- GetAdvancedPromptOptimizationJob ( array $params = [] )
- Gets information about an advanced prompt optimization job.
- GetAutomatedReasoningPolicy ( array $params = [] )
- Retrieves details about an Automated Reasoning policy or policy version.
- GetAutomatedReasoningPolicyAnnotations ( array $params = [] )
- Retrieves the current annotations for an Automated Reasoning policy build workflow.
- GetAutomatedReasoningPolicyBuildWorkflow ( array $params = [] )
- Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.
- GetAutomatedReasoningPolicyBuildWorkflowResultAssets ( array $params = [] )
- Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.
- GetAutomatedReasoningPolicyNextScenario ( array $params = [] )
- Retrieves the next test scenario for validating an Automated Reasoning policy.
- GetAutomatedReasoningPolicyTestCase ( array $params = [] )
- Retrieves details about a specific Automated Reasoning policy test.
- GetAutomatedReasoningPolicyTestResult ( array $params = [] )
- Retrieves the test result for a specific Automated Reasoning policy test.
- GetCustomModel ( array $params = [] )
- Get the properties associated with a Amazon Bedrock custom model that you have created.
- GetCustomModelDeployment ( array $params = [] )
- Retrieves information about a custom model deployment, including its status, configuration, and metadata.
- GetEvaluationJob ( array $params = [] )
- Gets information about an evaluation job, such as the status of the job.
- GetFoundationModel ( array $params = [] )
- Get details about a Amazon Bedrock foundation model.
- GetFoundationModelAvailability ( array $params = [] )
- Get information about the Foundation model availability.
- GetGuardrail ( array $params = [] )
- Gets details about a guardrail.
- GetImportedModel ( array $params = [] )
- Gets properties associated with a customized model you imported.
- GetInferenceProfile ( array $params = [] )
- Gets information about an inference profile.
- GetMarketplaceModelEndpoint ( array $params = [] )
- Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
- GetModelCopyJob ( array $params = [] )
- Retrieves information about a model copy job.
- GetModelCustomizationJob ( array $params = [] )
- Retrieves the properties associated with a model-customization job, including the status of the job.
- GetModelImportJob ( array $params = [] )
- Retrieves the properties associated with import model job, including the status of the job.
- GetModelInvocationJob ( array $params = [] )
- Gets details about a batch inference job.
- GetModelInvocationLoggingConfiguration ( array $params = [] )
- Get the current configuration values for model invocation logging.
- GetPromptRouter ( array $params = [] )
- Retrieves details about a prompt router.
- GetProvisionedModelThroughput ( array $params = [] )
- Returns details for a Provisioned Throughput.
- GetResourcePolicy ( array $params = [] )
- Gets the resource policy document for a Bedrock resource
- GetUseCaseForModelAccess ( array $params = [] )
- Get usecase for model access.
- ListAdvancedPromptOptimizationJobs ( array $params = [] )
- Lists the advanced prompt optimization jobs in your account.
- ListAutomatedReasoningPolicies ( array $params = [] )
- Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN.
- ListAutomatedReasoningPolicyBuildWorkflows ( array $params = [] )
- Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.
- ListAutomatedReasoningPolicyTestCases ( array $params = [] )
- Lists tests for an Automated Reasoning policy.
- ListAutomatedReasoningPolicyTestResults ( array $params = [] )
- Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.
- ListCustomModelDeployments ( array $params = [] )
- Lists custom model deployments in your account.
- ListCustomModels ( array $params = [] )
- Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation.
- ListEnforcedGuardrailsConfiguration ( array $params = [] )
- Lists the account-level enforced guardrail configurations.
- ListEvaluationJobs ( array $params = [] )
- Lists all existing evaluation jobs.
- ListFoundationModelAgreementOffers ( array $params = [] )
- Get the offers associated with the specified model.
- ListFoundationModels ( array $params = [] )
- Lists Amazon Bedrock foundation models that you can use.
- ListGuardrails ( array $params = [] )
- Lists details about all the guardrails in an account.
- ListImportedModels ( array $params = [] )
- Returns a list of models you've imported.
- ListInferenceProfiles ( array $params = [] )
- Returns a list of inference profiles that you can use.
- ListMarketplaceModelEndpoints ( array $params = [] )
- Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
- ListModelCopyJobs ( array $params = [] )
- Returns a list of model copy jobs that you have submitted.
- ListModelCustomizationJobs ( array $params = [] )
- Returns a list of model customization jobs that you have submitted.
- ListModelImportJobs ( array $params = [] )
- Returns a list of import jobs you've submitted.
- ListModelInvocationJobs ( array $params = [] )
- Lists all batch inference jobs in the account.
- ListPromptRouters ( array $params = [] )
- Retrieves a list of prompt routers.
- ListProvisionedModelThroughputs ( array $params = [] )
- Lists the Provisioned Throughputs in the account.
- ListTagsForResource ( array $params = [] )
- List the tags associated with the specified resource.
- PutAccountDataRetention ( array $params = [] )
- Sets the account-wide data retention mode for Amazon Bedrock.
- PutEnforcedGuardrailConfiguration ( array $params = [] )
- Sets the account-level enforced guardrail configuration.
- PutModelInvocationLoggingConfiguration ( array $params = [] )
- Set the configuration values for model invocation logging.
- PutResourcePolicy ( array $params = [] )
- Adds a resource policy for a Bedrock resource.
- PutUseCaseForModelAccess ( array $params = [] )
- Put usecase for model access.
- RegisterMarketplaceModelEndpoint ( array $params = [] )
- Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
- StartAutomatedReasoningPolicyBuildWorkflow ( array $params = [] )
- Starts a new build workflow for an Automated Reasoning policy.
- StartAutomatedReasoningPolicyTestWorkflow ( array $params = [] )
- Initiates a test workflow to validate Automated Reasoning policy tests.
- StopAdvancedPromptOptimizationJob ( array $params = [] )
- Stops an advanced prompt optimization job that is in progress.
- StopEvaluationJob ( array $params = [] )
- Stops an evaluation job that is current being created or running.
- StopModelCustomizationJob ( array $params = [] )
- Stops an active model customization job.
- StopModelInvocationJob ( array $params = [] )
- Stops a batch inference job.
- TagResource ( array $params = [] )
- Associate tags with a resource.
- UntagResource ( array $params = [] )
- Remove one or more tags from a resource.
- UpdateAutomatedReasoningPolicy ( array $params = [] )
- Updates an existing Automated Reasoning policy with new rules, variables, or configuration.
- UpdateAutomatedReasoningPolicyAnnotations ( array $params = [] )
- Updates the annotations for an Automated Reasoning policy build workflow.
- UpdateAutomatedReasoningPolicyTestCase ( array $params = [] )
- Updates an existing Automated Reasoning policy test.
- UpdateCustomModelDeployment ( array $params = [] )
- Updates a custom model deployment with a new custom model.
- UpdateGuardrail ( array $params = [] )
- Updates a guardrail with the values you specify.
- UpdateMarketplaceModelEndpoint ( array $params = [] )
- Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
- UpdateProvisionedModelThroughput ( array $params = [] )
- Updates the name or associated model for a Provisioned Throughput.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
- ListAdvancedPromptOptimizationJobs
- ListAutomatedReasoningPolicies
- ListAutomatedReasoningPolicyBuildWorkflows
- ListAutomatedReasoningPolicyTestCases
- ListAutomatedReasoningPolicyTestResults
- ListCustomModelDeployments
- ListCustomModels
- ListEnforcedGuardrailsConfiguration
- ListEvaluationJobs
- ListGuardrails
- ListImportedModels
- ListInferenceProfiles
- ListMarketplaceModelEndpoints
- ListModelCopyJobs
- ListModelCustomizationJobs
- ListModelImportJobs
- ListModelInvocationJobs
- ListPromptRouters
- ListProvisionedModelThroughputs
Operations
BatchDeleteAdvancedPromptOptimizationJob
$result = $client->batchDeleteAdvancedPromptOptimizationJob([/* ... */]); $promise = $client->batchDeleteAdvancedPromptOptimizationJobAsync([/* ... */]);
Deletes one or more advanced prompt optimization jobs.
Parameter Syntax
$result = $client->batchDeleteAdvancedPromptOptimizationJob([
'jobIdentifiers' => ['<string>', ...], // REQUIRED
]);
Parameter Details
Members
- jobIdentifiers
-
- Required: Yes
- Type: Array of strings
A list of advanced prompt optimization job identifiers (ARNs or IDs) to delete.
Result Syntax
[
'advancedPromptOptimizationJobs' => [
[
'jobIdentifier' => '<string>',
'jobStatus' => 'InProgress|Completed|Failed|PartiallyCompleted|Stopping|Stopped|Deleting',
],
// ...
],
'errors' => [
[
'code' => '<string>',
'jobIdentifier' => '<string>',
'message' => '<string>',
],
// ...
],
]
Result Details
Members
- advancedPromptOptimizationJobs
-
- Required: Yes
- Type: Array of BatchDeleteAdvancedPromptOptimizationJobItem structures
A list of successfully deleted advanced prompt optimization jobs.
- errors
-
- Required: Yes
- Type: Array of BatchDeleteAdvancedPromptOptimizationJobError structures
A list of errors encountered during batch deletion.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
BatchDeleteEvaluationJob
$result = $client->batchDeleteEvaluationJob([/* ... */]); $promise = $client->batchDeleteEvaluationJobAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->batchDeleteEvaluationJob([
'jobIdentifiers' => ['<string>', ...], // REQUIRED
]);
Parameter Details
Members
- jobIdentifiers
-
- Required: Yes
- Type: Array of strings
A list of one or more evaluation job Amazon Resource Names (ARNs) you want to delete.
Result Syntax
[
'errors' => [
[
'code' => '<string>',
'jobIdentifier' => '<string>',
'message' => '<string>',
],
// ...
],
'evaluationJobs' => [
[
'jobIdentifier' => '<string>',
'jobStatus' => 'InProgress|Completed|Failed|Stopping|Stopped|Deleting',
],
// ...
],
]
Result Details
Members
- errors
-
- Required: Yes
- Type: Array of BatchDeleteEvaluationJobError structures
A JSON object containing the HTTP status codes and the ARNs of evaluation jobs that failed to be deleted.
- evaluationJobs
-
- Required: Yes
- Type: Array of BatchDeleteEvaluationJobItem structures
The list of evaluation jobs for deletion.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
Examples
Example 1: Delete evaluation jobs
The following example shows a request to delete two model evaluation jobs, where one of the jobs is not found.
$result = $client->batchDeleteEvaluationJob([
'jobIdentifiers' => [
'arn:aws:bedrock:us-east-2:123456789012:evaluation-job/12rnxmplqv0v',
'arn:aws:bedrock:us-east-2:123456789012:evaluation-job/rispxmpl12rn',
],
]);
Result syntax:
[
'errors' => [
[
'code' => '404',
'jobIdentifier' => 'arn:aws:bedrock:us-east-2:123456789012:evaluation-job/rispxmpl12rn',
'message' => 'Unable to locate this job to delete.',
],
],
'evaluationJobs' => [
[
'jobIdentifier' => 'arn:aws:bedrock:us-east-2:123456789012:evaluation-job/12rnxmplqv0v',
'jobStatus' => 'Deleting',
],
],
]
CancelAutomatedReasoningPolicyBuildWorkflow
$result = $client->cancelAutomatedReasoningPolicyBuildWorkflow([/* ... */]); $promise = $client->cancelAutomatedReasoningPolicyBuildWorkflowAsync([/* ... */]);
Cancels a running Automated Reasoning policy build workflow. This stops the policy generation process and prevents further processing of the source documents.
Parameter Syntax
$result = $client->cancelAutomatedReasoningPolicyBuildWorkflow([
'buildWorkflowId' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow to cancel. You can get this ID from the StartAutomatedReasoningPolicyBuildWorkflow response or by listing build workflows.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy whose build workflow you want to cancel.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateAdvancedPromptOptimizationJob
$result = $client->createAdvancedPromptOptimizationJob([/* ... */]); $promise = $client->createAdvancedPromptOptimizationJobAsync([/* ... */]);
Creates an advanced prompt optimization job. The job optimizes your prompt templates for specific models using your evaluation dataset and criteria.
Parameter Syntax
$result = $client->createAdvancedPromptOptimizationJob([
'clientToken' => '<string>',
'encryptionKeyArn' => '<string>',
'inputConfig' => [ // REQUIRED
's3Uri' => '<string>', // REQUIRED
],
'jobDescription' => '<string>',
'jobName' => '<string>', // REQUIRED
'modelConfigurations' => [ // REQUIRED
[
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'inferenceConfig' => [
'maxTokens' => <integer>,
'stopSequences' => ['<string>', ...],
'temperature' => <float>,
'topP' => <float>,
],
'modelId' => '<string>', // REQUIRED
],
// ...
],
'outputConfig' => [ // REQUIRED
's3Uri' => '<string>', // REQUIRED
],
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- clientToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
- encryptionKeyArn
-
- Type: string
The Amazon Resource Name (ARN) of the KMS key used for encrypting the output data. If not specified, the output is encrypted with an Amazon-owned KMS key.
- inputConfig
-
- Required: Yes
- Type: AdvancedPromptOptimizationInputConfig structure
Specifies the S3 location of your JSONL input file containing prompt templates and evaluation samples.
- jobDescription
-
- Type: string
A description of the advanced prompt optimization job.
- jobName
-
- Required: Yes
- Type: string
A name for the advanced prompt optimization job.
- modelConfigurations
-
- Required: Yes
- Type: Array of ModelConfiguration structures
A list of model configurations specifying the target models for prompt optimization. You can specify up to 5 models.
- outputConfig
-
- Required: Yes
- Type: AdvancedPromptOptimizationOutputConfig structure
Specifies the S3 location where optimization results will be stored.
- tags
-
- Type: Array of Tag structures
Tags to associate with the advanced prompt optimization job.
Result Syntax
[
'jobArn' => '<string>',
]
Result Details
Members
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the created advanced prompt optimization job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateAutomatedReasoningPolicy
$result = $client->createAutomatedReasoningPolicy([/* ... */]); $promise = $client->createAutomatedReasoningPolicyAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createAutomatedReasoningPolicy([
'clientRequestToken' => '<string>',
'description' => '<string>',
'kmsKeyId' => '<string>',
'name' => '<string>', // REQUIRED
'policyDefinition' => [
'rules' => [
[
'alternateExpression' => '<string>',
'expression' => '<string>', // REQUIRED
'id' => '<string>', // REQUIRED
],
// ...
],
'types' => [
[
'description' => '<string>',
'name' => '<string>', // REQUIRED
'values' => [ // REQUIRED
[
'description' => '<string>',
'value' => '<string>', // REQUIRED
],
// ...
],
],
// ...
],
'variables' => [
[
'description' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'type' => '<string>', // REQUIRED
],
// ...
],
'version' => '<string>',
],
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the operation completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request but doesn't return an error.
- description
-
- Type: string
A description of the Automated Reasoning policy. Use this to provide context about the policy's purpose and the types of validations it performs.
- kmsKeyId
-
- Type: string
The identifier of the KMS key to use for encrypting the automated reasoning policy and its associated artifacts. If you don't specify a KMS key, Amazon Bedrock uses an KMS managed key for encryption. For enhanced security and control, you can specify a customer managed KMS key.
- name
-
- Required: Yes
- Type: string
A unique name for the Automated Reasoning policy. The name must be between 1 and 63 characters and can contain letters, numbers, hyphens, and underscores.
- policyDefinition
-
- Type: AutomatedReasoningPolicyDefinition structure
The policy definition that contains the formal logic rules, variables, and custom variable types used to validate foundation model responses in your application.
- tags
-
- Type: Array of Tag structures
A list of tags to associate with the Automated Reasoning policy. Tags help you organize and manage your policies.
Result Syntax
[
'createdAt' => <DateTime>,
'definitionHash' => '<string>',
'description' => '<string>',
'name' => '<string>',
'policyArn' => '<string>',
'updatedAt' => <DateTime>,
'version' => '<string>',
]
Result Details
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the policy was created.
- definitionHash
-
- Type: string
The hash of the policy definition. This is used as a concurrency token for creating policy versions that you can use in your application.
- description
-
- Type: string
The description of the Automated Reasoning policy.
- name
-
- Required: Yes
- Type: string
The name of the Automated Reasoning policy.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy that you created.
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the policy was last updated.
- version
-
- Required: Yes
- Type: string
The version number of the newly created Automated Reasoning policy. The initial version is always DRAFT.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateAutomatedReasoningPolicyTestCase
$result = $client->createAutomatedReasoningPolicyTestCase([/* ... */]); $promise = $client->createAutomatedReasoningPolicyTestCaseAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createAutomatedReasoningPolicyTestCase([
'clientRequestToken' => '<string>',
'confidenceThreshold' => <float>,
'expectedAggregatedFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION', // REQUIRED
'guardContent' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
'queryContent' => '<string>',
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
- confidenceThreshold
-
- Type: double
The minimum confidence level for logic validation. Content that meets the threshold is considered a high-confidence finding that can be validated.
- expectedAggregatedFindingsResult
-
- Required: Yes
- Type: string
The expected result of the Automated Reasoning check. Valid values include: , TOO_COMPLEX, and NO_TRANSLATIONS.
-
VALID- The claims are true. The claims are implied by the premises and the Automated Reasoning policy. Given the Automated Reasoning policy and premises, it is not possible for these claims to be false. In other words, there are no alternative answers that are true that contradict the claims. -
INVALID- The claims are false. The claims are not implied by the premises and Automated Reasoning policy. Furthermore, there exists different claims that are consistent with the premises and Automated Reasoning policy. -
SATISFIABLE- The claims can be true or false. It depends on what assumptions are made for the claim to be implied from the premises and Automated Reasoning policy rules. In this situation, different assumptions can make input claims false and alternative claims true. -
IMPOSSIBLE- Automated Reasoning can’t make a statement about the claims. This can happen if the premises are logically incorrect, or if there is a conflict within the Automated Reasoning policy itself. -
TRANSLATION_AMBIGUOUS- Detected an ambiguity in the translation meant it would be unsound to continue with validity checking. Additional context or follow-up questions might be needed to get translation to succeed. -
TOO_COMPLEX- The input contains too much information for Automated Reasoning to process within its latency limits. -
NO_TRANSLATIONS- Identifies that some or all of the input prompt wasn't translated into logic. This can happen if the input isn't relevant to the Automated Reasoning policy, or if the policy doesn't have variables to model relevant input. If Automated Reasoning can't translate anything, you get a singleNO_TRANSLATIONSfinding. You might also see aNO_TRANSLATIONS(along with other findings) if some part of the validation isn't translated.
- guardContent
-
- Required: Yes
- Type: string
The output content that's validated by the Automated Reasoning policy. This represents the foundation model response that will be checked for accuracy.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create the test.
- queryContent
-
- Type: string
The input query or prompt that generated the content. This provides context for the validation.
Result Syntax
[
'policyArn' => '<string>',
'testCaseId' => '<string>',
]
Result Details
Members
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the policy for which the test was created.
- testCaseId
-
- Required: Yes
- Type: string
The unique identifier of the created test.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateAutomatedReasoningPolicyVersion
$result = $client->createAutomatedReasoningPolicyVersion([/* ... */]); $promise = $client->createAutomatedReasoningPolicyVersionAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createAutomatedReasoningPolicyVersion([
'clientRequestToken' => '<string>',
'lastUpdatedDefinitionHash' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
- lastUpdatedDefinitionHash
-
- Required: Yes
- Type: string
The hash of the current policy definition used as a concurrency token to ensure the policy hasn't been modified since you last retrieved it.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a version.
- tags
-
- Type: Array of Tag structures
A list of tags to associate with the policy version.
Result Syntax
[
'createdAt' => <DateTime>,
'definitionHash' => '<string>',
'description' => '<string>',
'name' => '<string>',
'policyArn' => '<string>',
'version' => '<string>',
]
Result Details
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the policy version was created.
- definitionHash
-
- Required: Yes
- Type: string
The hash of the policy definition for this version.
- description
-
- Type: string
The description of the policy version.
- name
-
- Required: Yes
- Type: string
The name of the policy version.
- policyArn
-
- Required: Yes
- Type: string
The versioned Amazon Resource Name (ARN) of the policy version.
- version
-
- Required: Yes
- Type: string
The version number of the policy version.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateCustomModel
$result = $client->createCustomModel([/* ... */]); $promise = $client->createCustomModelAsync([/* ... */]);
Creates a new custom model in Amazon Bedrock. After the model is active, you can use it for inference.
You can provide the model data source in one of the following ways:
-
customModelDataSource— Specify a SageMaker AI model package ARN. Amazon Bedrock resolves the model package to retrieve the model artifacts. This is the preferred method for new SageMaker AI training outputs. -
modelSourceConfig— Specify an Amazon S3 URI pointing to the Amazon-managed Amazon S3 bucket containing your model artifacts.
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
Parameter Syntax
$result = $client->createCustomModel([
'clientRequestToken' => '<string>',
'customModelDataSource' => [
'modelPackageArnDataSource' => [
'modelPackageArn' => '<string>', // REQUIRED
],
],
'modelKmsKeyArn' => '<string>',
'modelName' => '<string>', // REQUIRED
'modelSourceConfig' => [
's3DataSource' => [
's3Uri' => '<string>', // REQUIRED
],
],
'modelTags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
'roleArn' => '<string>',
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- customModelDataSource
-
- Type: CustomModelDataSource structure
The data source for the custom model. Use this field to specify a SageMaker AI model package ARN as the source for your custom model. Amazon Bedrock resolves the model package to retrieve the model artifacts.
You can specify either
customModelDataSourceormodelSourceConfig, but not both. - modelKmsKeyArn
-
- Type: string
The Amazon Resource Name (ARN) of the customer managed KMS key to encrypt the custom model. If you don't provide a KMS key, Amazon Bedrock uses an Amazon Web Services-managed KMS key to encrypt the model.
If you provide a customer managed KMS key, your Amazon Bedrock service role must have permissions to use it. For more information see Encryption of imported models.
- modelName
-
- Required: Yes
- Type: string
A unique name for the custom model.
- modelSourceConfig
-
- Type: ModelDataSource structure
The data source for the model. The Amazon S3 URI in the model source must be for the Amazon-managed Amazon S3 bucket containing your model artifacts.
- modelTags
-
- Type: Array of Tag structures
A list of key-value pairs to associate with the custom model resource. You can use these tags to organize and identify your resources.
For more information, see Tagging resources in the Amazon Bedrock User Guide.
- roleArn
-
- Type: string
The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock assumes to perform tasks on your behalf. This role must have permissions to access the Amazon S3 bucket containing your model artifacts and the KMS key (if specified). For more information, see Setting up an IAM service role for importing models in the Amazon Bedrock User Guide.
This field is required when you use
modelSourceConfigwith an Amazon S3 data source. It is not required when you usecustomModelDataSourcewith a model package ARN, because Amazon Bedrock uses its own credentials to access the model artifacts.
Result Syntax
[
'modelArn' => '<string>',
]
Result Details
Members
- modelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the new custom model.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
Examples
Example 1: Successful CreateCustomModel API call
$result = $client->createCustomModel([
'clientRequestToken' => 'foo',
'modelKmsKeyArn' => 'arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab',
'modelName' => 'SampleModel',
'modelSourceConfig' => [
's3DataSource' => [
's3Uri' => 's3://my-bucket/folder',
],
],
'modelTags' => [
[
'key' => 'foo',
'value' => 'foo',
],
[
'key' => 'foo',
'value' => 'foo',
],
],
'roleArn' => 'arn:aws:iam::123456789012:role/SampleRole',
]);
Result syntax:
[
'modelArn' => 'arn:aws:bedrock:us-east-1:123456789012:custom-model/imported/abcdef123456',
]
CreateCustomModelDeployment
$result = $client->createCustomModelDeployment([/* ... */]); $promise = $client->createCustomModelDeploymentAsync([/* ... */]);
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:
Parameter Syntax
$result = $client->createCustomModelDeployment([
'clientRequestToken' => '<string>',
'description' => '<string>',
'modelArn' => '<string>', // REQUIRED
'modelDeploymentName' => '<string>', // REQUIRED
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- description
-
- Type: string
A description for the custom model deployment to help you identify its purpose.
- modelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the custom model to deploy for on-demand inference. The custom model must be in the
Activestate. - modelDeploymentName
-
- Required: Yes
- Type: string
The name for the custom model deployment. The name must be unique within your Amazon Web Services account and Region.
- tags
-
- Type: Array of Tag structures
Tags to assign to the custom model deployment. You can use tags to organize and track your Amazon Web Services resources for cost allocation and management purposes.
Result Syntax
[
'customModelDeploymentArn' => '<string>',
]
Result Details
Members
- customModelDeploymentArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the custom model deployment. Use this ARN as the
modelIdparameter when invoking the model with theInvokeModelorConverseoperations.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateEvaluationJob
$result = $client->createEvaluationJob([/* ... */]); $promise = $client->createEvaluationJobAsync([/* ... */]);
Creates an evaluation job.
Parameter Syntax
$result = $client->createEvaluationJob([
'applicationType' => 'ModelEvaluation|RagEvaluation',
'clientRequestToken' => '<string>',
'customerEncryptionKeyId' => '<string>',
'evaluationConfig' => [ // REQUIRED
'automated' => [
'customMetricConfig' => [
'customMetrics' => [ // REQUIRED
[
'customMetricDefinition' => [
'instructions' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'ratingScale' => [
[
'definition' => '<string>', // REQUIRED
'value' => [ // REQUIRED
'floatValue' => <float>,
'stringValue' => '<string>',
],
],
// ...
],
],
],
// ...
],
'evaluatorModelConfig' => [ // REQUIRED
'bedrockEvaluatorModels' => [ // REQUIRED
[
'modelIdentifier' => '<string>', // REQUIRED
],
// ...
],
],
],
'datasetMetricConfigs' => [ // REQUIRED
[
'dataset' => [ // REQUIRED
'datasetLocation' => [
's3Uri' => '<string>',
],
'name' => '<string>', // REQUIRED
],
'metricNames' => ['<string>', ...], // REQUIRED
'taskType' => 'Summarization|Classification|QuestionAndAnswer|Generation|Custom', // REQUIRED
],
// ...
],
'evaluatorModelConfig' => [
'bedrockEvaluatorModels' => [
[
'modelIdentifier' => '<string>', // REQUIRED
],
// ...
],
],
],
'human' => [
'customMetrics' => [
[
'description' => '<string>',
'name' => '<string>', // REQUIRED
'ratingMethod' => '<string>', // REQUIRED
],
// ...
],
'datasetMetricConfigs' => [ // REQUIRED
[
'dataset' => [ // REQUIRED
'datasetLocation' => [
's3Uri' => '<string>',
],
'name' => '<string>', // REQUIRED
],
'metricNames' => ['<string>', ...], // REQUIRED
'taskType' => 'Summarization|Classification|QuestionAndAnswer|Generation|Custom', // REQUIRED
],
// ...
],
'humanWorkflowConfig' => [
'flowDefinitionArn' => '<string>', // REQUIRED
'instructions' => '<string>',
],
],
],
'inferenceConfig' => [ // REQUIRED
'models' => [
[
'bedrockModel' => [
'inferenceParams' => '<string>',
'modelIdentifier' => '<string>', // REQUIRED
'performanceConfig' => [
'latency' => 'standard|optimized',
],
],
'precomputedInferenceSource' => [
'inferenceSourceIdentifier' => '<string>', // REQUIRED
],
],
// ...
],
'ragConfigs' => [
[
'knowledgeBaseConfig' => [
'retrieveAndGenerateConfig' => [
'externalSourcesConfiguration' => [
'generationConfiguration' => [
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'guardrailConfiguration' => [
'guardrailId' => '<string>', // REQUIRED
'guardrailVersion' => '<string>', // REQUIRED
],
'kbInferenceConfig' => [
'textInferenceConfig' => [
'maxTokens' => <integer>,
'stopSequences' => ['<string>', ...],
'temperature' => <float>,
'topP' => <float>,
],
],
'promptTemplate' => [
'textPromptTemplate' => '<string>',
],
],
'modelArn' => '<string>', // REQUIRED
'sources' => [ // REQUIRED
[
'byteContent' => [
'contentType' => '<string>', // REQUIRED
'data' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
'identifier' => '<string>', // REQUIRED
],
's3Location' => [
'uri' => '<string>', // REQUIRED
],
'sourceType' => 'S3|BYTE_CONTENT', // REQUIRED
],
// ...
],
],
'knowledgeBaseConfiguration' => [
'generationConfiguration' => [
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'guardrailConfiguration' => [
'guardrailId' => '<string>', // REQUIRED
'guardrailVersion' => '<string>', // REQUIRED
],
'kbInferenceConfig' => [
'textInferenceConfig' => [
'maxTokens' => <integer>,
'stopSequences' => ['<string>', ...],
'temperature' => <float>,
'topP' => <float>,
],
],
'promptTemplate' => [
'textPromptTemplate' => '<string>',
],
],
'knowledgeBaseId' => '<string>', // REQUIRED
'modelArn' => '<string>', // REQUIRED
'orchestrationConfiguration' => [
'queryTransformationConfiguration' => [ // REQUIRED
'type' => 'QUERY_DECOMPOSITION', // REQUIRED
],
],
'retrievalConfiguration' => [
'vectorSearchConfiguration' => [ // REQUIRED
'filter' => [
'andAll' => [
[...], // RECURSIVE
// ...
],
'equals' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'greaterThan' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'greaterThanOrEquals' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'in' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'lessThan' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'lessThanOrEquals' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'listContains' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'notEquals' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'notIn' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'orAll' => [
[...], // RECURSIVE
// ...
],
'startsWith' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'stringContains' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
],
'implicitFilterConfiguration' => [
'metadataAttributes' => [ // REQUIRED
[
'description' => '<string>', // REQUIRED
'key' => '<string>', // REQUIRED
'type' => 'STRING|NUMBER|BOOLEAN|STRING_LIST', // REQUIRED
],
// ...
],
'modelArn' => '<string>', // REQUIRED
],
'numberOfResults' => <integer>,
'overrideSearchType' => 'HYBRID|SEMANTIC',
'rerankingConfiguration' => [
'bedrockRerankingConfiguration' => [
'metadataConfiguration' => [
'selectionMode' => 'SELECTIVE|ALL', // REQUIRED
'selectiveModeConfiguration' => [
'fieldsToExclude' => [
[
'fieldName' => '<string>', // REQUIRED
],
// ...
],
'fieldsToInclude' => [
[
'fieldName' => '<string>', // REQUIRED
],
// ...
],
],
],
'modelConfiguration' => [ // REQUIRED
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'modelArn' => '<string>', // REQUIRED
],
'numberOfRerankedResults' => <integer>,
],
'type' => 'BEDROCK_RERANKING_MODEL', // REQUIRED
],
],
],
],
'type' => 'KNOWLEDGE_BASE|EXTERNAL_SOURCES', // REQUIRED
],
'retrieveConfig' => [
'knowledgeBaseId' => '<string>', // REQUIRED
'knowledgeBaseRetrievalConfiguration' => [ // REQUIRED
'vectorSearchConfiguration' => [ // REQUIRED
'filter' => [
'andAll' => [
[...], // RECURSIVE
// ...
],
'equals' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'greaterThan' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'greaterThanOrEquals' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'in' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'lessThan' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'lessThanOrEquals' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'listContains' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'notEquals' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'notIn' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'orAll' => [
[...], // RECURSIVE
// ...
],
'startsWith' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
'stringContains' => [
'key' => '<string>', // REQUIRED
'value' => [ // REQUIRED
],
],
],
'implicitFilterConfiguration' => [
'metadataAttributes' => [ // REQUIRED
[
'description' => '<string>', // REQUIRED
'key' => '<string>', // REQUIRED
'type' => 'STRING|NUMBER|BOOLEAN|STRING_LIST', // REQUIRED
],
// ...
],
'modelArn' => '<string>', // REQUIRED
],
'numberOfResults' => <integer>,
'overrideSearchType' => 'HYBRID|SEMANTIC',
'rerankingConfiguration' => [
'bedrockRerankingConfiguration' => [
'metadataConfiguration' => [
'selectionMode' => 'SELECTIVE|ALL', // REQUIRED
'selectiveModeConfiguration' => [
'fieldsToExclude' => [
[
'fieldName' => '<string>', // REQUIRED
],
// ...
],
'fieldsToInclude' => [
[
'fieldName' => '<string>', // REQUIRED
],
// ...
],
],
],
'modelConfiguration' => [ // REQUIRED
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'modelArn' => '<string>', // REQUIRED
],
'numberOfRerankedResults' => <integer>,
],
'type' => 'BEDROCK_RERANKING_MODEL', // REQUIRED
],
],
],
],
],
'precomputedRagSourceConfig' => [
'retrieveAndGenerateSourceConfig' => [
'ragSourceIdentifier' => '<string>', // REQUIRED
],
'retrieveSourceConfig' => [
'ragSourceIdentifier' => '<string>', // REQUIRED
],
],
],
// ...
],
],
'jobDescription' => '<string>',
'jobName' => '<string>', // REQUIRED
'jobTags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
'outputDataConfig' => [ // REQUIRED
's3Uri' => '<string>', // REQUIRED
],
'roleArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- applicationType
-
- Type: string
Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation).
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- customerEncryptionKeyId
-
- Type: string
Specify your customer managed encryption key Amazon Resource Name (ARN) that will be used to encrypt your evaluation job.
- evaluationConfig
-
- Required: Yes
- Type: EvaluationConfig structure
Contains the configuration details of either an automated or human-based evaluation job.
- inferenceConfig
-
- Required: Yes
- Type: EvaluationInferenceConfig structure
Contains the configuration details of the inference model for the evaluation job.
For model evaluation jobs, automated jobs support a single model or inference profile, and jobs that use human workers support two models or inference profiles.
- jobDescription
-
- Type: string
A description of the evaluation job.
- jobName
-
- Required: Yes
- Type: string
A name for the evaluation job. Names must unique with your Amazon Web Services account, and your account's Amazon Web Services region.
- jobTags
-
- Type: Array of Tag structures
Tags to attach to the model evaluation job.
- outputDataConfig
-
- Required: Yes
- Type: EvaluationOutputDataConfig structure
Contains the configuration details of the Amazon S3 bucket for storing the results of the evaluation job.
- roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. To learn more about the required permissions, see Required permissions for model evaluations.
Result Syntax
[
'jobArn' => '<string>',
]
Result Details
Members
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the evaluation job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateFoundationModelAgreement
$result = $client->createFoundationModelAgreement([/* ... */]); $promise = $client->createFoundationModelAgreementAsync([/* ... */]);
Request a model access agreement for the specified model.
Parameter Syntax
$result = $client->createFoundationModelAgreement([
'modelId' => '<string>', // REQUIRED
'offerToken' => '<string>', // REQUIRED
]);
Parameter Details
Members
- modelId
-
- Required: Yes
- Type: string
Model Id of the model for the access request.
- offerToken
-
- Required: Yes
- Type: string
An offer token encapsulates the information for an offer.
Result Syntax
[
'modelId' => '<string>',
]
Result Details
Members
- modelId
-
- Required: Yes
- Type: string
Model Id of the model for the access request.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateGuardrail
$result = $client->createGuardrail([/* ... */]); $promise = $client->createGuardrailAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createGuardrail([
'automatedReasoningPolicyConfig' => [
'confidenceThreshold' => <float>,
'policies' => ['<string>', ...], // REQUIRED
],
'blockedInputMessaging' => '<string>', // REQUIRED
'blockedOutputsMessaging' => '<string>', // REQUIRED
'clientRequestToken' => '<string>',
'contentPolicyConfig' => [
'filtersConfig' => [ // REQUIRED
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'inputModalities' => ['<string>', ...],
'inputStrength' => 'NONE|LOW|MEDIUM|HIGH', // REQUIRED
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'outputModalities' => ['<string>', ...],
'outputStrength' => 'NONE|LOW|MEDIUM|HIGH', // REQUIRED
'type' => 'SEXUAL|VIOLENCE|HATE|INSULTS|MISCONDUCT|PROMPT_ATTACK', // REQUIRED
],
// ...
],
'tierConfig' => [
'tierName' => 'CLASSIC|STANDARD', // REQUIRED
],
],
'contextualGroundingPolicyConfig' => [
'filtersConfig' => [ // REQUIRED
[
'action' => 'BLOCK|NONE',
'enabled' => true || false,
'threshold' => <float>, // REQUIRED
'type' => 'GROUNDING|RELEVANCE', // REQUIRED
],
// ...
],
],
'crossRegionConfig' => [
'guardrailProfileIdentifier' => '<string>', // REQUIRED
],
'description' => '<string>',
'kmsKeyId' => '<string>',
'name' => '<string>', // REQUIRED
'sensitiveInformationPolicyConfig' => [
'piiEntitiesConfig' => [
[
'action' => 'BLOCK|ANONYMIZE|NONE', // REQUIRED
'inputAction' => 'BLOCK|ANONYMIZE|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|ANONYMIZE|NONE',
'outputEnabled' => true || false,
'type' => 'ADDRESS|AGE|AWS_ACCESS_KEY|AWS_SECRET_KEY|CA_HEALTH_NUMBER|CA_SOCIAL_INSURANCE_NUMBER|CREDIT_DEBIT_CARD_CVV|CREDIT_DEBIT_CARD_EXPIRY|CREDIT_DEBIT_CARD_NUMBER|DRIVER_ID|EMAIL|INTERNATIONAL_BANK_ACCOUNT_NUMBER|IP_ADDRESS|LICENSE_PLATE|MAC_ADDRESS|NAME|PASSWORD|PHONE|PIN|SWIFT_CODE|UK_NATIONAL_HEALTH_SERVICE_NUMBER|UK_NATIONAL_INSURANCE_NUMBER|UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER|URL|USERNAME|US_BANK_ACCOUNT_NUMBER|US_BANK_ROUTING_NUMBER|US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER|US_PASSPORT_NUMBER|US_SOCIAL_SECURITY_NUMBER|VEHICLE_IDENTIFICATION_NUMBER', // REQUIRED
],
// ...
],
'regexesConfig' => [
[
'action' => 'BLOCK|ANONYMIZE|NONE', // REQUIRED
'description' => '<string>',
'inputAction' => 'BLOCK|ANONYMIZE|NONE',
'inputEnabled' => true || false,
'name' => '<string>', // REQUIRED
'outputAction' => 'BLOCK|ANONYMIZE|NONE',
'outputEnabled' => true || false,
'pattern' => '<string>', // REQUIRED
],
// ...
],
],
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
'topicPolicyConfig' => [
'tierConfig' => [
'tierName' => 'CLASSIC|STANDARD', // REQUIRED
],
'topicsConfig' => [ // REQUIRED
[
'definition' => '<string>', // REQUIRED
'examples' => ['<string>', ...],
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'name' => '<string>', // REQUIRED
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'type' => 'DENY', // REQUIRED
],
// ...
],
],
'wordPolicyConfig' => [
'managedWordListsConfig' => [
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'type' => 'PROFANITY', // REQUIRED
],
// ...
],
'wordsConfig' => [
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'text' => '<string>', // REQUIRED
],
// ...
],
],
]);
Parameter Details
Members
- automatedReasoningPolicyConfig
-
- Type: GuardrailAutomatedReasoningPolicyConfig structure
Optional configuration for integrating Automated Reasoning policies with the new guardrail.
- blockedInputMessaging
-
- Required: Yes
- Type: string
The message to return when the guardrail blocks a prompt.
- blockedOutputsMessaging
-
- Required: Yes
- Type: string
The message to return when the guardrail blocks a model response.
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
- contentPolicyConfig
-
- Type: GuardrailContentPolicyConfig structure
The content filter policies to configure for the guardrail.
- contextualGroundingPolicyConfig
-
- Type: GuardrailContextualGroundingPolicyConfig structure
The contextual grounding policy configuration used to create a guardrail.
- crossRegionConfig
-
- Type: GuardrailCrossRegionConfig structure
The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
For more information, see the Amazon Bedrock User Guide.
- description
-
- Type: string
A description of the guardrail.
- kmsKeyId
-
- Type: string
The ARN of the KMS key that you use to encrypt the guardrail.
- name
-
- Required: Yes
- Type: string
The name to give the guardrail.
- sensitiveInformationPolicyConfig
-
- Type: GuardrailSensitiveInformationPolicyConfig structure
The sensitive information policy to configure for the guardrail.
- tags
-
- Type: Array of Tag structures
The tags that you want to attach to the guardrail.
- topicPolicyConfig
-
- Type: GuardrailTopicPolicyConfig structure
The topic policies to configure for the guardrail.
- wordPolicyConfig
-
- Type: GuardrailWordPolicyConfig structure
The word policy you configure for the guardrail.
Result Syntax
[
'createdAt' => <DateTime>,
'guardrailArn' => '<string>',
'guardrailId' => '<string>',
'version' => '<string>',
]
Result Details
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the guardrail was created.
- guardrailArn
-
- Required: Yes
- Type: string
The ARN of the guardrail.
- guardrailId
-
- Required: Yes
- Type: string
The unique identifier of the guardrail that was created.
- version
-
- Required: Yes
- Type: string
The version of the guardrail that was created. This value will always be
DRAFT.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateGuardrailVersion
$result = $client->createGuardrailVersion([/* ... */]); $promise = $client->createGuardrailVersionAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createGuardrailVersion([
'clientRequestToken' => '<string>',
'description' => '<string>',
'guardrailIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
- description
-
- Type: string
A description of the guardrail version.
- guardrailIdentifier
-
- Required: Yes
- Type: string
The unique identifier of the guardrail. This can be an ID or the ARN.
Result Syntax
[
'guardrailId' => '<string>',
'version' => '<string>',
]
Result Details
Members
- guardrailId
-
- Required: Yes
- Type: string
The unique identifier of the guardrail.
- version
-
- Required: Yes
- Type: string
The number of the version of the guardrail.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateInferenceProfile
$result = $client->createInferenceProfile([/* ... */]); $promise = $client->createInferenceProfileAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createInferenceProfile([
'clientRequestToken' => '<string>',
'description' => '<string>',
'inferenceProfileName' => '<string>', // REQUIRED
'modelSource' => [ // REQUIRED
'copyFrom' => '<string>',
],
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- description
-
- Type: string
A description for the inference profile.
- inferenceProfileName
-
- Required: Yes
- Type: string
A name for the inference profile.
- modelSource
-
- Required: Yes
- Type: InferenceProfileModelSource structure
The foundation model or system-defined inference profile that the inference profile will track metrics and costs for.
- tags
-
- Type: Array of Tag structures
An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide.
Result Syntax
[
'inferenceProfileArn' => '<string>',
'status' => 'ACTIVE',
]
Result Details
Members
- inferenceProfileArn
-
- Required: Yes
- Type: string
The ARN of the inference profile that you created.
- status
-
- Type: string
The status of the inference profile.
ACTIVEmeans that the inference profile is ready to be used.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateMarketplaceModelEndpoint
$result = $client->createMarketplaceModelEndpoint([/* ... */]); $promise = $client->createMarketplaceModelEndpointAsync([/* ... */]);
Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.
Parameter Syntax
$result = $client->createMarketplaceModelEndpoint([
'acceptEula' => true || false,
'clientRequestToken' => '<string>',
'endpointConfig' => [ // REQUIRED
'sageMaker' => [
'executionRole' => '<string>', // REQUIRED
'initialInstanceCount' => <integer>, // REQUIRED
'instanceType' => '<string>', // REQUIRED
'kmsEncryptionKey' => '<string>',
'vpc' => [
'securityGroupIds' => ['<string>', ...], // REQUIRED
'subnetIds' => ['<string>', ...], // REQUIRED
],
],
],
'endpointName' => '<string>', // REQUIRED
'modelSourceIdentifier' => '<string>', // REQUIRED
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- acceptEula
-
- Type: boolean
Indicates whether you accept the end-user license agreement (EULA) for the model. Set to
trueto accept the EULA. - clientRequestToken
-
- Type: string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is listed as not required because Amazon Web Services SDKs automatically generate it for you and set this parameter. If you're not using the Amazon Web Services SDK or the CLI, you must provide this token or the action will fail.
- endpointConfig
-
- Required: Yes
- Type: EndpointConfig structure
The configuration for the endpoint, including the number and type of instances to use.
- endpointName
-
- Required: Yes
- Type: string
The name of the endpoint. This name must be unique within your Amazon Web Services account and region.
- modelSourceIdentifier
-
- Required: Yes
- Type: string
The ARN of the model from Amazon Bedrock Marketplace that you want to deploy to the endpoint.
- tags
-
- Type: Array of Tag structures
An array of key-value pairs to apply to the underlying Amazon SageMaker endpoint. You can use these tags to organize and identify your Amazon Web Services resources.
Result Syntax
[
'marketplaceModelEndpoint' => [
'createdAt' => <DateTime>,
'endpointArn' => '<string>',
'endpointConfig' => [
'sageMaker' => [
'executionRole' => '<string>',
'initialInstanceCount' => <integer>,
'instanceType' => '<string>',
'kmsEncryptionKey' => '<string>',
'vpc' => [
'securityGroupIds' => ['<string>', ...],
'subnetIds' => ['<string>', ...],
],
],
],
'endpointStatus' => '<string>',
'endpointStatusMessage' => '<string>',
'modelSourceIdentifier' => '<string>',
'status' => 'REGISTERED|INCOMPATIBLE_ENDPOINT',
'statusMessage' => '<string>',
'updatedAt' => <DateTime>,
],
]
Result Details
Members
- marketplaceModelEndpoint
-
- Required: Yes
- Type: MarketplaceModelEndpoint structure
Details about the created endpoint.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateModelCopyJob
$result = $client->createModelCopyJob([/* ... */]); $promise = $client->createModelCopyJobAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createModelCopyJob([
'clientRequestToken' => '<string>',
'modelKmsKeyId' => '<string>',
'sourceModelArn' => '<string>', // REQUIRED
'targetModelName' => '<string>', // REQUIRED
'targetModelTags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- modelKmsKeyId
-
- Type: string
The ARN of the KMS key that you use to encrypt the model copy.
- sourceModelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the model to be copied.
- targetModelName
-
- Required: Yes
- Type: string
A name for the copied model.
- targetModelTags
-
- Type: Array of Tag structures
Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.
Result Syntax
[
'jobArn' => '<string>',
]
Result Details
Members
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the model copy job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
CreateModelCustomizationJob
$result = $client->createModelCustomizationJob([/* ... */]); $promise = $client->createModelCustomizationJobAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createModelCustomizationJob([
'baseModelIdentifier' => '<string>', // REQUIRED
'clientRequestToken' => '<string>',
'customModelKmsKeyId' => '<string>',
'customModelName' => '<string>', // REQUIRED
'customModelTags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
'customizationConfig' => [
'distillationConfig' => [
'teacherModelConfig' => [ // REQUIRED
'maxResponseLengthForInference' => <integer>,
'teacherModelIdentifier' => '<string>', // REQUIRED
],
],
'rftConfig' => [
'graderConfig' => [
'lambdaGrader' => [
'lambdaArn' => '<string>', // REQUIRED
],
],
'hyperParameters' => [
'batchSize' => <integer>,
'epochCount' => <integer>,
'evalInterval' => <integer>,
'inferenceMaxTokens' => <integer>,
'learningRate' => <float>,
'maxPromptLength' => <integer>,
'reasoningEffort' => 'low|medium|high',
'trainingSamplePerPrompt' => <integer>,
],
],
],
'customizationType' => 'FINE_TUNING|CONTINUED_PRE_TRAINING|DISTILLATION|REINFORCEMENT_FINE_TUNING|IMPORTED',
'hyperParameters' => ['<string>', ...],
'jobName' => '<string>', // REQUIRED
'jobTags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
'outputDataConfig' => [ // REQUIRED
's3Uri' => '<string>', // REQUIRED
],
'roleArn' => '<string>', // REQUIRED
'trainingDataConfig' => [ // REQUIRED
'invocationLogsConfig' => [
'invocationLogSource' => [ // REQUIRED
's3Uri' => '<string>',
],
'requestMetadataFilters' => [
'andAll' => [
[
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
],
// ...
],
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
'orAll' => [
[
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
],
// ...
],
],
'usePromptResponse' => true || false,
],
's3Uri' => '<string>',
],
'validationDataConfig' => [
'validators' => [ // REQUIRED
[
's3Uri' => '<string>', // REQUIRED
],
// ...
],
],
'vpcConfig' => [
'securityGroupIds' => ['<string>', ...], // REQUIRED
'subnetIds' => ['<string>', ...], // REQUIRED
],
]);
Parameter Details
Members
- baseModelIdentifier
-
- Required: Yes
- Type: string
Name of the base model.
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- customModelKmsKeyId
-
- Type: string
The custom model is encrypted at rest using this key.
- customModelName
-
- Required: Yes
- Type: string
A name for the resulting custom model.
- customModelTags
-
- Type: Array of Tag structures
Tags to attach to the resulting custom model.
- customizationConfig
-
- Type: CustomizationConfig structure
The customization configuration for the model customization job.
- customizationType
-
- Type: string
The customization type.
- hyperParameters
-
- Type: Associative array of custom strings keys (String) to strings
Parameters related to tuning the model. For details on the format for different models, see Custom model hyperparameters.
- jobName
-
- Required: Yes
- Type: string
A name for the fine-tuning job.
- jobTags
-
- Type: Array of Tag structures
Tags to attach to the job.
- outputDataConfig
-
- Required: Yes
- Type: OutputDataConfig structure
S3 location for the output data.
- roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Amazon Bedrock, the caller of this API must have the
iam:PassRolepermission. - trainingDataConfig
-
- Required: Yes
- Type: TrainingDataConfig structure
Information about the training dataset.
- validationDataConfig
-
- Type: ValidationDataConfig structure
Information about the validation dataset.
- vpcConfig
-
- Type: VpcConfig structure
The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this job. For more information, see Protect your model customization jobs using a VPC.
Result Syntax
[
'jobArn' => '<string>',
]
Result Details
Members
- jobArn
-
- Required: Yes
- Type: string
Amazon Resource Name (ARN) of the fine tuning job
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateModelImportJob
$result = $client->createModelImportJob([/* ... */]); $promise = $client->createModelImportJobAsync([/* ... */]);
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
Parameter Syntax
$result = $client->createModelImportJob([
'clientRequestToken' => '<string>',
'importedModelKmsKeyId' => '<string>',
'importedModelName' => '<string>', // REQUIRED
'importedModelTags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
'jobName' => '<string>', // REQUIRED
'jobTags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
'modelDataSource' => [ // REQUIRED
's3DataSource' => [
's3Uri' => '<string>', // REQUIRED
],
],
'roleArn' => '<string>', // REQUIRED
'vpcConfig' => [
'securityGroupIds' => ['<string>', ...], // REQUIRED
'subnetIds' => ['<string>', ...], // REQUIRED
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- importedModelKmsKeyId
-
- Type: string
The imported model is encrypted at rest using this key.
- importedModelName
-
- Required: Yes
- Type: string
The name of the imported model.
- importedModelTags
-
- Type: Array of Tag structures
Tags to attach to the imported model.
- jobName
-
- Required: Yes
- Type: string
The name of the import job.
- jobTags
-
- Type: Array of Tag structures
Tags to attach to this import job.
- modelDataSource
-
- Required: Yes
- Type: ModelDataSource structure
The data source for the imported model.
- roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the model import job.
- vpcConfig
-
- Type: VpcConfig structure
VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.
Result Syntax
[
'jobArn' => '<string>',
]
Result Details
Members
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the model import job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateModelInvocationJob
$result = $client->createModelInvocationJob([/* ... */]); $promise = $client->createModelInvocationJobAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createModelInvocationJob([
'clientRequestToken' => '<string>',
'inputDataConfig' => [ // REQUIRED
's3InputDataConfig' => [
's3BucketOwner' => '<string>',
's3InputFormat' => 'JSONL',
's3Uri' => '<string>', // REQUIRED
],
],
'jobName' => '<string>', // REQUIRED
'modelId' => '<string>', // REQUIRED
'modelInvocationType' => 'InvokeModel|Converse',
'outputDataConfig' => [ // REQUIRED
's3OutputDataConfig' => [
's3BucketOwner' => '<string>',
's3EncryptionKeyId' => '<string>',
's3Uri' => '<string>', // REQUIRED
],
],
'roleArn' => '<string>', // REQUIRED
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
'timeoutDurationInHours' => <integer>,
'vpcConfig' => [
'securityGroupIds' => ['<string>', ...], // REQUIRED
'subnetIds' => ['<string>', ...], // REQUIRED
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- inputDataConfig
-
- Required: Yes
- Type: ModelInvocationJobInputDataConfig structure
Details about the location of the input to the batch inference job.
- jobName
-
- Required: Yes
- Type: string
A name to give the batch inference job.
- modelId
-
- Required: Yes
- Type: string
The unique identifier of the foundation model to use for the batch inference job.
- modelInvocationType
-
- Type: string
The invocation endpoint for ModelInvocationJob
- outputDataConfig
-
- Required: Yes
- Type: ModelInvocationJobOutputDataConfig structure
Details about the location of the output of the batch inference job.
- roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference.
- tags
-
- Type: Array of Tag structures
Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources.
- timeoutDurationInHours
-
- Type: int
The number of hours after which to force the batch inference job to time out.
- vpcConfig
-
- Type: VpcConfig structure
The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC.
Result Syntax
[
'jobArn' => '<string>',
]
Result Details
Members
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the batch inference job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreatePromptRouter
$result = $client->createPromptRouter([/* ... */]); $promise = $client->createPromptRouterAsync([/* ... */]);
Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.
Parameter Syntax
$result = $client->createPromptRouter([
'clientRequestToken' => '<string>',
'description' => '<string>',
'fallbackModel' => [ // REQUIRED
'modelArn' => '<string>', // REQUIRED
],
'models' => [ // REQUIRED
[
'modelArn' => '<string>', // REQUIRED
],
// ...
],
'promptRouterName' => '<string>', // REQUIRED
'routingCriteria' => [ // REQUIRED
'responseQualityDifference' => <float>, // REQUIRED
],
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.
- description
-
- Type: string
An optional description of the prompt router to help identify its purpose.
- fallbackModel
-
- Required: Yes
- Type: PromptRouterTargetModel structure
The default model to use when the routing criteria is not met.
- models
-
- Required: Yes
- Type: Array of PromptRouterTargetModel structures
A list of foundation models that the prompt router can route requests to. At least one model must be specified.
- promptRouterName
-
- Required: Yes
- Type: string
The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.
- routingCriteria
-
- Required: Yes
- Type: RoutingCriteria structure
The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.
- tags
-
- Type: Array of Tag structures
An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.
Result Syntax
[
'promptRouterArn' => '<string>',
]
Result Details
Members
- promptRouterArn
-
- Type: string
The Amazon Resource Name (ARN) that uniquely identifies the prompt router.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
CreateProvisionedModelThroughput
$result = $client->createProvisionedModelThroughput([/* ... */]); $promise = $client->createProvisionedModelThroughputAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->createProvisionedModelThroughput([
'clientRequestToken' => '<string>',
'commitmentDuration' => 'OneMonth|SixMonths',
'modelId' => '<string>', // REQUIRED
'modelUnits' => <integer>, // REQUIRED
'provisionedModelName' => '<string>', // REQUIRED
'tags' => [
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
- commitmentDuration
-
- Type: string
The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.
Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide
- modelId
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput in the Amazon Bedrock User Guide.
- modelUnits
-
- Required: Yes
- Type: int
Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon Web Services support center to request MUs.
For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.
For more information about what an MU specifies, contact your Amazon Web Services account manager.
- provisionedModelName
-
- Required: Yes
- Type: string
The name for this Provisioned Throughput.
- tags
-
- Type: Array of Tag structures
Tags to associate with this Provisioned Throughput.
Result Syntax
[
'provisionedModelArn' => '<string>',
]
Result Details
Members
- provisionedModelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) for this Provisioned Throughput.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteAutomatedReasoningPolicy
$result = $client->deleteAutomatedReasoningPolicy([/* ... */]); $promise = $client->deleteAutomatedReasoningPolicyAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->deleteAutomatedReasoningPolicy([
'force' => true || false,
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- force
-
- Type: boolean
Specifies whether to force delete the automated reasoning policy even if it has active resources. When
false, Amazon Bedrock validates if all artifacts have been deleted (e.g. policy version, test case, test result) for a policy before deletion. Whentrue, Amazon Bedrock will delete the policy and all its artifacts without validation. Default isfalse. - policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ResourceInUseException:
Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteAutomatedReasoningPolicyBuildWorkflow
$result = $client->deleteAutomatedReasoningPolicyBuildWorkflow([/* ... */]); $promise = $client->deleteAutomatedReasoningPolicyBuildWorkflowAsync([/* ... */]);
Deletes an Automated Reasoning policy build workflow and its associated artifacts. This permanently removes the workflow history and any generated assets.
Parameter Syntax
$result = $client->deleteAutomatedReasoningPolicyBuildWorkflow([
'buildWorkflowId' => '<string>', // REQUIRED
'lastUpdatedAt' => <integer || string || DateTime>, // REQUIRED
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow to delete.
- lastUpdatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the build workflow was last updated. This is used for optimistic concurrency control to prevent accidental deletion of workflows that have been modified.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy whose build workflow you want to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ResourceInUseException:
Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteAutomatedReasoningPolicyTestCase
$result = $client->deleteAutomatedReasoningPolicyTestCase([/* ... */]); $promise = $client->deleteAutomatedReasoningPolicyTestCaseAsync([/* ... */]);
Deletes an Automated Reasoning policy test. This operation is idempotent; if you delete a test more than once, each call succeeds.
Parameter Syntax
$result = $client->deleteAutomatedReasoningPolicyTestCase([
'lastUpdatedAt' => <integer || string || DateTime>, // REQUIRED
'policyArn' => '<string>', // REQUIRED
'testCaseId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- lastUpdatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
- testCaseId
-
- Required: Yes
- Type: string
The unique identifier of the test to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ResourceInUseException:
Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteCustomModel
$result = $client->deleteCustomModel([/* ... */]); $promise = $client->deleteCustomModelAsync([/* ... */]);
Deletes a custom model that you created earlier. For more information, see Custom models in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->deleteCustomModel([
'modelIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- modelIdentifier
-
- Required: Yes
- Type: string
Name of the model to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteCustomModelDeployment
$result = $client->deleteCustomModelDeployment([/* ... */]); $promise = $client->deleteCustomModelDeploymentAsync([/* ... */]);
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:
Parameter Syntax
$result = $client->deleteCustomModelDeployment([
'customModelDeploymentIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- customModelDeploymentIdentifier
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) or name of the custom model deployment to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteEnforcedGuardrailConfiguration
$result = $client->deleteEnforcedGuardrailConfiguration([/* ... */]); $promise = $client->deleteEnforcedGuardrailConfigurationAsync([/* ... */]);
Deletes the account-level enforced guardrail configuration.
Parameter Syntax
$result = $client->deleteEnforcedGuardrailConfiguration([
'configId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- configId
-
- Required: Yes
- Type: string
Unique ID for the account enforced configuration.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteFoundationModelAgreement
$result = $client->deleteFoundationModelAgreement([/* ... */]); $promise = $client->deleteFoundationModelAgreementAsync([/* ... */]);
Delete the model access agreement for the specified model.
Parameter Syntax
$result = $client->deleteFoundationModelAgreement([
'modelId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- modelId
-
- Required: Yes
- Type: string
Model Id of the model access to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteGuardrail
$result = $client->deleteGuardrail([/* ... */]); $promise = $client->deleteGuardrailAsync([/* ... */]);
Deletes a guardrail.
-
To delete a guardrail, only specify the ARN of the guardrail in the
guardrailIdentifierfield. If you delete a guardrail, all of its versions will be deleted. -
To delete a version of a guardrail, specify the ARN of the guardrail in the
guardrailIdentifierfield and the version in theguardrailVersionfield.
Parameter Syntax
$result = $client->deleteGuardrail([
'guardrailIdentifier' => '<string>', // REQUIRED
'guardrailVersion' => '<string>',
]);
Parameter Details
Members
- guardrailIdentifier
-
- Required: Yes
- Type: string
The unique identifier of the guardrail. This can be an ID or the ARN.
- guardrailVersion
-
- Type: string
The version of the guardrail.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ResourceInUseException:
Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteImportedModel
$result = $client->deleteImportedModel([/* ... */]); $promise = $client->deleteImportedModelAsync([/* ... */]);
Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->deleteImportedModel([
'modelIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- modelIdentifier
-
- Required: Yes
- Type: string
Name of the imported model to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteInferenceProfile
$result = $client->deleteInferenceProfile([/* ... */]); $promise = $client->deleteInferenceProfileAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->deleteInferenceProfile([
'inferenceProfileIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- inferenceProfileIdentifier
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) or ID of the application inference profile to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteMarketplaceModelEndpoint
$result = $client->deleteMarketplaceModelEndpoint([/* ... */]); $promise = $client->deleteMarketplaceModelEndpointAsync([/* ... */]);
Deletes an endpoint for a model from Amazon Bedrock Marketplace.
Parameter Syntax
$result = $client->deleteMarketplaceModelEndpoint([
'endpointArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- endpointArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the endpoint you want to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteModelInvocationLoggingConfiguration
$result = $client->deleteModelInvocationLoggingConfiguration([/* ... */]); $promise = $client->deleteModelInvocationLoggingConfigurationAsync([/* ... */]);
Delete the invocation logging.
Parameter Syntax
$result = $client->deleteModelInvocationLoggingConfiguration([ ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeletePromptRouter
$result = $client->deletePromptRouter([/* ... */]); $promise = $client->deletePromptRouterAsync([/* ... */]);
Deletes a specified prompt router. This action cannot be undone.
Parameter Syntax
$result = $client->deletePromptRouter([
'promptRouterArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- promptRouterArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the prompt router to delete.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteProvisionedModelThroughput
$result = $client->deleteProvisionedModelThroughput([/* ... */]); $promise = $client->deleteProvisionedModelThroughputAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->deleteProvisionedModelThroughput([
'provisionedModelId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- provisionedModelId
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeleteResourcePolicy
$result = $client->deleteResourcePolicy([/* ... */]); $promise = $client->deleteResourcePolicyAsync([/* ... */]);
Deletes a previously created Bedrock resource policy.
Parameter Syntax
$result = $client->deleteResourcePolicy([
'resourceArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The ARN of the Bedrock resource to which this resource policy applies.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
DeregisterMarketplaceModelEndpoint
$result = $client->deregisterMarketplaceModelEndpoint([/* ... */]); $promise = $client->deregisterMarketplaceModelEndpointAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->deregisterMarketplaceModelEndpoint([
'endpointArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- endpointArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the endpoint you want to deregister.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ServiceUnavailableException:
Returned if the service cannot complete the request.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ExportAutomatedReasoningPolicyVersion
$result = $client->exportAutomatedReasoningPolicyVersion([/* ... */]); $promise = $client->exportAutomatedReasoningPolicyVersionAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->exportAutomatedReasoningPolicyVersion([
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy to export. Can be either the unversioned ARN for the draft policy or a versioned ARN for a specific policy version.
Result Syntax
[
'policyDefinition' => [
'rules' => [
[
'alternateExpression' => '<string>',
'expression' => '<string>',
'id' => '<string>',
],
// ...
],
'types' => [
[
'description' => '<string>',
'name' => '<string>',
'values' => [
[
'description' => '<string>',
'value' => '<string>',
],
// ...
],
],
// ...
],
'variables' => [
[
'description' => '<string>',
'name' => '<string>',
'type' => '<string>',
],
// ...
],
'version' => '<string>',
],
]
Result Details
Members
- policyDefinition
-
- Required: Yes
- Type: AutomatedReasoningPolicyDefinition structure
The exported policy definition containing the formal logic rules, variables, and custom variable types.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAccountDataRetention
$result = $client->getAccountDataRetention([/* ... */]); $promise = $client->getAccountDataRetentionAsync([/* ... */]);
Returns the account-wide data retention mode for Amazon Bedrock.
Parameter Syntax
$result = $client->getAccountDataRetention([ ]);
Parameter Details
Members
Result Syntax
[
'mode' => 'default|none|aws_review|provider_data_share|inherit',
'updatedAt' => <DateTime>,
]
Result Details
Members
- mode
-
- Required: Yes
- Type: string
The data retention mode configured for the account.
- updatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the data retention mode was last updated.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAdvancedPromptOptimizationJob
$result = $client->getAdvancedPromptOptimizationJob([/* ... */]); $promise = $client->getAdvancedPromptOptimizationJobAsync([/* ... */]);
Gets information about an advanced prompt optimization job.
Parameter Syntax
$result = $client->getAdvancedPromptOptimizationJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
The ARN or ID of the advanced prompt optimization job.
Result Syntax
[
'creationTime' => <DateTime>,
'encryptionKeyArn' => '<string>',
'failureMessage' => '<string>',
'inputConfig' => [
's3Uri' => '<string>',
],
'jobArn' => '<string>',
'jobDescription' => '<string>',
'jobName' => '<string>',
'jobStatus' => 'InProgress|Completed|Failed|PartiallyCompleted|Stopping|Stopped|Deleting',
'lastModifiedTime' => <DateTime>,
'modelConfigurations' => [
[
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'inferenceConfig' => [
'maxTokens' => <integer>,
'stopSequences' => ['<string>', ...],
'temperature' => <float>,
'topP' => <float>,
],
'modelId' => '<string>',
],
// ...
],
'outputConfig' => [
's3Uri' => '<string>',
],
]
Result Details
Members
- creationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the advanced prompt optimization job was created.
- encryptionKeyArn
-
- Type: string
The Amazon Resource Name (ARN) of the KMS key used to encrypt the output data.
- failureMessage
-
- Type: string
If the job failed, a message describing the reason for the failure.
- inputConfig
-
- Required: Yes
- Type: AdvancedPromptOptimizationInputConfig structure
The input data configuration for the optimization job.
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the advanced prompt optimization job.
- jobDescription
-
- Type: string
The description of the advanced prompt optimization job.
- jobName
-
- Required: Yes
- Type: string
The name of the advanced prompt optimization job.
- jobStatus
-
- Required: Yes
- Type: string
The status of the advanced prompt optimization job.
- lastModifiedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the advanced prompt optimization job was last modified.
- modelConfigurations
-
- Required: Yes
- Type: Array of ModelConfiguration structures
The model configurations used in the optimization job.
- outputConfig
-
- Required: Yes
- Type: AdvancedPromptOptimizationOutputConfig structure
The output data configuration for the optimization job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAutomatedReasoningPolicy
$result = $client->getAutomatedReasoningPolicy([/* ... */]); $promise = $client->getAutomatedReasoningPolicyAsync([/* ... */]);
Retrieves details about an Automated Reasoning policy or policy version. Returns information including the policy definition, metadata, and timestamps.
Parameter Syntax
$result = $client->getAutomatedReasoningPolicy([
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy to retrieve. Can be either the unversioned ARN for the draft policy or an ARN for a specific policy version.
Result Syntax
[
'createdAt' => <DateTime>,
'definitionHash' => '<string>',
'description' => '<string>',
'kmsKeyArn' => '<string>',
'name' => '<string>',
'policyArn' => '<string>',
'policyId' => '<string>',
'updatedAt' => <DateTime>,
'version' => '<string>',
]
Result Details
Members
- createdAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the policy was created.
- definitionHash
-
- Required: Yes
- Type: string
The hash of the policy definition used as a concurrency token.
- description
-
- Type: string
The description of the policy.
- kmsKeyArn
-
- Type: string
The Amazon Resource Name (ARN) of the KMS key used to encrypt the automated reasoning policy and its associated artifacts. If a KMS key is not provided during the initial CreateAutomatedReasoningPolicyRequest, the kmsKeyArn won't be included in the GetAutomatedReasoningPolicyResponse.
- name
-
- Required: Yes
- Type: string
The name of the policy.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the policy.
- policyId
-
- Required: Yes
- Type: string
The unique identifier of the policy.
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the policy was last updated.
- version
-
- Required: Yes
- Type: string
The version of the policy.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAutomatedReasoningPolicyAnnotations
$result = $client->getAutomatedReasoningPolicyAnnotations([/* ... */]); $promise = $client->getAutomatedReasoningPolicyAnnotationsAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->getAutomatedReasoningPolicyAnnotations([
'buildWorkflowId' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow whose annotations you want to retrieve.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy whose annotations you want to retrieve.
Result Syntax
[
'annotationSetHash' => '<string>',
'annotations' => [
[
'addRule' => [
'expression' => '<string>',
],
'addRuleFromNaturalLanguage' => [
'naturalLanguage' => '<string>',
],
'addType' => [
'description' => '<string>',
'name' => '<string>',
'values' => [
[
'description' => '<string>',
'value' => '<string>',
],
// ...
],
],
'addVariable' => [
'description' => '<string>',
'name' => '<string>',
'type' => '<string>',
],
'deleteRule' => [
'ruleId' => '<string>',
],
'deleteType' => [
'name' => '<string>',
],
'deleteVariable' => [
'name' => '<string>',
],
'ingestContent' => [
'content' => '<string>',
],
'updateFromRulesFeedback' => [
'feedback' => '<string>',
'ruleIds' => ['<string>', ...],
],
'updateFromScenarioFeedback' => [
'feedback' => '<string>',
'ruleIds' => ['<string>', ...],
'scenarioExpression' => '<string>',
],
'updateRule' => [
'expression' => '<string>',
'ruleId' => '<string>',
],
'updateType' => [
'description' => '<string>',
'name' => '<string>',
'newName' => '<string>',
'values' => [
[
'addTypeValue' => [
'description' => '<string>',
'value' => '<string>',
],
'deleteTypeValue' => [
'value' => '<string>',
],
'updateTypeValue' => [
'description' => '<string>',
'newValue' => '<string>',
'value' => '<string>',
],
],
// ...
],
],
'updateVariable' => [
'description' => '<string>',
'name' => '<string>',
'newName' => '<string>',
],
],
// ...
],
'buildWorkflowId' => '<string>',
'name' => '<string>',
'policyArn' => '<string>',
'updatedAt' => <DateTime>,
]
Result Details
Members
- annotationSetHash
-
- Required: Yes
- Type: string
A hash value representing the current state of the annotations. This is used for optimistic concurrency control when updating annotations.
- annotations
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyAnnotation structures
The current set of annotations containing rules, variables, and types extracted from the source documents. These can be modified before finalizing the policy.
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow.
- name
-
- Required: Yes
- Type: string
The name of the Automated Reasoning policy.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy.
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the annotations were last updated.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAutomatedReasoningPolicyBuildWorkflow
$result = $client->getAutomatedReasoningPolicyBuildWorkflow([/* ... */]); $promise = $client->getAutomatedReasoningPolicyBuildWorkflowAsync([/* ... */]);
Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata.
Parameter Syntax
$result = $client->getAutomatedReasoningPolicyBuildWorkflow([
'buildWorkflowId' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow to retrieve.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy whose build workflow you want to retrieve.
Result Syntax
[
'buildWorkflowId' => '<string>',
'buildWorkflowType' => 'INGEST_CONTENT|REFINE_POLICY|IMPORT_POLICY|GENERATE_FIDELITY_REPORT|GENERATE_POLICY_SCENARIOS|RESOLVE_POLICY_AMBIGUITIES|ITERATIVELY_REFINE_POLICY',
'createdAt' => <DateTime>,
'documentContentType' => 'pdf|txt',
'documentDescription' => '<string>',
'documentName' => '<string>',
'policyArn' => '<string>',
'status' => 'SCHEDULED|CANCEL_REQUESTED|PREPROCESSING|BUILDING|TESTING|COMPLETED|FAILED|CANCELLED',
'updatedAt' => <DateTime>,
]
Result Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow.
- buildWorkflowType
-
- Required: Yes
- Type: string
The type of build workflow being executed (e.g., DOCUMENT_INGESTION, POLICY_REPAIR).
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the build workflow was created.
- documentContentType
-
- Type: string
The content type of the source document (e.g., text/plain, application/pdf).
- documentDescription
-
- Type: string
A detailed description of the document's content and how it should be used in the policy generation process.
- documentName
-
- Type: string
The name of the source document used in the build workflow.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy.
- status
-
- Required: Yes
- Type: string
The current status of the build workflow (e.g., RUNNING, COMPLETED, FAILED, CANCELLED).
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the build workflow was last updated.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAutomatedReasoningPolicyBuildWorkflowResultAssets
$result = $client->getAutomatedReasoningPolicyBuildWorkflowResultAssets([/* ... */]); $promise = $client->getAutomatedReasoningPolicyBuildWorkflowResultAssetsAsync([/* ... */]);
Retrieves the resulting assets from a completed Automated Reasoning policy build workflow, including build logs, quality reports, and generated policy artifacts.
Parameter Syntax
$result = $client->getAutomatedReasoningPolicyBuildWorkflowResultAssets([
'assetId' => '<string>',
'assetType' => 'BUILD_LOG|QUALITY_REPORT|POLICY_DEFINITION|GENERATED_TEST_CASES|POLICY_SCENARIOS|FIDELITY_REPORT|ASSET_MANIFEST|SOURCE_DOCUMENT', // REQUIRED
'buildWorkflowId' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- assetId
-
- Type: string
The unique identifier of the specific asset to retrieve when multiple assets of the same type exist. This is required when retrieving SOURCE_DOCUMENT assets, as multiple source documents may have been used in the workflow. The asset ID can be obtained from the asset manifest.
- assetType
-
- Required: Yes
- Type: string
The type of asset to retrieve (e.g., BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION, GENERATED_TEST_CASES, POLICY_SCENARIOS, FIDELITY_REPORT, ASSET_MANIFEST, SOURCE_DOCUMENT).
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow whose result assets you want to retrieve.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy whose build workflow assets you want to retrieve.
Result Syntax
[
'buildWorkflowAssets' => [
'assetManifest' => [
'entries' => [
[
'assetId' => '<string>',
'assetName' => '<string>',
'assetType' => 'BUILD_LOG|QUALITY_REPORT|POLICY_DEFINITION|GENERATED_TEST_CASES|POLICY_SCENARIOS|FIDELITY_REPORT|ASSET_MANIFEST|SOURCE_DOCUMENT',
],
// ...
],
],
'buildLog' => [
'entries' => [
[
'annotation' => [
'addRule' => [
'expression' => '<string>',
],
'addRuleFromNaturalLanguage' => [
'naturalLanguage' => '<string>',
],
'addType' => [
'description' => '<string>',
'name' => '<string>',
'values' => [
[
'description' => '<string>',
'value' => '<string>',
],
// ...
],
],
'addVariable' => [
'description' => '<string>',
'name' => '<string>',
'type' => '<string>',
],
'deleteRule' => [
'ruleId' => '<string>',
],
'deleteType' => [
'name' => '<string>',
],
'deleteVariable' => [
'name' => '<string>',
],
'ingestContent' => [
'content' => '<string>',
],
'updateFromRulesFeedback' => [
'feedback' => '<string>',
'ruleIds' => ['<string>', ...],
],
'updateFromScenarioFeedback' => [
'feedback' => '<string>',
'ruleIds' => ['<string>', ...],
'scenarioExpression' => '<string>',
],
'updateRule' => [
'expression' => '<string>',
'ruleId' => '<string>',
],
'updateType' => [
'description' => '<string>',
'name' => '<string>',
'newName' => '<string>',
'values' => [
[
'addTypeValue' => [
'description' => '<string>',
'value' => '<string>',
],
'deleteTypeValue' => [
'value' => '<string>',
],
'updateTypeValue' => [
'description' => '<string>',
'newValue' => '<string>',
'value' => '<string>',
],
],
// ...
],
],
'updateVariable' => [
'description' => '<string>',
'name' => '<string>',
'newName' => '<string>',
],
],
'buildSteps' => [
[
'context' => [
'mutation' => [
'addRule' => [
'rule' => [
'alternateExpression' => '<string>',
'expression' => '<string>',
'id' => '<string>',
],
],
'addType' => [
'type' => [
'description' => '<string>',
'name' => '<string>',
'values' => [
[
'description' => '<string>',
'value' => '<string>',
],
// ...
],
],
],
'addVariable' => [
'variable' => [
'description' => '<string>',
'name' => '<string>',
'type' => '<string>',
],
],
'deleteRule' => [
'id' => '<string>',
],
'deleteType' => [
'name' => '<string>',
],
'deleteVariable' => [
'name' => '<string>',
],
'updateRule' => [
'rule' => [
'alternateExpression' => '<string>',
'expression' => '<string>',
'id' => '<string>',
],
],
'updateType' => [
'type' => [
'description' => '<string>',
'name' => '<string>',
'values' => [
[
'description' => '<string>',
'value' => '<string>',
],
// ...
],
],
],
'updateVariable' => [
'variable' => [
'description' => '<string>',
'name' => '<string>',
'type' => '<string>',
],
],
],
'planning' => [
],
],
'messages' => [
[
'message' => '<string>',
'messageType' => 'INFO|WARNING|ERROR',
],
// ...
],
'priorElement' => [
'policyDefinitionRule' => [
'alternateExpression' => '<string>',
'expression' => '<string>',
'id' => '<string>',
],
'policyDefinitionType' => [
'description' => '<string>',
'name' => '<string>',
'values' => [
[
'description' => '<string>',
'value' => '<string>',
],
// ...
],
],
'policyDefinitionVariable' => [
'description' => '<string>',
'name' => '<string>',
'type' => '<string>',
],
],
],
// ...
],
'status' => 'APPLIED|FAILED',
],
// ...
],
],
'document' => [
'document' => <string || resource || Psr\Http\Message\StreamInterface>,
'documentContentType' => 'pdf|txt',
'documentDescription' => '<string>',
'documentHash' => '<string>',
'documentName' => '<string>',
],
'fidelityReport' => [
'accuracyScore' => <float>,
'coverageScore' => <float>,
'documentSources' => [
[
'atomicStatements' => [
[
'id' => '<string>',
'location' => [
'lines' => [<integer>, ...],
],
'text' => '<string>',
],
// ...
],
'documentContent' => [
[
'content' => [
[
'line' => [
'lineNumber' => <integer>,
'lineText' => '<string>',
],
],
// ...
],
'pageNumber' => <integer>,
],
// ...
],
'documentHash' => '<string>',
'documentId' => '<string>',
'documentName' => '<string>',
],
// ...
],
'ruleReports' => [
'<AutomatedReasoningPolicyDefinitionRuleId>' => [
'accuracyJustification' => '<string>',
'accuracyScore' => <float>,
'groundingJustifications' => ['<string>', ...],
'groundingStatements' => [
[
'documentId' => '<string>',
'statementId' => '<string>',
],
// ...
],
'rule' => '<string>',
],
// ...
],
'variableReports' => [
'<AutomatedReasoningPolicyDefinitionVariableName>' => [
'accuracyJustification' => '<string>',
'accuracyScore' => <float>,
'groundingJustifications' => ['<string>', ...],
'groundingStatements' => [
[
'documentId' => '<string>',
'statementId' => '<string>',
],
// ...
],
'policyVariable' => '<string>',
],
// ...
],
],
'generatedTestCases' => [
'generatedTestCases' => [
[
'expectedAggregatedFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'guardContent' => '<string>',
'queryContent' => '<string>',
],
// ...
],
],
'policyDefinition' => [
'rules' => [
[
'alternateExpression' => '<string>',
'expression' => '<string>',
'id' => '<string>',
],
// ...
],
'types' => [
[
'description' => '<string>',
'name' => '<string>',
'values' => [
[
'description' => '<string>',
'value' => '<string>',
],
// ...
],
],
// ...
],
'variables' => [
[
'description' => '<string>',
'name' => '<string>',
'type' => '<string>',
],
// ...
],
'version' => '<string>',
],
'policyScenarios' => [
'policyScenarios' => [
[
'alternateExpression' => '<string>',
'expectedResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'expression' => '<string>',
'ruleIds' => ['<string>', ...],
],
// ...
],
],
'qualityReport' => [
'conflictingRules' => ['<string>', ...],
'disjointRuleSets' => [
[
'rules' => ['<string>', ...],
'variables' => ['<string>', ...],
],
// ...
],
'ruleCount' => <integer>,
'typeCount' => <integer>,
'unusedTypeValues' => [
[
'typeName' => '<string>',
'valueName' => '<string>',
],
// ...
],
'unusedTypes' => ['<string>', ...],
'unusedVariables' => ['<string>', ...],
'variableCount' => <integer>,
],
],
'buildWorkflowId' => '<string>',
'policyArn' => '<string>',
]
Result Details
Members
- buildWorkflowAssets
-
- Type: AutomatedReasoningPolicyBuildResultAssets structure
The requested build workflow asset. This is a union type that returns only one of the available asset types (logs, reports, or generated artifacts) based on the specific asset type requested in the API call.
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAutomatedReasoningPolicyNextScenario
$result = $client->getAutomatedReasoningPolicyNextScenario([/* ... */]); $promise = $client->getAutomatedReasoningPolicyNextScenarioAsync([/* ... */]);
Retrieves the next test scenario for validating an Automated Reasoning policy. This is used during the interactive policy refinement process to test policy behavior.
Parameter Syntax
$result = $client->getAutomatedReasoningPolicyNextScenario([
'buildWorkflowId' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow associated with the test scenarios.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which you want to get the next test scenario.
Result Syntax
[
'policyArn' => '<string>',
'scenario' => [
'alternateExpression' => '<string>',
'expectedResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'expression' => '<string>',
'ruleIds' => ['<string>', ...],
],
]
Result Details
Members
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy.
- scenario
-
- Type: AutomatedReasoningPolicyScenario structure
The next test scenario to validate, including the test expression and expected results.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAutomatedReasoningPolicyTestCase
$result = $client->getAutomatedReasoningPolicyTestCase([/* ... */]); $promise = $client->getAutomatedReasoningPolicyTestCaseAsync([/* ... */]);
Retrieves details about a specific Automated Reasoning policy test.
Parameter Syntax
$result = $client->getAutomatedReasoningPolicyTestCase([
'policyArn' => '<string>', // REQUIRED
'testCaseId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
- testCaseId
-
- Required: Yes
- Type: string
The unique identifier of the test to retrieve.
Result Syntax
[
'policyArn' => '<string>',
'testCase' => [
'confidenceThreshold' => <float>,
'createdAt' => <DateTime>,
'expectedAggregatedFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'guardContent' => '<string>',
'queryContent' => '<string>',
'testCaseId' => '<string>',
'updatedAt' => <DateTime>,
],
]
Result Details
Members
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the policy that contains the test.
- testCase
-
- Required: Yes
- Type: AutomatedReasoningPolicyTestCase structure
The test details including the content, query, expected result, and metadata.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetAutomatedReasoningPolicyTestResult
$result = $client->getAutomatedReasoningPolicyTestResult([/* ... */]); $promise = $client->getAutomatedReasoningPolicyTestResultAsync([/* ... */]);
Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.
Parameter Syntax
$result = $client->getAutomatedReasoningPolicyTestResult([
'buildWorkflowId' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
'testCaseId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The build workflow identifier. The build workflow must display a
COMPLETEDstatus to get results. - policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy.
- testCaseId
-
- Required: Yes
- Type: string
The unique identifier of the test for which to retrieve results.
Result Syntax
[
'testResult' => [
'aggregatedTestFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'policyArn' => '<string>',
'testCase' => [
'confidenceThreshold' => <float>,
'createdAt' => <DateTime>,
'expectedAggregatedFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'guardContent' => '<string>',
'queryContent' => '<string>',
'testCaseId' => '<string>',
'updatedAt' => <DateTime>,
],
'testFindings' => [
[
'impossible' => [
'contradictingRules' => [
[
'id' => '<string>',
'policyVersionArn' => '<string>',
],
// ...
],
'logicWarning' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'type' => 'ALWAYS_TRUE|ALWAYS_FALSE',
],
'translation' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
],
'invalid' => [
'contradictingRules' => [
[
'id' => '<string>',
'policyVersionArn' => '<string>',
],
// ...
],
'logicWarning' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'type' => 'ALWAYS_TRUE|ALWAYS_FALSE',
],
'translation' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
],
'noTranslations' => [
],
'satisfiable' => [
'claimsFalseScenario' => [
'statements' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
],
'claimsTrueScenario' => [
'statements' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
],
'logicWarning' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'type' => 'ALWAYS_TRUE|ALWAYS_FALSE',
],
'translation' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
],
'tooComplex' => [
],
'translationAmbiguous' => [
'differenceScenarios' => [
[
'statements' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
],
// ...
],
'options' => [
[
'translations' => [
[
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
// ...
],
],
// ...
],
],
'valid' => [
'claimsTrueScenario' => [
'statements' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
],
'logicWarning' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'type' => 'ALWAYS_TRUE|ALWAYS_FALSE',
],
'supportingRules' => [
[
'id' => '<string>',
'policyVersionArn' => '<string>',
],
// ...
],
'translation' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
],
],
// ...
],
'testRunResult' => 'PASSED|FAILED',
'testRunStatus' => 'NOT_STARTED|SCHEDULED|IN_PROGRESS|COMPLETED|FAILED',
'updatedAt' => <DateTime>,
],
]
Result Details
Members
- testResult
-
- Required: Yes
- Type: AutomatedReasoningPolicyTestResult structure
The test result containing validation findings, execution status, and detailed analysis.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetCustomModel
$result = $client->getCustomModel([/* ... */]); $promise = $client->getCustomModelAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->getCustomModel([
'modelIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- modelIdentifier
-
- Required: Yes
- Type: string
Name or Amazon Resource Name (ARN) of the custom model.
Result Syntax
[
'baseModelArn' => '<string>',
'creationTime' => <DateTime>,
'customizationConfig' => [
'distillationConfig' => [
'teacherModelConfig' => [
'maxResponseLengthForInference' => <integer>,
'teacherModelIdentifier' => '<string>',
],
],
'rftConfig' => [
'graderConfig' => [
'lambdaGrader' => [
'lambdaArn' => '<string>',
],
],
'hyperParameters' => [
'batchSize' => <integer>,
'epochCount' => <integer>,
'evalInterval' => <integer>,
'inferenceMaxTokens' => <integer>,
'learningRate' => <float>,
'maxPromptLength' => <integer>,
'reasoningEffort' => 'low|medium|high',
'trainingSamplePerPrompt' => <integer>,
],
],
],
'customizationType' => 'FINE_TUNING|CONTINUED_PRE_TRAINING|DISTILLATION|REINFORCEMENT_FINE_TUNING|IMPORTED',
'failureMessage' => '<string>',
'hyperParameters' => ['<string>', ...],
'jobArn' => '<string>',
'jobName' => '<string>',
'modelArn' => '<string>',
'modelKmsKeyArn' => '<string>',
'modelName' => '<string>',
'modelStatus' => 'Active|Creating|Failed',
'outputDataConfig' => [
's3Uri' => '<string>',
],
'trainingDataConfig' => [
'invocationLogsConfig' => [
'invocationLogSource' => [
's3Uri' => '<string>',
],
'requestMetadataFilters' => [
'andAll' => [
[
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
],
// ...
],
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
'orAll' => [
[
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
],
// ...
],
],
'usePromptResponse' => true || false,
],
's3Uri' => '<string>',
],
'trainingMetrics' => [
'trainingLoss' => <float>,
],
'validationDataConfig' => [
'validators' => [
[
's3Uri' => '<string>',
],
// ...
],
],
'validationMetrics' => [
[
'validationLoss' => <float>,
],
// ...
],
]
Result Details
Members
- baseModelArn
-
- Type: string
Amazon Resource Name (ARN) of the base model.
- creationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Creation time of the model.
- customizationConfig
-
- Type: CustomizationConfig structure
The customization configuration for the custom model.
- customizationType
-
- Type: string
The type of model customization.
- failureMessage
-
- Type: string
A failure message for any issues that occurred when creating the custom model. This is included for only a failed CreateCustomModel operation.
- hyperParameters
-
- Type: Associative array of custom strings keys (String) to strings
Hyperparameter values associated with this model. For details on the format for different models, see Custom model hyperparameters.
- jobArn
-
- Type: string
Job Amazon Resource Name (ARN) associated with this model. For models that you create with the CreateCustomModel API operation, this is
NULL. - jobName
-
- Type: string
Job name associated with this model.
- modelArn
-
- Required: Yes
- Type: string
Amazon Resource Name (ARN) associated with this model.
- modelKmsKeyArn
-
- Type: string
The custom model is encrypted at rest using this key.
- modelName
-
- Required: Yes
- Type: string
Model name associated with this model.
- modelStatus
-
- Type: string
The current status of the custom model. Possible values include:
-
Creating- The model is being created and validated. -
Active- The model has been successfully created and is ready for use. -
Failed- The model creation process failed. Check thefailureMessagefield for details.
- outputDataConfig
-
- Type: OutputDataConfig structure
Output data configuration associated with this custom model.
- trainingDataConfig
-
- Type: TrainingDataConfig structure
Contains information about the training dataset.
- trainingMetrics
-
- Type: TrainingMetrics structure
Contains training metrics from the job creation.
- validationDataConfig
-
- Type: ValidationDataConfig structure
Contains information about the validation dataset.
- validationMetrics
-
- Type: Array of ValidatorMetric structures
The validation metrics from the job creation.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetCustomModelDeployment
$result = $client->getCustomModelDeployment([/* ... */]); $promise = $client->getCustomModelDeploymentAsync([/* ... */]);
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:
Parameter Syntax
$result = $client->getCustomModelDeployment([
'customModelDeploymentIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- customModelDeploymentIdentifier
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) or name of the custom model deployment to retrieve information about.
Result Syntax
[
'createdAt' => <DateTime>,
'customModelDeploymentArn' => '<string>',
'description' => '<string>',
'failureMessage' => '<string>',
'lastUpdatedAt' => <DateTime>,
'modelArn' => '<string>',
'modelDeploymentName' => '<string>',
'status' => 'Creating|Active|Failed',
'updateDetails' => [
'modelArn' => '<string>',
'updateStatus' => 'Updating|UpdateCompleted|UpdateFailed',
],
]
Result Details
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the custom model deployment was created.
- customModelDeploymentArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the custom model deployment.
- description
-
- Type: string
The description of the custom model deployment.
- failureMessage
-
- Type: string
If the deployment status is
FAILED, this field contains a message describing the failure reason. - lastUpdatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time when the custom model deployment was last updated.
- modelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the custom model associated with this deployment.
- modelDeploymentName
-
- Required: Yes
- Type: string
The name of the custom model deployment.
- status
-
- Required: Yes
- Type: string
The status of the custom model deployment. Possible values are:
-
CREATING- The deployment is being set up and prepared for inference. -
ACTIVE- The deployment is ready and available for inference requests. -
FAILED- The deployment failed to be created or became unavailable.
- updateDetails
-
- Type: CustomModelDeploymentUpdateDetails structure
Details about any pending or completed updates to the custom model deployment, including the new model ARN and update status.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetEvaluationJob
$result = $client->getEvaluationJob([/* ... */]); $promise = $client->getEvaluationJobAsync([/* ... */]);
Gets information about an evaluation job, such as the status of the job.
Parameter Syntax
$result = $client->getEvaluationJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the evaluation job you want get information on.
Result Syntax
[
'applicationType' => 'ModelEvaluation|RagEvaluation',
'creationTime' => <DateTime>,
'customerEncryptionKeyId' => '<string>',
'evaluationConfig' => [
'automated' => [
'customMetricConfig' => [
'customMetrics' => [
[
'customMetricDefinition' => [
'instructions' => '<string>',
'name' => '<string>',
'ratingScale' => [
[
'definition' => '<string>',
'value' => [
'floatValue' => <float>,
'stringValue' => '<string>',
],
],
// ...
],
],
],
// ...
],
'evaluatorModelConfig' => [
'bedrockEvaluatorModels' => [
[
'modelIdentifier' => '<string>',
],
// ...
],
],
],
'datasetMetricConfigs' => [
[
'dataset' => [
'datasetLocation' => [
's3Uri' => '<string>',
],
'name' => '<string>',
],
'metricNames' => ['<string>', ...],
'taskType' => 'Summarization|Classification|QuestionAndAnswer|Generation|Custom',
],
// ...
],
'evaluatorModelConfig' => [
'bedrockEvaluatorModels' => [
[
'modelIdentifier' => '<string>',
],
// ...
],
],
],
'human' => [
'customMetrics' => [
[
'description' => '<string>',
'name' => '<string>',
'ratingMethod' => '<string>',
],
// ...
],
'datasetMetricConfigs' => [
[
'dataset' => [
'datasetLocation' => [
's3Uri' => '<string>',
],
'name' => '<string>',
],
'metricNames' => ['<string>', ...],
'taskType' => 'Summarization|Classification|QuestionAndAnswer|Generation|Custom',
],
// ...
],
'humanWorkflowConfig' => [
'flowDefinitionArn' => '<string>',
'instructions' => '<string>',
],
],
],
'failureMessages' => ['<string>', ...],
'inferenceConfig' => [
'models' => [
[
'bedrockModel' => [
'inferenceParams' => '<string>',
'modelIdentifier' => '<string>',
'performanceConfig' => [
'latency' => 'standard|optimized',
],
],
'precomputedInferenceSource' => [
'inferenceSourceIdentifier' => '<string>',
],
],
// ...
],
'ragConfigs' => [
[
'knowledgeBaseConfig' => [
'retrieveAndGenerateConfig' => [
'externalSourcesConfiguration' => [
'generationConfiguration' => [
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'guardrailConfiguration' => [
'guardrailId' => '<string>',
'guardrailVersion' => '<string>',
],
'kbInferenceConfig' => [
'textInferenceConfig' => [
'maxTokens' => <integer>,
'stopSequences' => ['<string>', ...],
'temperature' => <float>,
'topP' => <float>,
],
],
'promptTemplate' => [
'textPromptTemplate' => '<string>',
],
],
'modelArn' => '<string>',
'sources' => [
[
'byteContent' => [
'contentType' => '<string>',
'data' => <string || resource || Psr\Http\Message\StreamInterface>,
'identifier' => '<string>',
],
's3Location' => [
'uri' => '<string>',
],
'sourceType' => 'S3|BYTE_CONTENT',
],
// ...
],
],
'knowledgeBaseConfiguration' => [
'generationConfiguration' => [
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'guardrailConfiguration' => [
'guardrailId' => '<string>',
'guardrailVersion' => '<string>',
],
'kbInferenceConfig' => [
'textInferenceConfig' => [
'maxTokens' => <integer>,
'stopSequences' => ['<string>', ...],
'temperature' => <float>,
'topP' => <float>,
],
],
'promptTemplate' => [
'textPromptTemplate' => '<string>',
],
],
'knowledgeBaseId' => '<string>',
'modelArn' => '<string>',
'orchestrationConfiguration' => [
'queryTransformationConfiguration' => [
'type' => 'QUERY_DECOMPOSITION',
],
],
'retrievalConfiguration' => [
'vectorSearchConfiguration' => [
'filter' => [
'andAll' => [
[...], // RECURSIVE
// ...
],
'equals' => [
'key' => '<string>',
'value' => [
],
],
'greaterThan' => [
'key' => '<string>',
'value' => [
],
],
'greaterThanOrEquals' => [
'key' => '<string>',
'value' => [
],
],
'in' => [
'key' => '<string>',
'value' => [
],
],
'lessThan' => [
'key' => '<string>',
'value' => [
],
],
'lessThanOrEquals' => [
'key' => '<string>',
'value' => [
],
],
'listContains' => [
'key' => '<string>',
'value' => [
],
],
'notEquals' => [
'key' => '<string>',
'value' => [
],
],
'notIn' => [
'key' => '<string>',
'value' => [
],
],
'orAll' => [
[...], // RECURSIVE
// ...
],
'startsWith' => [
'key' => '<string>',
'value' => [
],
],
'stringContains' => [
'key' => '<string>',
'value' => [
],
],
],
'implicitFilterConfiguration' => [
'metadataAttributes' => [
[
'description' => '<string>',
'key' => '<string>',
'type' => 'STRING|NUMBER|BOOLEAN|STRING_LIST',
],
// ...
],
'modelArn' => '<string>',
],
'numberOfResults' => <integer>,
'overrideSearchType' => 'HYBRID|SEMANTIC',
'rerankingConfiguration' => [
'bedrockRerankingConfiguration' => [
'metadataConfiguration' => [
'selectionMode' => 'SELECTIVE|ALL',
'selectiveModeConfiguration' => [
'fieldsToExclude' => [
[
'fieldName' => '<string>',
],
// ...
],
'fieldsToInclude' => [
[
'fieldName' => '<string>',
],
// ...
],
],
],
'modelConfiguration' => [
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'modelArn' => '<string>',
],
'numberOfRerankedResults' => <integer>,
],
'type' => 'BEDROCK_RERANKING_MODEL',
],
],
],
],
'type' => 'KNOWLEDGE_BASE|EXTERNAL_SOURCES',
],
'retrieveConfig' => [
'knowledgeBaseId' => '<string>',
'knowledgeBaseRetrievalConfiguration' => [
'vectorSearchConfiguration' => [
'filter' => [
'andAll' => [
[...], // RECURSIVE
// ...
],
'equals' => [
'key' => '<string>',
'value' => [
],
],
'greaterThan' => [
'key' => '<string>',
'value' => [
],
],
'greaterThanOrEquals' => [
'key' => '<string>',
'value' => [
],
],
'in' => [
'key' => '<string>',
'value' => [
],
],
'lessThan' => [
'key' => '<string>',
'value' => [
],
],
'lessThanOrEquals' => [
'key' => '<string>',
'value' => [
],
],
'listContains' => [
'key' => '<string>',
'value' => [
],
],
'notEquals' => [
'key' => '<string>',
'value' => [
],
],
'notIn' => [
'key' => '<string>',
'value' => [
],
],
'orAll' => [
[...], // RECURSIVE
// ...
],
'startsWith' => [
'key' => '<string>',
'value' => [
],
],
'stringContains' => [
'key' => '<string>',
'value' => [
],
],
],
'implicitFilterConfiguration' => [
'metadataAttributes' => [
[
'description' => '<string>',
'key' => '<string>',
'type' => 'STRING|NUMBER|BOOLEAN|STRING_LIST',
],
// ...
],
'modelArn' => '<string>',
],
'numberOfResults' => <integer>,
'overrideSearchType' => 'HYBRID|SEMANTIC',
'rerankingConfiguration' => [
'bedrockRerankingConfiguration' => [
'metadataConfiguration' => [
'selectionMode' => 'SELECTIVE|ALL',
'selectiveModeConfiguration' => [
'fieldsToExclude' => [
[
'fieldName' => '<string>',
],
// ...
],
'fieldsToInclude' => [
[
'fieldName' => '<string>',
],
// ...
],
],
],
'modelConfiguration' => [
'additionalModelRequestFields' => [
'<AdditionalModelRequestFieldsKey>' => [
],
// ...
],
'modelArn' => '<string>',
],
'numberOfRerankedResults' => <integer>,
],
'type' => 'BEDROCK_RERANKING_MODEL',
],
],
],
],
],
'precomputedRagSourceConfig' => [
'retrieveAndGenerateSourceConfig' => [
'ragSourceIdentifier' => '<string>',
],
'retrieveSourceConfig' => [
'ragSourceIdentifier' => '<string>',
],
],
],
// ...
],
],
'jobArn' => '<string>',
'jobDescription' => '<string>',
'jobName' => '<string>',
'jobType' => 'Human|Automated',
'lastModifiedTime' => <DateTime>,
'outputDataConfig' => [
's3Uri' => '<string>',
],
'roleArn' => '<string>',
'status' => 'InProgress|Completed|Failed|Stopping|Stopped|Deleting',
]
Result Details
Members
- applicationType
-
- Type: string
Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation).
- creationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time the evaluation job was created.
- customerEncryptionKeyId
-
- Type: string
The Amazon Resource Name (ARN) of the customer managed encryption key specified when the evaluation job was created.
- evaluationConfig
-
- Required: Yes
- Type: EvaluationConfig structure
Contains the configuration details of either an automated or human-based evaluation job.
- failureMessages
-
- Type: Array of strings
A list of strings that specify why the evaluation job failed to create.
- inferenceConfig
-
- Required: Yes
- Type: EvaluationInferenceConfig structure
Contains the configuration details of the inference model used for the evaluation job.
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the evaluation job.
- jobDescription
-
- Type: string
The description of the evaluation job.
- jobName
-
- Required: Yes
- Type: string
The name for the evaluation job.
- jobType
-
- Required: Yes
- Type: string
Specifies whether the evaluation job is automated or human-based.
- lastModifiedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time the evaluation job was last modified.
- outputDataConfig
-
- Required: Yes
- Type: EvaluationOutputDataConfig structure
Contains the configuration details of the Amazon S3 bucket for storing the results of the evaluation job.
- roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the IAM service role used in the evaluation job.
- status
-
- Required: Yes
- Type: string
The current status of the evaluation job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetFoundationModel
$result = $client->getFoundationModel([/* ... */]); $promise = $client->getFoundationModelAsync([/* ... */]);
Get details about a Amazon Bedrock foundation model.
Parameter Syntax
$result = $client->getFoundationModel([
'modelIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- modelIdentifier
-
- Required: Yes
- Type: string
The model identifier.
Result Syntax
[
'modelDetails' => [
'customizationsSupported' => ['<string>', ...],
'inferenceTypesSupported' => ['<string>', ...],
'inputModalities' => ['<string>', ...],
'modelArn' => '<string>',
'modelId' => '<string>',
'modelLifecycle' => [
'endOfLifeTime' => <DateTime>,
'legacyTime' => <DateTime>,
'publicExtendedAccessTime' => <DateTime>,
'startOfLifeTime' => <DateTime>,
'status' => 'ACTIVE|LEGACY',
],
'modelName' => '<string>',
'outputModalities' => ['<string>', ...],
'providerName' => '<string>',
'responseStreamingSupported' => true || false,
],
]
Result Details
Members
- modelDetails
-
- Type: FoundationModelDetails structure
Information about the foundation model.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetFoundationModelAvailability
$result = $client->getFoundationModelAvailability([/* ... */]); $promise = $client->getFoundationModelAvailabilityAsync([/* ... */]);
Get information about the Foundation model availability.
Parameter Syntax
$result = $client->getFoundationModelAvailability([
'modelId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- modelId
-
- Required: Yes
- Type: string
The model Id of the foundation model.
Result Syntax
[
'agreementAvailability' => [
'errorMessage' => '<string>',
'status' => 'AVAILABLE|PENDING|NOT_AVAILABLE|ERROR',
],
'authorizationStatus' => 'AUTHORIZED|NOT_AUTHORIZED',
'entitlementAvailability' => 'AVAILABLE|NOT_AVAILABLE',
'modelId' => '<string>',
'regionAvailability' => 'AVAILABLE|NOT_AVAILABLE',
]
Result Details
Members
- agreementAvailability
-
- Required: Yes
- Type: AgreementAvailability structure
Agreement availability.
- authorizationStatus
-
- Required: Yes
- Type: string
Authorization status.
- entitlementAvailability
-
- Required: Yes
- Type: string
Entitlement availability.
- modelId
-
- Required: Yes
- Type: string
The model Id of the foundation model.
- regionAvailability
-
- Required: Yes
- Type: string
Region availability.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetGuardrail
$result = $client->getGuardrail([/* ... */]); $promise = $client->getGuardrailAsync([/* ... */]);
Gets details about a guardrail. If you don't specify a version, the response returns details for the DRAFT version.
Parameter Syntax
$result = $client->getGuardrail([
'guardrailIdentifier' => '<string>', // REQUIRED
'guardrailVersion' => '<string>',
]);
Parameter Details
Members
- guardrailIdentifier
-
- Required: Yes
- Type: string
The unique identifier of the guardrail for which to get details. This can be an ID or the ARN.
- guardrailVersion
-
- Type: string
The version of the guardrail for which to get details. If you don't specify a version, the response returns details for the
DRAFTversion.
Result Syntax
[
'automatedReasoningPolicy' => [
'confidenceThreshold' => <float>,
'policies' => ['<string>', ...],
],
'blockedInputMessaging' => '<string>',
'blockedOutputsMessaging' => '<string>',
'contentPolicy' => [
'filters' => [
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'inputModalities' => ['<string>', ...],
'inputStrength' => 'NONE|LOW|MEDIUM|HIGH',
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'outputModalities' => ['<string>', ...],
'outputStrength' => 'NONE|LOW|MEDIUM|HIGH',
'type' => 'SEXUAL|VIOLENCE|HATE|INSULTS|MISCONDUCT|PROMPT_ATTACK',
],
// ...
],
'tier' => [
'tierName' => 'CLASSIC|STANDARD',
],
],
'contextualGroundingPolicy' => [
'filters' => [
[
'action' => 'BLOCK|NONE',
'enabled' => true || false,
'threshold' => <float>,
'type' => 'GROUNDING|RELEVANCE',
],
// ...
],
],
'createdAt' => <DateTime>,
'crossRegionDetails' => [
'guardrailProfileArn' => '<string>',
'guardrailProfileId' => '<string>',
],
'description' => '<string>',
'failureRecommendations' => ['<string>', ...],
'guardrailArn' => '<string>',
'guardrailId' => '<string>',
'kmsKeyArn' => '<string>',
'name' => '<string>',
'sensitiveInformationPolicy' => [
'piiEntities' => [
[
'action' => 'BLOCK|ANONYMIZE|NONE',
'inputAction' => 'BLOCK|ANONYMIZE|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|ANONYMIZE|NONE',
'outputEnabled' => true || false,
'type' => 'ADDRESS|AGE|AWS_ACCESS_KEY|AWS_SECRET_KEY|CA_HEALTH_NUMBER|CA_SOCIAL_INSURANCE_NUMBER|CREDIT_DEBIT_CARD_CVV|CREDIT_DEBIT_CARD_EXPIRY|CREDIT_DEBIT_CARD_NUMBER|DRIVER_ID|EMAIL|INTERNATIONAL_BANK_ACCOUNT_NUMBER|IP_ADDRESS|LICENSE_PLATE|MAC_ADDRESS|NAME|PASSWORD|PHONE|PIN|SWIFT_CODE|UK_NATIONAL_HEALTH_SERVICE_NUMBER|UK_NATIONAL_INSURANCE_NUMBER|UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER|URL|USERNAME|US_BANK_ACCOUNT_NUMBER|US_BANK_ROUTING_NUMBER|US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER|US_PASSPORT_NUMBER|US_SOCIAL_SECURITY_NUMBER|VEHICLE_IDENTIFICATION_NUMBER',
],
// ...
],
'regexes' => [
[
'action' => 'BLOCK|ANONYMIZE|NONE',
'description' => '<string>',
'inputAction' => 'BLOCK|ANONYMIZE|NONE',
'inputEnabled' => true || false,
'name' => '<string>',
'outputAction' => 'BLOCK|ANONYMIZE|NONE',
'outputEnabled' => true || false,
'pattern' => '<string>',
],
// ...
],
],
'status' => 'CREATING|UPDATING|VERSIONING|READY|FAILED|DELETING',
'statusReasons' => ['<string>', ...],
'topicPolicy' => [
'tier' => [
'tierName' => 'CLASSIC|STANDARD',
],
'topics' => [
[
'definition' => '<string>',
'examples' => ['<string>', ...],
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'name' => '<string>',
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'type' => 'DENY',
],
// ...
],
],
'updatedAt' => <DateTime>,
'version' => '<string>',
'wordPolicy' => [
'managedWordLists' => [
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'type' => 'PROFANITY',
],
// ...
],
'words' => [
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'text' => '<string>',
],
// ...
],
],
]
Result Details
Members
- automatedReasoningPolicy
-
- Type: GuardrailAutomatedReasoningPolicy structure
The current Automated Reasoning policy configuration for the guardrail, if any is configured.
- blockedInputMessaging
-
- Required: Yes
- Type: string
The message that the guardrail returns when it blocks a prompt.
- blockedOutputsMessaging
-
- Required: Yes
- Type: string
The message that the guardrail returns when it blocks a model response.
- contentPolicy
-
- Type: GuardrailContentPolicy structure
The content policy that was configured for the guardrail.
- contextualGroundingPolicy
-
- Type: GuardrailContextualGroundingPolicy structure
The contextual grounding policy used in the guardrail.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time at which the guardrail was created.
- crossRegionDetails
-
- Type: GuardrailCrossRegionDetails structure
Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).
- description
-
- Type: string
The description of the guardrail.
- failureRecommendations
-
- Type: Array of strings
Appears if the
statusof the guardrail isFAILED. A list of recommendations to carry out before retrying the request. - guardrailArn
-
- Required: Yes
- Type: string
The ARN of the guardrail.
- guardrailId
-
- Required: Yes
- Type: string
The unique identifier of the guardrail.
- kmsKeyArn
-
- Type: string
The ARN of the KMS key that encrypts the guardrail.
- name
-
- Required: Yes
- Type: string
The name of the guardrail.
- sensitiveInformationPolicy
-
- Type: GuardrailSensitiveInformationPolicy structure
The sensitive information policy that was configured for the guardrail.
- status
-
- Required: Yes
- Type: string
The status of the guardrail.
- statusReasons
-
- Type: Array of strings
Appears if the
statusisFAILED. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted. - topicPolicy
-
- Type: GuardrailTopicPolicy structure
The topic policy that was configured for the guardrail.
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time at which the guardrail was updated.
- version
-
- Required: Yes
- Type: string
The version of the guardrail.
- wordPolicy
-
- Type: GuardrailWordPolicy structure
The word policy that was configured for the guardrail.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetImportedModel
$result = $client->getImportedModel([/* ... */]); $promise = $client->getImportedModelAsync([/* ... */]);
Gets properties associated with a customized model you imported.
Parameter Syntax
$result = $client->getImportedModel([
'modelIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- modelIdentifier
-
- Required: Yes
- Type: string
Name or Amazon Resource Name (ARN) of the imported model.
Result Syntax
[
'creationTime' => <DateTime>,
'customModelUnits' => [
'customModelUnitsPerModelCopy' => <integer>,
'customModelUnitsVersion' => '<string>',
],
'instructSupported' => true || false,
'jobArn' => '<string>',
'jobName' => '<string>',
'modelArchitecture' => '<string>',
'modelArn' => '<string>',
'modelDataSource' => [
's3DataSource' => [
's3Uri' => '<string>',
],
],
'modelKmsKeyArn' => '<string>',
'modelName' => '<string>',
]
Result Details
Members
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Creation time of the imported model.
- customModelUnits
-
- Type: CustomModelUnits structure
Information about the hardware utilization for a single copy of the model.
- instructSupported
-
- Type: boolean
Specifies if the imported model supports converse.
- jobArn
-
- Type: string
Job Amazon Resource Name (ARN) associated with the imported model.
- jobName
-
- Type: string
Job name associated with the imported model.
- modelArchitecture
-
- Type: string
The architecture of the imported model.
- modelArn
-
- Type: string
The Amazon Resource Name (ARN) associated with this imported model.
- modelDataSource
-
- Type: ModelDataSource structure
The data source for this imported model.
- modelKmsKeyArn
-
- Type: string
The imported model is encrypted at rest using this key.
- modelName
-
- Type: string
The name of the imported model.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetInferenceProfile
$result = $client->getInferenceProfile([/* ... */]); $promise = $client->getInferenceProfileAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->getInferenceProfile([
'inferenceProfileIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- inferenceProfileIdentifier
-
- Required: Yes
- Type: string
The ID or Amazon Resource Name (ARN) of the inference profile.
Result Syntax
[
'createdAt' => <DateTime>,
'description' => '<string>',
'inferenceProfileArn' => '<string>',
'inferenceProfileId' => '<string>',
'inferenceProfileName' => '<string>',
'models' => [
[
'modelArn' => '<string>',
],
// ...
],
'status' => 'ACTIVE',
'type' => 'SYSTEM_DEFINED|APPLICATION',
'updatedAt' => <DateTime>,
]
Result Details
Members
- createdAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the inference profile was created.
- description
-
- Type: string
The description of the inference profile.
- inferenceProfileArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the inference profile.
- inferenceProfileId
-
- Required: Yes
- Type: string
The unique identifier of the inference profile.
- inferenceProfileName
-
- Required: Yes
- Type: string
The name of the inference profile.
- models
-
- Required: Yes
- Type: Array of InferenceProfileModel structures
A list of information about each model in the inference profile.
- status
-
- Required: Yes
- Type: string
The status of the inference profile.
ACTIVEmeans that the inference profile is ready to be used. - type
-
- Required: Yes
- Type: string
The type of the inference profile. The following types are possible:
-
SYSTEM_DEFINED– The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles. -
APPLICATION– The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
- updatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the inference profile was last updated.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetMarketplaceModelEndpoint
$result = $client->getMarketplaceModelEndpoint([/* ... */]); $promise = $client->getMarketplaceModelEndpointAsync([/* ... */]);
Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace.
Parameter Syntax
$result = $client->getMarketplaceModelEndpoint([
'endpointArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- endpointArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the endpoint you want to get information about.
Result Syntax
[
'marketplaceModelEndpoint' => [
'createdAt' => <DateTime>,
'endpointArn' => '<string>',
'endpointConfig' => [
'sageMaker' => [
'executionRole' => '<string>',
'initialInstanceCount' => <integer>,
'instanceType' => '<string>',
'kmsEncryptionKey' => '<string>',
'vpc' => [
'securityGroupIds' => ['<string>', ...],
'subnetIds' => ['<string>', ...],
],
],
],
'endpointStatus' => '<string>',
'endpointStatusMessage' => '<string>',
'modelSourceIdentifier' => '<string>',
'status' => 'REGISTERED|INCOMPATIBLE_ENDPOINT',
'statusMessage' => '<string>',
'updatedAt' => <DateTime>,
],
]
Result Details
Members
- marketplaceModelEndpoint
-
- Type: MarketplaceModelEndpoint structure
Details about the requested endpoint.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetModelCopyJob
$result = $client->getModelCopyJob([/* ... */]); $promise = $client->getModelCopyJobAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->getModelCopyJob([
'jobArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the model copy job.
Result Syntax
[
'creationTime' => <DateTime>,
'failureMessage' => '<string>',
'jobArn' => '<string>',
'sourceAccountId' => '<string>',
'sourceModelArn' => '<string>',
'sourceModelName' => '<string>',
'status' => 'InProgress|Completed|Failed',
'targetModelArn' => '<string>',
'targetModelKmsKeyArn' => '<string>',
'targetModelName' => '<string>',
'targetModelTags' => [
[
'key' => '<string>',
'value' => '<string>',
],
// ...
],
]
Result Details
Members
- creationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the model copy job was created.
- failureMessage
-
- Type: string
An error message for why the model copy job failed.
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the model copy job.
- sourceAccountId
-
- Required: Yes
- Type: string
The unique identifier of the account that the model being copied originated from.
- sourceModelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the original model being copied.
- sourceModelName
-
- Type: string
The name of the original model being copied.
- status
-
- Required: Yes
- Type: string
The status of the model copy job.
- targetModelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the copied model.
- targetModelKmsKeyArn
-
- Type: string
The Amazon Resource Name (ARN) of the KMS key encrypting the copied model.
- targetModelName
-
- Type: string
The name of the copied model.
- targetModelTags
-
- Type: Array of Tag structures
The tags associated with the copied model.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetModelCustomizationJob
$result = $client->getModelCustomizationJob([/* ... */]); $promise = $client->getModelCustomizationJobAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->getModelCustomizationJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
Identifier for the customization job.
Result Syntax
[
'baseModelArn' => '<string>',
'clientRequestToken' => '<string>',
'creationTime' => <DateTime>,
'customizationConfig' => [
'distillationConfig' => [
'teacherModelConfig' => [
'maxResponseLengthForInference' => <integer>,
'teacherModelIdentifier' => '<string>',
],
],
'rftConfig' => [
'graderConfig' => [
'lambdaGrader' => [
'lambdaArn' => '<string>',
],
],
'hyperParameters' => [
'batchSize' => <integer>,
'epochCount' => <integer>,
'evalInterval' => <integer>,
'inferenceMaxTokens' => <integer>,
'learningRate' => <float>,
'maxPromptLength' => <integer>,
'reasoningEffort' => 'low|medium|high',
'trainingSamplePerPrompt' => <integer>,
],
],
],
'customizationType' => 'FINE_TUNING|CONTINUED_PRE_TRAINING|DISTILLATION|REINFORCEMENT_FINE_TUNING|IMPORTED',
'endTime' => <DateTime>,
'failureMessage' => '<string>',
'hyperParameters' => ['<string>', ...],
'jobArn' => '<string>',
'jobName' => '<string>',
'lastModifiedTime' => <DateTime>,
'outputDataConfig' => [
's3Uri' => '<string>',
],
'outputModelArn' => '<string>',
'outputModelKmsKeyArn' => '<string>',
'outputModelName' => '<string>',
'roleArn' => '<string>',
'status' => 'InProgress|Completed|Failed|Stopping|Stopped',
'statusDetails' => [
'dataProcessingDetails' => [
'creationTime' => <DateTime>,
'lastModifiedTime' => <DateTime>,
'status' => 'InProgress|Completed|Stopping|Stopped|Failed|NotStarted',
],
'trainingDetails' => [
'creationTime' => <DateTime>,
'lastModifiedTime' => <DateTime>,
'status' => 'InProgress|Completed|Stopping|Stopped|Failed|NotStarted',
],
'validationDetails' => [
'creationTime' => <DateTime>,
'lastModifiedTime' => <DateTime>,
'status' => 'InProgress|Completed|Stopping|Stopped|Failed|NotStarted',
],
],
'trainingDataConfig' => [
'invocationLogsConfig' => [
'invocationLogSource' => [
's3Uri' => '<string>',
],
'requestMetadataFilters' => [
'andAll' => [
[
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
],
// ...
],
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
'orAll' => [
[
'equals' => ['<string>', ...],
'notEquals' => ['<string>', ...],
],
// ...
],
],
'usePromptResponse' => true || false,
],
's3Uri' => '<string>',
],
'trainingMetrics' => [
'trainingLoss' => <float>,
],
'validationDataConfig' => [
'validators' => [
[
's3Uri' => '<string>',
],
// ...
],
],
'validationMetrics' => [
[
'validationLoss' => <float>,
],
// ...
],
'vpcConfig' => [
'securityGroupIds' => ['<string>', ...],
'subnetIds' => ['<string>', ...],
],
]
Result Details
Members
- baseModelArn
-
- Required: Yes
- Type: string
Amazon Resource Name (ARN) of the base model.
- clientRequestToken
-
- Type: string
The token that you specified in the
CreateCustomizationJobrequest. - creationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Time that the resource was created.
- customizationConfig
-
- Type: CustomizationConfig structure
The customization configuration for the model customization job.
- customizationType
-
- Type: string
The type of model customization.
- endTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Time that the resource transitioned to terminal state.
- failureMessage
-
- Type: string
Information about why the job failed.
- hyperParameters
-
- Type: Associative array of custom strings keys (String) to strings
The hyperparameter values for the job. For details on the format for different models, see Custom model hyperparameters.
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the customization job.
- jobName
-
- Required: Yes
- Type: string
The name of the customization job.
- lastModifiedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Time that the resource was last modified.
- outputDataConfig
-
- Required: Yes
- Type: OutputDataConfig structure
Output data configuration
- outputModelArn
-
- Type: string
The Amazon Resource Name (ARN) of the output model.
- outputModelKmsKeyArn
-
- Type: string
The custom model is encrypted at rest using this key.
- outputModelName
-
- Required: Yes
- Type: string
The name of the output model.
- roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the IAM role.
- status
-
- Type: string
The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use. If the job failed, the failure message contains information about why the job failed.
- statusDetails
-
- Type: StatusDetails structure
For a Distillation job, the details about the statuses of the sub-tasks of the customization job.
- trainingDataConfig
-
- Required: Yes
- Type: TrainingDataConfig structure
Contains information about the training dataset.
- trainingMetrics
-
- Type: TrainingMetrics structure
Contains training metrics from the job creation.
- validationDataConfig
-
- Required: Yes
- Type: ValidationDataConfig structure
Contains information about the validation dataset.
- validationMetrics
-
- Type: Array of ValidatorMetric structures
The loss metric for each validator that you provided in the createjob request.
- vpcConfig
-
- Type: VpcConfig structure
VPC configuration for the custom model job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetModelImportJob
$result = $client->getModelImportJob([/* ... */]); $promise = $client->getModelImportJobAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->getModelImportJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
The identifier of the import job.
Result Syntax
[
'creationTime' => <DateTime>,
'endTime' => <DateTime>,
'failureMessage' => '<string>',
'importedModelArn' => '<string>',
'importedModelKmsKeyArn' => '<string>',
'importedModelName' => '<string>',
'jobArn' => '<string>',
'jobName' => '<string>',
'lastModifiedTime' => <DateTime>,
'modelDataSource' => [
's3DataSource' => [
's3Uri' => '<string>',
],
],
'roleArn' => '<string>',
'status' => 'InProgress|Completed|Failed',
'vpcConfig' => [
'securityGroupIds' => ['<string>', ...],
'subnetIds' => ['<string>', ...],
],
]
Result Details
Members
- creationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time the resource was created.
- endTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Time that the resource transitioned to terminal state.
- failureMessage
-
- Type: string
Information about why the import job failed.
- importedModelArn
-
- Type: string
The Amazon Resource Name (ARN) of the imported model.
- importedModelKmsKeyArn
-
- Type: string
The imported model is encrypted at rest using this key.
- importedModelName
-
- Type: string
The name of the imported model.
- jobArn
-
- Type: string
The Amazon Resource Name (ARN) of the import job.
- jobName
-
- Type: string
The name of the import job.
- lastModifiedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Time the resource was last modified.
- modelDataSource
-
- Type: ModelDataSource structure
The data source for the imported model.
- roleArn
-
- Type: string
The Amazon Resource Name (ARN) of the IAM role associated with this job.
- status
-
- Type: string
The status of the job. A successful job transitions from in-progress to completed when the imported model is ready to use. If the job failed, the failure message contains information about why the job failed.
- vpcConfig
-
- Type: VpcConfig structure
The Virtual Private Cloud (VPC) configuration of the import model job.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetModelInvocationJob
$result = $client->getModelInvocationJob([/* ... */]); $promise = $client->getModelInvocationJobAsync([/* ... */]);
Gets details about a batch inference job. For more information, see Monitor batch inference jobs
Parameter Syntax
$result = $client->getModelInvocationJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the batch inference job.
Result Syntax
[
'clientRequestToken' => '<string>',
'endTime' => <DateTime>,
'errorRecordCount' => <integer>,
'inputDataConfig' => [
's3InputDataConfig' => [
's3BucketOwner' => '<string>',
's3InputFormat' => 'JSONL',
's3Uri' => '<string>',
],
],
'jobArn' => '<string>',
'jobExpirationTime' => <DateTime>,
'jobName' => '<string>',
'lastModifiedTime' => <DateTime>,
'message' => '<string>',
'modelId' => '<string>',
'modelInvocationType' => 'InvokeModel|Converse',
'outputDataConfig' => [
's3OutputDataConfig' => [
's3BucketOwner' => '<string>',
's3EncryptionKeyId' => '<string>',
's3Uri' => '<string>',
],
],
'processedRecordCount' => <integer>,
'roleArn' => '<string>',
'status' => 'Submitted|InProgress|Completed|Failed|Stopping|Stopped|PartiallyCompleted|Expired|Validating|Scheduled',
'submitTime' => <DateTime>,
'successRecordCount' => <integer>,
'timeoutDurationInHours' => <integer>,
'totalRecordCount' => <integer>,
'vpcConfig' => [
'securityGroupIds' => ['<string>', ...],
'subnetIds' => ['<string>', ...],
],
]
Result Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- endTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the batch inference job ended.
- errorRecordCount
-
- Type: long (int|float)
The number of records that failed to process in the batch inference job.
- inputDataConfig
-
- Required: Yes
- Type: ModelInvocationJobInputDataConfig structure
Details about the location of the input to the batch inference job.
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the batch inference job.
- jobExpirationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the batch inference job times or timed out.
- jobName
-
- Type: string
The name of the batch inference job.
- lastModifiedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the batch inference job was last modified.
- message
-
- Type: string
If the batch inference job failed, this field contains a message describing why the job failed.
- modelId
-
- Required: Yes
- Type: string
The unique identifier of the foundation model used for model inference.
- modelInvocationType
-
- Type: string
The invocation endpoint for ModelInvocationJob
- outputDataConfig
-
- Required: Yes
- Type: ModelInvocationJobOutputDataConfig structure
Details about the location of the output of the batch inference job.
- processedRecordCount
-
- Type: long (int|float)
The number of records that have been processed in the batch inference job.
- roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference.
- status
-
- Type: string
The status of the batch inference job.
The following statuses are possible:
-
Submitted – This job has been submitted to a queue for validation.
-
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
-
Your IAM service role has access to the Amazon S3 buckets containing your files.
-
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the
modelInputvalue matches the request body for the model. -
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
-
-
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
-
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
-
InProgress – This job has begun. You can start viewing the results in the output S3 location.
-
Completed – This job has successfully completed. View the output files in the output S3 location.
-
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
-
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web Services Support Center.
-
Stopped – This job was stopped by a user.
-
Stopping – This job is being stopped by a user.
- submitTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the batch inference job was submitted.
- successRecordCount
-
- Type: long (int|float)
The number of records that were successfully processed in the batch inference job.
- timeoutDurationInHours
-
- Type: int
The number of hours after which batch inference job was set to time out.
- totalRecordCount
-
- Type: long (int|float)
The total number of records in the batch inference job.
- vpcConfig
-
- Type: VpcConfig structure
The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetModelInvocationLoggingConfiguration
$result = $client->getModelInvocationLoggingConfiguration([/* ... */]); $promise = $client->getModelInvocationLoggingConfigurationAsync([/* ... */]);
Get the current configuration values for model invocation logging.
Parameter Syntax
$result = $client->getModelInvocationLoggingConfiguration([ ]);
Parameter Details
Members
Result Syntax
[
'loggingConfig' => [
'audioDataDeliveryEnabled' => true || false,
'cloudWatchConfig' => [
'largeDataDeliveryS3Config' => [
'bucketName' => '<string>',
'keyPrefix' => '<string>',
],
'logGroupName' => '<string>',
'roleArn' => '<string>',
],
'embeddingDataDeliveryEnabled' => true || false,
'imageDataDeliveryEnabled' => true || false,
's3Config' => [
'bucketName' => '<string>',
'keyPrefix' => '<string>',
],
'textDataDeliveryEnabled' => true || false,
'videoDataDeliveryEnabled' => true || false,
],
]
Result Details
Members
- loggingConfig
-
- Type: LoggingConfig structure
The current configuration values.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetPromptRouter
$result = $client->getPromptRouter([/* ... */]); $promise = $client->getPromptRouterAsync([/* ... */]);
Retrieves details about a prompt router.
Parameter Syntax
$result = $client->getPromptRouter([
'promptRouterArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- promptRouterArn
-
- Required: Yes
- Type: string
The prompt router's ARN
Result Syntax
[
'createdAt' => <DateTime>,
'description' => '<string>',
'fallbackModel' => [
'modelArn' => '<string>',
],
'models' => [
[
'modelArn' => '<string>',
],
// ...
],
'promptRouterArn' => '<string>',
'promptRouterName' => '<string>',
'routingCriteria' => [
'responseQualityDifference' => <float>,
],
'status' => 'AVAILABLE',
'type' => 'custom|default',
'updatedAt' => <DateTime>,
]
Result Details
Members
- createdAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the router was created.
- description
-
- Type: string
The router's description.
- fallbackModel
-
- Required: Yes
- Type: PromptRouterTargetModel structure
The router's fallback model.
- models
-
- Required: Yes
- Type: Array of PromptRouterTargetModel structures
The router's models.
- promptRouterArn
-
- Required: Yes
- Type: string
The prompt router's ARN
- promptRouterName
-
- Required: Yes
- Type: string
The router's name.
- routingCriteria
-
- Required: Yes
- Type: RoutingCriteria structure
The router's routing criteria.
- status
-
- Required: Yes
- Type: string
The router's status.
- type
-
- Required: Yes
- Type: string
The router's type.
- updatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the router was updated.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetProvisionedModelThroughput
$result = $client->getProvisionedModelThroughput([/* ... */]); $promise = $client->getProvisionedModelThroughputAsync([/* ... */]);
Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->getProvisionedModelThroughput([
'provisionedModelId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- provisionedModelId
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
Result Syntax
[
'commitmentDuration' => 'OneMonth|SixMonths',
'commitmentExpirationTime' => <DateTime>,
'creationTime' => <DateTime>,
'desiredModelArn' => '<string>',
'desiredModelUnits' => <integer>,
'failureMessage' => '<string>',
'foundationModelArn' => '<string>',
'lastModifiedTime' => <DateTime>,
'modelArn' => '<string>',
'modelUnits' => <integer>,
'provisionedModelArn' => '<string>',
'provisionedModelName' => '<string>',
'status' => 'Creating|InService|Updating|Failed',
]
Result Details
Members
- commitmentDuration
-
- Type: string
Commitment duration of the Provisioned Throughput.
- commitmentExpirationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp for when the commitment term for the Provisioned Throughput expires.
- creationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp of the creation time for this Provisioned Throughput.
- desiredModelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. This value differs from the
modelArnif updating hasn't completed. - desiredModelUnits
-
- Required: Yes
- Type: int
The number of model units that was requested for this Provisioned Throughput.
- failureMessage
-
- Type: string
A failure message for any issues that occurred during creation, updating, or deletion of the Provisioned Throughput.
- foundationModelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of the base model that the custom model for which the Provisioned Throughput was created was customized.
- lastModifiedTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp of the last time that this Provisioned Throughput was modified.
- modelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the model associated with this Provisioned Throughput.
- modelUnits
-
- Required: Yes
- Type: int
The number of model units allocated to this Provisioned Throughput.
- provisionedModelArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Provisioned Throughput.
- provisionedModelName
-
- Required: Yes
- Type: string
The name of the Provisioned Throughput.
- status
-
- Required: Yes
- Type: string
The status of the Provisioned Throughput.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetResourcePolicy
$result = $client->getResourcePolicy([/* ... */]); $promise = $client->getResourcePolicyAsync([/* ... */]);
Gets the resource policy document for a Bedrock resource
Parameter Syntax
$result = $client->getResourcePolicy([
'resourceArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The ARN of the Bedrock resource to which this resource policy applies.
Result Syntax
[
'resourcePolicy' => '<string>',
]
Result Details
Members
- resourcePolicy
-
- Type: string
The JSON string representing the Bedrock resource policy.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
GetUseCaseForModelAccess
$result = $client->getUseCaseForModelAccess([/* ... */]); $promise = $client->getUseCaseForModelAccessAsync([/* ... */]);
Get usecase for model access.
Parameter Syntax
$result = $client->getUseCaseForModelAccess([ ]);
Parameter Details
Members
Result Syntax
[
'formData' => <string || resource || Psr\Http\Message\StreamInterface>,
]
Result Details
Members
- formData
-
- Required: Yes
- Type: blob (string|resource|Psr\Http\Message\StreamInterface)
Get customer profile Response.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListAdvancedPromptOptimizationJobs
$result = $client->listAdvancedPromptOptimizationJobs([/* ... */]); $promise = $client->listAdvancedPromptOptimizationJobsAsync([/* ... */]);
Lists the advanced prompt optimization jobs in your account.
Parameter Syntax
$result = $client->listAdvancedPromptOptimizationJobs([
'maxResults' => <integer>,
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of results to return in the response.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token in a subsequent request to get the next set of results. - sortBy
-
- Type: string
The field to sort the results by.
- sortOrder
-
- Type: string
The sort order for the results.
Result Syntax
[
'jobSummaries' => [
[
'creationTime' => <DateTime>,
'jobArn' => '<string>',
'jobName' => '<string>',
'jobStatus' => 'InProgress|Completed|Failed|PartiallyCompleted|Stopping|Stopped|Deleting',
'lastModifiedTime' => <DateTime>,
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- jobSummaries
-
- Type: Array of AdvancedPromptOptimizationJobSummary structures
A list of advanced prompt optimization job summaries.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token in a subsequent request to get the next set of results.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListAutomatedReasoningPolicies
$result = $client->listAutomatedReasoningPolicies([/* ... */]); $promise = $client->listAutomatedReasoningPoliciesAsync([/* ... */]);
Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN. This helps you manage and discover existing policies.
Parameter Syntax
$result = $client->listAutomatedReasoningPolicies([
'maxResults' => <integer>,
'nextToken' => '<string>',
'policyArn' => '<string>',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of policies to return in a single call.
- nextToken
-
- Type: string
The pagination token from a previous request to retrieve the next page of results.
- policyArn
-
- Type: string
Optional filter to list only the policy versions with the specified Amazon Resource Name (ARN). If not provided, the DRAFT versions for all policies are listed.
Result Syntax
[
'automatedReasoningPolicySummaries' => [
[
'createdAt' => <DateTime>,
'description' => '<string>',
'name' => '<string>',
'policyArn' => '<string>',
'policyId' => '<string>',
'updatedAt' => <DateTime>,
'version' => '<string>',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- automatedReasoningPolicySummaries
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicySummary structures
A list of Automated Reasoning policy summaries.
- nextToken
-
- Type: string
The pagination token to use in a subsequent request to retrieve the next page of results.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListAutomatedReasoningPolicyBuildWorkflows
$result = $client->listAutomatedReasoningPolicyBuildWorkflows([/* ... */]); $promise = $client->listAutomatedReasoningPolicyBuildWorkflowsAsync([/* ... */]);
Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts.
Parameter Syntax
$result = $client->listAutomatedReasoningPolicyBuildWorkflows([
'maxResults' => <integer>,
'nextToken' => '<string>',
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of build workflows to return in a single response. Valid range is 1-100.
- nextToken
-
- Type: string
A pagination token from a previous request to continue listing build workflows from where the previous request left off.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy whose build workflows you want to list.
Result Syntax
[
'automatedReasoningPolicyBuildWorkflowSummaries' => [
[
'buildWorkflowId' => '<string>',
'buildWorkflowType' => 'INGEST_CONTENT|REFINE_POLICY|IMPORT_POLICY|GENERATE_FIDELITY_REPORT|GENERATE_POLICY_SCENARIOS|RESOLVE_POLICY_AMBIGUITIES|ITERATIVELY_REFINE_POLICY',
'createdAt' => <DateTime>,
'policyArn' => '<string>',
'status' => 'SCHEDULED|CANCEL_REQUESTED|PREPROCESSING|BUILDING|TESTING|COMPLETED|FAILED|CANCELLED',
'updatedAt' => <DateTime>,
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- automatedReasoningPolicyBuildWorkflowSummaries
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyBuildWorkflowSummary structures
A list of build workflow summaries, each containing key information about a build workflow including its status and timestamps.
- nextToken
-
- Type: string
A pagination token to use in subsequent requests to retrieve additional build workflows.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListAutomatedReasoningPolicyTestCases
$result = $client->listAutomatedReasoningPolicyTestCases([/* ... */]); $promise = $client->listAutomatedReasoningPolicyTestCasesAsync([/* ... */]);
Lists tests for an Automated Reasoning policy. We recommend using pagination to ensure that the operation returns quickly and successfully.
Parameter Syntax
$result = $client->listAutomatedReasoningPolicyTestCases([
'maxResults' => <integer>,
'nextToken' => '<string>',
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of tests to return in a single call.
- nextToken
-
- Type: string
The pagination token from a previous request to retrieve the next page of results.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to list tests.
Result Syntax
[
'nextToken' => '<string>',
'testCases' => [
[
'confidenceThreshold' => <float>,
'createdAt' => <DateTime>,
'expectedAggregatedFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'guardContent' => '<string>',
'queryContent' => '<string>',
'testCaseId' => '<string>',
'updatedAt' => <DateTime>,
],
// ...
],
]
Result Details
Members
- nextToken
-
- Type: string
The pagination token to use in a subsequent request to retrieve the next page of results.
- testCases
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyTestCase structures
A list of tests for the specified policy.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListAutomatedReasoningPolicyTestResults
$result = $client->listAutomatedReasoningPolicyTestResults([/* ... */]); $promise = $client->listAutomatedReasoningPolicyTestResultsAsync([/* ... */]);
Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.
Parameter Syntax
$result = $client->listAutomatedReasoningPolicyTestResults([
'buildWorkflowId' => '<string>', // REQUIRED
'maxResults' => <integer>,
'nextToken' => '<string>',
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow whose test results you want to list.
- maxResults
-
- Type: int
The maximum number of test results to return in a single response. Valid range is 1-100.
- nextToken
-
- Type: string
A pagination token from a previous request to continue listing test results from where the previous request left off.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy whose test results you want to list.
Result Syntax
[
'nextToken' => '<string>',
'testResults' => [
[
'aggregatedTestFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'policyArn' => '<string>',
'testCase' => [
'confidenceThreshold' => <float>,
'createdAt' => <DateTime>,
'expectedAggregatedFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION',
'guardContent' => '<string>',
'queryContent' => '<string>',
'testCaseId' => '<string>',
'updatedAt' => <DateTime>,
],
'testFindings' => [
[
'impossible' => [
'contradictingRules' => [
[
'id' => '<string>',
'policyVersionArn' => '<string>',
],
// ...
],
'logicWarning' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'type' => 'ALWAYS_TRUE|ALWAYS_FALSE',
],
'translation' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
],
'invalid' => [
'contradictingRules' => [
[
'id' => '<string>',
'policyVersionArn' => '<string>',
],
// ...
],
'logicWarning' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'type' => 'ALWAYS_TRUE|ALWAYS_FALSE',
],
'translation' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
],
'noTranslations' => [
],
'satisfiable' => [
'claimsFalseScenario' => [
'statements' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
],
'claimsTrueScenario' => [
'statements' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
],
'logicWarning' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'type' => 'ALWAYS_TRUE|ALWAYS_FALSE',
],
'translation' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
],
'tooComplex' => [
],
'translationAmbiguous' => [
'differenceScenarios' => [
[
'statements' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
],
// ...
],
'options' => [
[
'translations' => [
[
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
// ...
],
],
// ...
],
],
'valid' => [
'claimsTrueScenario' => [
'statements' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
],
'logicWarning' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'type' => 'ALWAYS_TRUE|ALWAYS_FALSE',
],
'supportingRules' => [
[
'id' => '<string>',
'policyVersionArn' => '<string>',
],
// ...
],
'translation' => [
'claims' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'confidence' => <float>,
'premises' => [
[
'logic' => '<string>',
'naturalLanguage' => '<string>',
],
// ...
],
'untranslatedClaims' => [
[
'text' => '<string>',
],
// ...
],
'untranslatedPremises' => [
[
'text' => '<string>',
],
// ...
],
],
],
],
// ...
],
'testRunResult' => 'PASSED|FAILED',
'testRunStatus' => 'NOT_STARTED|SCHEDULED|IN_PROGRESS|COMPLETED|FAILED',
'updatedAt' => <DateTime>,
],
// ...
],
]
Result Details
Members
- nextToken
-
- Type: string
A pagination token to use in subsequent requests to retrieve additional test results.
- testResults
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyTestResult structures
A list of test results, each containing information about how the policy performed on specific test scenarios.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListCustomModelDeployments
$result = $client->listCustomModelDeployments([/* ... */]); $promise = $client->listCustomModelDeploymentsAsync([/* ... */]);
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:
Parameter Syntax
$result = $client->listCustomModelDeployments([
'createdAfter' => <integer || string || DateTime>,
'createdBefore' => <integer || string || DateTime>,
'maxResults' => <integer>,
'modelArnEquals' => '<string>',
'nameContains' => '<string>',
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
'statusEquals' => 'Creating|Active|Failed',
]);
Parameter Details
Members
- createdAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Filters deployments created after the specified date and time.
- createdBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Filters deployments created before the specified date and time.
- maxResults
-
- Type: int
The maximum number of results to return in a single call.
- modelArnEquals
-
- Type: string
Filters deployments by the Amazon Resource Name (ARN) of the associated custom model.
- nameContains
-
- Type: string
Filters deployments whose names contain the specified string.
- nextToken
-
- Type: string
The token for the next set of results. Use this token to retrieve additional results when the response is truncated.
- sortBy
-
- Type: string
The field to sort the results by. The only supported value is
CreationTime. - sortOrder
-
- Type: string
The sort order for the results. Valid values are
AscendingandDescending. Default isDescending. - statusEquals
-
- Type: string
Filters deployments by status. Valid values are
CREATING,ACTIVE, andFAILED.
Result Syntax
[
'modelDeploymentSummaries' => [
[
'createdAt' => <DateTime>,
'customModelDeploymentArn' => '<string>',
'customModelDeploymentName' => '<string>',
'failureMessage' => '<string>',
'lastUpdatedAt' => <DateTime>,
'modelArn' => '<string>',
'status' => 'Creating|Active|Failed',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- modelDeploymentSummaries
-
- Type: Array of CustomModelDeploymentSummary structures
A list of custom model deployment summaries.
- nextToken
-
- Type: string
The token for the next set of results. This value is null when there are no more results to return.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListCustomModels
$result = $client->listCustomModels([/* ... */]); $promise = $client->listCustomModelsAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->listCustomModels([
'baseModelArnEquals' => '<string>',
'creationTimeAfter' => <integer || string || DateTime>,
'creationTimeBefore' => <integer || string || DateTime>,
'foundationModelArnEquals' => '<string>',
'isOwned' => true || false,
'maxResults' => <integer>,
'modelStatus' => 'Active|Creating|Failed',
'nameContains' => '<string>',
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
]);
Parameter Details
Members
- baseModelArnEquals
-
- Type: string
Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter.
- creationTimeAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Return custom models created after the specified time.
- creationTimeBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Return custom models created before the specified time.
- foundationModelArnEquals
-
- Type: string
Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter.
- isOwned
-
- Type: boolean
Return custom models depending on if the current account owns them (
true) or if they were shared with the current account (false). - maxResults
-
- Type: int
The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. - modelStatus
-
- Type: string
The status of them model to filter results by. Possible values include:
-
Creating- Include only models that are currently being created and validated. -
Active- Include only models that have been successfully created and are ready for use. -
Failed- Include only models where the creation process failed.
If you don't specify a status, the API returns models in all states.
- nameContains
-
- Type: string
Return custom models only if the job name contains these characters.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. - sortBy
-
- Type: string
The field to sort by in the returned list of models.
- sortOrder
-
- Type: string
The sort order of the results.
Result Syntax
[
'modelSummaries' => [
[
'baseModelArn' => '<string>',
'baseModelName' => '<string>',
'creationTime' => <DateTime>,
'customizationType' => 'FINE_TUNING|CONTINUED_PRE_TRAINING|DISTILLATION|REINFORCEMENT_FINE_TUNING|IMPORTED',
'modelArn' => '<string>',
'modelName' => '<string>',
'modelStatus' => 'Active|Creating|Failed',
'ownerAccountId' => '<string>',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- modelSummaries
-
- Type: Array of CustomModelSummary structures
Model summaries.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListEnforcedGuardrailsConfiguration
$result = $client->listEnforcedGuardrailsConfiguration([/* ... */]); $promise = $client->listEnforcedGuardrailsConfigurationAsync([/* ... */]);
Lists the account-level enforced guardrail configurations.
Parameter Syntax
$result = $client->listEnforcedGuardrailsConfiguration([
'nextToken' => '<string>',
]);
Parameter Details
Members
- nextToken
-
- Type: string
Opaque continuation token of previous paginated response.
Result Syntax
[
'guardrailsConfig' => [
[
'configId' => '<string>',
'createdAt' => <DateTime>,
'createdBy' => '<string>',
'guardrailArn' => '<string>',
'guardrailId' => '<string>',
'guardrailVersion' => '<string>',
'inputTags' => 'HONOR|IGNORE',
'modelEnforcement' => [
'excludedModels' => ['<string>', ...],
'includedModels' => ['<string>', ...],
],
'owner' => 'ACCOUNT',
'selectiveContentGuarding' => [
'messages' => 'SELECTIVE|COMPREHENSIVE',
'system' => 'SELECTIVE|COMPREHENSIVE',
],
'updatedAt' => <DateTime>,
'updatedBy' => '<string>',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- guardrailsConfig
-
- Required: Yes
- Type: Array of AccountEnforcedGuardrailOutputConfiguration structures
Array of AccountEnforcedGuardrailOutputConfiguration objects.
- nextToken
-
- Type: string
Opaque continuation token of previous paginated response.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListEvaluationJobs
$result = $client->listEvaluationJobs([/* ... */]); $promise = $client->listEvaluationJobsAsync([/* ... */]);
Lists all existing evaluation jobs.
Parameter Syntax
$result = $client->listEvaluationJobs([
'applicationTypeEquals' => 'ModelEvaluation|RagEvaluation',
'creationTimeAfter' => <integer || string || DateTime>,
'creationTimeBefore' => <integer || string || DateTime>,
'maxResults' => <integer>,
'nameContains' => '<string>',
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
'statusEquals' => 'InProgress|Completed|Failed|Stopping|Stopped|Deleting',
]);
Parameter Details
Members
- applicationTypeEquals
-
- Type: string
A filter to only list evaluation jobs that are either model evaluations or knowledge base evaluations.
- creationTimeAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A filter to only list evaluation jobs created after a specified time.
- creationTimeBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A filter to only list evaluation jobs created before a specified time.
- maxResults
-
- Type: int
The maximum number of results to return.
- nameContains
-
- Type: string
A filter to only list evaluation jobs that contain a specified string in the job name.
- nextToken
-
- Type: string
Continuation token from the previous response, for Amazon Bedrock to list the next set of results.
- sortBy
-
- Type: string
Specifies a creation time to sort the list of evaluation jobs by when they were created.
- sortOrder
-
- Type: string
Specifies whether to sort the list of evaluation jobs by either ascending or descending order.
- statusEquals
-
- Type: string
A filter to only list evaluation jobs that are of a certain status.
Result Syntax
[
'jobSummaries' => [
[
'applicationType' => 'ModelEvaluation|RagEvaluation',
'creationTime' => <DateTime>,
'customMetricsEvaluatorModelIdentifiers' => ['<string>', ...],
'evaluationTaskTypes' => ['<string>', ...],
'evaluatorModelIdentifiers' => ['<string>', ...],
'inferenceConfigSummary' => [
'modelConfigSummary' => [
'bedrockModelIdentifiers' => ['<string>', ...],
'precomputedInferenceSourceIdentifiers' => ['<string>', ...],
],
'ragConfigSummary' => [
'bedrockKnowledgeBaseIdentifiers' => ['<string>', ...],
'precomputedRagSourceIdentifiers' => ['<string>', ...],
],
],
'jobArn' => '<string>',
'jobName' => '<string>',
'jobType' => 'Human|Automated',
'modelIdentifiers' => ['<string>', ...],
'ragIdentifiers' => ['<string>', ...],
'status' => 'InProgress|Completed|Failed|Stopping|Stopped|Deleting',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- jobSummaries
-
- Type: Array of EvaluationSummary structures
A list of summaries of the evaluation jobs.
- nextToken
-
- Type: string
Continuation token from the previous response, for Amazon Bedrock to list the next set of results.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListFoundationModelAgreementOffers
$result = $client->listFoundationModelAgreementOffers([/* ... */]); $promise = $client->listFoundationModelAgreementOffersAsync([/* ... */]);
Get the offers associated with the specified model.
Parameter Syntax
$result = $client->listFoundationModelAgreementOffers([
'modelId' => '<string>', // REQUIRED
'offerType' => 'ALL|PUBLIC',
]);
Parameter Details
Members
- modelId
-
- Required: Yes
- Type: string
Model Id of the foundation model.
- offerType
-
- Type: string
Type of offer associated with the model.
Result Syntax
[
'modelId' => '<string>',
'offers' => [
[
'offerId' => '<string>',
'offerToken' => '<string>',
'termDetails' => [
'legalTerm' => [
'url' => '<string>',
],
'supportTerm' => [
'refundPolicyDescription' => '<string>',
],
'usageBasedPricingTerm' => [
'rateCard' => [
[
'description' => '<string>',
'dimension' => '<string>',
'price' => '<string>',
'unit' => '<string>',
],
// ...
],
],
'validityTerm' => [
'agreementDuration' => '<string>',
],
],
],
// ...
],
]
Result Details
Members
- modelId
-
- Required: Yes
- Type: string
Model Id of the foundation model.
- offers
-
- Required: Yes
- Type: Array of Offer structures
List of the offers associated with the specified model.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListFoundationModels
$result = $client->listFoundationModels([/* ... */]); $promise = $client->listFoundationModelsAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->listFoundationModels([
'byCustomizationType' => 'FINE_TUNING|CONTINUED_PRE_TRAINING|DISTILLATION',
'byInferenceType' => 'ON_DEMAND|PROVISIONED',
'byOutputModality' => 'TEXT|IMAGE|EMBEDDING',
'byProvider' => '<string>',
]);
Parameter Details
Members
- byCustomizationType
-
- Type: string
Return models that support the customization type that you specify. For more information, see Custom models in the Amazon Bedrock User Guide.
- byInferenceType
-
- Type: string
Return models that support the inference type that you specify. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
- byOutputModality
-
- Type: string
Return models that support the output modality that you specify.
- byProvider
-
- Type: string
Return models belonging to the model provider that you specify.
Result Syntax
[
'modelSummaries' => [
[
'customizationsSupported' => ['<string>', ...],
'inferenceTypesSupported' => ['<string>', ...],
'inputModalities' => ['<string>', ...],
'modelArn' => '<string>',
'modelId' => '<string>',
'modelLifecycle' => [
'endOfLifeTime' => <DateTime>,
'legacyTime' => <DateTime>,
'publicExtendedAccessTime' => <DateTime>,
'startOfLifeTime' => <DateTime>,
'status' => 'ACTIVE|LEGACY',
],
'modelName' => '<string>',
'outputModalities' => ['<string>', ...],
'providerName' => '<string>',
'responseStreamingSupported' => true || false,
],
// ...
],
]
Result Details
Members
- modelSummaries
-
- Type: Array of FoundationModelSummary structures
A list of Amazon Bedrock foundation models.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListGuardrails
$result = $client->listGuardrails([/* ... */]); $promise = $client->listGuardrailsAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->listGuardrails([
'guardrailIdentifier' => '<string>',
'maxResults' => <integer>,
'nextToken' => '<string>',
]);
Parameter Details
Members
- guardrailIdentifier
-
- Type: string
The unique identifier of the guardrail. This can be an ID or the ARN.
- maxResults
-
- Type: int
The maximum number of results to return in the response.
- nextToken
-
- Type: string
If there are more results than were returned in the response, the response returns a
nextTokenthat you can send in anotherListGuardrailsrequest to see the next batch of results.
Result Syntax
[
'guardrails' => [
[
'arn' => '<string>',
'createdAt' => <DateTime>,
'crossRegionDetails' => [
'guardrailProfileArn' => '<string>',
'guardrailProfileId' => '<string>',
],
'description' => '<string>',
'id' => '<string>',
'name' => '<string>',
'status' => 'CREATING|UPDATING|VERSIONING|READY|FAILED|DELETING',
'updatedAt' => <DateTime>,
'version' => '<string>',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- guardrails
-
- Required: Yes
- Type: Array of GuardrailSummary structures
A list of objects, each of which contains details about a guardrail.
- nextToken
-
- Type: string
If there are more results than were returned in the response, the response returns a
nextTokenthat you can send in anotherListGuardrailsrequest to see the next batch of results.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListImportedModels
$result = $client->listImportedModels([/* ... */]); $promise = $client->listImportedModelsAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->listImportedModels([
'creationTimeAfter' => <integer || string || DateTime>,
'creationTimeBefore' => <integer || string || DateTime>,
'maxResults' => <integer>,
'nameContains' => '<string>',
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
]);
Parameter Details
Members
- creationTimeAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Return imported models that were created after the specified time.
- creationTimeBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Return imported models that created before the specified time.
- maxResults
-
- Type: int
The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. - nameContains
-
- Type: string
Return imported models only if the model name contains these characters.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. - sortBy
-
- Type: string
The field to sort by in the returned list of imported models.
- sortOrder
-
- Type: string
Specifies whetehr to sort the results in ascending or descending order.
Result Syntax
[
'modelSummaries' => [
[
'creationTime' => <DateTime>,
'instructSupported' => true || false,
'modelArchitecture' => '<string>',
'modelArn' => '<string>',
'modelName' => '<string>',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- modelSummaries
-
- Type: Array of ImportedModelSummary structures
Model summaries.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListInferenceProfiles
$result = $client->listInferenceProfiles([/* ... */]); $promise = $client->listInferenceProfilesAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->listInferenceProfiles([
'maxResults' => <integer>,
'nextToken' => '<string>',
'typeEquals' => 'SYSTEM_DEFINED|APPLICATION',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. - nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. - typeEquals
-
- Type: string
Filters for inference profiles that match the type you specify.
-
SYSTEM_DEFINED– The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles. -
APPLICATION– The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
Result Syntax
[
'inferenceProfileSummaries' => [
[
'createdAt' => <DateTime>,
'description' => '<string>',
'inferenceProfileArn' => '<string>',
'inferenceProfileId' => '<string>',
'inferenceProfileName' => '<string>',
'models' => [
[
'modelArn' => '<string>',
],
// ...
],
'status' => 'ACTIVE',
'type' => 'SYSTEM_DEFINED|APPLICATION',
'updatedAt' => <DateTime>,
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- inferenceProfileSummaries
-
- Type: Array of InferenceProfileSummary structures
A list of information about each inference profile that you can use.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListMarketplaceModelEndpoints
$result = $client->listMarketplaceModelEndpoints([/* ... */]); $promise = $client->listMarketplaceModelEndpointsAsync([/* ... */]);
Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
Parameter Syntax
$result = $client->listMarketplaceModelEndpoints([
'maxResults' => <integer>,
'modelSourceEquals' => '<string>',
'nextToken' => '<string>',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of results to return in a single call. If more results are available, the operation returns a
NextTokenvalue. - modelSourceEquals
-
- Type: string
If specified, only endpoints for the given model source identifier are returned.
- nextToken
-
- Type: string
The token for the next set of results. You receive this token from a previous
ListMarketplaceModelEndpointscall.
Result Syntax
[
'marketplaceModelEndpoints' => [
[
'createdAt' => <DateTime>,
'endpointArn' => '<string>',
'modelSourceIdentifier' => '<string>',
'status' => 'REGISTERED|INCOMPATIBLE_ENDPOINT',
'statusMessage' => '<string>',
'updatedAt' => <DateTime>,
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- marketplaceModelEndpoints
-
- Type: Array of MarketplaceModelEndpointSummary structures
An array of endpoint summaries.
- nextToken
-
- Type: string
The token for the next set of results. Use this token to get the next set of results.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListModelCopyJobs
$result = $client->listModelCopyJobs([/* ... */]); $promise = $client->listModelCopyJobsAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->listModelCopyJobs([
'creationTimeAfter' => <integer || string || DateTime>,
'creationTimeBefore' => <integer || string || DateTime>,
'maxResults' => <integer>,
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
'sourceAccountEquals' => '<string>',
'sourceModelArnEquals' => '<string>',
'statusEquals' => 'InProgress|Completed|Failed',
'targetModelNameContains' => '<string>',
]);
Parameter Details
Members
- creationTimeAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Filters for model copy jobs created after the specified time.
- creationTimeBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Filters for model copy jobs created before the specified time.
- maxResults
-
- Type: int
The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. - nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. - sortBy
-
- Type: string
The field to sort by in the returned list of model copy jobs.
- sortOrder
-
- Type: string
Specifies whether to sort the results in ascending or descending order.
- sourceAccountEquals
-
- Type: string
Filters for model copy jobs in which the account that the source model belongs to is equal to the value that you specify.
- sourceModelArnEquals
-
- Type: string
Filters for model copy jobs in which the Amazon Resource Name (ARN) of the source model to is equal to the value that you specify.
- statusEquals
-
- Type: string
Filters for model copy jobs whose status matches the value that you specify.
- targetModelNameContains
-
- Type: string
Filters for model copy jobs in which the name of the copied model contains the string that you specify.
Result Syntax
[
'modelCopyJobSummaries' => [
[
'creationTime' => <DateTime>,
'failureMessage' => '<string>',
'jobArn' => '<string>',
'sourceAccountId' => '<string>',
'sourceModelArn' => '<string>',
'sourceModelName' => '<string>',
'status' => 'InProgress|Completed|Failed',
'targetModelArn' => '<string>',
'targetModelKmsKeyArn' => '<string>',
'targetModelName' => '<string>',
'targetModelTags' => [
[
'key' => '<string>',
'value' => '<string>',
],
// ...
],
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- modelCopyJobSummaries
-
- Type: Array of ModelCopyJobSummary structures
A list of information about each model copy job.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListModelCustomizationJobs
$result = $client->listModelCustomizationJobs([/* ... */]); $promise = $client->listModelCustomizationJobsAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->listModelCustomizationJobs([
'creationTimeAfter' => <integer || string || DateTime>,
'creationTimeBefore' => <integer || string || DateTime>,
'maxResults' => <integer>,
'nameContains' => '<string>',
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
'statusEquals' => 'InProgress|Completed|Failed|Stopping|Stopped',
]);
Parameter Details
Members
- creationTimeAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Return customization jobs created after the specified time.
- creationTimeBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Return customization jobs created before the specified time.
- maxResults
-
- Type: int
The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. - nameContains
-
- Type: string
Return customization jobs only if the job name contains these characters.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. - sortBy
-
- Type: string
The field to sort by in the returned list of jobs.
- sortOrder
-
- Type: string
The sort order of the results.
- statusEquals
-
- Type: string
Return customization jobs with the specified status.
Result Syntax
[
'modelCustomizationJobSummaries' => [
[
'baseModelArn' => '<string>',
'creationTime' => <DateTime>,
'customModelArn' => '<string>',
'customModelName' => '<string>',
'customizationType' => 'FINE_TUNING|CONTINUED_PRE_TRAINING|DISTILLATION|REINFORCEMENT_FINE_TUNING|IMPORTED',
'endTime' => <DateTime>,
'jobArn' => '<string>',
'jobName' => '<string>',
'lastModifiedTime' => <DateTime>,
'status' => 'InProgress|Completed|Failed|Stopping|Stopped',
'statusDetails' => [
'dataProcessingDetails' => [
'creationTime' => <DateTime>,
'lastModifiedTime' => <DateTime>,
'status' => 'InProgress|Completed|Stopping|Stopped|Failed|NotStarted',
],
'trainingDetails' => [
'creationTime' => <DateTime>,
'lastModifiedTime' => <DateTime>,
'status' => 'InProgress|Completed|Stopping|Stopped|Failed|NotStarted',
],
'validationDetails' => [
'creationTime' => <DateTime>,
'lastModifiedTime' => <DateTime>,
'status' => 'InProgress|Completed|Stopping|Stopped|Failed|NotStarted',
],
],
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- modelCustomizationJobSummaries
-
- Type: Array of ModelCustomizationJobSummary structures
Job summaries.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListModelImportJobs
$result = $client->listModelImportJobs([/* ... */]); $promise = $client->listModelImportJobsAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->listModelImportJobs([
'creationTimeAfter' => <integer || string || DateTime>,
'creationTimeBefore' => <integer || string || DateTime>,
'maxResults' => <integer>,
'nameContains' => '<string>',
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
'statusEquals' => 'InProgress|Completed|Failed',
]);
Parameter Details
Members
- creationTimeAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Return import jobs that were created after the specified time.
- creationTimeBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Return import jobs that were created before the specified time.
- maxResults
-
- Type: int
The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. - nameContains
-
- Type: string
Return imported jobs only if the job name contains these characters.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. - sortBy
-
- Type: string
The field to sort by in the returned list of imported jobs.
- sortOrder
-
- Type: string
Specifies whether to sort the results in ascending or descending order.
- statusEquals
-
- Type: string
Return imported jobs with the specified status.
Result Syntax
[
'modelImportJobSummaries' => [
[
'creationTime' => <DateTime>,
'endTime' => <DateTime>,
'importedModelArn' => '<string>',
'importedModelName' => '<string>',
'jobArn' => '<string>',
'jobName' => '<string>',
'lastModifiedTime' => <DateTime>,
'status' => 'InProgress|Completed|Failed',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- modelImportJobSummaries
-
- Type: Array of ModelImportJobSummary structures
Import job summaries.
- nextToken
-
- Type: string
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListModelInvocationJobs
$result = $client->listModelInvocationJobs([/* ... */]); $promise = $client->listModelInvocationJobsAsync([/* ... */]);
Lists all batch inference jobs in the account. For more information, see View details about a batch inference job.
Parameter Syntax
$result = $client->listModelInvocationJobs([
'maxResults' => <integer>,
'nameContains' => '<string>',
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
'statusEquals' => 'Submitted|InProgress|Completed|Failed|Stopping|Stopped|PartiallyCompleted|Expired|Validating|Scheduled',
'submitTimeAfter' => <integer || string || DateTime>,
'submitTimeBefore' => <integer || string || DateTime>,
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of results to return. If there are more results than the number that you specify, a
nextTokenvalue is returned. Use thenextTokenin a request to return the next batch of results. - nameContains
-
- Type: string
Specify a string to filter for batch inference jobs whose names contain the string.
- nextToken
-
- Type: string
If there were more results than the value you specified in the
maxResultsfield in a previousListModelInvocationJobsrequest, the response would have returned anextTokenvalue. To see the next batch of results, send thenextTokenvalue in another request. - sortBy
-
- Type: string
An attribute by which to sort the results.
- sortOrder
-
- Type: string
Specifies whether to sort the results by ascending or descending order.
- statusEquals
-
- Type: string
Specify a status to filter for batch inference jobs whose statuses match the string you specify.
The following statuses are possible:
-
Submitted – This job has been submitted to a queue for validation.
-
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
-
Your IAM service role has access to the Amazon S3 buckets containing your files.
-
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the
modelInputvalue matches the request body for the model. -
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
-
-
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
-
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
-
InProgress – This job has begun. You can start viewing the results in the output S3 location.
-
Completed – This job has successfully completed. View the output files in the output S3 location.
-
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
-
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web Services Support Center.
-
Stopped – This job was stopped by a user.
-
Stopping – This job is being stopped by a user.
- submitTimeAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Specify a time to filter for batch inference jobs that were submitted after the time you specify.
- submitTimeBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Specify a time to filter for batch inference jobs that were submitted before the time you specify.
Result Syntax
[
'invocationJobSummaries' => [
[
'clientRequestToken' => '<string>',
'endTime' => <DateTime>,
'errorRecordCount' => <integer>,
'inputDataConfig' => [
's3InputDataConfig' => [
's3BucketOwner' => '<string>',
's3InputFormat' => 'JSONL',
's3Uri' => '<string>',
],
],
'jobArn' => '<string>',
'jobExpirationTime' => <DateTime>,
'jobName' => '<string>',
'lastModifiedTime' => <DateTime>,
'message' => '<string>',
'modelId' => '<string>',
'modelInvocationType' => 'InvokeModel|Converse',
'outputDataConfig' => [
's3OutputDataConfig' => [
's3BucketOwner' => '<string>',
's3EncryptionKeyId' => '<string>',
's3Uri' => '<string>',
],
],
'processedRecordCount' => <integer>,
'roleArn' => '<string>',
'status' => 'Submitted|InProgress|Completed|Failed|Stopping|Stopped|PartiallyCompleted|Expired|Validating|Scheduled',
'submitTime' => <DateTime>,
'successRecordCount' => <integer>,
'timeoutDurationInHours' => <integer>,
'totalRecordCount' => <integer>,
'vpcConfig' => [
'securityGroupIds' => ['<string>', ...],
'subnetIds' => ['<string>', ...],
],
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- invocationJobSummaries
-
- Type: Array of ModelInvocationJobSummary structures
A list of items, each of which contains a summary about a batch inference job.
- nextToken
-
- Type: string
If there are more results than can fit in the response, a
nextTokenis returned. Use thenextTokenin a request to return the next batch of results.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListPromptRouters
$result = $client->listPromptRouters([/* ... */]); $promise = $client->listPromptRoutersAsync([/* ... */]);
Retrieves a list of prompt routers.
Parameter Syntax
$result = $client->listPromptRouters([
'maxResults' => <integer>,
'nextToken' => '<string>',
'type' => 'custom|default',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of prompt routers to return in one page of results.
- nextToken
-
- Type: string
Specify the pagination token from a previous request to retrieve the next page of results.
- type
-
- Type: string
The type of the prompt routers, such as whether it's default or custom.
Result Syntax
[
'nextToken' => '<string>',
'promptRouterSummaries' => [
[
'createdAt' => <DateTime>,
'description' => '<string>',
'fallbackModel' => [
'modelArn' => '<string>',
],
'models' => [
[
'modelArn' => '<string>',
],
// ...
],
'promptRouterArn' => '<string>',
'promptRouterName' => '<string>',
'routingCriteria' => [
'responseQualityDifference' => <float>,
],
'status' => 'AVAILABLE',
'type' => 'custom|default',
'updatedAt' => <DateTime>,
],
// ...
],
]
Result Details
Members
- nextToken
-
- Type: string
Specify the pagination token from a previous request to retrieve the next page of results.
- promptRouterSummaries
-
- Type: Array of PromptRouterSummary structures
A list of prompt router summaries.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListProvisionedModelThroughputs
$result = $client->listProvisionedModelThroughputs([/* ... */]); $promise = $client->listProvisionedModelThroughputsAsync([/* ... */]);
Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->listProvisionedModelThroughputs([
'creationTimeAfter' => <integer || string || DateTime>,
'creationTimeBefore' => <integer || string || DateTime>,
'maxResults' => <integer>,
'modelArnEquals' => '<string>',
'nameContains' => '<string>',
'nextToken' => '<string>',
'sortBy' => 'CreationTime',
'sortOrder' => 'Ascending|Descending',
'statusEquals' => 'Creating|InService|Updating|Failed',
]);
Parameter Details
Members
- creationTimeAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A filter that returns Provisioned Throughputs created after the specified time.
- creationTimeBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A filter that returns Provisioned Throughputs created before the specified time.
- maxResults
-
- Type: int
THe maximum number of results to return in the response. If there are more results than the number you specified, the response returns a
nextTokenvalue. To see the next batch of results, send thenextTokenvalue in another list request. - modelArnEquals
-
- Type: string
A filter that returns Provisioned Throughputs whose model Amazon Resource Name (ARN) is equal to the value that you specify.
- nameContains
-
- Type: string
A filter that returns Provisioned Throughputs if their name contains the expression that you specify.
- nextToken
-
- Type: string
If there are more results than the number you specified in the
maxResultsfield, the response returns anextTokenvalue. To see the next batch of results, specify thenextTokenvalue in this field. - sortBy
-
- Type: string
The field by which to sort the returned list of Provisioned Throughputs.
- sortOrder
-
- Type: string
The sort order of the results.
- statusEquals
-
- Type: string
A filter that returns Provisioned Throughputs if their statuses matches the value that you specify.
Result Syntax
[
'nextToken' => '<string>',
'provisionedModelSummaries' => [
[
'commitmentDuration' => 'OneMonth|SixMonths',
'commitmentExpirationTime' => <DateTime>,
'creationTime' => <DateTime>,
'desiredModelArn' => '<string>',
'desiredModelUnits' => <integer>,
'foundationModelArn' => '<string>',
'lastModifiedTime' => <DateTime>,
'modelArn' => '<string>',
'modelUnits' => <integer>,
'provisionedModelArn' => '<string>',
'provisionedModelName' => '<string>',
'status' => 'Creating|InService|Updating|Failed',
],
// ...
],
]
Result Details
Members
- nextToken
-
- Type: string
If there are more results than the number you specified in the
maxResultsfield, this value is returned. To see the next batch of results, include this value in thenextTokenfield in another list request. - provisionedModelSummaries
-
- Type: Array of ProvisionedModelSummary structures
A list of summaries, one for each Provisioned Throughput in the response.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
ListTagsForResource
$result = $client->listTagsForResource([/* ... */]); $promise = $client->listTagsForResourceAsync([/* ... */]);
List the tags associated with the specified resource.
For more information, see Tagging resources in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->listTagsForResource([
'resourceARN' => '<string>', // REQUIRED
]);
Parameter Details
Members
- resourceARN
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the resource.
Result Syntax
[
'tags' => [
[
'key' => '<string>',
'value' => '<string>',
],
// ...
],
]
Result Details
Members
- tags
-
- Type: Array of Tag structures
An array of the tags associated with this resource.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
PutAccountDataRetention
$result = $client->putAccountDataRetention([/* ... */]); $promise = $client->putAccountDataRetentionAsync([/* ... */]);
Sets the account-wide data retention mode for Amazon Bedrock.
Parameter Syntax
$result = $client->putAccountDataRetention([
'mode' => 'default|none|aws_review|provider_data_share|inherit', // REQUIRED
]);
Parameter Details
Members
- mode
-
- Required: Yes
- Type: string
The data retention mode to set for the account.
Result Syntax
[
'mode' => 'default|none|aws_review|provider_data_share|inherit',
'updatedAt' => <DateTime>,
]
Result Details
Members
- mode
-
- Required: Yes
- Type: string
The data retention mode set for the account.
- updatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the data retention mode was last updated.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
PutEnforcedGuardrailConfiguration
$result = $client->putEnforcedGuardrailConfiguration([/* ... */]); $promise = $client->putEnforcedGuardrailConfigurationAsync([/* ... */]);
Sets the account-level enforced guardrail configuration.
Parameter Syntax
$result = $client->putEnforcedGuardrailConfiguration([
'configId' => '<string>',
'guardrailInferenceConfig' => [ // REQUIRED
'guardrailIdentifier' => '<string>', // REQUIRED
'guardrailVersion' => '<string>', // REQUIRED
'modelEnforcement' => [
'excludedModels' => ['<string>', ...], // REQUIRED
'includedModels' => ['<string>', ...], // REQUIRED
],
'selectiveContentGuarding' => [
'messages' => 'SELECTIVE|COMPREHENSIVE',
'system' => 'SELECTIVE|COMPREHENSIVE',
],
],
]);
Parameter Details
Members
- configId
-
- Type: string
Unique ID for the account enforced configuration.
- guardrailInferenceConfig
-
- Required: Yes
- Type: AccountEnforcedGuardrailInferenceInputConfiguration structure
Account-level enforced guardrail input configuration.
Result Syntax
[
'configId' => '<string>',
'updatedAt' => <DateTime>,
'updatedBy' => '<string>',
]
Result Details
Members
- configId
-
- Type: string
Unique ID for the account enforced configuration.
- updatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Timestamp.
- updatedBy
-
- Type: string
The ARN of the role used to update the configuration.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
PutModelInvocationLoggingConfiguration
$result = $client->putModelInvocationLoggingConfiguration([/* ... */]); $promise = $client->putModelInvocationLoggingConfigurationAsync([/* ... */]);
Set the configuration values for model invocation logging.
Parameter Syntax
$result = $client->putModelInvocationLoggingConfiguration([
'loggingConfig' => [ // REQUIRED
'audioDataDeliveryEnabled' => true || false,
'cloudWatchConfig' => [
'largeDataDeliveryS3Config' => [
'bucketName' => '<string>', // REQUIRED
'keyPrefix' => '<string>',
],
'logGroupName' => '<string>', // REQUIRED
'roleArn' => '<string>', // REQUIRED
],
'embeddingDataDeliveryEnabled' => true || false,
'imageDataDeliveryEnabled' => true || false,
's3Config' => [
'bucketName' => '<string>', // REQUIRED
'keyPrefix' => '<string>',
],
'textDataDeliveryEnabled' => true || false,
'videoDataDeliveryEnabled' => true || false,
],
]);
Parameter Details
Members
- loggingConfig
-
- Required: Yes
- Type: LoggingConfig structure
The logging configuration values to set.
Result Syntax
[]
Result Details
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
PutResourcePolicy
$result = $client->putResourcePolicy([/* ... */]); $promise = $client->putResourcePolicyAsync([/* ... */]);
Adds a resource policy for a Bedrock resource.
Parameter Syntax
$result = $client->putResourcePolicy([
'resourceArn' => '<string>', // REQUIRED
'resourcePolicy' => '<string>', // REQUIRED
]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The ARN of the Bedrock resource to which this resource policy applies.
- resourcePolicy
-
- Required: Yes
- Type: string
The JSON string representing the Bedrock resource policy.
Result Syntax
[
'resourceArn' => '<string>',
]
Result Details
Members
- resourceArn
-
- Type: string
The ARN of the Bedrock resource to which this resource policy applies.
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
PutUseCaseForModelAccess
$result = $client->putUseCaseForModelAccess([/* ... */]); $promise = $client->putUseCaseForModelAccessAsync([/* ... */]);
Put usecase for model access.
Parameter Syntax
$result = $client->putUseCaseForModelAccess([
'formData' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
]);
Parameter Details
Members
- formData
-
- Required: Yes
- Type: blob (string|resource|Psr\Http\Message\StreamInterface)
Put customer profile Request.
Result Syntax
[]
Result Details
Errors
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
RegisterMarketplaceModelEndpoint
$result = $client->registerMarketplaceModelEndpoint([/* ... */]); $promise = $client->registerMarketplaceModelEndpointAsync([/* ... */]);
Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
Parameter Syntax
$result = $client->registerMarketplaceModelEndpoint([
'endpointIdentifier' => '<string>', // REQUIRED
'modelSourceIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- endpointIdentifier
-
- Required: Yes
- Type: string
The ARN of the Amazon SageMaker endpoint you want to register with Amazon Bedrock Marketplace.
- modelSourceIdentifier
-
- Required: Yes
- Type: string
The ARN of the model from Amazon Bedrock Marketplace that is deployed on the endpoint.
Result Syntax
[
'marketplaceModelEndpoint' => [
'createdAt' => <DateTime>,
'endpointArn' => '<string>',
'endpointConfig' => [
'sageMaker' => [
'executionRole' => '<string>',
'initialInstanceCount' => <integer>,
'instanceType' => '<string>',
'kmsEncryptionKey' => '<string>',
'vpc' => [
'securityGroupIds' => ['<string>', ...],
'subnetIds' => ['<string>', ...],
],
],
],
'endpointStatus' => '<string>',
'endpointStatusMessage' => '<string>',
'modelSourceIdentifier' => '<string>',
'status' => 'REGISTERED|INCOMPATIBLE_ENDPOINT',
'statusMessage' => '<string>',
'updatedAt' => <DateTime>,
],
]
Result Details
Members
- marketplaceModelEndpoint
-
- Required: Yes
- Type: MarketplaceModelEndpoint structure
Details about the registered endpoint.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- ServiceUnavailableException:
Returned if the service cannot complete the request.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
StartAutomatedReasoningPolicyBuildWorkflow
$result = $client->startAutomatedReasoningPolicyBuildWorkflow([/* ... */]); $promise = $client->startAutomatedReasoningPolicyBuildWorkflowAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->startAutomatedReasoningPolicyBuildWorkflow([
'buildWorkflowType' => 'INGEST_CONTENT|REFINE_POLICY|IMPORT_POLICY|GENERATE_FIDELITY_REPORT|GENERATE_POLICY_SCENARIOS|RESOLVE_POLICY_AMBIGUITIES|ITERATIVELY_REFINE_POLICY', // REQUIRED
'clientRequestToken' => '<string>',
'policyArn' => '<string>', // REQUIRED
'sourceContent' => [ // REQUIRED
'policyDefinition' => [
'rules' => [
[
'alternateExpression' => '<string>',
'expression' => '<string>', // REQUIRED
'id' => '<string>', // REQUIRED
],
// ...
],
'types' => [
[
'description' => '<string>',
'name' => '<string>', // REQUIRED
'values' => [ // REQUIRED
[
'description' => '<string>',
'value' => '<string>', // REQUIRED
],
// ...
],
],
// ...
],
'variables' => [
[
'description' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'type' => '<string>', // REQUIRED
],
// ...
],
'version' => '<string>',
],
'workflowContent' => [
'documents' => [
[
'document' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
'documentContentType' => 'pdf|txt', // REQUIRED
'documentDescription' => '<string>',
'documentName' => '<string>', // REQUIRED
],
// ...
],
'generateFidelityReportContent' => [
'documents' => [
[
'document' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
'documentContentType' => 'pdf|txt', // REQUIRED
'documentDescription' => '<string>',
'documentName' => '<string>', // REQUIRED
],
// ...
],
],
'iterativeRefinementContent' => [
'documents' => [ // REQUIRED
[
'document' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
'documentContentType' => 'pdf|txt', // REQUIRED
'documentDescription' => '<string>',
'documentName' => '<string>', // REQUIRED
],
// ...
],
'feedback' => '<string>',
],
'policyRepairAssets' => [
'annotations' => [ // REQUIRED
[
'addRule' => [
'expression' => '<string>', // REQUIRED
],
'addRuleFromNaturalLanguage' => [
'naturalLanguage' => '<string>', // REQUIRED
],
'addType' => [
'description' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'values' => [ // REQUIRED
[
'description' => '<string>',
'value' => '<string>', // REQUIRED
],
// ...
],
],
'addVariable' => [
'description' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'type' => '<string>', // REQUIRED
],
'deleteRule' => [
'ruleId' => '<string>', // REQUIRED
],
'deleteType' => [
'name' => '<string>', // REQUIRED
],
'deleteVariable' => [
'name' => '<string>', // REQUIRED
],
'ingestContent' => [
'content' => '<string>', // REQUIRED
],
'updateFromRulesFeedback' => [
'feedback' => '<string>', // REQUIRED
'ruleIds' => ['<string>', ...],
],
'updateFromScenarioFeedback' => [
'feedback' => '<string>',
'ruleIds' => ['<string>', ...],
'scenarioExpression' => '<string>', // REQUIRED
],
'updateRule' => [
'expression' => '<string>', // REQUIRED
'ruleId' => '<string>', // REQUIRED
],
'updateType' => [
'description' => '<string>',
'name' => '<string>', // REQUIRED
'newName' => '<string>',
'values' => [ // REQUIRED
[
'addTypeValue' => [
'description' => '<string>',
'value' => '<string>', // REQUIRED
],
'deleteTypeValue' => [
'value' => '<string>', // REQUIRED
],
'updateTypeValue' => [
'description' => '<string>',
'newValue' => '<string>',
'value' => '<string>', // REQUIRED
],
],
// ...
],
],
'updateVariable' => [
'description' => '<string>',
'name' => '<string>', // REQUIRED
'newName' => '<string>',
],
],
// ...
],
],
],
],
]);
Parameter Details
Members
- buildWorkflowType
-
- Required: Yes
- Type: string
The type of build workflow to start (e.g., DOCUMENT_INGESTION for processing new documents, POLICY_REPAIR for fixing existing policies).
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the operation completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request but doesn't return an error.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to start the build workflow.
- sourceContent
-
- Required: Yes
- Type: AutomatedReasoningPolicyBuildWorkflowSource structure
The source content for the build workflow, such as documents to analyze or repair instructions for existing policies.
Result Syntax
[
'buildWorkflowId' => '<string>',
'policyArn' => '<string>',
]
Result Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the newly started build workflow. Use this ID to track the workflow's progress and retrieve its results.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ResourceInUseException:
Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
StartAutomatedReasoningPolicyTestWorkflow
$result = $client->startAutomatedReasoningPolicyTestWorkflow([/* ... */]); $promise = $client->startAutomatedReasoningPolicyTestWorkflowAsync([/* ... */]);
Initiates a test workflow to validate Automated Reasoning policy tests. The workflow executes the specified tests against the policy and generates validation results.
Parameter Syntax
$result = $client->startAutomatedReasoningPolicyTestWorkflow([
'buildWorkflowId' => '<string>', // REQUIRED
'clientRequestToken' => '<string>',
'policyArn' => '<string>', // REQUIRED
'testCaseIds' => ['<string>', ...],
]);
Parameter Details
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The build workflow identifier. The build workflow must show a
COMPLETEDstatus before running tests. - clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but doesn't return an error.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy to test.
- testCaseIds
-
- Type: Array of strings
The list of test identifiers to run. If not provided, all tests for the policy are run.
Result Syntax
[
'policyArn' => '<string>',
]
Result Details
Members
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the policy for which the test workflow was started.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ResourceInUseException:
Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
StopAdvancedPromptOptimizationJob
$result = $client->stopAdvancedPromptOptimizationJob([/* ... */]); $promise = $client->stopAdvancedPromptOptimizationJobAsync([/* ... */]);
Stops an advanced prompt optimization job that is in progress.
Parameter Syntax
$result = $client->stopAdvancedPromptOptimizationJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
The ARN or ID of the advanced prompt optimization job to stop.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
StopEvaluationJob
$result = $client->stopEvaluationJob([/* ... */]); $promise = $client->stopEvaluationJobAsync([/* ... */]);
Stops an evaluation job that is current being created or running.
Parameter Syntax
$result = $client->stopEvaluationJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the evaluation job you want to stop.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
StopModelCustomizationJob
$result = $client->stopModelCustomizationJob([/* ... */]); $promise = $client->stopModelCustomizationJobAsync([/* ... */]);
Stops an active model customization job. For more information, see Custom models in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->stopModelCustomizationJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
Job identifier of the job to stop.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
StopModelInvocationJob
$result = $client->stopModelInvocationJob([/* ... */]); $promise = $client->stopModelInvocationJobAsync([/* ... */]);
Stops a batch inference job. You're only charged for tokens that were already processed. For more information, see Stop a batch inference job.
Parameter Syntax
$result = $client->stopModelInvocationJob([
'jobIdentifier' => '<string>', // REQUIRED
]);
Parameter Details
Members
- jobIdentifier
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the batch inference job to stop.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
TagResource
$result = $client->tagResource([/* ... */]); $promise = $client->tagResourceAsync([/* ... */]);
Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->tagResource([
'resourceARN' => '<string>', // REQUIRED
'tags' => [ // REQUIRED
[
'key' => '<string>', // REQUIRED
'value' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- resourceARN
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the resource to tag.
- tags
-
- Required: Yes
- Type: Array of Tag structures
Tags to associate with the resource.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
UntagResource
$result = $client->untagResource([/* ... */]); $promise = $client->untagResourceAsync([/* ... */]);
Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->untagResource([
'resourceARN' => '<string>', // REQUIRED
'tagKeys' => ['<string>', ...], // REQUIRED
]);
Parameter Details
Members
- resourceARN
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the resource to untag.
- tagKeys
-
- Required: Yes
- Type: Array of strings
Tag keys of the tags to remove from the resource.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
UpdateAutomatedReasoningPolicy
$result = $client->updateAutomatedReasoningPolicy([/* ... */]); $promise = $client->updateAutomatedReasoningPolicyAsync([/* ... */]);
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.
Parameter Syntax
$result = $client->updateAutomatedReasoningPolicy([
'description' => '<string>',
'name' => '<string>',
'policyArn' => '<string>', // REQUIRED
'policyDefinition' => [ // REQUIRED
'rules' => [
[
'alternateExpression' => '<string>',
'expression' => '<string>', // REQUIRED
'id' => '<string>', // REQUIRED
],
// ...
],
'types' => [
[
'description' => '<string>',
'name' => '<string>', // REQUIRED
'values' => [ // REQUIRED
[
'description' => '<string>',
'value' => '<string>', // REQUIRED
],
// ...
],
],
// ...
],
'variables' => [
[
'description' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'type' => '<string>', // REQUIRED
],
// ...
],
'version' => '<string>',
],
]);
Parameter Details
Members
- description
-
- Type: string
The updated description for the Automated Reasoning policy.
- name
-
- Type: string
The updated name for the Automated Reasoning policy.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy to update. This must be the ARN of a draft policy.
- policyDefinition
-
- Required: Yes
- Type: AutomatedReasoningPolicyDefinition structure
The updated policy definition containing the formal logic rules, variables, and types.
Result Syntax
[
'definitionHash' => '<string>',
'name' => '<string>',
'policyArn' => '<string>',
'updatedAt' => <DateTime>,
]
Result Details
Members
- definitionHash
-
- Required: Yes
- Type: string
The hash of the updated policy definition.
- name
-
- Required: Yes
- Type: string
The updated name of the policy.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the updated policy.
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the policy was last updated.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- TooManyTagsException:
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
UpdateAutomatedReasoningPolicyAnnotations
$result = $client->updateAutomatedReasoningPolicyAnnotations([/* ... */]); $promise = $client->updateAutomatedReasoningPolicyAnnotationsAsync([/* ... */]);
Updates the annotations for an Automated Reasoning policy build workflow. This allows you to modify extracted rules, variables, and types before finalizing the policy.
Parameter Syntax
$result = $client->updateAutomatedReasoningPolicyAnnotations([
'annotations' => [ // REQUIRED
[
'addRule' => [
'expression' => '<string>', // REQUIRED
],
'addRuleFromNaturalLanguage' => [
'naturalLanguage' => '<string>', // REQUIRED
],
'addType' => [
'description' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'values' => [ // REQUIRED
[
'description' => '<string>',
'value' => '<string>', // REQUIRED
],
// ...
],
],
'addVariable' => [
'description' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'type' => '<string>', // REQUIRED
],
'deleteRule' => [
'ruleId' => '<string>', // REQUIRED
],
'deleteType' => [
'name' => '<string>', // REQUIRED
],
'deleteVariable' => [
'name' => '<string>', // REQUIRED
],
'ingestContent' => [
'content' => '<string>', // REQUIRED
],
'updateFromRulesFeedback' => [
'feedback' => '<string>', // REQUIRED
'ruleIds' => ['<string>', ...],
],
'updateFromScenarioFeedback' => [
'feedback' => '<string>',
'ruleIds' => ['<string>', ...],
'scenarioExpression' => '<string>', // REQUIRED
],
'updateRule' => [
'expression' => '<string>', // REQUIRED
'ruleId' => '<string>', // REQUIRED
],
'updateType' => [
'description' => '<string>',
'name' => '<string>', // REQUIRED
'newName' => '<string>',
'values' => [ // REQUIRED
[
'addTypeValue' => [
'description' => '<string>',
'value' => '<string>', // REQUIRED
],
'deleteTypeValue' => [
'value' => '<string>', // REQUIRED
],
'updateTypeValue' => [
'description' => '<string>',
'newValue' => '<string>',
'value' => '<string>', // REQUIRED
],
],
// ...
],
],
'updateVariable' => [
'description' => '<string>',
'name' => '<string>', // REQUIRED
'newName' => '<string>',
],
],
// ...
],
'buildWorkflowId' => '<string>', // REQUIRED
'lastUpdatedAnnotationSetHash' => '<string>', // REQUIRED
'policyArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- annotations
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyAnnotation structures
The updated annotations containing modified rules, variables, and types for the policy.
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow whose annotations you want to update.
- lastUpdatedAnnotationSetHash
-
- Required: Yes
- Type: string
The hash value of the annotation set that you're updating. This is used for optimistic concurrency control to prevent conflicting updates.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy whose annotations you want to update.
Result Syntax
[
'annotationSetHash' => '<string>',
'buildWorkflowId' => '<string>',
'policyArn' => '<string>',
'updatedAt' => <DateTime>,
]
Result Details
Members
- annotationSetHash
-
- Required: Yes
- Type: string
The new hash value representing the updated state of the annotations.
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy.
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the annotations were updated.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
UpdateAutomatedReasoningPolicyTestCase
$result = $client->updateAutomatedReasoningPolicyTestCase([/* ... */]); $promise = $client->updateAutomatedReasoningPolicyTestCaseAsync([/* ... */]);
Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
Parameter Syntax
$result = $client->updateAutomatedReasoningPolicyTestCase([
'clientRequestToken' => '<string>',
'confidenceThreshold' => <float>,
'expectedAggregatedFindingsResult' => 'VALID|INVALID|SATISFIABLE|IMPOSSIBLE|TRANSLATION_AMBIGUOUS|TOO_COMPLEX|NO_TRANSLATION', // REQUIRED
'guardContent' => '<string>', // REQUIRED
'lastUpdatedAt' => <integer || string || DateTime>, // REQUIRED
'policyArn' => '<string>', // REQUIRED
'queryContent' => '<string>',
'testCaseId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
- confidenceThreshold
-
- Type: double
The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.
- expectedAggregatedFindingsResult
-
- Required: Yes
- Type: string
The updated expected result of the Automated Reasoning check.
- guardContent
-
- Required: Yes
- Type: string
The updated content to be validated by the Automated Reasoning policy.
- lastUpdatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
- queryContent
-
- Type: string
The updated input query or prompt that generated the content.
- testCaseId
-
- Required: Yes
- Type: string
The unique identifier of the test to update.
Result Syntax
[
'policyArn' => '<string>',
'testCaseId' => '<string>',
]
Result Details
Members
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the policy that contains the updated test.
- testCaseId
-
- Required: Yes
- Type: string
The unique identifier of the updated test.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ResourceInUseException:
Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
UpdateCustomModelDeployment
$result = $client->updateCustomModelDeployment([/* ... */]); $promise = $client->updateCustomModelDeploymentAsync([/* ... */]);
Updates a custom model deployment with a new custom model. This allows you to deploy updated models without creating new deployment endpoints.
Parameter Syntax
$result = $client->updateCustomModelDeployment([
'customModelDeploymentIdentifier' => '<string>', // REQUIRED
'modelArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- customModelDeploymentIdentifier
-
- Required: Yes
- Type: string
Identifier of the custom model deployment to update with the new custom model.
- modelArn
-
- Required: Yes
- Type: string
ARN of the new custom model to deploy. This replaces the currently deployed model.
Result Syntax
[
'customModelDeploymentArn' => '<string>',
]
Result Details
Members
- customModelDeploymentArn
-
- Required: Yes
- Type: string
ARN of the custom model deployment being updated.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
UpdateGuardrail
$result = $client->updateGuardrail([/* ... */]); $promise = $client->updateGuardrailAsync([/* ... */]);
Updates a guardrail with the values you specify.
-
Specify a
nameand optionaldescription. -
Specify messages for when the guardrail successfully blocks a prompt or a model response in the
blockedInputMessagingandblockedOutputsMessagingfields. -
Specify topics for the guardrail to deny in the
topicPolicyConfigobject. Each GuardrailTopicConfig object in thetopicsConfiglist pertains to one topic.-
Give a
nameanddescriptionso that the guardrail can properly identify the topic. -
Specify
DENYin thetypefield. -
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the
exampleslist.
-
-
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the
contentPolicyConfigobject. Each GuardrailContentFilterConfig object in thefiltersConfiglist pertains to a harmful category. For more information, see Content filters. For more information about the fields in a content filter, see GuardrailContentFilterConfig.-
Specify the category in the
typefield. -
Specify the strength of the filter for prompts in the
inputStrengthfield and for model responses in thestrengthfield of the GuardrailContentFilterConfig.
-
-
(Optional) For security, include the ARN of a KMS key in the
kmsKeyIdfield.
Parameter Syntax
$result = $client->updateGuardrail([
'automatedReasoningPolicyConfig' => [
'confidenceThreshold' => <float>,
'policies' => ['<string>', ...], // REQUIRED
],
'blockedInputMessaging' => '<string>', // REQUIRED
'blockedOutputsMessaging' => '<string>', // REQUIRED
'contentPolicyConfig' => [
'filtersConfig' => [ // REQUIRED
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'inputModalities' => ['<string>', ...],
'inputStrength' => 'NONE|LOW|MEDIUM|HIGH', // REQUIRED
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'outputModalities' => ['<string>', ...],
'outputStrength' => 'NONE|LOW|MEDIUM|HIGH', // REQUIRED
'type' => 'SEXUAL|VIOLENCE|HATE|INSULTS|MISCONDUCT|PROMPT_ATTACK', // REQUIRED
],
// ...
],
'tierConfig' => [
'tierName' => 'CLASSIC|STANDARD', // REQUIRED
],
],
'contextualGroundingPolicyConfig' => [
'filtersConfig' => [ // REQUIRED
[
'action' => 'BLOCK|NONE',
'enabled' => true || false,
'threshold' => <float>, // REQUIRED
'type' => 'GROUNDING|RELEVANCE', // REQUIRED
],
// ...
],
],
'crossRegionConfig' => [
'guardrailProfileIdentifier' => '<string>', // REQUIRED
],
'description' => '<string>',
'guardrailIdentifier' => '<string>', // REQUIRED
'kmsKeyId' => '<string>',
'name' => '<string>', // REQUIRED
'sensitiveInformationPolicyConfig' => [
'piiEntitiesConfig' => [
[
'action' => 'BLOCK|ANONYMIZE|NONE', // REQUIRED
'inputAction' => 'BLOCK|ANONYMIZE|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|ANONYMIZE|NONE',
'outputEnabled' => true || false,
'type' => 'ADDRESS|AGE|AWS_ACCESS_KEY|AWS_SECRET_KEY|CA_HEALTH_NUMBER|CA_SOCIAL_INSURANCE_NUMBER|CREDIT_DEBIT_CARD_CVV|CREDIT_DEBIT_CARD_EXPIRY|CREDIT_DEBIT_CARD_NUMBER|DRIVER_ID|EMAIL|INTERNATIONAL_BANK_ACCOUNT_NUMBER|IP_ADDRESS|LICENSE_PLATE|MAC_ADDRESS|NAME|PASSWORD|PHONE|PIN|SWIFT_CODE|UK_NATIONAL_HEALTH_SERVICE_NUMBER|UK_NATIONAL_INSURANCE_NUMBER|UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER|URL|USERNAME|US_BANK_ACCOUNT_NUMBER|US_BANK_ROUTING_NUMBER|US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER|US_PASSPORT_NUMBER|US_SOCIAL_SECURITY_NUMBER|VEHICLE_IDENTIFICATION_NUMBER', // REQUIRED
],
// ...
],
'regexesConfig' => [
[
'action' => 'BLOCK|ANONYMIZE|NONE', // REQUIRED
'description' => '<string>',
'inputAction' => 'BLOCK|ANONYMIZE|NONE',
'inputEnabled' => true || false,
'name' => '<string>', // REQUIRED
'outputAction' => 'BLOCK|ANONYMIZE|NONE',
'outputEnabled' => true || false,
'pattern' => '<string>', // REQUIRED
],
// ...
],
],
'topicPolicyConfig' => [
'tierConfig' => [
'tierName' => 'CLASSIC|STANDARD', // REQUIRED
],
'topicsConfig' => [ // REQUIRED
[
'definition' => '<string>', // REQUIRED
'examples' => ['<string>', ...],
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'name' => '<string>', // REQUIRED
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'type' => 'DENY', // REQUIRED
],
// ...
],
],
'wordPolicyConfig' => [
'managedWordListsConfig' => [
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'type' => 'PROFANITY', // REQUIRED
],
// ...
],
'wordsConfig' => [
[
'inputAction' => 'BLOCK|NONE',
'inputEnabled' => true || false,
'outputAction' => 'BLOCK|NONE',
'outputEnabled' => true || false,
'text' => '<string>', // REQUIRED
],
// ...
],
],
]);
Parameter Details
Members
- automatedReasoningPolicyConfig
-
- Type: GuardrailAutomatedReasoningPolicyConfig structure
Updated configuration for Automated Reasoning policies associated with the guardrail.
- blockedInputMessaging
-
- Required: Yes
- Type: string
The message to return when the guardrail blocks a prompt.
- blockedOutputsMessaging
-
- Required: Yes
- Type: string
The message to return when the guardrail blocks a model response.
- contentPolicyConfig
-
- Type: GuardrailContentPolicyConfig structure
The content policy to configure for the guardrail.
- contextualGroundingPolicyConfig
-
- Type: GuardrailContextualGroundingPolicyConfig structure
The contextual grounding policy configuration used to update a guardrail.
- crossRegionConfig
-
- Type: GuardrailCrossRegionConfig structure
The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
For more information, see the Amazon Bedrock User Guide.
- description
-
- Type: string
A description of the guardrail.
- guardrailIdentifier
-
- Required: Yes
- Type: string
The unique identifier of the guardrail. This can be an ID or the ARN.
- kmsKeyId
-
- Type: string
The ARN of the KMS key with which to encrypt the guardrail.
- name
-
- Required: Yes
- Type: string
A name for the guardrail.
- sensitiveInformationPolicyConfig
-
- Type: GuardrailSensitiveInformationPolicyConfig structure
The sensitive information policy to configure for the guardrail.
- topicPolicyConfig
-
- Type: GuardrailTopicPolicyConfig structure
The topic policy to configure for the guardrail.
- wordPolicyConfig
-
- Type: GuardrailWordPolicyConfig structure
The word policy to configure for the guardrail.
Result Syntax
[
'guardrailArn' => '<string>',
'guardrailId' => '<string>',
'updatedAt' => <DateTime>,
'version' => '<string>',
]
Result Details
Members
- guardrailArn
-
- Required: Yes
- Type: string
The ARN of the guardrail.
- guardrailId
-
- Required: Yes
- Type: string
The unique identifier of the guardrail
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time at which the guardrail was updated.
- version
-
- Required: Yes
- Type: string
The version of the guardrail.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
UpdateMarketplaceModelEndpoint
$result = $client->updateMarketplaceModelEndpoint([/* ... */]); $promise = $client->updateMarketplaceModelEndpointAsync([/* ... */]);
Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
Parameter Syntax
$result = $client->updateMarketplaceModelEndpoint([
'clientRequestToken' => '<string>',
'endpointArn' => '<string>', // REQUIRED
'endpointConfig' => [ // REQUIRED
'sageMaker' => [
'executionRole' => '<string>', // REQUIRED
'initialInstanceCount' => <integer>, // REQUIRED
'instanceType' => '<string>', // REQUIRED
'kmsEncryptionKey' => '<string>',
'vpc' => [
'securityGroupIds' => ['<string>', ...], // REQUIRED
'subnetIds' => ['<string>', ...], // REQUIRED
],
],
],
]);
Parameter Details
Members
- clientRequestToken
-
- Type: string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is listed as not required because Amazon Web Services SDKs automatically generate it for you and set this parameter. If you're not using the Amazon Web Services SDK or the CLI, you must provide this token or the action will fail.
- endpointArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the endpoint you want to update.
- endpointConfig
-
- Required: Yes
- Type: EndpointConfig structure
The new configuration for the endpoint, including the number and type of instances to use.
Result Syntax
[
'marketplaceModelEndpoint' => [
'createdAt' => <DateTime>,
'endpointArn' => '<string>',
'endpointConfig' => [
'sageMaker' => [
'executionRole' => '<string>',
'initialInstanceCount' => <integer>,
'instanceType' => '<string>',
'kmsEncryptionKey' => '<string>',
'vpc' => [
'securityGroupIds' => ['<string>', ...],
'subnetIds' => ['<string>', ...],
],
],
],
'endpointStatus' => '<string>',
'endpointStatusMessage' => '<string>',
'modelSourceIdentifier' => '<string>',
'status' => 'REGISTERED|INCOMPATIBLE_ENDPOINT',
'statusMessage' => '<string>',
'updatedAt' => <DateTime>,
],
]
Result Details
Members
- marketplaceModelEndpoint
-
- Required: Yes
- Type: MarketplaceModelEndpoint structure
Details about the updated endpoint.
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- ConflictException:
Error occurred because of a conflict while performing an operation.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The number of requests exceeds the service quota. Resubmit your request later.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
UpdateProvisionedModelThroughput
$result = $client->updateProvisionedModelThroughput([/* ... */]); $promise = $client->updateProvisionedModelThroughputAsync([/* ... */]);
Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput in the Amazon Bedrock User Guide.
Parameter Syntax
$result = $client->updateProvisionedModelThroughput([
'desiredModelId' => '<string>',
'desiredProvisionedModelName' => '<string>',
'provisionedModelId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- desiredModelId
-
- Type: string
The Amazon Resource Name (ARN) of the new model to associate with this Provisioned Throughput. You can't specify this field if this Provisioned Throughput is associated with a base model.
If this Provisioned Throughput is associated with a custom model, you can specify one of the following options:
-
The base model from which the custom model was customized.
-
Another custom model that was customized from the same base model as the custom model.
- desiredProvisionedModelName
-
- Type: string
The new name for this Provisioned Throughput.
- provisionedModelId
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) or name of the Provisioned Throughput to update.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
- AccessDeniedException:
The request is denied because of missing access permissions.
- ValidationException:
Input validation failed. Check your request parameters and retry the request.
- InternalServerException:
An internal server error occurred. Retry your request.
- ThrottlingException:
The number of requests exceeds the limit. Resubmit your request later.
Shapes
AccessDeniedException
Description
The request is denied because of missing access permissions.
Members
- message
-
- Type: string
AccountEnforcedGuardrailInferenceInputConfiguration
Description
Account-level enforced guardrail input configuration.
Members
- guardrailIdentifier
-
- Required: Yes
- Type: string
Identifier for the guardrail, could be the ID or the ARN.
- guardrailVersion
-
- Required: Yes
- Type: string
Numerical guardrail version.
- modelEnforcement
-
- Type: ModelEnforcement structure
Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models
- selectiveContentGuarding
-
- Type: SelectiveContentGuarding structure
Selective content guarding controls for enforced guardrails.
AccountEnforcedGuardrailOutputConfiguration
Description
Account enforced guardrail output configuration.
Members
- configId
-
- Type: string
Unique ID for the account enforced configuration.
- createdAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Timestamp.
- createdBy
-
- Type: string
The ARN of the role used to update the configuration.
- guardrailArn
-
- Type: string
ARN representation for the guardrail.
- guardrailId
-
- Type: string
Unique ID for the guardrail.
- guardrailVersion
-
- Type: string
Numerical guardrail version.
- inputTags
-
- Type: string
Whether to honor or ignore input tags at runtime.
- modelEnforcement
-
- Type: ModelEnforcement structure
Model-specific information for the enforced guardrail configuration.
- owner
-
- Type: string
Configuration owner type.
- selectiveContentGuarding
-
- Type: SelectiveContentGuarding structure
Selective content guarding controls for enforced guardrails.
- updatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Timestamp.
- updatedBy
-
- Type: string
The ARN of the role used to update the configuration.
AdditionalModelRequestFieldsValue
Members
AdvancedPromptOptimizationInputConfig
Description
Contains the input data configuration for an advanced prompt optimization job.
Members
- s3Uri
-
- Required: Yes
- Type: string
The S3 URI of the JSONL input file containing prompt templates and evaluation samples.
AdvancedPromptOptimizationJobSummary
Description
Contains a summary of an advanced prompt optimization job.
Members
- creationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the job was created.
- jobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the job.
- jobName
-
- Required: Yes
- Type: string
The name of the job.
- jobStatus
-
- Required: Yes
- Type: string
The status of the job.
- lastModifiedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the job was last modified.
AdvancedPromptOptimizationOutputConfig
Description
Contains the output data configuration for an advanced prompt optimization job.
Members
- s3Uri
-
- Required: Yes
- Type: string
The S3 URI prefix where the optimization results will be written.
AgreementAvailability
Description
Information about the agreement availability
Members
- errorMessage
-
- Type: string
Error message.
- status
-
- Required: Yes
- Type: string
Status of the agreement.
AutomatedEvaluationConfig
Description
The configuration details of an automated evaluation job. The EvaluationDatasetMetricConfig object is used to specify the prompt datasets, task type, and metric names.
Members
- customMetricConfig
-
- Type: AutomatedEvaluationCustomMetricConfig structure
Defines the configuration of custom metrics to be used in an evaluation job.
- datasetMetricConfigs
-
- Required: Yes
- Type: Array of EvaluationDatasetMetricConfig structures
Configuration details of the prompt datasets and metrics you want to use for your evaluation job.
- evaluatorModelConfig
-
- Type: EvaluatorModelConfig structure
Contains the evaluator model configuration details.
EvaluatorModelConfigis required for evaluation jobs that use a knowledge base or in model evaluation job that use a model as judge. This model computes all evaluation related metrics.
AutomatedEvaluationCustomMetricConfig
Description
Defines the configuration of custom metrics to be used in an evaluation job. To learn more about using custom metrics in Amazon Bedrock evaluation jobs, see Create a prompt for a custom metrics (LLM-as-a-judge model evaluations) and Create a prompt for a custom metrics (RAG evaluations).
Members
- customMetrics
-
- Required: Yes
- Type: Array of AutomatedEvaluationCustomMetricSource structures
Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.
- evaluatorModelConfig
-
- Required: Yes
- Type: CustomMetricEvaluatorModelConfig structure
Configuration of the evaluator model you want to use to evaluate custom metrics in an Amazon Bedrock evaluation job.
AutomatedEvaluationCustomMetricSource
Description
An array item definining a single custom metric for use in an Amazon Bedrock evaluation job.
Members
- customMetricDefinition
-
- Type: CustomMetricDefinition structure
The definition of a custom metric for use in an Amazon Bedrock evaluation job.
AutomatedReasoningCheckFinding
Description
Represents the result of an Automated Reasoning validation check, indicating whether the content is logically valid, invalid, or falls into other categories based on the policy rules.
Members
- impossible
-
- Type: AutomatedReasoningCheckImpossibleFinding structure
Indicates that Automated Reasoning cannot make a statement about the claims. This can happen if the premises are logically incorrect, or if there is a conflict within the Automated Reasoning policy itself.
- invalid
-
- Type: AutomatedReasoningCheckInvalidFinding structure
Indicates that the claims are false. The claims are not implied by the premises and Automated Reasoning policy. Furthermore, there exist different claims that are consistent with the premises and Automated Reasoning policy.
- noTranslations
-
- Type: AutomatedReasoningCheckNoTranslationsFinding structure
Identifies that some or all of the input prompt wasn't translated into logic. This can happen if the input isn't relevant to the Automated Reasoning policy, or if the policy doesn't have variables to model relevant input.
- satisfiable
-
- Type: AutomatedReasoningCheckSatisfiableFinding structure
Indicates that the claims can be true or false. It depends on what assumptions are made for the claim to be implied from the premises and Automated Reasoning policy rules. In this situation, different assumptions can make input claims false and alternative claims true.
- tooComplex
-
- Type: AutomatedReasoningCheckTooComplexFinding structure
Indicates that the input contains too much information for Automated Reasoning to process within its latency limits.
- translationAmbiguous
-
- Type: AutomatedReasoningCheckTranslationAmbiguousFinding structure
Indicates that an ambiguity was detected in the translation, making it unsound to continue with validity checking. Additional context or follow-up questions might be needed to get translation to succeed.
- valid
-
- Type: AutomatedReasoningCheckValidFinding structure
Indicates that the claims are true. The claims are implied by the premises and the Automated Reasoning policy. Given the Automated Reasoning policy and premises, it is not possible for these claims to be false.
AutomatedReasoningCheckImpossibleFinding
Description
Indicates that no valid claims can be made due to logical contradictions in the premises or rules.
Members
- contradictingRules
-
- Type: Array of AutomatedReasoningCheckRule structures
The automated reasoning policy rules that contradict the claims and/or premises in the input.
- logicWarning
-
- Type: AutomatedReasoningCheckLogicWarning structure
Indication of a logic issue with the translation without needing to consider the automated reasoning policy rules.
- translation
-
- Type: AutomatedReasoningCheckTranslation structure
The logical translation of the input that this finding evaluates.
AutomatedReasoningCheckInputTextReference
Description
References a portion of the original input text that corresponds to logical elements.
Members
- text
-
- Type: string
The specific text from the original input that this reference points to.
AutomatedReasoningCheckInvalidFinding
Description
Indicates that the claims are logically false and contradictory to the established rules or premises.
Members
- contradictingRules
-
- Type: Array of AutomatedReasoningCheckRule structures
The automated reasoning policy rules that contradict the claims in the input.
- logicWarning
-
- Type: AutomatedReasoningCheckLogicWarning structure
Indication of a logic issue with the translation without needing to consider the automated reasoning policy rules.
- translation
-
- Type: AutomatedReasoningCheckTranslation structure
The logical translation of the input that this finding invalidates.
AutomatedReasoningCheckLogicWarning
Description
Identifies logical issues in the translated statements that exist independent of any policy rules, such as statements that are always true or always false.
Members
- claims
-
- Type: Array of AutomatedReasoningLogicStatement structures
The logical statements that are validated while assuming the policy and premises.
- premises
-
- Type: Array of AutomatedReasoningLogicStatement structures
The logical statements that serve as premises under which the claims are validated.
- type
-
- Type: string
The category of the detected logical issue, such as statements that are always true or always false.
AutomatedReasoningCheckNoTranslationsFinding
Description
Indicates that no relevant logical information could be extracted from the input for validation.
Members
AutomatedReasoningCheckRule
Description
References a specific automated reasoning policy rule that was applied during evaluation.
Members
- id
-
- Type: string
The unique identifier of the automated reasoning rule.
- policyVersionArn
-
- Type: string
The ARN of the automated reasoning policy version that contains this rule.
AutomatedReasoningCheckSatisfiableFinding
Description
Indicates that the claims could be either true or false depending on additional assumptions not provided in the input.
Members
- claimsFalseScenario
-
- Type: AutomatedReasoningCheckScenario structure
An example scenario demonstrating how the claims could be logically false.
- claimsTrueScenario
-
- Type: AutomatedReasoningCheckScenario structure
An example scenario demonstrating how the claims could be logically true.
- logicWarning
-
- Type: AutomatedReasoningCheckLogicWarning structure
Indication of a logic issue with the translation without needing to consider the automated reasoning policy rules.
- translation
-
- Type: AutomatedReasoningCheckTranslation structure
The logical translation of the input that this finding evaluates.
AutomatedReasoningCheckScenario
Description
Represents a logical scenario where claims can be evaluated as true or false, containing specific logical assignments.
Members
- statements
-
- Type: Array of AutomatedReasoningLogicStatement structures
List of logical assignments and statements that define this scenario.
AutomatedReasoningCheckTooComplexFinding
Description
Indicates that the input exceeds the processing capacity due to the volume or complexity of the logical information.
Members
AutomatedReasoningCheckTranslation
Description
Contains the logical translation of natural language input into formal logical statements, including premises, claims, and confidence scores.
Members
- claims
-
- Required: Yes
- Type: Array of AutomatedReasoningLogicStatement structures
The logical statements that are being validated against the premises and policy rules.
- confidence
-
- Required: Yes
- Type: double
A confidence score between 0 and 1 indicating how certain the system is about the logical translation.
- premises
-
- Type: Array of AutomatedReasoningLogicStatement structures
The logical statements that serve as the foundation or assumptions for the claims.
- untranslatedClaims
-
- Type: Array of AutomatedReasoningCheckInputTextReference structures
References to portions of the original input text that correspond to the claims but could not be fully translated.
- untranslatedPremises
-
- Type: Array of AutomatedReasoningCheckInputTextReference structures
References to portions of the original input text that correspond to the premises but could not be fully translated.
AutomatedReasoningCheckTranslationAmbiguousFinding
Description
Indicates that the input has multiple valid logical interpretations, requiring additional context or clarification.
Members
- differenceScenarios
-
- Type: Array of AutomatedReasoningCheckScenario structures
Scenarios showing how the different translation options differ in meaning.
- options
-
- Type: Array of AutomatedReasoningCheckTranslationOption structures
Different logical interpretations that were detected during translation of the input.
AutomatedReasoningCheckTranslationOption
Description
Represents one possible logical interpretation of ambiguous input content.
Members
- translations
-
- Type: Array of AutomatedReasoningCheckTranslation structures
Different logical interpretations that were detected during translation of the input.
AutomatedReasoningCheckValidFinding
Description
Indicates that the claims are definitively true and logically implied by the premises, with no possible alternative interpretations.
Members
- claimsTrueScenario
-
- Type: AutomatedReasoningCheckScenario structure
An example scenario demonstrating how the claims are logically true.
- logicWarning
-
- Type: AutomatedReasoningCheckLogicWarning structure
Indication of a logic issue with the translation without needing to consider the automated reasoning policy rules.
- supportingRules
-
- Type: Array of AutomatedReasoningCheckRule structures
The automated reasoning policy rules that support why this result is considered valid.
- translation
-
- Type: AutomatedReasoningCheckTranslation structure
The logical translation of the input that this finding validates.
AutomatedReasoningLogicStatement
Description
Represents a logical statement that can be expressed both in formal logic notation and natural language, providing dual representations for better understanding and validation.
Members
- logic
-
- Required: Yes
- Type: string
The formal logic representation of the statement using mathematical notation and logical operators.
- naturalLanguage
-
- Type: string
The natural language representation of the logical statement, providing a human-readable interpretation of the formal logic.
AutomatedReasoningPolicyAddRuleAnnotation
Description
An annotation for adding a new rule to an Automated Reasoning policy using a formal logical expression.
Members
- expression
-
- Required: Yes
- Type: string
The formal logical expression that defines the rule, using mathematical notation and referencing policy variables and types.
AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation
Description
An annotation for adding a new rule to the policy by converting a natural language description into a formal logical expression.
Members
- naturalLanguage
-
- Required: Yes
- Type: string
The natural language description of the rule that should be converted into a formal logical expression.
AutomatedReasoningPolicyAddRuleMutation
Description
A mutation operation that adds a new rule to the policy definition during the build process.
Members
- rule
-
- Required: Yes
- Type: AutomatedReasoningPolicyDefinitionRule structure
The rule definition that specifies the formal logical expression and metadata for the new rule being added to the policy.
AutomatedReasoningPolicyAddTypeAnnotation
Description
An annotation for adding a new custom type to an Automated Reasoning policy, defining a set of possible values for variables.
Members
- description
-
- Required: Yes
- Type: string
A description of what the custom type represents and how it should be used in the policy.
- name
-
- Required: Yes
- Type: string
The name of the new custom type. This name will be used to reference the type in variable definitions and rules.
- values
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyDefinitionTypeValue structures
The list of possible values that variables of this type can take, each with its own description and identifier.
AutomatedReasoningPolicyAddTypeMutation
Description
A mutation operation that adds a new custom type to the policy definition during the build process.
Members
- type
-
- Required: Yes
- Type: AutomatedReasoningPolicyDefinitionType structure
The type definition that specifies the name, description, and possible values for the new custom type being added to the policy.
AutomatedReasoningPolicyAddTypeValue
Description
Represents a single value that can be added to an existing custom type in the policy.
Members
- description
-
- Type: string
A description of what this new type value represents and when it should be used.
- value
-
- Required: Yes
- Type: string
The identifier or name of the new value to add to the type.
AutomatedReasoningPolicyAddVariableAnnotation
Description
An annotation for adding a new variable to an Automated Reasoning policy, which can be used in rule expressions.
Members
- description
-
- Required: Yes
- Type: string
A description of what the variable represents and how it should be used in rules.
- name
-
- Required: Yes
- Type: string
The name of the new variable. This name will be used to reference the variable in rule expressions.
- type
-
- Required: Yes
- Type: string
The type of the variable, which can be a built-in type (like string or number) or a custom type defined in the policy.
AutomatedReasoningPolicyAddVariableMutation
Description
A mutation operation that adds a new variable to the policy definition during the build process.
Members
- variable
-
- Required: Yes
- Type: AutomatedReasoningPolicyDefinitionVariable structure
The variable definition that specifies the name, type, and description for the new variable being added to the policy.
AutomatedReasoningPolicyAnnotatedChunk
Description
Represents a portion of a source document with line number annotations. Chunks help organize document content for easier navigation and reference.
Members
- content
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyAnnotatedContent structures
The lines of text contained within this chunk, each annotated with its line number.
- pageNumber
-
- Type: int
The page number where this chunk begins, if the document is divided into pages.
AutomatedReasoningPolicyAnnotatedContent
Description
Represents a content element within an annotated chunk. This union type allows for different types of content elements to be included in document chunks, such as individual lines of text with their line numbers.
Members
- line
-
- Type: AutomatedReasoningPolicyAnnotatedLine structure
An annotated line of text from the source document, including both the line number and the text content.
AutomatedReasoningPolicyAnnotatedLine
Description
Represents a single line of text from a source document, annotated with its line number for precise referencing.
Members
- lineNumber
-
- Type: int
The line number of this text within the source document.
- lineText
-
- Type: string
The actual text content of this line from the source document.
AutomatedReasoningPolicyAnnotation
Description
Contains the various operations that can be performed on an Automated Reasoning policy, including adding, updating, and deleting rules, variables, and types.
Members
- addRule
-
- Type: AutomatedReasoningPolicyAddRuleAnnotation structure
An operation to add a new logical rule to the policy using formal mathematical expressions.
- addRuleFromNaturalLanguage
-
- Type: AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation structure
An operation to add a new rule by converting natural language descriptions into formal logical expressions.
- addType
-
- Type: AutomatedReasoningPolicyAddTypeAnnotation structure
An operation to add a new custom type to the policy, defining a set of possible values for policy variables.
- addVariable
-
- Type: AutomatedReasoningPolicyAddVariableAnnotation structure
An operation to add a new variable to the policy, which can be used in rule expressions to represent dynamic values.
- deleteRule
-
- Type: AutomatedReasoningPolicyDeleteRuleAnnotation structure
An operation to remove a rule from the policy.
- deleteType
-
- Type: AutomatedReasoningPolicyDeleteTypeAnnotation structure
An operation to remove a custom type from the policy. The type must not be referenced by any variables or rules.
- deleteVariable
-
- Type: AutomatedReasoningPolicyDeleteVariableAnnotation structure
An operation to remove a variable from the policy. The variable must not be referenced by any rules.
- ingestContent
-
- Type: AutomatedReasoningPolicyIngestContentAnnotation structure
An operation to process and incorporate new content into the policy, extracting additional rules and concepts.
- updateFromRulesFeedback
-
- Type: AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation structure
An operation to update the policy based on feedback about how specific rules performed during testing or validation.
- updateFromScenarioFeedback
-
- Type: AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation structure
An operation to update the policy based on feedback about how it performed on specific test scenarios.
- updateRule
-
- Type: AutomatedReasoningPolicyUpdateRuleAnnotation structure
An operation to modify an existing rule in the policy, such as changing its logical expression or conditions.
- updateType
-
- Type: AutomatedReasoningPolicyUpdateTypeAnnotation structure
An operation to modify an existing custom type in the policy, such as changing its name, description, or allowed values.
- updateVariable
-
- Type: AutomatedReasoningPolicyUpdateVariableAnnotation structure
An operation to modify an existing variable in the policy, such as changing its name, type, or description.
AutomatedReasoningPolicyAtomicStatement
Description
Represents a single, indivisible statement extracted from a source document. Atomic statements are the fundamental units used to ground policy rules and variables to their source material.
Members
- id
-
- Required: Yes
- Type: string
A unique identifier for this atomic statement within the fidelity report.
- location
-
- Required: Yes
- Type: AutomatedReasoningPolicyStatementLocation structure
Information about where this statement appears in the source document, including line numbers.
- text
-
- Required: Yes
- Type: string
The actual text content of the atomic statement as extracted from the source document.
AutomatedReasoningPolicyBuildLog
Description
Contains detailed logging information about the policy build process, including steps taken, decisions made, and any issues encountered.
Members
- entries
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyBuildLogEntry structures
A list of log entries documenting each step in the policy build process, including timestamps, status, and detailed messages.
AutomatedReasoningPolicyBuildLogEntry
Description
Represents a single entry in the policy build log, containing information about a specific step or event in the build process.
Members
- annotation
-
- Required: Yes
- Type: AutomatedReasoningPolicyAnnotation structure
The annotation or operation that was being processed when this log entry was created.
- buildSteps
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyBuildStep structures
Detailed information about the specific build steps that were executed, including any sub-operations or transformations.
- status
-
- Required: Yes
- Type: string
The status of the build step (e.g., SUCCESS, FAILED, IN_PROGRESS).
AutomatedReasoningPolicyBuildResultAssetManifest
Description
A catalog of all artifacts produced by a build workflow, providing a comprehensive list of available assets including their types and identifiers.
Members
- entries
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyBuildResultAssetManifestEntry structures
The list of asset entries in the manifest, each describing an available artifact that can be retrieved.
AutomatedReasoningPolicyBuildResultAssetManifestEntry
Description
Represents a single entry in the asset manifest, describing one artifact produced by the build workflow.
Members
- assetId
-
- Type: string
A unique identifier for the asset, if applicable. Use this ID when requesting specific assets through the API.
- assetName
-
- Type: string
A human-readable name for the asset, if applicable. This helps identify specific documents or reports within the workflow results.
- assetType
-
- Required: Yes
- Type: string
The type of asset (e.g., BUILD_LOG, QUALITY_REPORT, POLICY_DEFINITION, GENERATED_TEST_CASES, POLICY_SCENARIOS, FIDELITY_REPORT, ASSET_MANIFEST, SOURCE_DOCUMENT).
AutomatedReasoningPolicyBuildResultAssets
Description
Contains the various assets generated during a policy build workflow, including logs, quality reports, test cases, and the final policy definition.
Members
- assetManifest
-
- Type: AutomatedReasoningPolicyBuildResultAssetManifest structure
A manifest listing all available artifacts produced by the build workflow. This provides a catalog of all assets that can be retrieved, including their types, names, and identifiers.
- buildLog
-
- Type: AutomatedReasoningPolicyBuildLog structure
The complete build log containing detailed information about each step in the policy generation process.
- document
-
- Type: AutomatedReasoningPolicySourceDocument structure
A source document that was used as input during the build workflow. This allows you to retrieve the original documents that were processed to generate the policy.
- fidelityReport
-
- Type: AutomatedReasoningPolicyFidelityReport structure
A comprehensive fidelity report that measures how accurately the generated policy represents the source documents. The report includes coverage and accuracy scores, along with detailed grounding information for rules and variables.
- generatedTestCases
-
- Type: AutomatedReasoningPolicyGeneratedTestCases structure
A comprehensive test suite generated by the build workflow, providing validation capabilities for automated reasoning policies.
- policyDefinition
-
- Type: AutomatedReasoningPolicyDefinition structure
The complete policy definition generated by the build workflow, containing all rules, variables, and custom types extracted from the source documents.
- policyScenarios
-
- Type: AutomatedReasoningPolicyScenarios structure
An entity encompassing all the policy scenarios generated by the build workflow, which can be used to validate an Automated Reasoning policy.
- qualityReport
-
- Type: AutomatedReasoningPolicyDefinitionQualityReport structure
A comprehensive report analyzing the quality of the generated policy, including metrics about rule coverage, potential conflicts, and unused elements.
AutomatedReasoningPolicyBuildStep
Description
Represents a single step in the policy build process, containing context about what was being processed and any messages or results.
Members
- context
-
- Required: Yes
- Type: AutomatedReasoningPolicyBuildStepContext structure
Contextual information about what was being processed during this build step, such as the type of operation or the source material being analyzed.
- messages
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyBuildStepMessage structures
A list of messages generated during this build step, including informational messages, warnings, and error details.
- priorElement
-
- Type: AutomatedReasoningPolicyDefinitionElement structure
Reference to the previous element or step in the build process, helping to trace the sequence of operations.
AutomatedReasoningPolicyBuildStepContext
Description
Provides context about what type of operation was being performed during a build step.
Members
- mutation
-
- Type: AutomatedReasoningPolicyMutation structure
Indicates that this build step involved modifying the policy structure, such as adding or updating rules, variables, or types.
- planning
-
- Type: AutomatedReasoningPolicyPlanning structure
Indicates that this build step was part of the planning phase, where the system determines what operations to perform.
AutomatedReasoningPolicyBuildStepMessage
Description
Represents a message generated during a build step, providing information about what happened or any issues encountered.
Members
- message
-
- Required: Yes
- Type: string
The content of the message, describing what occurred during the build step.
- messageType
-
- Required: Yes
- Type: string
The type of message (e.g., INFO, WARNING, ERROR) indicating its severity and purpose.
AutomatedReasoningPolicyBuildWorkflowDocument
Description
Represents a source document used in the policy build workflow, containing the content and metadata needed for policy generation.
Members
- document
-
- Required: Yes
- Type: blob (string|resource|Psr\Http\Message\StreamInterface)
The actual content of the source document that will be analyzed to extract policy rules and concepts.
- documentContentType
-
- Required: Yes
- Type: string
The MIME type of the document content (e.g., text/plain, application/pdf, text/markdown).
- documentDescription
-
- Type: string
A detailed description of the document's content and how it should be used in the policy generation process.
- documentName
-
- Required: Yes
- Type: string
A descriptive name for the document that helps identify its purpose and content.
AutomatedReasoningPolicyBuildWorkflowRepairContent
Description
Contains content and instructions for repairing or improving an existing Automated Reasoning policy.
Members
- annotations
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyAnnotation structures
Specific annotations or modifications to apply during the policy repair process, such as rule corrections or variable updates.
AutomatedReasoningPolicyBuildWorkflowSource
Description
Defines the source content for a policy build workflow, which can include documents, repair instructions, or other input materials.
Members
- policyDefinition
-
- Type: AutomatedReasoningPolicyDefinition structure
An existing policy definition that serves as the starting point for the build workflow, typically used in policy repair or update scenarios.
- workflowContent
-
- Type: AutomatedReasoningPolicyWorkflowTypeContent structure
The actual content to be processed in the build workflow, such as documents to analyze or repair instructions to apply.
AutomatedReasoningPolicyBuildWorkflowSummary
Description
Provides a summary of a policy build workflow, including its current status, timing information, and key identifiers.
Members
- buildWorkflowId
-
- Required: Yes
- Type: string
The unique identifier of the build workflow.
- buildWorkflowType
-
- Required: Yes
- Type: string
The type of build workflow (e.g., DOCUMENT_INGESTION, POLICY_REPAIR).
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the build workflow was created.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy associated with this build workflow.
- status
-
- Required: Yes
- Type: string
The current status of the build workflow (e.g., RUNNING, COMPLETED, FAILED, CANCELLED).
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the build workflow was last updated.
AutomatedReasoningPolicyDefinition
Description
Contains the formal logic rules, variables, and custom variable types that define an Automated Reasoning policy. The policy definition specifies the constraints used to validate foundation model responses for accuracy and logical consistency.
Members
- rules
-
- Type: Array of AutomatedReasoningPolicyDefinitionRule structures
The formal logic rules extracted from the source document. Rules define the logical constraints that determine whether model responses are valid, invalid, or satisfiable.
- types
-
- Type: Array of AutomatedReasoningPolicyDefinitionType structures
The custom user-defined vairable types used in the policy. Types are enum-based variable types that provide additional context beyond the predefined variable types.
- variables
-
- Type: Array of AutomatedReasoningPolicyDefinitionVariable structures
The variables that represent concepts in the policy. Variables can have values assigned when translating natural language into formal logic. Their descriptions are crucial for accurate translation.
- version
-
- Type: string
The version of the policy definition format.
AutomatedReasoningPolicyDefinitionElement
Description
Represents a single element in an Automated Reasoning policy definition, such as a rule, variable, or type definition.
Members
- policyDefinitionRule
-
- Type: AutomatedReasoningPolicyDefinitionRule structure
A rule element within the policy definition that contains a formal logical expression used for validation.
- policyDefinitionType
-
- Type: AutomatedReasoningPolicyDefinitionType structure
A custom type element within the policy definition that defines a set of possible values for variables.
- policyDefinitionVariable
-
- Type: AutomatedReasoningPolicyDefinitionVariable structure
A variable element within the policy definition that represents a concept used in logical expressions and rules.
AutomatedReasoningPolicyDefinitionQualityReport
Description
Provides a comprehensive analysis of the quality and completeness of an Automated Reasoning policy definition, highlighting potential issues and optimization opportunities.
Members
- conflictingRules
-
- Required: Yes
- Type: Array of strings
A list of rules that may conflict with each other, potentially leading to inconsistent policy behavior.
- disjointRuleSets
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyDisjointRuleSet structures
Groups of rules that operate on completely separate sets of variables, indicating the policy may be addressing multiple unrelated concerns.
- ruleCount
-
- Required: Yes
- Type: int
The total number of rules defined in the policy.
- typeCount
-
- Required: Yes
- Type: int
The total number of custom types defined in the policy.
- unusedTypeValues
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyDefinitionTypeValuePair structures
A list of type values that are defined but never used in any rules, indicating potential cleanup opportunities.
- unusedTypes
-
- Required: Yes
- Type: Array of strings
A list of custom types that are defined but not referenced by any variables or rules, suggesting they may be unnecessary.
- unusedVariables
-
- Required: Yes
- Type: Array of strings
A list of variables that are defined but not referenced by any rules, suggesting they may be unnecessary.
- variableCount
-
- Required: Yes
- Type: int
The total number of variables defined in the policy.
AutomatedReasoningPolicyDefinitionRule
Description
Represents a formal logic rule in an Automated Reasoning policy. For example, rules can be expressed as if-then statements that define logical constraints.
Members
- alternateExpression
-
- Type: string
The human-readable form of the rule expression, often in natural language or simplified notation.
- expression
-
- Required: Yes
- Type: string
The formal logic expression of the rule.
- id
-
- Required: Yes
- Type: string
The unique identifier of the rule within the policy.
AutomatedReasoningPolicyDefinitionType
Description
Represents a custom user-defined viarble type in an Automated Reasoning policy. Types are enum-based and provide additional context beyond predefined variable types.
Members
- description
-
- Type: string
The description of what the custom type represents.
- name
-
- Required: Yes
- Type: string
The name of the custom type.
- values
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyDefinitionTypeValue structures
The possible values for this enum-based type, each with its own description.
AutomatedReasoningPolicyDefinitionTypeValue
Description
Represents a single value within a custom type definition, including its identifier and description.
Members
- description
-
- Type: string
A human-readable description explaining what this type value represents and when it should be used.
- value
-
- Required: Yes
- Type: string
The actual value or identifier for this type value.
AutomatedReasoningPolicyDefinitionTypeValuePair
Description
Associates a type name with a specific value name, used for referencing type values in rules and other policy elements.
Members
- typeName
-
- Required: Yes
- Type: string
The name of the custom type that contains the referenced value.
- valueName
-
- Required: Yes
- Type: string
The name of the specific value within the type.
AutomatedReasoningPolicyDefinitionVariable
Description
Represents a variable in an Automated Reasoning policy. Variables represent concepts that can have values assigned during natural language translation.
Members
- description
-
- Required: Yes
- Type: string
The description of the variable that explains what it represents and how users might refer to it. Clear and comprehensive descriptions are essential for accurate natural language translation.
- name
-
- Required: Yes
- Type: string
The name of the variable. Use descriptive names that clearly indicate the concept being represented.
- type
-
- Required: Yes
- Type: string
The data type of the variable. Valid types include bool, int, real, enum, and custom types that you can provide.
AutomatedReasoningPolicyDeleteRuleAnnotation
Description
An annotation for removing a rule from an Automated Reasoning policy.
Members
- ruleId
-
- Required: Yes
- Type: string
The unique identifier of the rule to delete from the policy.
AutomatedReasoningPolicyDeleteRuleMutation
Description
A mutation operation that removes a rule from the policy definition during the build process.
Members
- id
-
- Required: Yes
- Type: string
The unique identifier of the rule to delete.
AutomatedReasoningPolicyDeleteTypeAnnotation
Description
An annotation for removing a custom type from an Automated Reasoning policy.
Members
- name
-
- Required: Yes
- Type: string
The name of the custom type to delete from the policy. The type must not be referenced by any variables or rules.
AutomatedReasoningPolicyDeleteTypeMutation
Description
A mutation operation that removes a custom type from the policy definition during the build process.
Members
- name
-
- Required: Yes
- Type: string
The name of the custom type to delete.
AutomatedReasoningPolicyDeleteTypeValue
Description
Represents a value to be removed from an existing custom type in the policy.
Members
- value
-
- Required: Yes
- Type: string
The identifier or name of the value to remove from the type.
AutomatedReasoningPolicyDeleteVariableAnnotation
Description
An annotation for removing a variable from an Automated Reasoning policy.
Members
- name
-
- Required: Yes
- Type: string
The name of the variable to delete from the policy. The variable must not be referenced by any rules.
AutomatedReasoningPolicyDeleteVariableMutation
Description
A mutation operation that removes a variable from the policy definition during the build process.
Members
- name
-
- Required: Yes
- Type: string
The name of the variable to delete.
AutomatedReasoningPolicyDisjointRuleSet
Description
Represents a set of rules that operate on completely separate variables, indicating they address different concerns or domains within the policy.
Members
- rules
-
- Required: Yes
- Type: Array of strings
The list of rules that form this disjoint set, all operating on the same set of variables.
- variables
-
- Required: Yes
- Type: Array of strings
The set of variables that are used by the rules in this disjoint set.
AutomatedReasoningPolicyFidelityReport
Description
A comprehensive analysis report that measures how accurately a generated policy represents the source documents. The report includes coverage and accuracy scores, detailed grounding information linking policy elements to source statements, and annotated document content.
Members
- accuracyScore
-
- Required: Yes
- Type: double
A score from 0.0 to 1.0 indicating how accurate the policy rules are relative to the source documents. A higher score means the policy rules more faithfully represent the source material.
- coverageScore
-
- Required: Yes
- Type: double
A score from 0.0 to 1.0 indicating how well the policy covers the statements in the source documents. A higher score means more of the source content is represented in the policy.
- documentSources
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyReportSourceDocument structures
A list of source documents with their content broken down into atomic statements and annotated with line numbers for precise referencing.
- ruleReports
-
- Required: Yes
- Type: Associative array of custom strings keys (AutomatedReasoningPolicyDefinitionRuleId) to AutomatedReasoningPolicyRuleReport structures
A mapping from rule identifiers to detailed fidelity reports for each rule, showing which source statements ground each rule and how accurate it is.
- variableReports
-
- Required: Yes
- Type: Associative array of custom strings keys (AutomatedReasoningPolicyDefinitionVariableName) to AutomatedReasoningPolicyVariableReport structures
A mapping from variable names to detailed fidelity reports for each variable, showing which source statements ground each variable and how accurate it is.
AutomatedReasoningPolicyGenerateFidelityReportContent
Description
Configuration for generating a fidelity report, which can either analyze new documents or update an existing fidelity report with a new policy definition.
Members
- documents
-
- Type: Array of AutomatedReasoningPolicyBuildWorkflowDocument structures
Source documents to analyze for generating a new fidelity report. The documents will be processed to create atomic statements and grounding information.
AutomatedReasoningPolicyGeneratedTestCase
Description
Represents a generated test case, consisting of query content, guard content, and expected results.
Members
- expectedAggregatedFindingsResult
-
- Required: Yes
- Type: string
The expected results of the generated test case. Possible values include:
-
VALID- The claims are true. The claims are implied by the premises and the Automated Reasoning policy. Given the Automated Reasoning policy and premises, it is not possible for these claims to be false. In other words, there are no alternative answers that are true that contradict the claims. -
INVALID- The claims are false. The claims are not implied by the premises and Automated Reasoning policy. Furthermore, there exists different claims that are consistent with the premises and Automated Reasoning policy. -
SATISFIABLE- The claims can be true or false. It depends on what assumptions are made for the claim to be implied from the premises and Automated Reasoning policy rules. In this situation, different assumptions can make input claims false and alternative claims true. -
IMPOSSIBLE- Automated Reasoning can’t make a statement about the claims. This can happen if the premises are logically incorrect, or if there is a conflict within the Automated Reasoning policy itself.
- guardContent
-
- Required: Yes
- Type: string
The output content that's validated by the Automated Reasoning policy. This represents the foundation model response that will be checked for accuracy.
- queryContent
-
- Required: Yes
- Type: string
The input query or prompt that generated the content. This provides context for the validation.
AutomatedReasoningPolicyGeneratedTestCases
Description
Contains a comprehensive test suite generated by the build workflow, providing validation capabilities for automated reasoning policies.
Members
- generatedTestCases
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyGeneratedTestCase structures
Represents a collection of generated test cases.
AutomatedReasoningPolicyIngestContentAnnotation
Description
An annotation for processing and incorporating new content into an Automated Reasoning policy.
Members
- content
-
- Required: Yes
- Type: string
The new content to be analyzed and incorporated into the policy, such as additional documents or rule descriptions.
AutomatedReasoningPolicyIterativeRefinementContent
Description
Configuration for an iterative policy refinement workflow, including source documents to process and optional feedback to guide the refinement.
Members
- documents
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyBuildWorkflowDocument structures
Source documents used for iterative policy refinement. These documents provide context for refining the policy definition.
- feedback
-
- Type: string
Optional feedback to guide the iterative refinement workflow. Provide specific instructions or constraints for policy refinement.
AutomatedReasoningPolicyMutation
Description
A container for various mutation operations that can be applied to an Automated Reasoning policy, including adding, updating, and deleting policy elements.
Members
- addRule
-
- Type: AutomatedReasoningPolicyAddRuleMutation structure
A mutation to add a new rule to the policy.
- addType
-
- Type: AutomatedReasoningPolicyAddTypeMutation structure
A mutation to add a new custom type to the policy.
- addVariable
-
- Type: AutomatedReasoningPolicyAddVariableMutation structure
A mutation to add a new variable to the policy.
- deleteRule
-
- Type: AutomatedReasoningPolicyDeleteRuleMutation structure
A mutation to remove a rule from the policy.
- deleteType
-
- Type: AutomatedReasoningPolicyDeleteTypeMutation structure
A mutation to remove a custom type from the policy.
- deleteVariable
-
- Type: AutomatedReasoningPolicyDeleteVariableMutation structure
A mutation to remove a variable from the policy.
- updateRule
-
- Type: AutomatedReasoningPolicyUpdateRuleMutation structure
A mutation to modify an existing rule in the policy.
- updateType
-
- Type: AutomatedReasoningPolicyUpdateTypeMutation structure
A mutation to modify an existing custom type in the policy.
- updateVariable
-
- Type: AutomatedReasoningPolicyUpdateVariableMutation structure
A mutation to modify an existing variable in the policy.
AutomatedReasoningPolicyPlanning
Description
Represents the planning phase of policy build workflow, where the system analyzes source content and determines what operations to perform.
Members
AutomatedReasoningPolicyReportSourceDocument
Description
Represents a source document that was analyzed during fidelity report generation, including the document's metadata and its content broken down into atomic statements.
Members
- atomicStatements
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyAtomicStatement structures
The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.
- documentContent
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyAnnotatedChunk structures
The document's content organized into annotated chunks with line number information for precise referencing.
- documentHash
-
- Required: Yes
- Type: string
A SHA-256 hash of the document content, used for verification and ensuring the document hasn't changed since analysis.
- documentId
-
- Required: Yes
- Type: string
A unique identifier for this document within the fidelity report.
- documentName
-
- Required: Yes
- Type: string
The name of the source document that was analyzed.
AutomatedReasoningPolicyRuleReport
Description
Provides detailed fidelity analysis for a specific policy rule, including which source document statements support it and how accurate the rule is.
Members
- accuracyJustification
-
- Type: string
A textual explanation of the accuracy score, describing why the rule received this particular accuracy rating.
- accuracyScore
-
- Type: double
A score from 0.0 to 1.0 indicating how accurately this rule represents the source material.
- groundingJustifications
-
- Type: Array of strings
Explanations describing how the source statements support and justify this specific rule.
- groundingStatements
-
- Type: Array of AutomatedReasoningPolicyStatementReference structures
References to statements from the source documents that provide the basis or justification for this rule.
- rule
-
- Required: Yes
- Type: string
The identifier of the policy rule being analyzed in this report.
AutomatedReasoningPolicyScenario
Description
Represents a test scenario used to validate an Automated Reasoning policy, including the test conditions and expected outcomes.
Members
- alternateExpression
-
- Required: Yes
- Type: string
An alternative way to express the same test scenario, used for validation and comparison purposes.
- expectedResult
-
- Required: Yes
- Type: string
The expected outcome when this scenario is evaluated against the policy (e.g., PASS, FAIL, VIOLATION).
- expression
-
- Required: Yes
- Type: string
The logical expression or condition that defines this test scenario.
- ruleIds
-
- Required: Yes
- Type: Array of strings
The list of rule identifiers that are expected to be triggered or evaluated by this test scenario.
AutomatedReasoningPolicyScenarios
Description
Contains a comprehensive entity encompassing all the scenarios generated by the build workflow, which can be used to validate an Automated Reasoning policy.
Members
- policyScenarios
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyScenario structures
Represents a collection of generated policy scenarios.
AutomatedReasoningPolicySourceDocument
Description
Represents a source document that was processed during a build workflow. Contains the document content, metadata, and a hash for verification.
Members
- document
-
- Required: Yes
- Type: blob (string|resource|Psr\Http\Message\StreamInterface)
The raw content of the source document as a binary blob.
- documentContentType
-
- Required: Yes
- Type: string
The MIME type of the document (e.g., application/pdf, text/plain).
- documentDescription
-
- Type: string
An optional description providing context about the document's content and purpose.
- documentHash
-
- Required: Yes
- Type: string
A SHA-256 hash of the document content, used for verification and integrity checking.
- documentName
-
- Required: Yes
- Type: string
The name of the source document for identification purposes.
AutomatedReasoningPolicyStatementLocation
Description
Describes the location of a statement within a source document using line numbers.
Members
- lines
-
- Required: Yes
- Type: Array of ints
The line numbers in the source document where this statement appears.
AutomatedReasoningPolicyStatementReference
Description
References a specific atomic statement within a source document, used to link policy elements back to their source material.
Members
- documentId
-
- Required: Yes
- Type: string
The unique identifier of the document containing the referenced statement.
- statementId
-
- Required: Yes
- Type: string
The unique identifier of the specific atomic statement being referenced.
AutomatedReasoningPolicySummary
Description
Contains summary information about an Automated Reasoning policy, including metadata and timestamps.
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the policy was created.
- description
-
- Type: string
The description of the policy.
- name
-
- Required: Yes
- Type: string
The name of the policy.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the policy.
- policyId
-
- Required: Yes
- Type: string
The unique identifier of the policy.
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the policy was last updated.
- version
-
- Required: Yes
- Type: string
The version of the policy.
AutomatedReasoningPolicyTestCase
Description
Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior.
Members
- confidenceThreshold
-
- Type: double
The minimum confidence level for logic validation. Content meeting this threshold is considered high-confidence and can be validated.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the test was created.
- expectedAggregatedFindingsResult
-
- Type: string
The expected result of the Automated Reasoning check for this test.
- guardContent
-
- Required: Yes
- Type: string
The output content to be validated by the policy, typically representing a foundation model response.
- queryContent
-
- Type: string
The input query or prompt that generated the content. This provides context for the validation.
- testCaseId
-
- Required: Yes
- Type: string
The unique identifier of the test.
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the test was last updated.
AutomatedReasoningPolicyTestResult
Description
Contains the results of testing an Automated Reasoning policy against various scenarios and validation checks.
Members
- aggregatedTestFindingsResult
-
- Type: string
A summary of all test findings, aggregated to provide an overall assessment of policy quality and correctness.
- policyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Automated Reasoning policy that was tested.
- testCase
-
- Required: Yes
- Type: AutomatedReasoningPolicyTestCase structure
The test case that was executed, including the input content, expected results, and configuration parameters used during validation.
- testFindings
-
- Type: Array of AutomatedReasoningCheckFinding structures
Detailed findings from the test run, including any issues, violations, or unexpected behaviors discovered.
- testRunResult
-
- Type: string
The overall result of the test run, indicating whether the policy passed or failed validation.
- testRunStatus
-
- Required: Yes
- Type: string
The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS).
- updatedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the test results were last updated.
AutomatedReasoningPolicyTypeValueAnnotation
Description
An annotation for managing values within custom types, including adding, updating, or removing specific type values.
Members
- addTypeValue
-
- Type: AutomatedReasoningPolicyAddTypeValue structure
An operation to add a new value to an existing custom type.
- deleteTypeValue
-
- Type: AutomatedReasoningPolicyDeleteTypeValue structure
An operation to remove a value from an existing custom type.
- updateTypeValue
-
- Type: AutomatedReasoningPolicyUpdateTypeValue structure
An operation to modify an existing value within a custom type.
AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation
Description
An annotation for updating the policy based on feedback about how specific rules performed during testing or real-world usage.
Members
- feedback
-
- Required: Yes
- Type: string
The feedback information about rule performance, including suggestions for improvements or corrections.
- ruleIds
-
- Type: Array of strings
The list of rule identifiers that the feedback applies to.
AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation
Description
An annotation for updating the policy based on feedback about how it performed on specific test scenarios.
Members
- feedback
-
- Type: string
The feedback information about scenario performance, including any issues or improvements identified.
- ruleIds
-
- Type: Array of strings
The list of rule identifiers that were involved in the scenario being evaluated.
- scenarioExpression
-
- Required: Yes
- Type: string
The logical expression that defines the test scenario that generated this feedback.
AutomatedReasoningPolicyUpdateRuleAnnotation
Description
An annotation for modifying an existing rule in an Automated Reasoning policy.
Members
- expression
-
- Required: Yes
- Type: string
The new formal logical expression for the rule, replacing the previous expression.
- ruleId
-
- Required: Yes
- Type: string
The unique identifier of the rule to update.
AutomatedReasoningPolicyUpdateRuleMutation
Description
A mutation operation that modifies an existing rule in the policy definition during the build process.
Members
- rule
-
- Required: Yes
- Type: AutomatedReasoningPolicyDefinitionRule structure
The updated rule definition containing the modified formal logical expression and any changed metadata for the existing rule.
AutomatedReasoningPolicyUpdateTypeAnnotation
Description
An annotation for modifying an existing custom type in an Automated Reasoning policy.
Members
- description
-
- Type: string
The new description for the custom type, replacing the previous description.
- name
-
- Required: Yes
- Type: string
The current name of the custom type to update.
- newName
-
- Type: string
The new name for the custom type, if you want to rename it. If not provided, the name remains unchanged.
- values
-
- Required: Yes
- Type: Array of AutomatedReasoningPolicyTypeValueAnnotation structures
The updated list of values for the custom type, which can include additions, modifications, or removals.
AutomatedReasoningPolicyUpdateTypeMutation
Description
A mutation operation that modifies an existing custom type in the policy definition during the build process.
Members
- type
-
- Required: Yes
- Type: AutomatedReasoningPolicyDefinitionType structure
The updated type definition containing the modified name, description, or values for the existing custom type.
AutomatedReasoningPolicyUpdateTypeValue
Description
Represents a modification to a value within an existing custom type.
Members
- description
-
- Type: string
The new description for the type value, replacing the previous description.
- newValue
-
- Type: string
The new identifier or name for the type value, if you want to rename it.
- value
-
- Required: Yes
- Type: string
The current identifier or name of the type value to update.
AutomatedReasoningPolicyUpdateVariableAnnotation
Description
An annotation for modifying an existing variable in an Automated Reasoning policy.
Members
- description
-
- Type: string
The new description for the variable, replacing the previous description.
- name
-
- Required: Yes
- Type: string
The current name of the variable to update.
- newName
-
- Type: string
The new name for the variable, if you want to rename it. If not provided, the name remains unchanged.
AutomatedReasoningPolicyUpdateVariableMutation
Description
A mutation operation that modifies an existing variable in the policy definition during the build process.
Members
- variable
-
- Required: Yes
- Type: AutomatedReasoningPolicyDefinitionVariable structure
The updated variable definition containing the modified name, type, or description for the existing variable.
AutomatedReasoningPolicyVariableReport
Description
Provides detailed fidelity analysis for a specific policy variable, including which source document statements support it and how accurate the variable definition is.
Members
- accuracyJustification
-
- Type: string
A textual explanation of the accuracy score, describing why the variable received this particular accuracy rating.
- accuracyScore
-
- Type: double
A score from 0.0 to 1.0 indicating how accurately this variable represents concepts from the source material.
- groundingJustifications
-
- Type: Array of strings
Explanations describing how the source statements support and justify this specific variable definition.
- groundingStatements
-
- Type: Array of AutomatedReasoningPolicyStatementReference structures
References to statements from the source documents that provide the basis or justification for this variable.
- policyVariable
-
- Required: Yes
- Type: string
The name of the policy variable being analyzed in this report.
AutomatedReasoningPolicyWorkflowTypeContent
Description
Defines the content and configuration for different types of policy build workflows.
Members
- documents
-
- Type: Array of AutomatedReasoningPolicyBuildWorkflowDocument structures
The list of documents to be processed in a document ingestion workflow.
- generateFidelityReportContent
-
- Type: AutomatedReasoningPolicyGenerateFidelityReportContent structure
The content configuration for generating a fidelity report workflow. This can include source documents to analyze or an existing fidelity report to update with a new policy definition.
- iterativeRefinementContent
-
- Type: AutomatedReasoningPolicyIterativeRefinementContent structure
Content configuration to start an iterative policy refinement workflow that uses generative AI to automatically make changes to the policy based on test results and the optional feedback provided.
- policyRepairAssets
-
- Type: AutomatedReasoningPolicyBuildWorkflowRepairContent structure
The assets and instructions needed for a policy repair workflow, including repair annotations and guidance.
BatchDeleteAdvancedPromptOptimizationJobError
Description
Contains information about an error that occurred when deleting an advanced prompt optimization job.
Members
- code
-
- Required: Yes
- Type: string
The error code for the deletion failure.
- jobIdentifier
-
- Required: Yes
- Type: string
The identifier of the job that could not be deleted.
- message
-
- Type: string
A message describing the error.
BatchDeleteAdvancedPromptOptimizationJobItem
Description
Contains information about a successfully deleted advanced prompt optimization job.
Members
- jobIdentifier
-
- Required: Yes
- Type: string
The identifier of the deleted job.
- jobStatus
-