# CfnAppProps

Properties for defining a `CfnApp`.

Extends: CfnAppProps
Used as props by: CfnApp

- Source: Generated code
- Type last changed: v2.195.0 · 7 May 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnAppProps: sagemaker.CfnAppProps = {
  appName: 'appName',
  appType: 'appType',
  domainId: 'domainId',
  userProfileName: 'userProfileName',

  // the properties below are optional
  recoveryMode: false,
  resourceSpec: {
    instanceType: 'instanceType',
    lifecycleConfigArn: 'lifecycleConfigArn',
    sageMakerImageArn: 'sageMakerImageArn',
    sageMakerImageVersionArn: 'sageMakerImageVersionArn',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `appName`: string (required) — The name of the app.

- `appType`: string (required) — The type of app.

- `domainId`: string (required) — The domain ID.

- `recoveryMode`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the application is launched in recovery mode.

- `resourceSpec`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApp.ResourceSpecProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnApp.ResourceSpecProperty.html) — Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .

- `userProfileName`: string (required) — The user profile name.
