Structures
The following structures are available globally.
-
The payload of a Hub message
See moreDeclaration
Swift
public struct HubPayload
-
API Category Configuration
See moreDeclaration
Swift
public struct APICategoryConfiguration : CategoryConfiguration
-
Reachability Update
See moreDeclaration
Swift
public struct ReachabilityUpdate
-
GraphQL Operation Request
See moreDeclaration
Swift
public struct GraphQLOperationRequest<R> : AmplifyOperationRequest where R : Decodable
-
GraphQL Request
See moreDeclaration
Swift
public struct GraphQLRequest<R> where R : Decodable
-
REST Operation Request
See moreDeclaration
Swift
public struct RESTOperationRequest : AmplifyOperationRequest
-
The error format according to https://graphql.github.io/graphql-spec/June2018/#sec-Errors
See moreDeclaration
Swift
public struct GraphQLError : Decodable
extension GraphQLError: Error
-
Analytics category configuration
See moreDeclaration
Swift
public struct AnalyticsCategoryConfiguration : CategoryConfiguration
-
User specific data
See moreDeclaration
-
Basic analytics event
See moreDeclaration
Swift
public struct BasicAnalyticsEvent : AnalyticsEvent
-
Declaration
Swift
public struct AuthCategoryConfiguration : CategoryConfiguration
-
Details on where the code has been delivered
See moreDeclaration
Swift
public struct AuthCodeDeliveryDetails
extension AuthCodeDeliveryDetails: Equatable
-
Declaration
Swift
public struct AuthUserAttribute
-
Declaration
Swift
public struct TOTPSetupDetails
extension TOTPSetupDetails: Equatable
-
Request for resending confirmation code that was generated for update attribute
See moreDeclaration
Swift
public struct AuthAttributeResendConfirmationCodeRequest : AmplifyOperationRequest
-
Request for sending verification code that was generated for update attribute
See moreDeclaration
Swift
public struct AuthSendUserAttributeVerificationCodeRequest : AmplifyOperationRequest
-
Request for change password operation
See moreDeclaration
Swift
public struct AuthChangePasswordRequest : AmplifyOperationRequest
-
Request for reset password confirmation
See moreDeclaration
Swift
public struct AuthConfirmResetPasswordRequest : AmplifyOperationRequest
-
Request for confirming sign in flow
See moreDeclaration
Swift
public struct AuthConfirmSignInRequest : AmplifyOperationRequest
-
Request to confirm the signup flow
See moreDeclaration
Swift
public struct AuthConfirmSignUpRequest : AmplifyOperationRequest
-
Request to confirm a user attribute update
See moreDeclaration
Swift
public struct AuthConfirmUserAttributeRequest : AmplifyOperationRequest
-
Request to fetch the devices associated with the signed in user.
See moreDeclaration
Swift
public struct AuthFetchDevicesRequest : AmplifyOperationRequest
-
Request to fetch the current auth session
See moreDeclaration
Swift
public struct AuthFetchSessionRequest : AmplifyOperationRequest
-
Request to fetch the user attributes of the current user
See moreDeclaration
Swift
public struct AuthFetchUserAttributesRequest : AmplifyOperationRequest
-
Request to forget a device of the user
See moreDeclaration
Swift
public struct AuthForgetDeviceRequest : AmplifyOperationRequest
-
Request to remember the current device
See moreDeclaration
Swift
public struct AuthRememberDeviceRequest : AmplifyOperationRequest
-
Request to resend sign up code
See moreDeclaration
Swift
public struct AuthResendSignUpCodeRequest : AmplifyOperationRequest
-
Request to reset password of a user
See moreDeclaration
Swift
public struct AuthResetPasswordRequest : AmplifyOperationRequest
-
Request to sign in a user
See moreDeclaration
Swift
public struct AuthSignInRequest : AmplifyOperationRequest
-
Request for sign out user
See moreDeclaration
Swift
public struct AuthSignOutRequest : AmplifyOperationRequest
-
Request for sign up flow
See moreDeclaration
Swift
public struct AuthSignUpRequest : AmplifyOperationRequest
-
Request to update a single attribute of the signed in user
See moreDeclaration
Swift
public struct AuthUpdateUserAttributeRequest : AmplifyOperationRequest
-
Request to update multiple user attributes of the signed in user
See moreDeclaration
Swift
public struct AuthUpdateUserAttributesRequest : AmplifyOperationRequest
-
Request to initiate sign in using a web UI.
Note that this call would also be used for sign up, forgot password, confirm password, and similar flows.
See moreDeclaration
Swift
public struct AuthWebUISignInRequest : AmplifyOperationRequest
-
Request to verify TOTP setup
See moreDeclaration
Swift
public struct VerifyTOTPSetupRequest : AmplifyOperationRequest
-
Result for Auth.resetPassword api
See moreDeclaration
Swift
public struct AuthResetPasswordResult
extension AuthResetPasswordResult: Equatable
-
Declaration
Swift
public struct AuthSignInResult
-
Declaration
Swift
public struct AuthSignUpResult
-
Declaration
Swift
public struct AuthUpdateAttributeResult
-
Declaration
Swift
public struct DataStoreCategoryConfiguration : CategoryConfiguration
-
Information about a conflict that occurred attempting to sync a local model with a remote model
See moreDeclaration
Swift
public struct DataStoreSyncConflict
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning. Though it is not used by host application making any change to thesepublic
types should be backward compatible, otherwise it will be a breaking change.Declaration
Swift
public struct ModelDateFormatting
-
Registry of
ModelListDecoder
‘s used to retrieve decoders that can createModelListProvider
s to perform List functionality.Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning. Though it is not used by host application making any change to thesepublic
types should be backward compatible, otherwise it will be a breaking change.Declaration
Swift
public struct ModelListDecoderRegistry
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning. Though it is not used by host application making any change to thesepublic
types should be backward compatible, otherwise it will be a breaking change.Declaration
Swift
public struct AnyModelListProvider<Element> : ModelListProvider where Element : Model
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning. Though it is not used by host application making any change to thesepublic
types should be backward compatible, otherwise it will be a breaking change.Declaration
Swift
public struct AnyModelProvider<Element> : ModelProvider where Element : Model
-
Registry of
ModelProviderDecoder
‘s used to retrieve decoders that can createModelProvider
s to perform LazyReference functionality.Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning. Though it is not used by host application making any change to thesepublic
types should be backward compatible, otherwise it will be a breaking change.Declaration
Swift
public struct ModelProviderRegistry
-
Warning
Although this haspublic
access, it is intended for internal use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public struct ModelRegistry
-
Warning
Although this haspublic
access, it is intended for internal use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public struct AuthRule
extension AuthRule: Hashable
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public struct ModelField
-
Declaration
Swift
public struct ModelPrimaryKey
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public struct ModelSchema
-
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public struct ModelSchemaDefinition
-
Declaration
Swift
public struct ArrayLiteralListProvider<Element> : ModelListProvider where Element : Model
-
Declaration
Swift
public struct DefaultModelProvider<Element> : ModelProvider where Element : Model
-
A Codable struct to hold key value pairs representing the identifier’s field name and value. Useful for maintaining order for key-value pairs when used as an Array type.
See moreDeclaration
Swift
public struct LazyReferenceIdentifier : Codable
-
General concrete implementation of a
See moreModelIdentifierProtocol
Declaration
Swift
public struct ModelIdentifier<M, F> : ModelIdentifierProtocol where M : Model, F : AnyModelIdentifierFormat
-
Runtime information about a property. Its
See morename
andparent
property reference, as well as whether the property represents a collection of the type or not.Declaration
Swift
public struct PropertyPathMetadata
-
Represents a scalar (i.e. data type) of a model property.
See moreDeclaration
Swift
public struct FieldPath<ValueType> : PropertyPath
-
DateUnit
for use in adding and subtracting units fromTemporal.Date
,Temporal.DateTime
, andTemporal.Time
.DateUnit
usesCalendar.Component
under the hood to ensure date oddities are accounted for.
See morelet tomorrow = Temporal.Date.now() + .days(1) let twoWeeksFromNow = Temporal.Date.now() + .weeks(2) let nextYear = Temporal.Date.now() + .years(1) let yesterday = Temporal.Date.now() - .days(1) let sixMonthsAgo = Temporal.Date.now() - .months(6)
Declaration
Swift
public struct DateUnit
-
Declaration
Swift
public struct TemporalFormat
-
TimeUnit
for use in adding and subtracting units fromTemporal.DateTime
, andTemporal.Time
.TimeUnit
usesCalendar.Component
under the hood to ensure date oddities are accounted for.let twoHoursFromNow = Temporal.Time.now() + .hours(1) let fiveMinutesAgo = Temporal.Time.now() - .minutes(5) let yesterday = Temporal.Date.now() - .days(1) let sixMonthsAgo = Temporal.Date.now() - .months(6)
Attention
Don’t useTimeUnit
to calculate dates, useDateUnit
instead. Also make sure to use the most applicableUnit
, e.g. don’t use.minutes(60)
if you really want.hours(1)
. There are not always 24 hours in a day, 60 minutes in an hour, etc.Declaration
Swift
public struct TimeUnit
-
Declaration
Swift
public struct QueryField : QueryFieldOperation
-
A simple struct that holds pagination information that can be applied queries.
See moreDeclaration
Swift
public struct QueryPaginationInput
-
Declaration
Swift
public struct QuerySortInput
-
Geo category configuration
See moreDeclaration
Swift
public struct GeoCategoryConfiguration : CategoryConfiguration
-
Declaration
Swift
public struct HubCategoryConfiguration : CategoryConfiguration
-
Convenience filters for common filtering use cases
See moreDeclaration
Swift
public struct HubFilters
-
Convenience typealias defining a closure that can be used to unsubscribe a Hub listener. Although UnsubscribeToken conforms to Hashable, only the
See moreid
property is considered for equality and hash value;channel
is used only for routing an unsubscribe request to the correct HubChannel.Declaration
Swift
public struct UnsubscribeToken
extension UnsubscribeToken: Hashable
-
Declaration
Swift
public struct LoggingCategoryConfiguration : CategoryConfiguration
-
The configuration for the Notifications category
See moreDeclaration
Swift
public struct NotificationsCategoryConfiguration : CategoryConfiguration
-
Declaration
Swift
public struct PredictionsCategoryConfiguration : CategoryConfiguration
-
Represents a request to download an individual object as
Data
, initiated by an implementation of the StorageCategoryPlugin protocol.- Tag: StorageDownloadDataRequest
Declaration
Swift
public struct StorageDownloadDataRequest : AmplifyOperationRequest
-
Represents a request to download an individual object as a file, initiated by an implementation of the StorageCategoryPlugin protocol.
- Tag: StorageDownloadFileRequest
Declaration
Swift
public struct StorageDownloadFileRequest : AmplifyOperationRequest
-
Represents a request initiated by an implementation of the StorageCategoryPlugin protocol used to generate a pre-signed download URL for a given object key.
- Tag: StorageListRequest
Declaration
Swift
public struct StorageGetURLRequest : AmplifyOperationRequest
-
Represents a object listing request initiated by an implementation of the StorageCategoryPlugin protocol.
- Tag: StorageListRequest
Declaration
Swift
public struct StorageListRequest : AmplifyOperationRequest
-
Represents a object removal request initiated by an implementation of the StorageCategoryPlugin protocol.
- Tag: StorageRemoveRequest
Declaration
Swift
public struct StorageRemoveRequest : AmplifyOperationRequest
-
Represents an data upload request initiated by an implementation of the StorageCategoryPlugin protocol.
- Tag: StorageUploadDataRequest
Declaration
Swift
public struct StorageUploadDataRequest : AmplifyOperationRequest
-
Represents an file upload request initiated by an implementation of the StorageCategoryPlugin protocol.
- Tag: StorageUploadFileRequest
Declaration
Swift
public struct StorageUploadFileRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct StorageListResult
-
Declaration
Swift
public struct BucketInfo : Hashable
-
Conforms to
StorageBucket
. Represents a Storage Bucket defined by a name in the AmplifyOutputs file.- Tag: OutputsStorageBucket
Declaration
Swift
public struct OutputsStorageBucket : StorageBucket
-
Conforms to
StorageBucket
. Represents a Storage Bucket defined by a name and a region defined inBucketInfo
.- Tag: ResolvedStorageBucket
Declaration
Swift
public struct ResolvedStorageBucket : StorageBucket
-
- Tag: StorageCategoryConfiguration
Declaration
Swift
public struct StorageCategoryConfiguration : CategoryConfiguration
-
Conforms to StoragePath protocol. Provides a storage path based on a string storage path.
- Tag: StringStoragePath
Declaration
Swift
public struct StringStoragePath : StoragePath
-
Conforms to StoragePath protocol. Provides a storage path constructed from an unique identity identifer.
- Tag: IdentityStoragePath
Declaration
Swift
public struct IdentityIDStoragePath : StoragePath
-
Represents Amplify’s configuration for all categories intended to be used in an application.
See: Amplify.configure
- Tag: AmplifyConfiguration
Declaration
Swift
public struct AmplifyConfiguration : Codable
-
Represents helper methods to configure with Amplify CLI Gen2 configuration.
See moreDeclaration
Swift
public struct AmplifyOutputs
-
A basic implementation of
See moreUserProfile
Declaration
Swift
public struct BasicUserProfile : UserProfile
-
Contains specific data for a Location
See moreDeclaration
Swift
public struct UserProfileLocation
-
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 moreDeclaration
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
Declaration
Swift
@MainActor public struct DeviceInfo
-
Declaration
Swift
public struct AnyEncodable : Encodable
-
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 haspublic
access, it is intended for internal use and should not be used directly by host applications. The behavior of this may change without warning.Declaration
Swift
public struct OperationCancelledError : Error
-
Declaration
Swift
public struct ConsoleLoggingConfiguration : Codable