# getFile

> Function getFile in pulumi-local.

<!-- Generated from the pulumi-local SDK. -->

Function getFile in pulumi-local.

Invoke token: `local:index/getFile:getFile`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as local from "pulumi-local"

const result = await local.getFile({
  filename: "<filename>",
})
```

`getFileOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property   | Type     | Required | Description |
| ---------- | -------- | -------- | ----------- |
| `filename` | `string` | yes      |             |

## Result

| Property              | Type     | Always present | Description |
| --------------------- | -------- | -------------- | ----------- |
| `content`             | `string` | yes            |             |
| `contentBase64`       | `string` | yes            |             |
| `contentBase64sha256` | `string` | yes            |             |
| `contentBase64sha512` | `string` | yes            |             |
| `contentMd5`          | `string` | yes            |             |
| `contentSha1`         | `string` | yes            |             |
| `contentSha256`       | `string` | yes            |             |
| `contentSha512`       | `string` | yes            |             |
| `filename`            | `string` | yes            |             |
| `id`                  | `string` | yes            |             |
