---
title: "init(attachment:)"
framework: virtualization
role: symbol
role_heading: Initializer
path: "virtualization/vznvmexpresscontrollerdeviceconfiguration/init(attachment:)"
---

# init(attachment:)

Creates a new NVM Express controller configuration with the storage device attachment you provide.

## Declaration

```swift
init(attachment: VZStorageDeviceAttachment)
```

## Parameters

- `attachment`: The storage device attachment. This defines how the virtualized device operates on the host side.

## See Also

### Related Documentation

- [VZDiskImageStorageDeviceAttachment](virtualization/vzdiskimagestoragedeviceattachment.md)
