

from . import AWSObject
from troposphere import Tags
from .validators import boolean


class Ledger(AWSObject):
    resource_type = "AWS::QLDB::Ledger"

    props = {
        'DeletionProtection': (boolean, False),
        'Name': (basestring, False),
        'PermissionsMode': (basestring, True),
        'Tags': (Tags, False),
    }



from . import AWSObject
from . import AWSProperty
from troposphere import Tags
from .validators import boolean


class Ledger(AWSObject):
    resource_type = "AWS::QLDB::Ledger"

    props = {
        'DeletionProtection': (boolean, False),
        'Name': (basestring, False),
        'PermissionsMode': (basestring, True),
        'Tags': (Tags, False),
    }


class KinesisConfiguration(AWSProperty):
    props = {
        'AggregationEnabled': (boolean, False),
        'StreamArn': (basestring, False),
    }


class Stream(AWSObject):
    resource_type = "AWS::QLDB::Stream"

    props = {
        'ExclusiveEndTime': (basestring, False),
        'InclusiveStartTime': (basestring, True),
        'KinesisConfiguration': (KinesisConfiguration, True),
        'LedgerName': (basestring, True),
        'RoleArn': (basestring, True),
        'StreamName': (basestring, True),
        'Tags': (Tags, False),
    }

Add AWS::QLDB::Stream per 2020-07-08 update
Add AWS::QLDB::Stream per 2020-07-08 update

  
  
  from . import AWSObject
+ from . import AWSProperty
  from troposphere import Tags
  from .validators import boolean
  
  
  class Ledger(AWSObject):
      resource_type = "AWS::QLDB::Ledger"
  
      props = {
          'DeletionProtection': (boolean, False),
          'Name': (basestring, False),
          'PermissionsMode': (basestring, True),
          'Tags': (Tags, False),
      }
  
+ 
+ class KinesisConfiguration(AWSProperty):
+     props = {
+         'AggregationEnabled': (boolean, False),
+         'StreamArn': (basestring, False),
+     }
+ 
+ 
+ class Stream(AWSObject):
+     resource_type = "AWS::QLDB::Stream"
+ 
+     props = {
+         'ExclusiveEndTime': (basestring, False),
+         'InclusiveStartTime': (basestring, True),
+         'KinesisConfiguration': (KinesisConfiguration, True),
+         'LedgerName': (basestring, True),
+         'RoleArn': (basestring, True),
+         'StreamName': (basestring, True),
+         'Tags': (Tags, False),
+     }
+ 
Add AWS::QLDB::Stream per 2020-07-08 update
## Code Before:


from . import AWSObject
from troposphere import Tags
from .validators import boolean


class Ledger(AWSObject):
    resource_type = "AWS::QLDB::Ledger"

    props = {
        'DeletionProtection': (boolean, False),
        'Name': (basestring, False),
        'PermissionsMode': (basestring, True),
        'Tags': (Tags, False),
    }

## Instruction:
Add AWS::QLDB::Stream per 2020-07-08 update
## Code After:


from . import AWSObject
from . import AWSProperty
from troposphere import Tags
from .validators import boolean


class Ledger(AWSObject):
    resource_type = "AWS::QLDB::Ledger"

    props = {
        'DeletionProtection': (boolean, False),
        'Name': (basestring, False),
        'PermissionsMode': (basestring, True),
        'Tags': (Tags, False),
    }


class KinesisConfiguration(AWSProperty):
    props = {
        'AggregationEnabled': (boolean, False),
        'StreamArn': (basestring, False),
    }


class Stream(AWSObject):
    resource_type = "AWS::QLDB::Stream"

    props = {
        'ExclusiveEndTime': (basestring, False),
        'InclusiveStartTime': (basestring, True),
        'KinesisConfiguration': (KinesisConfiguration, True),
        'LedgerName': (basestring, True),
        'RoleArn': (basestring, True),
        'StreamName': (basestring, True),
        'Tags': (Tags, False),
    }
