# AzureApiManagementOperationResource.WithInboundPolicyFragment

- Module: [Aspire.Hosting.Azure.ApiManagement](/reference/api/go/aspire.hosting.azure.apimanagement.md)
- Defined on: [AzureApiManagementOperationResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Includes a policy fragment in the operation-level inbound policy.

## Definition

```go
type AzureApiManagementOperationResource interface {
    // ... omitted for brevity
    WithInboundPolicyFragment(fragment AzureApiManagementPolicyFragmentResource) AzureApiManagementOperationResource
}
```

## Signature

```go
WithInboundPolicyFragment(fragment AzureApiManagementPolicyFragmentResource) AzureApiManagementOperationResource
```

## Parameters

- `fragment` ([`AzureApiManagementPolicyFragmentResource`](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementpolicyfragmentresource.md)) -- The policy fragment to include.

## Returns

[`AzureApiManagementOperationResource`](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md) -- The resource builder.

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

## Defined on

- [AzureApiManagementOperationResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md) -- `handle`
