def __init__(self, arn, codeuri):
if not isinstance(arn, six.string_types):<EOL><INDENT>raise UnsupportedIntrinsic("<STR_LIT>".format(arn))<EOL><DEDENT>self._arn = arn<EOL>self._codeuri = codeuri<EOL>self.is_defined_within_template = bool(codeuri)<EOL>self._name = LayerVersion._compute_layer_name(self.is_defined_within_template, arn)<EOL>self._version = LayerVersion._compute_layer_version(self.is_defined_within_template, arn)<EOL>
Parameters
----------
name str
    Name of the layer, this can be the ARN or Logical Id in the template
codeuri str
    CodeURI of the layer. This should contain the path to the layer code