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

Options for a URL-based file location (`FileLocation.url`).

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/file-location.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-medialive-alpha/lib/file-location.ts#L11)

## Example

```ts
import { StringParameter } from 'aws-cdk-lib/aws-ssm';

declare const bucket: s3.IBucket;
declare const passwordParam: StringParameter;

// From an S3 bucket — the channel role is granted read access automatically
const fromS3 = medialive.FileLocation.fromBucket(bucket, 'assets/slate.png');

// From a URL with optional credentials (SSM parameter read access auto-granted)
const fromUrl = medialive.FileLocation.url('https://origin.example.com/font.ttf', {
  username: 'ingest-user',
  password: passwordParam,
});
```

## Properties

- `password`: [IStringParameter](/cdk/api/v2/docs/aws-cdk-lib.aws_ssm.IStringParameter.html) — The SSM parameter that holds the password for accessing the upstream system.

  **Default:** no credentials

  The channel
  role is granted read access to the parameter automatically.

- `username`: string — The username for accessing the upstream system.

  **Default:** no credentials
