import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class ReplicationConfigurationInner { Rules ! : List < ReplicationRule > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class ReplicationDestination { Region ! : Value < string > ; RegistryId ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class ReplicationRule { Destinations ! : List < ReplicationDestination > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface ReplicationConfigurationProperties { ReplicationConfiguration : ReplicationConfiguration ; } export default class ReplicationConfiguration extends ResourceBase < ReplicationConfigurationProperties > { static ReplicationConfiguration = ReplicationConfigurationInner ; static ReplicationDestination = ReplicationDestination ; static ReplicationRule = ReplicationRule ; constructor ( properties ) { super ( 'AWS::ECR::ReplicationConfiguration' , properties ) ; } }