# LambdaProjectResource.WithSQSEventSource

- Module: [Aspire.Hosting.AWS](/reference/api/go/aspire.hosting.aws.md)
- Defined on: [LambdaProjectResource](/reference/api/go/aspire.hosting.aws/lambdaprojectresource.md)
- Version: `13.7.4`
- Kind: `method`

## Definition

```go
type LambdaProjectResource interface {
    // ... omitted for brevity
    WithSQSEventSource(
        queueUrl string,
        options ...*SQSEventSourceOptions,
    ) LambdaProjectResource
}
```

## Signature

```go
WithSQSEventSource(
    queueUrl string,
    options ...*SQSEventSourceOptions,
) LambdaProjectResource
```

## Parameters

- `queueUrl` (`string`)
- `options` (`...*SQSEventSourceOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed as the existing [`*SQSEventSourceOptions`](/reference/api/go/aspire.hosting.aws/sqseventsourceoptions.md) struct.

## Returns

[`LambdaProjectResource`](/reference/api/go/aspire.hosting.aws/lambdaprojectresource.md)

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

## Defined on

- [LambdaProjectResource](/reference/api/go/aspire.hosting.aws/lambdaprojectresource.md) -- `handle`
