# PipelineStep.RequiredBy

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

Specifies that this step is required by another step. This creates the inverse relationship where the other step will depend on this step.

## Definition

```go
type PipelineStep interface {
    // ... omitted for brevity
    RequiredBy(stepName string) error
}
```

## Signature

```go
RequiredBy(stepName string) error
```

## Parameters

- `stepName` (`string`) -- The name of the step that requires this step.

## Returns

`error`

Returns `error`.

## Defined on

- [PipelineStep](/reference/api/go/aspire.hosting/pipelinestep.md) -- `handle`
