ListDeployments built each deployment's summary from the deployment
strategy as it is now: once a strategy that one of an environment's
deployments used was deleted, ListDeployments on that environment
answered 404 "Deployment strategy not found", while GetDeployment
still returned the deployment. The summary also took the profile's
current name over the one the deployment recorded. AWS documents these
values as the deployment's own (GetDeployment's
DeploymentDurationInMinutes is "Total amount of time the deployment
lasted"), and DeleteDeploymentStrategy, unlike DeleteEnvironment and
DeleteConfigurationProfile, has no ConflictException for a resource
in use.
- StartDeployment records the strategy's DeploymentDurationInMinutes,
FinalBakeTimeInMinutes, GrowthFactor and GrowthType on the
deployment, and StartDeployment and GetDeployment return them, as
AWS documents for both.
- ListDeployments reports the recorded profile name and strategy
settings, so deleting the strategy leaves earlier deployments as
they started. Floci serves no UpdateDeploymentStrategy or
UpdateConfigurationProfile yet; the recorded values also keep
earlier deployments as they were once anything changes a strategy
or renames a profile in place.
- Deployments stored by earlier builds load unchanged: GetDeployment
still omits the settings they never recorded, and ListDeployments
reads them from the strategy while it exists and reports them as
null once it is gone, instead of failing.
Type is unchanged: it is still read from the profile.
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>