Class CfnPrompt.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPrompt.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrompt>
- Enclosing class:
CfnPrompt
@Stability(Stable)
public static final class CfnPrompt.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrompt>
A fluent builder for
CfnPrompt
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnPrompt.Builder
customerEncryptionKeyArn
(String customerEncryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.defaultVariant
(String defaultVariant) The name of the default variant for the prompt.description
(String description) The description of the prompt.The name of the prompt.Metadata that you can assign to a resource as key-value pairs.A list of objects, each containing details about a variant of the prompt.variants
(IResolvable variants) A list of objects, each containing details about a variant of the prompt.
-
Method Details
-
create
@Stability(Stable) public static CfnPrompt.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnPrompt.Builder
.
-
name
The name of the prompt.- Parameters:
name
- The name of the prompt. This parameter is required.- Returns:
this
- See Also:
-
customerEncryptionKeyArn
@Stability(Stable) public CfnPrompt.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.- Parameters:
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with. This parameter is required.- Returns:
this
- See Also:
-
defaultVariant
The name of the default variant for the prompt.This value must match the
name
field in the relevant PromptVariant object.- Parameters:
defaultVariant
- The name of the default variant for the prompt. This parameter is required.- Returns:
this
- See Also:
-
description
The description of the prompt.- Parameters:
description
- The description of the prompt. This parameter is required.- Returns:
this
- See Also:
-
tags
Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Parameters:
tags
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. This parameter is required.- Returns:
this
- See Also:
-
variants
A list of objects, each containing details about a variant of the prompt.- Parameters:
variants
- A list of objects, each containing details about a variant of the prompt. This parameter is required.- Returns:
this
- See Also:
-
variants
A list of objects, each containing details about a variant of the prompt.- Parameters:
variants
- A list of objects, each containing details about a variant of the prompt. This parameter is required.- Returns:
this
- See Also:
-
build
-