
from . import AWSObject, AWSProperty
from .validators import integer


class Repository(AWSProperty):
    props = {
        "PathComponent": (str, True),
        "RepositoryUrl": (str, True),
    }


class EnvironmentEC2(AWSObject):
    resource_type = "AWS::Cloud9::EnvironmentEC2"

    props = {
        "AutomaticStopTimeMinutes": (integer, False),
        "Description": (str, False),
        "InstanceType": (str, True),
        "Name": (str, False),
        "OwnerArn": (str, False),
        "Repositories": ([Repository], False),
        "SubnetId": (str, False),
    }



from troposphere import Tags

from . import AWSObject, AWSProperty
from .validators import integer


class Repository(AWSProperty):
    props = {
        "PathComponent": (str, True),
        "RepositoryUrl": (str, True),
    }


class EnvironmentEC2(AWSObject):
    resource_type = "AWS::Cloud9::EnvironmentEC2"

    props = {
        "AutomaticStopTimeMinutes": (integer, False),
        "ConnectionType": (str, False),
        "Description": (str, False),
        "ImageId": (str, False),
        "InstanceType": (str, True),
        "Name": (str, False),
        "OwnerArn": (str, False),
        "Repositories": ([Repository], False),
        "SubnetId": (str, False),
        "Tags": (Tags, False),
    }

Update Cloud9 per 2021-04-01 changes
Update Cloud9 per 2021-04-01 changes

+ 
+ 
+ from troposphere import Tags
  
  from . import AWSObject, AWSProperty
  from .validators import integer
  
  
  class Repository(AWSProperty):
      props = {
          "PathComponent": (str, True),
          "RepositoryUrl": (str, True),
      }
  
  
  class EnvironmentEC2(AWSObject):
      resource_type = "AWS::Cloud9::EnvironmentEC2"
  
      props = {
          "AutomaticStopTimeMinutes": (integer, False),
+         "ConnectionType": (str, False),
          "Description": (str, False),
+         "ImageId": (str, False),
          "InstanceType": (str, True),
          "Name": (str, False),
          "OwnerArn": (str, False),
          "Repositories": ([Repository], False),
          "SubnetId": (str, False),
+         "Tags": (Tags, False),
      }
  
Update Cloud9 per 2021-04-01 changes
## Code Before:

from . import AWSObject, AWSProperty
from .validators import integer


class Repository(AWSProperty):
    props = {
        "PathComponent": (str, True),
        "RepositoryUrl": (str, True),
    }


class EnvironmentEC2(AWSObject):
    resource_type = "AWS::Cloud9::EnvironmentEC2"

    props = {
        "AutomaticStopTimeMinutes": (integer, False),
        "Description": (str, False),
        "InstanceType": (str, True),
        "Name": (str, False),
        "OwnerArn": (str, False),
        "Repositories": ([Repository], False),
        "SubnetId": (str, False),
    }

## Instruction:
Update Cloud9 per 2021-04-01 changes
## Code After:


from troposphere import Tags

from . import AWSObject, AWSProperty
from .validators import integer


class Repository(AWSProperty):
    props = {
        "PathComponent": (str, True),
        "RepositoryUrl": (str, True),
    }


class EnvironmentEC2(AWSObject):
    resource_type = "AWS::Cloud9::EnvironmentEC2"

    props = {
        "AutomaticStopTimeMinutes": (integer, False),
        "ConnectionType": (str, False),
        "Description": (str, False),
        "ImageId": (str, False),
        "InstanceType": (str, True),
        "Name": (str, False),
        "OwnerArn": (str, False),
        "Repositories": ([Repository], False),
        "SubnetId": (str, False),
        "Tags": (Tags, False),
    }
