CfnApplicationInferenceProfilePropsMixin
- class aws_cdk.mixins_preview.aws_bedrock.mixins.CfnApplicationInferenceProfilePropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies an inference profile as a resource in a top-level template.
Use the
ModelSourcefield to specify the inference profile to copy into the resource. For more information about using inference profiles in Amazon Bedrock , see Improve resilience with cross-region inference .See the Properties section below for descriptions of both the required and optional properties.
- See:
- CloudformationResource:
AWS::Bedrock::ApplicationInferenceProfile
- 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 mixins from aws_cdk.mixins_preview.aws_bedrock import mixins as bedrock_mixins cfn_application_inference_profile_props_mixin = bedrock_mixins.CfnApplicationInferenceProfilePropsMixin(bedrock_mixins.CfnApplicationInferenceProfileMixinProps( description="description", inference_profile_name="inferenceProfileName", model_source=bedrock_mixins.CfnApplicationInferenceProfilePropsMixin.InferenceProfileModelSourceProperty( copy_from="copyFrom" ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Bedrock::ApplicationInferenceProfile.- Parameters:
props (
Union[CfnApplicationInferenceProfileMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['description', 'inferenceProfileName', 'modelSource', 'tags']
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
InferenceProfileModelProperty
- class CfnApplicationInferenceProfilePropsMixin.InferenceProfileModelProperty(*, model_arn=None)
Bases:
objectContains information about a model.
- Parameters:
model_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the model.- 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.mixins_preview.aws_bedrock import mixins as bedrock_mixins inference_profile_model_property = bedrock_mixins.CfnApplicationInferenceProfilePropsMixin.InferenceProfileModelProperty( model_arn="modelArn" )
Attributes
- model_arn
The Amazon Resource Name (ARN) of the model.
InferenceProfileModelSourceProperty
- class CfnApplicationInferenceProfilePropsMixin.InferenceProfileModelSourceProperty(*, copy_from=None)
Bases:
objectContains information about the model or system-defined inference profile that is the source for an inference profile..
- Parameters:
copy_from (
Optional[str]) – The ARN of the model or system-defined inference profile that is the source for the inference profile.- 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.mixins_preview.aws_bedrock import mixins as bedrock_mixins inference_profile_model_source_property = bedrock_mixins.CfnApplicationInferenceProfilePropsMixin.InferenceProfileModelSourceProperty( copy_from="copyFrom" )
Attributes
- copy_from
The ARN of the model or system-defined inference profile that is the source for the inference profile.