CfnFlowLogsMixin
- class aws_cdk.mixins_preview.aws_bedrock.mixins.CfnFlowLogsMixin(log_type, log_delivery)
Bases:
MixinCreates a prompt flow that you can use to send an input through various steps to yield an output.
You define a flow by configuring nodes, each of which corresponds to a step of the flow, and creating connections between the nodes to create paths to different outputs. You can define the flow in one of the following ways:
Define a FlowDefinition in the
Definitionproperty.Provide the definition in the
DefinitionStringproperty as a JSON-formatted string matching the FlowDefinition property.Provide an Amazon S3 location in the
DefinitionS3Locationproperty that matches the FlowDefinition .
If you use the
DefinitionStringorDefinitionS3Locationproperty, you can use theDefinitionSubstitutionsproperty to define key-value pairs to replace at runtime.For more information, see How it works and Create a prompt flow in Amazon Bedrock in the Amazon Bedrock User Guide.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flow.html
- CloudformationResource:
AWS::Bedrock::Flow
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import aws_logs as logs from aws_cdk.mixins_preview.aws_bedrock import mixins as bedrock_mixins # logs_delivery: logs.ILogsDelivery cfn_flow_logs_mixin = bedrock_mixins.CfnFlowLogsMixin("logType", logs_delivery)
Create a mixin to enable vended logs for
AWS::Bedrock::Flow.- Parameters:
log_type (
str) – Type of logs that are getting vended.log_delivery (
ILogsDelivery) – Object in charge of setting up the delivery destination and delivery connection.
Methods
- apply_to(resource)
Apply vended logs configuration to the construct.
- Parameters:
resource (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct (has vendedLogs property).
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- APPLICATION_LOGS = <aws_cdk.mixins_preview.aws_bedrock.mixins.CfnFlowApplicationLogs object>
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental