CfnApplicationInferenceProfilePropsMixin

class aws_cdk.mixins_preview.aws_bedrock.mixins.CfnApplicationInferenceProfilePropsMixin(props, *, strategy=None)

Bases: Mixin

Specifies an inference profile as a resource in a top-level template.

Use the ModelSource field 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

InferenceProfileModelProperty

class CfnApplicationInferenceProfilePropsMixin.InferenceProfileModelProperty(*, model_arn=None)

Bases: object

Contains information about a model.

Parameters:

model_arn (Optional[str]) – The Amazon Resource Name (ARN) of the model.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-applicationinferenceprofile-inferenceprofilemodel.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-applicationinferenceprofile-inferenceprofilemodel.html#cfn-bedrock-applicationinferenceprofile-inferenceprofilemodel-modelarn

InferenceProfileModelSourceProperty

class CfnApplicationInferenceProfilePropsMixin.InferenceProfileModelSourceProperty(*, copy_from=None)

Bases: object

Contains 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-applicationinferenceprofile-inferenceprofilemodelsource.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-applicationinferenceprofile-inferenceprofilemodelsource.html#cfn-bedrock-applicationinferenceprofile-inferenceprofilemodelsource-copyfrom