Structures

The following structures are available globally.

DefaultModelProvider

Configure

  • Represents helper methods to configure with Amplify CLI Gen2 configuration.

    See more

    Declaration

    Swift

    public struct AmplifyOutputs : @unchecked Sendable
  • A basic implementation of UserProfile

    See more

    Declaration

    Swift

    public struct BasicUserProfile : UserProfile
  • Contains specific data for a Location

    See more

    Declaration

    Swift

    public struct UserProfileLocation : Sendable
  • A context object passed in the HubPayload of all events dispatched to the Hub by an AmplifyOperation. This object can be used to filter on a particular operation.

    See more

    Declaration

    Swift

    public struct AmplifyOperationContext<Request> where Request : AmplifyOperationRequest
  • Convenience type that may be used to access device info across different platforms.

    Usage Example:

    print(DeviceInfo.current.architecture) /* prints "x86_64", "arm64", or "unknown" */
    
    • Tag: DeviceInfo
    See more

    Declaration

    Swift

    @MainActor
    public struct DeviceInfo
  • Declaration

    Swift

    public struct AnyEncodable : Encodable

Sequences

  • Declaration

    Swift

    public struct InternalTaskAsyncSequenceContext<InProcess> where InProcess : Sendable
  • Declaration

    Swift

    public struct InternalTaskAsyncThrowingSequenceContext<InProcess> where InProcess : Sendable
  • This is public so plugins can use it to indicate cancellations on arbitrary operations.

    Warning

    Although this has public access, it is intended for internal use and should not be used directly by host applications. The behavior of this may change without warning.
    See more

    Declaration

    Swift

    public struct OperationCancelledError : Error
  • Carries a value that the compiler cannot prove is Sendable across an isolation boundary.

    This exists for interoperating with APIs that predate strict concurrency checking and are safe in practice but not expressible as Sendable — most notably Combine’s Future.Promise, which is documented to be called at most once but is not declared Sendable.

    Warning

    This suppresses a real compiler guarantee. Only use it where the safety of the access is established by the surrounding API contract, and say why at the use site. Prefer making the underlying type Sendable whenever that is possible.

    Note

    public because the plugin modules that build on Amplify — AWSPluginsCore and the category plugins — hit the same Combine and URLSession interop cases. Keeping one implementation here is preferable to a copy per module.
    See more

    Declaration

    Swift

    public struct UncheckedSendable<Value> : @unchecked Sendable
  • Declaration

    Swift

    public struct ConsoleLoggingConfiguration : Codable