code: func cloudformationContainerDefinition(cd *ecs.ContainerDefinition) *ContainerDefinitionProperties {
  	labels := make(map[string]interface{})
  	for k, v := range cd.DockerLabels {
  		labels[k] = *v
  	}
  
  	c := &ContainerDefinitionProperties{
  		Name:         *cd.Name,
  		Command:      cd.Command,
  		Cpu:          *cd.Cpu,
  		Image:        *cd.Image,
  		Essential:    *cd.Essential,
  		Memory:       *cd.Memory,
  		Environment:  cd.Environment,
  		DockerLabels: labels,
  		Ulimits:      cd.Ulimits,
  	}
  	if cd.LogConfiguration != nil {
  		c.LogConfiguration = cd.LogConfiguration
  	}
  	return c
  }
docs: // cloudformationContainerDefinition returns the CloudFormation representation
  // of a ecs.ContainerDefinition.