# DenoAppResource.WithDenoDeny

- Module: [Aspire.Hosting.JavaScript](/reference/api/go/aspire.hosting.javascript.md)
- Defined on: [DenoAppResource](/reference/api/go/aspire.hosting.javascript/denoappresource.md)
- Version: `17.0.0`
- Kind: `method`

Denies a Deno permission, optionally scoped to the supplied values.

## Definition

```go
type DenoAppResource interface {
    // ... omitted for brevity
    WithDenoDeny(
        kind DenoPermissionKind,
        values []string,
    ) DenoAppResource
}
```

## Signature

```go
WithDenoDeny(
    kind DenoPermissionKind,
    values []string,
) DenoAppResource
```

## Parameters

- `kind` ([`DenoPermissionKind`](/reference/api/go/aspire.hosting.javascript/denopermissionkind.md)) -- The permission to deny.
- `values` (`[]string`) -- Optional values that scope the permission. When empty, all access of the selected kind is denied.

## Returns

[`DenoAppResource`](/reference/api/go/aspire.hosting.javascript/denoappresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [DenoAppResource](/reference/api/go/aspire.hosting.javascript/denoappresource.md) -- `handle`
