published on Friday, Aug 7, 2026 by Pulumi
published on Friday, Aug 7, 2026 by Pulumi
Manages an AWS Bedrock Use Case For Model Access.
This is an advanced resource and has special caveats to be aware of when using it. Please read this document in its entirety before using this resource.
The aws.bedrock.UseCaseForModelAccess resource behaves differently from normal resources in that if an Use Case For Model Access already exists, Terraform does not create this resource, but instead “adopts” it into management if it is the same. As the ability to update doesn’t exist, changes compared to the existing resource generate an error.
If no Use Case For Model Access exists, Terraform creates a new Use Case For Model Access.
By default, terraform destroy does not delete the Use Case For Model Access but does remove the resource from Terraform state. Real deletion does not exist for this resource.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.bedrock.UseCaseForModelAccess("example", {formData: JSON.stringify({
companyName: "AWS Provider",
companyWebsite: "https://www.test.com",
intendedUsers: "0",
industryOption: "Energy",
otherIndustryOption: "",
useCases: `. - Generating developer documentation
- Code generation/refactoring
- Summarization of issues / documents`,
})});
import pulumi
import json
import pulumi_aws as aws
example = aws.bedrock.UseCaseForModelAccess("example", form_data=json.dumps({
"companyName": "AWS Provider",
"companyWebsite": "https://www.test.com",
"intendedUsers": "0",
"industryOption": "Energy",
"otherIndustryOption": "",
"useCases": """. - Generating developer documentation
- Code generation/refactoring
- Summarization of issues / documents""",
}))
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]string{
"companyName": "AWS Provider",
"companyWebsite": "https://www.test.com",
"intendedUsers": "0",
"industryOption": "Energy",
"otherIndustryOption": "",
"useCases": ". - Generating developer documentation\n- Code generation/refactoring\n- Summarization of issues / documents",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = bedrock.NewUseCaseForModelAccess(ctx, "example", &bedrock.UseCaseForModelAccessArgs{
FormData: pulumi.String(json0),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Bedrock.UseCaseForModelAccess("example", new()
{
FormData = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["companyName"] = "AWS Provider",
["companyWebsite"] = "https://www.test.com",
["intendedUsers"] = "0",
["industryOption"] = "Energy",
["otherIndustryOption"] = "",
["useCases"] = @". - Generating developer documentation
- Code generation/refactoring
- Summarization of issues / documents",
}),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.UseCaseForModelAccess;
import com.pulumi.aws.bedrock.UseCaseForModelAccessArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new UseCaseForModelAccess("example", UseCaseForModelAccessArgs.builder()
.formData(serializeJson(
jsonObject(
jsonProperty("companyName", "AWS Provider"),
jsonProperty("companyWebsite", "https://www.test.com"),
jsonProperty("intendedUsers", "0"),
jsonProperty("industryOption", "Energy"),
jsonProperty("otherIndustryOption", ""),
jsonProperty("useCases", """
. - Generating developer documentation
- Code generation/refactoring
- Summarization of issues / documents """)
)))
.build());
}
}
resources:
example:
type: aws:bedrock:UseCaseForModelAccess
properties:
formData:
fn::toJSON:
companyName: AWS Provider
companyWebsite: https://www.test.com
intendedUsers: '0'
industryOption: Energy
otherIndustryOption: ""
useCases: |-
. - Generating developer documentation
- Code generation/refactoring
- Summarization of issues / documents
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_usecaseformodelaccess" "example" {
form_data = jsonencode({
"companyName" = "AWS Provider"
"companyWebsite" = "https://www.test.com"
"intendedUsers" = "0"
"industryOption" = "Energy"
"otherIndustryOption" = ""
"useCases" = ". - Generating developer documentation\n- Code generation/refactoring\n- Summarization of issues / documents"
})
}
Create UseCaseForModelAccess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UseCaseForModelAccess(name: string, args: UseCaseForModelAccessArgs, opts?: CustomResourceOptions);@overload
def UseCaseForModelAccess(resource_name: str,
args: UseCaseForModelAccessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UseCaseForModelAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
form_data: Optional[str] = None)func NewUseCaseForModelAccess(ctx *Context, name string, args UseCaseForModelAccessArgs, opts ...ResourceOption) (*UseCaseForModelAccess, error)public UseCaseForModelAccess(string name, UseCaseForModelAccessArgs args, CustomResourceOptions? opts = null)
public UseCaseForModelAccess(String name, UseCaseForModelAccessArgs args)
public UseCaseForModelAccess(String name, UseCaseForModelAccessArgs args, CustomResourceOptions options)
type: aws:bedrock:UseCaseForModelAccess
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_bedrock_use_case_for_model_access" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UseCaseForModelAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UseCaseForModelAccessArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UseCaseForModelAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UseCaseForModelAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UseCaseForModelAccessArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var useCaseForModelAccessResource = new Aws.Bedrock.UseCaseForModelAccess("useCaseForModelAccessResource", new()
{
FormData = "string",
});
example, err := bedrock.NewUseCaseForModelAccess(ctx, "useCaseForModelAccessResource", &bedrock.UseCaseForModelAccessArgs{
FormData: pulumi.String("string"),
})
resource "aws_bedrock_use_case_for_model_access" "useCaseForModelAccessResource" {
lifecycle {
create_before_destroy = true
}
form_data = "string"
}
var useCaseForModelAccessResource = new UseCaseForModelAccess("useCaseForModelAccessResource", UseCaseForModelAccessArgs.builder()
.formData("string")
.build());
use_case_for_model_access_resource = aws.bedrock.UseCaseForModelAccess("useCaseForModelAccessResource", form_data="string")
const useCaseForModelAccessResource = new aws.bedrock.UseCaseForModelAccess("useCaseForModelAccessResource", {formData: "string"});
type: aws:bedrock:UseCaseForModelAccess
properties:
formData: string
UseCaseForModelAccess Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UseCaseForModelAccess resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the UseCaseForModelAccess resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing UseCaseForModelAccess Resource
Get an existing UseCaseForModelAccess resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UseCaseForModelAccessState, opts?: CustomResourceOptions): UseCaseForModelAccess@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
form_data: Optional[str] = None) -> UseCaseForModelAccessfunc GetUseCaseForModelAccess(ctx *Context, name string, id IDInput, state *UseCaseForModelAccessState, opts ...ResourceOption) (*UseCaseForModelAccess, error)public static UseCaseForModelAccess Get(string name, Input<string> id, UseCaseForModelAccessState? state, CustomResourceOptions? opts = null)public static UseCaseForModelAccess get(String name, Output<String> id, UseCaseForModelAccessState state, CustomResourceOptions options)resources: _: type: aws:bedrock:UseCaseForModelAccess get: id: ${id}import {
to = aws_bedrock_use_case_for_model_access.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
Import
Identity Schema
Optional
accountId(String) AWS Account where this resource is managed.
Using pulumi import, import AWS Bedrock Use Case For Model Access resources using the AWS account ID. For example:
$ pulumi import aws:bedrock/useCaseForModelAccess:UseCaseForModelAccess example 123456789012
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Aug 7, 2026 by Pulumi