static CfnStack from(Stack s) {
      Map<String, String> parameters =
          s.parameters() == null
              ? Collections.emptyMap()
              : s.parameters()
                  .stream()
                  .collect(Collectors.toMap(Parameter::parameterKey, Parameter::parameterValue));

      Map<String, String> outputs =
          s.outputs() == null
              ? Collections.emptyMap()
              : s.outputs()
                  .stream()
                  .collect(Collectors.toMap(Output::outputKey, Output::outputValue));

      return new CfnStack(s.stackName(), parameters, outputs);
    }
Read-only CloudFormation wrapper to easily retrieve stack outputs from all stacks in an account.
end-to-end-tests/src/main/java/com/amazonaws/blox/integ/CloudFormationStacks.java