Enumerations
The following enumerations are available globally.
-
Errors specific to the API Category
See moreDeclaration
-
The type of a GraphQL operation
See moreDeclaration
Swift
public enum GraphQLOperationType : String
-
The type of API operation
See moreDeclaration
Swift
public enum RESTOperationType : String
-
An error response from a GraphQL API
See moreDeclaration
Swift
public enum GraphQLResponseError<ResponseType> : AmplifyError where ResponseType : Decodable
-
Subscription Connection State
See moreDeclaration
Swift
public enum SubscriptionConnectionState
extension SubscriptionConnectionState: Sendable
-
Event for subscription
See moreDeclaration
Swift
public enum GraphQLSubscriptionEvent<T> where T : Decodable
extension GraphQLSubscriptionEvent: Sendable
-
Analytics Error
See moreDeclaration
-
Amplify error raised in the Auth category.
See moreDeclaration
-
Declaration
Swift
public enum AuthFactorType : String
-
Supported auth providers that help in federated sign in
You can use these auth providers to directly sign in to one of the user’s social provider and then federate them to the auth plugin’s underlying service. For example in the api
See moreAmplify.Auth.signInWithWebUI(for:presentationAnchor:)
you can pass in a provider in thefor:
parameter which will directly show a authentication view for the passed in auth provider.Declaration
Swift
public enum AuthProvider
extension AuthProvider: Codable
extension AuthProvider: Equatable
-
Auth SignIn flow steps
See moreDeclaration
Swift
public enum AuthSignInStep
extension AuthSignInStep: Equatable
-
SignUp step to be followed.
See moreDeclaration
Swift
public enum AuthSignUpStep
-
Step for Auth.updateUserAttribute api call
See moreDeclaration
Swift
public enum AuthUpdateAttributeStep
-
Represents the keys used for different user attributes.
See moreDeclaration
Swift
public enum AuthUserAttributeKey
extension AuthUserAttributeKey: Hashable
extension AuthUserAttributeKey: Equatable
-
Destination to where an item (e.g., confirmation code) was delivered
See moreDeclaration
Swift
public enum DeliveryDestination
extension DeliveryDestination: Equatable
-
Declaration
Swift
public enum MFAType : String
-
The next step in Auth.resetPassword api
See moreDeclaration
Swift
public enum AuthResetPasswordStep
extension AuthResetPasswordStep: Equatable
-
Declaration
-
Defines the type of a GraphQL mutation.
See moreDeclaration
Swift
public enum GraphQLMutationType : String, Codable
extension GraphQLMutationType: CaseIterable
-
Defines the type of query,
See morelist
which returns multiple results and can optionally use filtersget
, which aims to fetch one result identified by itsid
.sync
, similar tolist
and returns results with optionally specifically a point in timeDeclaration
Swift
public enum GraphQLQueryType : String
-
Defines the type of a GraphQL subscription.
See moreDeclaration
Swift
public enum GraphQLSubscriptionType : String
extension GraphQLSubscriptionType: CaseIterable
-
State of the ListProvider
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 enum ModelListProviderState<Element> where Element : Model
-
Declaration
Swift
public enum _LazyReferenceValueState
-
State of the ModelProvider
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 enum ModelProviderState<Element> where Element : Model
-
Temporal
is namespace to all temporal types and basic date operations. It can not be directly instantiated.Available
Temporal
Specs
- Temporal.Date
- Temporal.DateTime
- Temporal.Time
Declaration
Swift
public enum Temporal
-
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 enum AuthStrategy
-
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 enum ModelOperation
-
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 enum AuthRuleProvider
-
Defines the association type between two models. The type of association is important when defining how to store and query them. Each association have its own rules depending on the storage mechanism.
The semantics of a association can be defined as:
Many-to-One/One-to-Many
The most common association type. It defines an array/collection on one side and a single
Model
reference on the other. The side with theModel
(marked asbelongsTo
) holds a reference to the other side’sid
(aka “foreign key”).Example:
struct Post: Model { let id: Model.Identifier // hasMany(associatedWith: Comment.keys.post) let comments: [Comment] } struct Comment: Model { let id: Model.Identifier // belongsTo let post: Post }
One-to-One
This type of association is not too common since in these scenarios data can usually be normalized and stored under the same
Model
. However, there are use-cases where one-to-one can be useful, specially when one side of the association is optional.Example:
struct Person: Model { // hasOne(associatedWith: License.keys.person) let license: License? } struct License: Model { // belongsTo let person: Person }
Many-to-Many
These associations mean that an instance of one
Model
can relate to many other instances of anotherModel
and vice-versa. Many-to-Many is achieved by combininghasMany
andbelongsTo
with an intermediateModel
that is responsible for holding a reference to the keys of both related models.struct Book: Model { // hasMany(associatedWith: BookAuthor.keys.book) let auhors: [BookAuthor] } struct Author: Model { // hasMany(associatedWith: BookAuthor.keys.author) let books: [BookAuthor] } struct BookAuthor: Model { // belongsTo let book: Book // belongsTo let author: Author }
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 enum ModelAssociation
-
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 enum ModelFieldNullability
-
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 enum ModelFieldDefinition
-
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 enum ModelAttribute : Equatable
-
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 enum ModelFieldAttribute
-
Defines the identifier (primary key) format
See moreDeclaration
Swift
public enum ModelIdentifierFormat
-
Declaration
Swift
public enum QueryOperator : Encodable
extension QueryOperator: Equatable
-
Declaration
Swift
public enum QueryPredicateGroupType : String, Encodable
-
The case
See more.all
is a predicate used as an argument to select all of a single modeltype. We chose.all
instead ofnil
because we didn’t want to use the implicit nature ofnil
to specify an action applies to an entire data set.Declaration
Swift
public enum QueryPredicateConstant : QueryPredicate, Encodable
-
A simple enum that holding a sorting direction for a field that can be applied to queries.
See moreDeclaration
Swift
public enum QuerySortBy
-
Namespace for GeoCategory Types
See moreDeclaration
Swift
public enum Geo
-
HubChannel represents the channels on which Amplify category messages will be dispatched. Apps can define their own channels for intra-app communication. Internally, Amplify uses the Hub for dispatching notifications about events associated with different categories.
See moreDeclaration
Swift
public enum HubChannel
extension HubChannel: Equatable
extension HubChannel: Hashable
-
Errors associated with configuring and inspecting Amplify Categories
See moreDeclaration
-
Declaration
-
Declaration
Swift
public enum Notifications
-
Push Notifications Error
See moreDeclaration
-
Error occured while using Prediction category
See moreDeclaration
-
DefaultNetworkPolicy of the operation
See moreDeclaration
Swift
public enum DefaultNetworkPolicy
-
Declaration
Swift
public enum Predictions
-
Declaration
-
The access level for objects in Storage operations. See https://aws-amplify.github.io/docs/ios/storage#storage-access
- Tag: StorageAccessLevel
Declaration
Swift
@available(*, deprecated, message: "Use `path` in Storage API instead of `Options`") public enum StorageAccessLevel : String
-
Declaration
Swift
public enum CategoryType : String
extension CategoryType: CaseIterable
-
Errors associated with configuring and inspecting Amplify Categories
See: Amplify.configure
- Tag: ConfigurationError
Declaration
-
Declaration
-
Errors associated with configuring and inspecting Amplify Plugins
See moreDeclaration
-
Declaration
Swift
public enum AccessLevel : String
-
An umbrella type supplying static members to handle common and conventional exit scenarios.
See moreDeclaration
Swift
public enum Fatal
-
A utility type that allows us to represent an arbitrary JSON structure
See moreDeclaration
Swift
@dynamicMemberLookup public enum JSONValue
extension JSONValue: Codable
extension JSONValue: Equatable
extension JSONValue: ExpressibleByArrayLiteral
extension JSONValue: ExpressibleByBooleanLiteral
extension JSONValue: ExpressibleByDictionaryLiteral
extension JSONValue: ExpressibleByFloatLiteral
extension JSONValue: ExpressibleByIntegerLiteral
extension JSONValue: ExpressibleByNilLiteral
extension JSONValue: ExpressibleByStringLiteral