We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi
aws-native.bedrock.getPrompt
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi
Definition of AWS::Bedrock::Prompt Resource Type
Using getPrompt
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPrompt(args: GetPromptArgs, opts?: InvokeOptions): Promise<GetPromptResult>
function getPromptOutput(args: GetPromptOutputArgs, opts?: InvokeOptions): Output<GetPromptResult>
def get_prompt(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPromptResult
def get_prompt_output(arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPromptResult]
func LookupPrompt(ctx *Context, args *LookupPromptArgs, opts ...InvokeOption) (*LookupPromptResult, error)
func LookupPromptOutput(ctx *Context, args *LookupPromptOutputArgs, opts ...InvokeOption) LookupPromptResultOutput
> Note: This function is named LookupPrompt
in the Go SDK.
public static class GetPrompt
{
public static Task<GetPromptResult> InvokeAsync(GetPromptArgs args, InvokeOptions? opts = null)
public static Output<GetPromptResult> Invoke(GetPromptInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPromptResult> getPrompt(GetPromptArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:bedrock:getPrompt
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- ARN of a prompt resource possibly with a version
- Arn string
- ARN of a prompt resource possibly with a version
- arn String
- ARN of a prompt resource possibly with a version
- arn string
- ARN of a prompt resource possibly with a version
- arn str
- ARN of a prompt resource possibly with a version
- arn String
- ARN of a prompt resource possibly with a version
getPrompt Result
The following output properties are available:
- Arn string
- ARN of a prompt resource possibly with a version
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant string - Name for a variant.
- Description string
- Name for a prompt resource.
- Id string
- Identifier for a Prompt
- Name string
- Name for a prompt resource.
- Dictionary<string, string>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- Updated
At string - Time Stamp.
- Variants
List<Pulumi.
Aws Native. Bedrock. Outputs. Prompt Variant> - List of prompt variants
- Version string
- Draft Version.
- Arn string
- ARN of a prompt resource possibly with a version
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant string - Name for a variant.
- Description string
- Name for a prompt resource.
- Id string
- Identifier for a Prompt
- Name string
- Name for a prompt resource.
- map[string]string
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- Updated
At string - Time Stamp.
- Variants
[]Prompt
Variant - List of prompt variants
- Version string
- Draft Version.
- arn String
- ARN of a prompt resource possibly with a version
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant String - Name for a variant.
- description String
- Name for a prompt resource.
- id String
- Identifier for a Prompt
- name String
- Name for a prompt resource.
- Map<String,String>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated
At String - Time Stamp.
- variants
List<Prompt
Variant> - List of prompt variants
- version String
- Draft Version.
- arn string
- ARN of a prompt resource possibly with a version
- created
At string - Time Stamp.
- customer
Encryption stringKey Arn - A KMS key ARN
- default
Variant string - Name for a variant.
- description string
- Name for a prompt resource.
- id string
- Identifier for a Prompt
- name string
- Name for a prompt resource.
- {[key: string]: string}
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated
At string - Time Stamp.
- variants
Prompt
Variant[] - List of prompt variants
- version string
- Draft Version.
- arn str
- ARN of a prompt resource possibly with a version
- created_
at str - Time Stamp.
- customer_
encryption_ strkey_ arn - A KMS key ARN
- default_
variant str - Name for a variant.
- description str
- Name for a prompt resource.
- id str
- Identifier for a Prompt
- name str
- Name for a prompt resource.
- Mapping[str, str]
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated_
at str - Time Stamp.
- variants
Sequence[Prompt
Variant] - List of prompt variants
- version str
- Draft Version.
- arn String
- ARN of a prompt resource possibly with a version
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant String - Name for a variant.
- description String
- Name for a prompt resource.
- id String
- Identifier for a Prompt
- name String
- Name for a prompt resource.
- Map<String>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated
At String - Time Stamp.
- variants List<Property Map>
- List of prompt variants
- version String
- Draft Version.
Supporting Types
PromptInferenceConfigurationProperties
PromptInputVariable
- Name string
- Name for an input variable
- Name string
- Name for an input variable
- name String
- Name for an input variable
- name string
- Name for an input variable
- name str
- Name for an input variable
- name String
- Name for an input variable
PromptModelInferenceConfiguration
- Max
Tokens double - Maximum length of output
- Stop
Sequences List<string> - List of stop sequences
- Temperature double
- Controls randomness, higher values increase diversity
- Top
P double - Cumulative probability cutoff for token selection
- Max
Tokens float64 - Maximum length of output
- Stop
Sequences []string - List of stop sequences
- Temperature float64
- Controls randomness, higher values increase diversity
- Top
P float64 - Cumulative probability cutoff for token selection
- max
Tokens Double - Maximum length of output
- stop
Sequences List<String> - List of stop sequences
- temperature Double
- Controls randomness, higher values increase diversity
- top
P Double - Cumulative probability cutoff for token selection
- max
Tokens number - Maximum length of output
- stop
Sequences string[] - List of stop sequences
- temperature number
- Controls randomness, higher values increase diversity
- top
P number - Cumulative probability cutoff for token selection
- max_
tokens float - Maximum length of output
- stop_
sequences Sequence[str] - List of stop sequences
- temperature float
- Controls randomness, higher values increase diversity
- top_
p float - Cumulative probability cutoff for token selection
- max
Tokens Number - Maximum length of output
- stop
Sequences List<String> - List of stop sequences
- temperature Number
- Controls randomness, higher values increase diversity
- top
P Number - Cumulative probability cutoff for token selection
PromptTemplateConfigurationProperties
PromptTemplateType
PromptTextPromptTemplateConfiguration
- Input
Variables List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Input Variable> - List of input variables
- Text string
- Prompt content for String prompt template
- Text
S3Location Pulumi.Aws Native. Bedrock. Inputs. Prompt Text S3Location
- Input
Variables []PromptInput Variable - List of input variables
- Text string
- Prompt content for String prompt template
- Text
S3Location PromptText S3Location
- input
Variables List<PromptInput Variable> - List of input variables
- text String
- Prompt content for String prompt template
- text
S3Location PromptText S3Location
- input
Variables PromptInput Variable[] - List of input variables
- text string
- Prompt content for String prompt template
- text
S3Location PromptText S3Location
- input_
variables Sequence[PromptInput Variable] - List of input variables
- text str
- Prompt content for String prompt template
- text_
s3_ Promptlocation Text S3Location
- input
Variables List<Property Map> - List of input variables
- text String
- Prompt content for String prompt template
- text
S3Location Property Map
PromptTextS3Location
PromptVariant
- Name string
- Name for a variant.
- Template
Configuration Pulumi.Aws Native. Bedrock. Inputs. Prompt Template Configuration Properties - Contains configurations for the prompt template.
- Template
Type Pulumi.Aws Native. Bedrock. Prompt Template Type - The type of prompt template to use.
- Inference
Configuration Pulumi.Aws Native. Bedrock. Inputs. Prompt Inference Configuration Properties - Contains inference configurations for the prompt variant.
- Model
Id string - ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models.
- Name string
- Name for a variant.
- Template
Configuration PromptTemplate Configuration Properties - Contains configurations for the prompt template.
- Template
Type PromptTemplate Type - The type of prompt template to use.
- Inference
Configuration PromptInference Configuration Properties - Contains inference configurations for the prompt variant.
- Model
Id string - ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models.
- name String
- Name for a variant.
- template
Configuration PromptTemplate Configuration Properties - Contains configurations for the prompt template.
- template
Type PromptTemplate Type - The type of prompt template to use.
- inference
Configuration PromptInference Configuration Properties - Contains inference configurations for the prompt variant.
- model
Id String - ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models.
- name string
- Name for a variant.
- template
Configuration PromptTemplate Configuration Properties - Contains configurations for the prompt template.
- template
Type PromptTemplate Type - The type of prompt template to use.
- inference
Configuration PromptInference Configuration Properties - Contains inference configurations for the prompt variant.
- model
Id string - ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models.
- name str
- Name for a variant.
- template_
configuration PromptTemplate Configuration Properties - Contains configurations for the prompt template.
- template_
type PromptTemplate Type - The type of prompt template to use.
- inference_
configuration PromptInference Configuration Properties - Contains inference configurations for the prompt variant.
- model_
id str - ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models.
- name String
- Name for a variant.
- template
Configuration Property Map - Contains configurations for the prompt template.
- template
Type "TEXT" - The type of prompt template to use.
- inference
Configuration Property Map - Contains inference configurations for the prompt variant.
- model
Id String - ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi