Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct Unsafe

sealed struct Unsafe
Require native code. When this attribute is attached to an interface or method, the thing to which this attribute is attached can be called only from “unsafe” contexts, which usually means C++ or unsafe Rust. We use this attribute to define “magical” interfaces that don’t obey the usual rules of the type system. The IDL compiler lets you use this interface only in APMF packages.
Last modified on October 29, 2026