

from . import AWSObject


class Domain(AWSObject):
    resource_type = "AWS::CodeArtifact::Domain"

    props = {
        'DomainName': (basestring, True),
        'PermissionsPolicyDocument': (dict, False),
    }


class Repository(AWSObject):
    resource_type = "AWS::CodeArtifact::Repository"

    props = {
        'Description': (basestring, False),
        'DomainName': (basestring, True),
        'DomainOwner': (basestring, False),
        'ExternalConnections': ([basestring], False),
        'PermissionsPolicyDocument': (dict, False),
        'RepositoryName': (basestring, True),
        'Upstreams': ([basestring], False),
    }



from . import AWSObject
from troposphere import Tags


class Domain(AWSObject):
    resource_type = "AWS::CodeArtifact::Domain"

    props = {
        'DomainName': (basestring, True),
        'EncryptionKey': (basestring, False),
        'PermissionsPolicyDocument': (dict, False),
        'Tags': (Tags, False),
    }


class Repository(AWSObject):
    resource_type = "AWS::CodeArtifact::Repository"

    props = {
        'Description': (basestring, False),
        'DomainName': (basestring, True),
        'DomainOwner': (basestring, False),
        'ExternalConnections': ([basestring], False),
        'PermissionsPolicyDocument': (dict, False),
        'RepositoryName': (basestring, True),
        'Tags': (Tags, False),
        'Upstreams': ([basestring], False),
    }

Update CodeArtifact per 2020-11-05 changes
Update CodeArtifact per 2020-11-05 changes

  
  
  from . import AWSObject
+ from troposphere import Tags
  
  
  class Domain(AWSObject):
      resource_type = "AWS::CodeArtifact::Domain"
  
      props = {
          'DomainName': (basestring, True),
+         'EncryptionKey': (basestring, False),
          'PermissionsPolicyDocument': (dict, False),
+         'Tags': (Tags, False),
      }
  
  
  class Repository(AWSObject):
      resource_type = "AWS::CodeArtifact::Repository"
  
      props = {
          'Description': (basestring, False),
          'DomainName': (basestring, True),
          'DomainOwner': (basestring, False),
          'ExternalConnections': ([basestring], False),
          'PermissionsPolicyDocument': (dict, False),
          'RepositoryName': (basestring, True),
+         'Tags': (Tags, False),
          'Upstreams': ([basestring], False),
      }
  
Update CodeArtifact per 2020-11-05 changes
## Code Before:


from . import AWSObject


class Domain(AWSObject):
    resource_type = "AWS::CodeArtifact::Domain"

    props = {
        'DomainName': (basestring, True),
        'PermissionsPolicyDocument': (dict, False),
    }


class Repository(AWSObject):
    resource_type = "AWS::CodeArtifact::Repository"

    props = {
        'Description': (basestring, False),
        'DomainName': (basestring, True),
        'DomainOwner': (basestring, False),
        'ExternalConnections': ([basestring], False),
        'PermissionsPolicyDocument': (dict, False),
        'RepositoryName': (basestring, True),
        'Upstreams': ([basestring], False),
    }

## Instruction:
Update CodeArtifact per 2020-11-05 changes
## Code After:


from . import AWSObject
from troposphere import Tags


class Domain(AWSObject):
    resource_type = "AWS::CodeArtifact::Domain"

    props = {
        'DomainName': (basestring, True),
        'EncryptionKey': (basestring, False),
        'PermissionsPolicyDocument': (dict, False),
        'Tags': (Tags, False),
    }


class Repository(AWSObject):
    resource_type = "AWS::CodeArtifact::Repository"

    props = {
        'Description': (basestring, False),
        'DomainName': (basestring, True),
        'DomainOwner': (basestring, False),
        'ExternalConnections': ([basestring], False),
        'PermissionsPolicyDocument': (dict, False),
        'RepositoryName': (basestring, True),
        'Tags': (Tags, False),
        'Upstreams': ([basestring], False),
    }
