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
-
Analytics category configuration
See moreDeclaration
Swift
public struct AnalyticsCategoryConfiguration : CategoryConfiguration
-
User specific data
See moreDeclaration
Swift
public struct AnalyticsUserProfile
-
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
-
Declaration
Swift
public struct AuthUserAttribute
-
Request for resending confirmation code that was generated for update attribute
See moreDeclaration
Swift
public struct AuthAttributeResendConfirmationCodeRequest : 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 for delete user
See moreDeclaration
Swift
public struct AuthDeleteUserRequest : 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
-
Result for Auth.resetPassword api
See moreDeclaration
Swift
public struct AuthResetPasswordResult
-
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
-
Declaration
Swift
public struct ArrayLiteralListProvider<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 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 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
-
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
-
General concrete implementation of a
See moreModelIdentifierProtocol
Declaration
Swift
public struct ModelIdentifier<M, F> : ModelIdentifierProtocol where M : Model, F : AnyModelIdentifierFormat
-
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
-
Age range of an entity(faces/celebrities) detected as a result of identify() API
See moreDeclaration
Swift
public struct AgeRange
-
Attribute of an entity identified as a result of identify() API
See moreDeclaration
Swift
public struct Attribute
-
Gender of an entity(face/celebrity) identified with associated confidence value
See moreDeclaration
Swift
public struct GenderAttribute
-
Describes the data extracted as key-value pair in an image/document resulting from identify() API e.g The text “Name: John Doe” present in an image/document
See moreDeclaration
Swift
public struct BoundedKeyValue
-
Describes a celebrity identified in an image with information about its location(bounding box) and facial features(landmarks)
See moreDeclaration
Swift
public struct Celebrity
-
Celebrity metadata identified as a result of identify() API
See moreDeclaration
Swift
public struct CelebrityMetadata
-
Emotion identified in an entity(faces/celebrities) as a result of identify() API with associated
See moreEmotionType
and confidence valueDeclaration
Swift
public struct Emotion
-
Result returned as part of identify() API call with
See moreIdentifyAction.detectEntities
type parameterDeclaration
Swift
public struct Entity
-
Declaration
Swift
public struct EntityMetadata
-
Describes the result of interpret() API when the analyzed text contains a person/place
See moreDeclaration
Swift
public struct EntityDetectionResult
-
Describes the result for an entity matched in an entity collection created on AWS Rekogniton and detected from identify() API call
See moreDeclaration
Swift
public struct EntityMatch
-
Declaration
Swift
public struct EntityMatchMetadata
-
Describes a line of text identified in an image as a result of identify() API call
See moreDeclaration
Swift
public struct IdentifiedLine : IdentifiedText
-
Describes a word identified in an image as a result of identify() API call
See moreDeclaration
Swift
public struct IdentifiedWord : IdentifiedText
-
Describes a key phrase identified in a text as a result of interpret() API call
See moreDeclaration
Swift
public struct KeyPhrase
-
Describes the facial feature in a celebrity/entity identified as a result of identify() API
See moreDeclaration
Swift
public struct Landmark
-
Result describing language identified in a text from interpret() API call
See moreDeclaration
Swift
public struct LanguageDetectionResult
-
Part of speech identified in a text from interpret() API
See moreDeclaration
Swift
public struct PartOfSpeech
-
Declaration
Swift
public struct Polygon
-
Describes the pose of a person identified in an image from identify() API
See moreDeclaration
Swift
public struct Pose
-
Declaration
Swift
public struct Selection
-
Sentiment Analysis result for Predictions category
See moreDeclaration
Swift
public struct Sentiment
-
Describes syntactical information resulting from text interpretation as a result of interpret() API
See moreDeclaration
Swift
public struct SyntaxToken
-
Declaration
Swift
public struct Table
-
Declaration
Swift
public struct PredictionsCategoryConfiguration : CategoryConfiguration
-
Declaration
Swift
public struct PredictionsIdentifyRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct PredictionsInterpretRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct PredictionsSpeechToTextRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct PredictionsTextToSpeechRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct PredictionsTranslateTextRequest : AmplifyOperationRequest
-
Results are mapped to IdentifyCelebritiesResult when .detectCelebrity in passed in the type: field in identify() API
See moreDeclaration
Swift
public struct IdentifyCelebritiesResult : IdentifyResult
-
Results are mapped to IdentifyDocumentTextResult when .form, .table or .all is passed for .detectText in the type: field in identify() API
See moreDeclaration
Swift
public struct IdentifyDocumentTextResult : IdentifyResult
-
Results are mapped to IdentifyEntitiesResult when .detectEntities is passed to type: field in identify() API and general entities like facial features, landmarks etc. are needed to be detected
See moreDeclaration
Swift
public struct IdentifyEntitiesResult : IdentifyResult
-
Results are mapped to IdentifyEntityMatchesResult when .detectEntities is passed to type: field in identify() API and matches from your Rekognition Collection need to be identified
See moreDeclaration
Swift
public struct IdentifyEntityMatchesResult : IdentifyResult
-
Results are mapped to IdentifyLabelsResult when .labels in passed to .detectLabels in the type: field in identify() API
See moreDeclaration
Swift
public struct IdentifyLabelsResult : IdentifyResult
-
Describes a real world object (e.g., chair, desk) identified in an image
See moreDeclaration
Swift
public struct Label
-
Declaration
Swift
public struct Parent
-
Declaration
Swift
public struct LabelMetadata
-
Results are mapped to IdentifyTextResult when .plain is passed for .detectText in the type: field in identify() API
See moreDeclaration
Swift
public struct IdentifyTextResult : IdentifyResult
-
Results are mapped to InterpretResult for interpret() API
See moreDeclaration
Swift
public struct InterpretResult
-
Results are mapped to SpeechToTextResult when convert() API is called to convert a text to audio
See moreDeclaration
Swift
public struct SpeechToTextResult : ConvertResult
-
Results are mapped to TextToSpeechResult when convert() API is called to convert a text to audio
See moreDeclaration
Swift
public struct TextToSpeechResult : ConvertResult
-
Results are mapped to TranslateTextResult when convert() API is called to translate a text into another language
See moreDeclaration
Swift
public struct TranslateTextResult : ConvertResult
-
Declaration
Swift
public struct StorageDownloadDataRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct StorageGetURLRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct StorageListRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct StorageRemoveRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct StorageUploadDataRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct StorageUploadFileRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct StorageDownloadFileRequest : AmplifyOperationRequest
-
Declaration
Swift
public struct StorageListResult
-
Declaration
Swift
public struct StorageCategoryConfiguration : CategoryConfiguration
-
Configures the Amplify system with sub-configurations for each supported category
See moreDeclaration
Swift
public struct AmplifyConfiguration : Codable
-
Commonly used cross-category error messages.
See moreDeclaration
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
-
Declaration
Swift
public struct AnyEncodable : Encodable
-
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