CreateAssetModelRequest

public struct CreateAssetModelRequest : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • A description for the asset model.

    Declaration

    Swift

    public let assetModelDescription: String?
  • The hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Asset hierarchies in the AWS IoT SiteWise User Guide. You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide.

    Declaration

    Swift

    public let assetModelHierarchies: [AssetModelHierarchyDefinition]?
  • A unique, friendly name for the asset model.

    Declaration

    Swift

    public let assetModelName: String
  • The property definitions of the asset model. For more information, see Asset properties in the AWS IoT SiteWise User Guide. You can specify up to 200 properties per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide.

    Declaration

    Swift

    public let assetModelProperties: [AssetModelPropertyDefinition]?
  • A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don’t reuse this client token if a new idempotent request is required.

    Declaration

    Swift

    public let clientToken: String?
  • A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.

    Declaration

    Swift

    public let tags: [String : String]?
  • Undocumented

    Declaration

    Swift

    public init(assetModelDescription: String? = nil, assetModelHierarchies: [AssetModelHierarchyDefinition]? = nil, assetModelName: String, assetModelProperties: [AssetModelPropertyDefinition]? = nil, clientToken: String? = CreateAssetModelRequest.idempotencyToken(), tags: [String : String]? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws