Class CfnPromptPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnPromptPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptPropsMixin>
- Enclosing class:
CfnPromptPropsMixin
@Stability(Stable)
public static final class CfnPromptPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptPropsMixin>
A fluent builder for
CfnPromptPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnPromptPropsMixin.Buildercreate()static CfnPromptPropsMixin.Buildercreate(CfnPropertyMixinOptions options) 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 CfnPromptPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnPromptPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnPromptPropsMixin.Builder.
-
customerEncryptionKeyArn
@Stability(Stable) public CfnPromptPropsMixin.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
namefield 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:
-
name
The name of the prompt.- Parameters:
name- The name 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
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPromptPropsMixin>- Returns:
- a newly built instance of
CfnPromptPropsMixin.
-