code: func Parse(arn string) (*ARN, error) {
  	p := strings.SplitN(arn, delimiter, 6)
  
  	// Ensure that we have all the components that make up an ARN.
  	if len(p) < 6 {
  		return nil, ErrInvalidARN
  	}
  
  	a := &ARN{
  		ARN:      p[0],
  		AWS:      p[1],
  		Service:  p[2],
  		Region:   p[3],
  		Account:  p[4],
  		Resource: p[5],
  	}
  
  	// ARN's always start with "arn:aws" (hopefully).
  	if a.ARN != "arn" || a.AWS != "aws" {
  		return nil, ErrInvalidARN
  	}
  
  	return a, nil
  }
docs: // Parse parses an Amazon Resource Name from a String into an ARN.