import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class NetworkFrameworkConfiguration { NetworkFabricConfiguration ? : NetworkFabricConfiguration ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class NetworkConfiguration { Description ? : Value < string > ; FrameworkVersion ! : Value < string > ; VotingPolicy ! : VotingPolicy ; Framework ! : Value < string > ; Name ! : Value < string > ; NetworkFrameworkConfiguration ? : NetworkFrameworkConfiguration ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class NetworkFabricConfiguration { Edition ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class MemberConfiguration { Description ? : Value < string > ; MemberFrameworkConfiguration ? : MemberFrameworkConfiguration ; Name ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class ApprovalThresholdPolicy { ThresholdComparator ? : Value < string > ; ThresholdPercentage ? : Value < number > ; ProposalDurationInHours ? : Value < number > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class MemberFrameworkConfiguration { MemberFabricConfiguration ? : MemberFabricConfiguration ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class VotingPolicy { ApprovalThresholdPolicy ? : ApprovalThresholdPolicy ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class MemberFabricConfiguration { AdminUsername ! : Value < string > ; AdminPassword ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface MemberProperties { MemberConfiguration : MemberConfiguration ; NetworkConfiguration ? : NetworkConfiguration ; NetworkId ? : Value < string > ; InvitationId ? : Value < string > ; } export default class Member extends ResourceBase < MemberProperties > { static NetworkFrameworkConfiguration = NetworkFrameworkConfiguration ; static NetworkConfiguration = NetworkConfiguration ; static NetworkFabricConfiguration = NetworkFabricConfiguration ; static MemberConfiguration = MemberConfiguration ; static ApprovalThresholdPolicy = ApprovalThresholdPolicy ; static MemberFrameworkConfiguration = MemberFrameworkConfiguration ; static VotingPolicy = VotingPolicy ; static MemberFabricConfiguration = MemberFabricConfiguration ; constructor ( properties ) { super ( 'AWS::ManagedBlockchain::Member' , properties ) ; } }