Class CfnFlowMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnFlowMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowMixinProps>
- Enclosing interface:
CfnFlowMixinProps
@Stability(Stable)
public static final class CfnFlowMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowMixinProps>
A builder for
CfnFlowMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnFlowMixinProps.getCustomerEncryptionKeyArn()definition(CfnFlowPropsMixin.FlowDefinitionProperty definition) Sets the value ofCfnFlowMixinProps.getDefinition()definition(IResolvable definition) Sets the value ofCfnFlowMixinProps.getDefinition()definitionS3Location(CfnFlowPropsMixin.S3LocationProperty definitionS3Location) Sets the value ofCfnFlowMixinProps.getDefinitionS3Location()definitionS3Location(IResolvable definitionS3Location) Sets the value ofCfnFlowMixinProps.getDefinitionS3Location()definitionString(String definitionString) Sets the value ofCfnFlowMixinProps.getDefinitionString()definitionSubstitutions(Map<String, ? extends Object> definitionSubstitutions) Sets the value ofCfnFlowMixinProps.getDefinitionSubstitutions()definitionSubstitutions(IResolvable definitionSubstitutions) Sets the value ofCfnFlowMixinProps.getDefinitionSubstitutions()description(String description) Sets the value ofCfnFlowMixinProps.getDescription()executionRoleArn(String executionRoleArn) Sets the value ofCfnFlowMixinProps.getExecutionRoleArn()Sets the value ofCfnFlowMixinProps.getName()Sets the value ofCfnFlowMixinProps.getTags()testAliasTags(Map<String, String> testAliasTags) Sets the value ofCfnFlowMixinProps.getTestAliasTags()testAliasTags(IResolvable testAliasTags) Sets the value ofCfnFlowMixinProps.getTestAliasTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customerEncryptionKeyArn
@Stability(Stable) public CfnFlowMixinProps.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnFlowMixinProps.getCustomerEncryptionKeyArn()- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with.- Returns:
this
-
definition
Sets the value ofCfnFlowMixinProps.getDefinition()- Parameters:
definition- The definition of the nodes and connections between the nodes in the flow.- Returns:
this
-
definition
@Stability(Stable) public CfnFlowMixinProps.Builder definition(CfnFlowPropsMixin.FlowDefinitionProperty definition) Sets the value ofCfnFlowMixinProps.getDefinition()- Parameters:
definition- The definition of the nodes and connections between the nodes in the flow.- Returns:
this
-
definitionS3Location
@Stability(Stable) public CfnFlowMixinProps.Builder definitionS3Location(IResolvable definitionS3Location) Sets the value ofCfnFlowMixinProps.getDefinitionS3Location()- Parameters:
definitionS3Location- The Amazon S3 location of the flow definition.- Returns:
this
-
definitionS3Location
@Stability(Stable) public CfnFlowMixinProps.Builder definitionS3Location(CfnFlowPropsMixin.S3LocationProperty definitionS3Location) Sets the value ofCfnFlowMixinProps.getDefinitionS3Location()- Parameters:
definitionS3Location- The Amazon S3 location of the flow definition.- Returns:
this
-
definitionString
Sets the value ofCfnFlowMixinProps.getDefinitionString()- Parameters:
definitionString- The definition of the flow as a JSON-formatted string. The string must match the format in FlowDefinition .- Returns:
this
-
definitionSubstitutions
@Stability(Stable) public CfnFlowMixinProps.Builder definitionSubstitutions(IResolvable definitionSubstitutions) Sets the value ofCfnFlowMixinProps.getDefinitionSubstitutions()- Parameters:
definitionSubstitutions- A map that specifies the mappings for placeholder variables in the prompt flow definition. This enables the customer to inject values obtained at runtime. Variables can be template parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. Only supported with theDefinitionStringandDefinitionS3Locationfields.Substitutions must follow the syntax:
${key_name}or${variable_1,variable_2,...}.- Returns:
this
-
definitionSubstitutions
@Stability(Stable) public CfnFlowMixinProps.Builder definitionSubstitutions(Map<String, ? extends Object> definitionSubstitutions) Sets the value ofCfnFlowMixinProps.getDefinitionSubstitutions()- Parameters:
definitionSubstitutions- A map that specifies the mappings for placeholder variables in the prompt flow definition. This enables the customer to inject values obtained at runtime. Variables can be template parameter names, resource logical IDs, resource attributes, or a variable in a key-value map. Only supported with theDefinitionStringandDefinitionS3Locationfields.Substitutions must follow the syntax:
${key_name}or${variable_1,variable_2,...}.- Returns:
this
-
description
Sets the value ofCfnFlowMixinProps.getDescription()- Parameters:
description- A description of the flow.- Returns:
this
-
executionRoleArn
Sets the value ofCfnFlowMixinProps.getExecutionRoleArn()- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service row for flows in the Amazon Bedrock User Guide.- Returns:
this
-
name
Sets the value ofCfnFlowMixinProps.getName()- Parameters:
name- The name of the flow.- Returns:
this
-
tags
Sets the value ofCfnFlowMixinProps.getTags()- Parameters:
tags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
testAliasTags
Sets the value ofCfnFlowMixinProps.getTestAliasTags()- Parameters:
testAliasTags- A map of tag keys and values.- Returns:
this
-
testAliasTags
Sets the value ofCfnFlowMixinProps.getTestAliasTags()- Parameters:
testAliasTags- A map of tag keys and values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowMixinProps>- Returns:
- a new instance of
CfnFlowMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-