> **Experimental**
>
> `@aws-cdk/aws-apprunner-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# AssetProps

Properties of the image repository for `Source.fromAsset()`.

Extends: AssetProps
Used as props by: AssetSource

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/service.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-apprunner-alpha/lib/service.ts#L379)

## Example

```ts
import * as assets from 'aws-cdk-lib/aws-ecr-assets';

const imageAsset = new assets.DockerImageAsset(this, 'ImageAssets', {
  directory: path.join(__dirname, 'docker.assets'),
});
new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromAsset({
    imageConfiguration: { port: 8000 },
    asset: imageAsset,
  }),
  autoDeploymentsEnabled: true,
});
```

## Properties

- `asset`: [DockerImageAsset](/cdk/api/v2/docs/aws-cdk-lib.aws_ecr_assets.DockerImageAsset.html) (required) — Represents the docker image asset.

- `imageConfiguration`: [ImageConfiguration](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.ImageConfiguration.html) — The image configuration for the image built from the asset.

  **Default:** no image configuration will be passed. The default `port` will be 8080.
