The license for the Code is
/** Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */
This being said, if I want to use this fragment inside my code (more extensive), do I have to keep this code license? What if I want to license all code (the fragment of AWS repository and my own code more extensive) with MIT license, can I do it ? Do I instead have to keep the Apache license in the fragment while I put my code under the MIT license?.
Also, because I've to include source modifications as Apache License says, I should include them, the Apache 2.0 license, and a statement with any major change. The changes that I am going to introduce are not very significant, anyway, I prefer (if it's possible) to include these changes, but in what way can I do it? For, for example in the same file which includes the Apache license from AWS and the modified code ?, between comments lines, or how can I do it? Finally, if I decide to distribute the code with an MIT license, again, in what way, is it enough including the license file called "LICENSE" with my copyright? and the text of the license? for example:
MIT License Copyright (c) 2023 dcorralf Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation, etc ...
To sum up, the final project will contain the Apache 2.0 License from AWS with a statement in case we add some changes, and this is for each file that uses code from AWS, and finally in the resulting code push to my Github repository, and add the MIT license file ? is that so?