Пример #1
0
 public static void populateStackEntityWithTemplate(StackEntity stackEntity, Template template)
     throws CloudFormationException {
   stackEntity.setDescription(template.getDescription());
   stackEntity.setPseudoParameterMapJson(
       pseudoParameterMapToJson(template.getPseudoParameterMap()));
   stackEntity.setTemplateFormatVersion(template.getTemplateFormatVersion());
   stackEntity.setMappingJson(mappingToJson(template.getMapping()));
   stackEntity.setParametersJson(parametersToJson(template.getParameters()));
   stackEntity.setConditionMapJson(conditionMapToJson(template.getConditionMap()));
   stackEntity.setResourceDependencyManagerJson(
       resourceDependencyManagerToJson(template.getResourceDependencyManager()));
   stackEntity.setOutputsJson(outputsToJson(template.getOutputs()));
 }