Class CfnFlowProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowProps>
- Enclosing interface:
CfnFlowProps
@Stability(Stable)
public static final class CfnFlowProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowProps>
A builder for
CfnFlowProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customerEncryptionKeyArn
(String customerEncryptionKeyArn) Sets the value ofCfnFlowProps.getCustomerEncryptionKeyArn()
definition
(IResolvable definition) Sets the value ofCfnFlowProps.getDefinition()
definition
(CfnFlow.FlowDefinitionProperty definition) Sets the value ofCfnFlowProps.getDefinition()
definitionS3Location
(IResolvable definitionS3Location) Sets the value ofCfnFlowProps.getDefinitionS3Location()
definitionS3Location
(CfnFlow.S3LocationProperty definitionS3Location) Sets the value ofCfnFlowProps.getDefinitionS3Location()
definitionString
(String definitionString) Sets the value ofCfnFlowProps.getDefinitionString()
definitionSubstitutions
(Map<String, ? extends Object> definitionSubstitutions) Sets the value ofCfnFlowProps.getDefinitionSubstitutions()
definitionSubstitutions
(IResolvable definitionSubstitutions) Sets the value ofCfnFlowProps.getDefinitionSubstitutions()
description
(String description) Sets the value ofCfnFlowProps.getDescription()
executionRoleArn
(String executionRoleArn) Sets the value ofCfnFlowProps.getExecutionRoleArn()
Sets the value ofCfnFlowProps.getName()
Sets the value ofCfnFlowProps.getTags()
testAliasTags
(Map<String, String> testAliasTags) Sets the value ofCfnFlowProps.getTestAliasTags()
testAliasTags
(IResolvable testAliasTags) Sets the value ofCfnFlowProps.getTestAliasTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionRoleArn
Sets the value ofCfnFlowProps.getExecutionRoleArn()
- Parameters:
executionRoleArn
- The Amazon Resource Name (ARN) of the service role with permissions to create a flow. This parameter is required. For more information, see Create a service row for flows in the Amazon Bedrock User Guide.- Returns:
this
-
name
Sets the value ofCfnFlowProps.getName()
- Parameters:
name
- The name of the flow. This parameter is required.- Returns:
this
-
customerEncryptionKeyArn
@Stability(Stable) public CfnFlowProps.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnFlowProps.getCustomerEncryptionKeyArn()
- Parameters:
customerEncryptionKeyArn
- The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with.- Returns:
this
-
definition
Sets the value ofCfnFlowProps.getDefinition()
- Parameters:
definition
- The definition of the nodes and connections between the nodes in the flow.- Returns:
this
-
definition
@Stability(Stable) public CfnFlowProps.Builder definition(CfnFlow.FlowDefinitionProperty definition) Sets the value ofCfnFlowProps.getDefinition()
- Parameters:
definition
- The definition of the nodes and connections between the nodes in the flow.- Returns:
this
-
definitionS3Location
@Stability(Stable) public CfnFlowProps.Builder definitionS3Location(IResolvable definitionS3Location) Sets the value ofCfnFlowProps.getDefinitionS3Location()
- Parameters:
definitionS3Location
- The Amazon S3 location of the flow definition.- Returns:
this
-
definitionS3Location
@Stability(Stable) public CfnFlowProps.Builder definitionS3Location(CfnFlow.S3LocationProperty definitionS3Location) Sets the value ofCfnFlowProps.getDefinitionS3Location()
- Parameters:
definitionS3Location
- The Amazon S3 location of the flow definition.- Returns:
this
-
definitionString
Sets the value ofCfnFlowProps.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 CfnFlowProps.Builder definitionSubstitutions(IResolvable definitionSubstitutions) Sets the value ofCfnFlowProps.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 theDefinitionString
andDefinitionS3Location
fields.Substitutions must follow the syntax:
${key_name}
or${variable_1,variable_2,...}
.- Returns:
this
-
definitionSubstitutions
@Stability(Stable) public CfnFlowProps.Builder definitionSubstitutions(Map<String, ? extends Object> definitionSubstitutions) Sets the value ofCfnFlowProps.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 theDefinitionString
andDefinitionS3Location
fields.Substitutions must follow the syntax:
${key_name}
or${variable_1,variable_2,...}
.- Returns:
this
-
description
Sets the value ofCfnFlowProps.getDescription()
- Parameters:
description
- A description of the flow.- Returns:
this
-
tags
Sets the value ofCfnFlowProps.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 ofCfnFlowProps.getTestAliasTags()
- Parameters:
testAliasTags
- A map of tag keys and values.- Returns:
this
-
testAliasTags
Sets the value ofCfnFlowProps.getTestAliasTags()
- Parameters:
testAliasTags
- A map of tag keys and values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlowProps>
- Returns:
- a new instance of
CfnFlowProps
- Throws:
NullPointerException
- if any required attribute was not provided
-