

from troposphere import Tags

from . import AWSObject


class Discoverer(AWSObject):
    resource_type = "AWS::EventSchemas::Discoverer"

    props = {
        "Description": (str, False),
        "SourceArn": (str, True),
        "Tags": (Tags, False),
    }


class Registry(AWSObject):
    resource_type = "AWS::EventSchemas::Registry"

    props = {
        "Description": (str, False),
        "RegistryName": (str, False),
        "Tags": (Tags, False),
    }


class RegistryPolicy(AWSObject):
    resource_type = "AWS::EventSchemas::RegistryPolicy"

    props = {
        "Policy": (dict, True),
        "RegistryName": (str, True),
        "RevisionId": (str, False),
    }


class Schema(AWSObject):
    resource_type = "AWS::EventSchemas::Schema"

    props = {
        "Content": (str, True),
        "Description": (str, False),
        "RegistryName": (str, True),
        "SchemaName": (str, False),
        "Tags": (Tags, False),
        "Type": (str, True),
    }



from troposphere import Tags

from . import AWSObject
from .validators import boolean


class Discoverer(AWSObject):
    resource_type = "AWS::EventSchemas::Discoverer"

    props = {
        "CrossAccount": (boolean, False),
        "Description": (str, False),
        "SourceArn": (str, True),
        "Tags": (Tags, False),
    }


class Registry(AWSObject):
    resource_type = "AWS::EventSchemas::Registry"

    props = {
        "Description": (str, False),
        "RegistryName": (str, False),
        "Tags": (Tags, False),
    }


class RegistryPolicy(AWSObject):
    resource_type = "AWS::EventSchemas::RegistryPolicy"

    props = {
        "Policy": (dict, True),
        "RegistryName": (str, True),
        "RevisionId": (str, False),
    }


class Schema(AWSObject):
    resource_type = "AWS::EventSchemas::Schema"

    props = {
        "Content": (str, True),
        "Description": (str, False),
        "RegistryName": (str, True),
        "SchemaName": (str, False),
        "Tags": (Tags, False),
        "Type": (str, True),
    }

Update EventSchemas per 2021-09-02 changes
Update EventSchemas per 2021-09-02 changes

  
  
  from troposphere import Tags
  
  from . import AWSObject
+ from .validators import boolean
  
  
  class Discoverer(AWSObject):
      resource_type = "AWS::EventSchemas::Discoverer"
  
      props = {
+         "CrossAccount": (boolean, False),
          "Description": (str, False),
          "SourceArn": (str, True),
          "Tags": (Tags, False),
      }
  
  
  class Registry(AWSObject):
      resource_type = "AWS::EventSchemas::Registry"
  
      props = {
          "Description": (str, False),
          "RegistryName": (str, False),
          "Tags": (Tags, False),
      }
  
  
  class RegistryPolicy(AWSObject):
      resource_type = "AWS::EventSchemas::RegistryPolicy"
  
      props = {
          "Policy": (dict, True),
          "RegistryName": (str, True),
          "RevisionId": (str, False),
      }
  
  
  class Schema(AWSObject):
      resource_type = "AWS::EventSchemas::Schema"
  
      props = {
          "Content": (str, True),
          "Description": (str, False),
          "RegistryName": (str, True),
          "SchemaName": (str, False),
          "Tags": (Tags, False),
          "Type": (str, True),
      }
  
Update EventSchemas per 2021-09-02 changes
## Code Before:


from troposphere import Tags

from . import AWSObject


class Discoverer(AWSObject):
    resource_type = "AWS::EventSchemas::Discoverer"

    props = {
        "Description": (str, False),
        "SourceArn": (str, True),
        "Tags": (Tags, False),
    }


class Registry(AWSObject):
    resource_type = "AWS::EventSchemas::Registry"

    props = {
        "Description": (str, False),
        "RegistryName": (str, False),
        "Tags": (Tags, False),
    }


class RegistryPolicy(AWSObject):
    resource_type = "AWS::EventSchemas::RegistryPolicy"

    props = {
        "Policy": (dict, True),
        "RegistryName": (str, True),
        "RevisionId": (str, False),
    }


class Schema(AWSObject):
    resource_type = "AWS::EventSchemas::Schema"

    props = {
        "Content": (str, True),
        "Description": (str, False),
        "RegistryName": (str, True),
        "SchemaName": (str, False),
        "Tags": (Tags, False),
        "Type": (str, True),
    }

## Instruction:
Update EventSchemas per 2021-09-02 changes
## Code After:


from troposphere import Tags

from . import AWSObject
from .validators import boolean


class Discoverer(AWSObject):
    resource_type = "AWS::EventSchemas::Discoverer"

    props = {
        "CrossAccount": (boolean, False),
        "Description": (str, False),
        "SourceArn": (str, True),
        "Tags": (Tags, False),
    }


class Registry(AWSObject):
    resource_type = "AWS::EventSchemas::Registry"

    props = {
        "Description": (str, False),
        "RegistryName": (str, False),
        "Tags": (Tags, False),
    }


class RegistryPolicy(AWSObject):
    resource_type = "AWS::EventSchemas::RegistryPolicy"

    props = {
        "Policy": (dict, True),
        "RegistryName": (str, True),
        "RevisionId": (str, False),
    }


class Schema(AWSObject):
    resource_type = "AWS::EventSchemas::Schema"

    props = {
        "Content": (str, True),
        "Description": (str, False),
        "RegistryName": (str, True),
        "SchemaName": (str, False),
        "Tags": (Tags, False),
        "Type": (str, True),
    }
