45 lines
1.1 KiB
Swift
45 lines
1.1 KiB
Swift
//
|
|
// Copyright Amazon.com Inc. or its affiliates.
|
|
// All Rights Reserved.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
import Amplify
|
|
import Foundation
|
|
|
|
public struct AWSAuthDevice: AuthDevice {
|
|
|
|
/// Device unique identifier
|
|
public let id: String
|
|
|
|
/// Device name
|
|
public let name: String
|
|
|
|
/// Device attributes
|
|
public let attributes: [String: String]?
|
|
|
|
/// The date this device was created.
|
|
public let createdDate: Date?
|
|
|
|
/// The date this device was last authenticated.
|
|
public let lastAuthenticatedDate: Date?
|
|
|
|
/// The date this device was last updated.
|
|
public let lastModifiedDate: Date?
|
|
|
|
public init(id: String,
|
|
name: String,
|
|
attributes: [String: String]?,
|
|
createdDate: Date?,
|
|
lastAuthenticatedDate: Date?,
|
|
lastModifiedDate: Date?) {
|
|
self.id = id
|
|
self.name = name
|
|
self.attributes = attributes
|
|
self.createdDate = createdDate
|
|
self.lastAuthenticatedDate = lastAuthenticatedDate
|
|
self.lastModifiedDate = lastModifiedDate
|
|
}
|
|
}
|