# CfnApplicationInferenceProfileProps

Properties for defining a `CfnApplicationInferenceProfile`.

Extends: CfnApplicationInferenceProfileProps
Used as props by: CfnApplicationInferenceProfile

- Source: Generated code
- Type last changed: v2.166.0 · 7 Nov 2024

## Example

```ts
// Create or reference an existing L1 CfnApplicationInferenceProfile
const cfnProfile = new aws_bedrock_cfn.CfnApplicationInferenceProfile(this, 'CfnProfile', {
  inferenceProfileName: 'my-cfn-profile',
  modelSource: {
    copyFrom: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0.invokableArn,
  },
  description: 'Profile created via L1 construct',
});

// Import the L1 construct as an L2 ApplicationInferenceProfile
const importedFromCfn = bedrock.ApplicationInferenceProfile.fromCfnApplicationInferenceProfile(cfnProfile);

// Grant permissions to use the imported profile
const lambdaFunction = new lambda.Function(this, 'MyFunction', {
  runtime: lambda.Runtime.PYTHON_3_11,
  handler: 'index.handler',
  code: lambda.Code.fromInline('def handler(event, context): return "Hello"'),
});

importedFromCfn.grantProfileUsage(lambdaFunction);
```

## Properties

- `description`: string — The description of the inference profile.

- `inferenceProfileName`: string (required) — The name of the inference profile.

- `modelSource`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty.html) — Contains configurations for the inference profile to copy as the resource.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags associated with the inference profile.
