CfnDatasetPropsMixin
- class aws_cdk.cfn_property_mixins.aws_bedrockagentcore.CfnDatasetPropsMixin(props, *, strategy=None)
Bases:
MixinDefinition of AWS::BedrockAgentCore::Dataset Resource Type.
- See:
- CloudformationResource:
AWS::BedrockAgentCore::Dataset
- 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.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore import aws_cdk as cdk # examples: Any # merge_strategy: cdk.IMergeStrategy cfn_dataset_props_mixin = bedrockagentcore.CfnDatasetPropsMixin(bedrockagentcore.CfnDatasetMixinProps( dataset_name="datasetName", description="description", kms_key_arn="kmsKeyArn", schema_type="schemaType", source=bedrockagentcore.CfnDatasetPropsMixin.DataSourceTypeProperty( inline_examples=bedrockagentcore.CfnDatasetPropsMixin.InlineExamplesSourceProperty( examples=[examples] ), s3_source=bedrockagentcore.CfnDatasetPropsMixin.S3SourceProperty( s3_uri="s3Uri" ) ), tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::BedrockAgentCore::Dataset.- Parameters:
props (
Union[CfnDatasetMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['datasetName', 'description', 'kmsKeyArn', 'schemaType', 'source', 'tags']
Static Methods
- classmethod is_mixin(x)
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.
DataSourceTypeProperty
- class CfnDatasetPropsMixin.DataSourceTypeProperty(*, inline_examples=None, s3_source=None)
Bases:
objectSource of initial examples.
Provide either inline examples or an S3 URI pointing to a JSONL file.
- Parameters:
inline_examples (
Union[IResolvable,InlineExamplesSourceProperty,Dict[str,Any],None]) – Inline examples provided directly in the request body.s3_source (
Union[IResolvable,S3SourceProperty,Dict[str,Any],None]) – S3 location of a JSONL file containing dataset examples.
- See:
- 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.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore # examples: Any data_source_type_property = bedrockagentcore.CfnDatasetPropsMixin.DataSourceTypeProperty( inline_examples=bedrockagentcore.CfnDatasetPropsMixin.InlineExamplesSourceProperty( examples=[examples] ), s3_source=bedrockagentcore.CfnDatasetPropsMixin.S3SourceProperty( s3_uri="s3Uri" ) )
Attributes
- inline_examples
Inline examples provided directly in the request body.
- s3_source
S3 location of a JSONL file containing dataset examples.
InlineExamplesSourceProperty
- class CfnDatasetPropsMixin.InlineExamplesSourceProperty(*, examples=None)
Bases:
objectInline examples provided directly in the request body.
- Parameters:
examples (
Union[Sequence[Any],IResolvable,None]) – Examples to add. Each example is a free-form JSON document validated against the declared schemaType.- See:
- 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.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore # examples: Any inline_examples_source_property = bedrockagentcore.CfnDatasetPropsMixin.InlineExamplesSourceProperty( examples=[examples] )
Attributes
- examples
Examples to add.
Each example is a free-form JSON document validated against the declared schemaType.
S3SourceProperty
- class CfnDatasetPropsMixin.S3SourceProperty(*, s3_uri=None)
Bases:
objectS3 location of a JSONL file containing dataset examples.
- Parameters:
s3_uri (
Optional[str]) – S3 URI of the JSONL file (e.g. s3://my-bucket/path/to/examples.jsonl).- See:
- 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.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore s3_source_property = bedrockagentcore.CfnDatasetPropsMixin.S3SourceProperty( s3_uri="s3Uri" )
Attributes
- s3_uri
//my-bucket/path/to/examples.jsonl).
- See:
- Type:
S3 URI of the JSONL file (e.g. s3