Skip to content

Commit bc84810

Browse files
authored
Generate the property type for generated objects (#1467)
1 parent 832faf3 commit bc84810

29 files changed

+190
-0
lines changed

src/Result/CreateDeploymentOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class CreateDeploymentOutput extends Result
1212
{
1313
/**
1414
* The unique ID of a deployment.
15+
*
16+
* @var string|null
1517
*/
1618
private $deploymentId;
1719

src/Result/GetDeploymentOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class GetDeploymentOutput extends Result
3939
{
4040
/**
4141
* Information about the deployment.
42+
*
43+
* @var DeploymentInfo|null
4244
*/
4345
private $deploymentInfo;
4446

src/Result/PutLifecycleEventHookExecutionStatusOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class PutLifecycleEventHookExecutionStatusOutput extends Result
1010
/**
1111
* The execution ID of the lifecycle event hook. A hook is specified in the `hooks` section of the deployment's AppSpec
1212
* file.
13+
*
14+
* @var string|null
1315
*/
1416
private $lifecycleEventHookExecutionId;
1517

src/ValueObject/Alarm.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ final class Alarm
99
{
1010
/**
1111
* The name of the alarm. Maximum length is 255 characters. Each alarm name can be used only once in a list of alarms.
12+
*
13+
* @var string|null
1214
*/
1315
private $name;
1416

src/ValueObject/AlarmConfiguration.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ final class AlarmConfiguration
99
{
1010
/**
1111
* Indicates whether the alarm configuration is enabled.
12+
*
13+
* @var bool|null
1214
*/
1315
private $enabled;
1416

@@ -18,11 +20,15 @@ final class AlarmConfiguration
1820
*
1921
* - `true`: The deployment proceeds even if alarm status information can't be retrieved from Amazon CloudWatch.
2022
* - `false`: The deployment stops if alarm status information can't be retrieved from Amazon CloudWatch.
23+
*
24+
* @var bool|null
2125
*/
2226
private $ignorePollAlarmFailure;
2327

2428
/**
2529
* A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added.
30+
*
31+
* @var Alarm[]|null
2632
*/
2733
private $alarms;
2834

src/ValueObject/AppSpecContent.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ final class AppSpecContent
2121
*
2222
* For both types of deployments, the content can specify Lambda functions that run at specified hooks, such as
2323
* `BeforeInstall`, during a deployment.
24+
*
25+
* @var string|null
2426
*/
2527
private $content;
2628

2729
/**
2830
* The SHA256 hash value of the revision content.
31+
*
32+
* @var string|null
2933
*/
3034
private $sha256;
3135

src/ValueObject/AutoRollbackConfiguration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ final class AutoRollbackConfiguration
1313
{
1414
/**
1515
* Indicates whether a defined automatic rollback configuration is currently enabled.
16+
*
17+
* @var bool|null
1618
*/
1719
private $enabled;
1820

1921
/**
2022
* The event type or types that trigger a rollback.
23+
*
24+
* @var list<AutoRollbackEvent::*>|null
2125
*/
2226
private $events;
2327

src/ValueObject/BlueGreenDeploymentConfiguration.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,23 @@ final class BlueGreenDeploymentConfiguration
99
{
1010
/**
1111
* Information about whether to terminate instances in the original fleet during a blue/green deployment.
12+
*
13+
* @var BlueInstanceTerminationOption|null
1214
*/
1315
private $terminateBlueInstancesOnDeploymentSuccess;
1416

1517
/**
1618
* Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green
1719
* deployment.
20+
*
21+
* @var DeploymentReadyOption|null
1822
*/
1923
private $deploymentReadyOption;
2024

2125
/**
2226
* Information about how instances are provisioned for a replacement environment in a blue/green deployment.
27+
*
28+
* @var GreenFleetProvisioningOption|null
2329
*/
2430
private $greenFleetProvisioningOption;
2531

src/ValueObject/BlueInstanceTerminationOption.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ final class BlueInstanceTerminationOption
1616
* - `TERMINATE`: Instances are terminated after a specified wait time.
1717
* - `KEEP_ALIVE`: Instances are left running after they are deregistered from the load balancer and removed from the
1818
* deployment group.
19+
*
20+
* @var InstanceAction::*|null
1921
*/
2022
private $action;
2123

@@ -27,6 +29,8 @@ final class BlueInstanceTerminationOption
2729
* ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.
2830
*
2931
* The maximum setting is 2880 minutes (2 days).
32+
*
33+
* @var int|null
3034
*/
3135
private $terminationWaitTimeInMinutes;
3236

src/ValueObject/DeploymentInfo.php

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,47 +14,65 @@ final class DeploymentInfo
1414
{
1515
/**
1616
* The application name.
17+
*
18+
* @var string|null
1719
*/
1820
private $applicationName;
1921

2022
/**
2123
* The deployment group name.
24+
*
25+
* @var string|null
2226
*/
2327
private $deploymentGroupName;
2428

2529
/**
2630
* The deployment configuration name.
31+
*
32+
* @var string|null
2733
*/
2834
private $deploymentConfigName;
2935

3036
/**
3137
* The unique ID of a deployment.
38+
*
39+
* @var string|null
3240
*/
3341
private $deploymentId;
3442

3543
/**
3644
* Information about the application revision that was deployed to the deployment group before the most recent
3745
* successful deployment.
46+
*
47+
* @var RevisionLocation|null
3848
*/
3949
private $previousRevision;
4050

4151
/**
4252
* Information about the location of stored application artifacts and the service from which to retrieve them.
53+
*
54+
* @var RevisionLocation|null
4355
*/
4456
private $revision;
4557

4658
/**
4759
* The current state of the deployment as a whole.
60+
*
61+
* @var DeploymentStatus::*|null
4862
*/
4963
private $status;
5064

5165
/**
5266
* Information about any error associated with this deployment.
67+
*
68+
* @var ErrorInformation|null
5369
*/
5470
private $errorInformation;
5571

5672
/**
5773
* A timestamp that indicates when the deployment was created.
74+
*
75+
* @var \DateTimeImmutable|null
5876
*/
5977
private $createTime;
6078

@@ -63,21 +81,29 @@ final class DeploymentInfo
6381
*
6482
* In some cases, the reported value of the start time might be later than the complete time. This is due to differences
6583
* in the clock settings of backend servers that participate in the deployment process.
84+
*
85+
* @var \DateTimeImmutable|null
6686
*/
6787
private $startTime;
6888

6989
/**
7090
* A timestamp that indicates when the deployment was complete.
91+
*
92+
* @var \DateTimeImmutable|null
7193
*/
7294
private $completeTime;
7395

7496
/**
7597
* A summary of the deployment status of the instances in the deployment.
98+
*
99+
* @var DeploymentOverview|null
76100
*/
77101
private $deploymentOverview;
78102

79103
/**
80104
* A comment about the deployment.
105+
*
106+
* @var string|null
81107
*/
82108
private $description;
83109

@@ -89,6 +115,8 @@ final class DeploymentInfo
89115
* - `codeDeployRollback`: A rollback process created the deployment.
90116
* - `CodeDeployAutoUpdate`: An auto-update process created the deployment when it detected outdated Amazon EC2
91117
* instances.
118+
*
119+
* @var DeploymentCreator::*|null
92120
*/
93121
private $creator;
94122

@@ -110,55 +138,75 @@ final class DeploymentInfo
110138
* If the cause of the failure is a script from the last successful deployment that will never run successfully, create
111139
* a new deployment and use `ignoreApplicationStopFailures` to specify that the `ApplicationStop`, `BeforeBlockTraffic`,
112140
* and `AfterBlockTraffic` failures should be ignored.
141+
*
142+
* @var bool|null
113143
*/
114144
private $ignoreApplicationStopFailures;
115145

116146
/**
117147
* Information about the automatic rollback configuration associated with the deployment.
148+
*
149+
* @var AutoRollbackConfiguration|null
118150
*/
119151
private $autoRollbackConfiguration;
120152

121153
/**
122154
* Indicates whether only instances that are not running the latest application revision are to be deployed to.
155+
*
156+
* @var bool|null
123157
*/
124158
private $updateOutdatedInstancesOnly;
125159

126160
/**
127161
* Information about a deployment rollback.
162+
*
163+
* @var RollbackInfo|null
128164
*/
129165
private $rollbackInfo;
130166

131167
/**
132168
* Information about the type of deployment, either in-place or blue/green, you want to run and whether to route
133169
* deployment traffic behind a load balancer.
170+
*
171+
* @var DeploymentStyle|null
134172
*/
135173
private $deploymentStyle;
136174

137175
/**
138176
* Information about the instances that belong to the replacement environment in a blue/green deployment.
177+
*
178+
* @var TargetInstances|null
139179
*/
140180
private $targetInstances;
141181

142182
/**
143183
* Indicates whether the wait period set for the termination of instances in the original environment has started.
144184
* Status is 'false' if the KEEP_ALIVE option is specified. Otherwise, 'true' as soon as the termination wait period
145185
* starts.
186+
*
187+
* @var bool|null
146188
*/
147189
private $instanceTerminationWaitTimeStarted;
148190

149191
/**
150192
* Information about blue/green deployment options for this deployment.
193+
*
194+
* @var BlueGreenDeploymentConfiguration|null
151195
*/
152196
private $blueGreenDeploymentConfiguration;
153197

154198
/**
155199
* Information about the load balancer used in the deployment.
200+
*
201+
* @var LoadBalancerInfo|null
156202
*/
157203
private $loadBalancerInfo;
158204

159205
/**
160206
* Provides information about the results of a deployment, such as whether instances in the original environment in a
161207
* blue/green deployment were not terminated.
208+
*
209+
* @var string|null
162210
*/
163211
private $additionalDeploymentStatusInfo;
164212

@@ -170,26 +218,40 @@ final class DeploymentInfo
170218
* - `OVERWRITE`: The version of the file from the application revision currently being deployed replaces the version
171219
* already on the instance.
172220
* - `RETAIN`: The version of the file already on the instance is kept and used as part of the new deployment.
221+
*
222+
* @var FileExistsBehavior::*|null
173223
*/
174224
private $fileExistsBehavior;
175225

176226
/**
177227
* Messages that contain information about the status of a deployment.
228+
*
229+
* @var string[]|null
178230
*/
179231
private $deploymentStatusMessages;
180232

181233
/**
182234
* The destination platform type for the deployment (`Lambda`, `Server`, or `ECS`).
235+
*
236+
* @var ComputePlatform::*|null
183237
*/
184238
private $computePlatform;
185239

186240
/**
187241
* The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.
242+
*
243+
* @var string|null
188244
*/
189245
private $externalId;
190246

247+
/**
248+
* @var RelatedDeployments|null
249+
*/
191250
private $relatedDeployments;
192251

252+
/**
253+
* @var AlarmConfiguration|null
254+
*/
193255
private $overrideAlarmConfiguration;
194256

195257
/**

0 commit comments

Comments
 (0)