application_inference_profiles
Creates, updates, deletes or gets an application_inference_profile resource or lists application_inference_profiles in a region
Overview
| Name | application_inference_profiles |
| Type | Resource |
| Description | Definition of AWS::Bedrock::ApplicationInferenceProfile Resource Type |
| Id | awscc.bedrock.application_inference_profiles |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
created_at | string | Time Stamp |
description | string | Description of the inference profile |
inference_profile_arn | string | |
inference_profile_id | string | |
inference_profile_identifier | string | Inference profile identifier. Supports both system-defined inference profile ids, and inference profile ARNs. |
inference_profile_name | string | |
model_source | object | Various ways to encode a list of models in a CreateInferenceProfile request |
models | array | List of model configuration |
status | string | Status of the Inference Profile |
tags | array | List of Tags |
type | string | Type of the Inference Profile |
updated_at | string | Time Stamp |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
inference_profile_id | string | |
inference_profile_identifier | string | Inference profile identifier. Supports both system-defined inference profile ids, and inference profile ARNs. |
region | string | AWS region. |
For more information, see AWS::Bedrock::ApplicationInferenceProfile.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | application_inference_profiles | INSERT | InferenceProfileName, region |
delete_resource | application_inference_profiles | DELETE | Identifier, region |
update_resource | application_inference_profiles | UPDATE | Identifier, PatchDocument, region |
list_resources | application_inference_profiles_list_only | SELECT | region |
get_resource | application_inference_profiles | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual application_inference_profile.
SELECT
region,
created_at,
description,
inference_profile_arn,
inference_profile_id,
inference_profile_identifier,
inference_profile_name,
model_source,
models,
status,
tags,
type,
updated_at
FROM awscc.bedrock.application_inference_profiles
WHERE
region = '{{ region }}' AND
Identifier = '{{ inference_profile_identifier }}';
Lists all application_inference_profiles in a region.
SELECT
region,
inference_profile_identifier
FROM awscc.bedrock.application_inference_profiles_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new application_inference_profile resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.bedrock.application_inference_profiles (
InferenceProfileName,
region
)
SELECT
'{{ inference_profile_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.bedrock.application_inference_profiles (
Description,
InferenceProfileName,
ModelSource,
Tags,
region
)
SELECT
'{{ description }}',
'{{ inference_profile_name }}',
'{{ model_source }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: application_inference_profile
props:
- name: description
value: '{{ description }}'
- name: inference_profile_name
value: '{{ inference_profile_name }}'
- name: model_source
value: null
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a application_inference_profile resource, using stack-deploy.
/*+ update */
UPDATE awscc.bedrock.application_inference_profiles
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ inference_profile_identifier }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.bedrock.application_inference_profiles
WHERE
Identifier = '{{ inference_profile_identifier }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the application_inference_profiles resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
bedrock:CreateInferenceProfile,
bedrock:GetInferenceProfile,
bedrock:TagResource,
bedrock:ListTagsForResource
bedrock:GetInferenceProfile,
bedrock:ListTagsForResource
bedrock:GetInferenceProfile,
bedrock:ListTagsForResource,
bedrock:TagResource,
bedrock:UntagResource
bedrock:DeleteInferenceProfile,
bedrock:GetInferenceProfile
bedrock:ListInferenceProfiles