import { ResourceBase , ResourceTag } from '../resource' ; import { Value , List } from '../dataTypes' ; export class KeyMap { Name ? : Value < string > ; ObjectTypeKeyList ? : List < ObjectTypeKey > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class FieldMap { Name ? : Value < string > ; ObjectTypeField ? : ObjectTypeField ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class ObjectTypeField { Source ? : Value < string > ; Target ? : Value < string > ; ContentType ? : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class ObjectTypeKey { FieldNames ? : List < Value < string > > ; StandardIdentifiers ? : List < Value < string > > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface ObjectTypeProperties { DomainName : Value < string > ; ObjectTypeName ? : Value < string > ; AllowProfileCreation ? : Value < boolean > ; Description ? : Value < string > ; EncryptionKey ? : Value < string > ; ExpirationDays ? : Value < number > ; Fields ? : List < FieldMap > ; Keys ? : List < KeyMap > ; Tags ? : List < ResourceTag > ; TemplateId ? : Value < string > ; } export default class ObjectType extends ResourceBase < ObjectTypeProperties > { static KeyMap = KeyMap ; static FieldMap = FieldMap ; static ObjectTypeField = ObjectTypeField ; static ObjectTypeKey = ObjectTypeKey ; constructor ( properties ) { super ( 'AWS::CustomerProfiles::ObjectType' , properties ) ; } }