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
  • 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
  • Commonly used cross-category error messages.

    • Tag: AmplifyErrorMessages
    See more

    Declaration

    Swift

    public struct AmplifyErrorMessages
  • 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
  • Declaration

    Swift

    public struct ConsoleLoggingConfiguration : Codable