Skip to content

Commit e31958e

Browse files
author
awstools
committed
feat(client-gamesparks): This release adds an optional DeploymentResult field in the responses of GetStageDeploymentIntegrationTests and ListStageDeploymentIntegrationTests APIs.
1 parent c28ed70 commit e31958e

File tree

3 files changed

+110
-0
lines changed

3 files changed

+110
-0
lines changed

Diff for: clients/client-gamesparks/src/models/models_0.ts

+40
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,36 @@ export enum DeploymentAction {
588588
UNDEPLOY = "UNDEPLOY",
589589
}
590590

591+
export enum ResultCode {
592+
INVALID_ROLE_FAILURE = "INVALID_ROLE_FAILURE",
593+
SUCCESS = "SUCCESS",
594+
UNSPECIFIED_FAILURE = "UNSPECIFIED_FAILURE",
595+
}
596+
597+
/**
598+
* <p>The result of the deployment.</p>
599+
*/
600+
export interface DeploymentResult {
601+
/**
602+
* <p>The type of deployment result.</p>
603+
*/
604+
ResultCode?: ResultCode | string;
605+
606+
/**
607+
* <p>Details about the deployment result.</p>
608+
*/
609+
Message?: string;
610+
}
611+
612+
export namespace DeploymentResult {
613+
/**
614+
* @internal
615+
*/
616+
export const filterSensitiveLog = (obj: DeploymentResult): any => ({
617+
...obj,
618+
});
619+
}
620+
591621
export enum DeploymentState {
592622
COMPLETED = "COMPLETED",
593623
FAILED = "FAILED",
@@ -1202,6 +1232,11 @@ export interface StageDeploymentDetails {
12021232
* <p>The timestamp of when the deployment was last updated.</p>
12031233
*/
12041234
LastUpdated?: Date;
1235+
1236+
/**
1237+
* <p>The result of the deployment.</p>
1238+
*/
1239+
DeploymentResult?: DeploymentResult;
12051240
}
12061241

12071242
export namespace StageDeploymentDetails {
@@ -1707,6 +1742,11 @@ export interface StageDeploymentSummary {
17071742
* <p>The timestamp of when the deployment was last updated.</p>
17081743
*/
17091744
LastUpdated?: Date;
1745+
1746+
/**
1747+
* <p>The result of the deployment.</p>
1748+
*/
1749+
DeploymentResult?: DeploymentResult;
17101750
}
17111751

17121752
export namespace StageDeploymentSummary {

Diff for: clients/client-gamesparks/src/protocols/Aws_restJson1.ts

+16
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ import {
9191
AccessDeniedException,
9292
ConflictException,
9393
Connection,
94+
DeploymentResult,
9495
ExtensionDetails,
9596
ExtensionVersionDetails,
9697
GameConfigurationDetails,
@@ -3417,6 +3418,13 @@ const deserializeAws_restJson1ConnectionList = (output: any, context: __SerdeCon
34173418
return retVal;
34183419
};
34193420

3421+
const deserializeAws_restJson1DeploymentResult = (output: any, context: __SerdeContext): DeploymentResult => {
3422+
return {
3423+
Message: __expectString(output.Message),
3424+
ResultCode: __expectString(output.ResultCode),
3425+
} as any;
3426+
};
3427+
34203428
const deserializeAws_restJson1Document = (output: any, context: __SerdeContext): __DocumentType => {
34213429
return output;
34223430
};
@@ -3645,6 +3653,10 @@ const deserializeAws_restJson1StageDeploymentDetails = (
36453653
: undefined,
36463654
DeploymentAction: __expectString(output.DeploymentAction),
36473655
DeploymentId: __expectString(output.DeploymentId),
3656+
DeploymentResult:
3657+
output.DeploymentResult !== undefined && output.DeploymentResult !== null
3658+
? deserializeAws_restJson1DeploymentResult(output.DeploymentResult, context)
3659+
: undefined,
36483660
DeploymentState: __expectString(output.DeploymentState),
36493661
LastUpdated:
36503662
output.LastUpdated !== undefined && output.LastUpdated !== null
@@ -3676,6 +3688,10 @@ const deserializeAws_restJson1StageDeploymentSummary = (
36763688
return {
36773689
DeploymentAction: __expectString(output.DeploymentAction),
36783690
DeploymentId: __expectString(output.DeploymentId),
3691+
DeploymentResult:
3692+
output.DeploymentResult !== undefined && output.DeploymentResult !== null
3693+
? deserializeAws_restJson1DeploymentResult(output.DeploymentResult, context)
3694+
: undefined,
36793695
DeploymentState: __expectString(output.DeploymentState),
36803696
LastUpdated:
36813697
output.LastUpdated !== undefined && output.LastUpdated !== null

Diff for: codegen/sdk-codegen/aws-models/gamesparks.json

+54
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,26 @@
481481
"smithy.api#pattern": "^\\S(.*\\S)?$"
482482
}
483483
},
484+
"com.amazonaws.gamesparks#DeploymentResult": {
485+
"type": "structure",
486+
"members": {
487+
"ResultCode": {
488+
"target": "com.amazonaws.gamesparks#ResultCode",
489+
"traits": {
490+
"smithy.api#documentation": "<p>The type of deployment result.</p>"
491+
}
492+
},
493+
"Message": {
494+
"target": "com.amazonaws.gamesparks#Message",
495+
"traits": {
496+
"smithy.api#documentation": "<p>Details about the deployment result.</p>"
497+
}
498+
}
499+
},
500+
"traits": {
501+
"smithy.api#documentation": "<p>The result of the deployment.</p>"
502+
}
503+
},
484504
"com.amazonaws.gamesparks#DeploymentState": {
485505
"type": "string",
486506
"traits": {
@@ -2589,6 +2609,9 @@
25892609
}
25902610
}
25912611
},
2612+
"com.amazonaws.gamesparks#Message": {
2613+
"type": "string"
2614+
},
25922615
"com.amazonaws.gamesparks#NextToken": {
25932616
"type": "string",
25942617
"traits": {
@@ -2670,6 +2693,25 @@
26702693
"smithy.api#httpError": 404
26712694
}
26722695
},
2696+
"com.amazonaws.gamesparks#ResultCode": {
2697+
"type": "string",
2698+
"traits": {
2699+
"smithy.api#enum": [
2700+
{
2701+
"value": "SUCCESS",
2702+
"name": "SUCCESS"
2703+
},
2704+
{
2705+
"value": "INVALID_ROLE_FAILURE",
2706+
"name": "INVALID_ROLE_FAILURE"
2707+
},
2708+
{
2709+
"value": "UNSPECIFIED_FAILURE",
2710+
"name": "UNSPECIFIED_FAILURE"
2711+
}
2712+
]
2713+
}
2714+
},
26732715
"com.amazonaws.gamesparks#RoleARN": {
26742716
"type": "string",
26752717
"traits": {
@@ -2941,6 +2983,12 @@
29412983
"traits": {
29422984
"smithy.api#documentation": "<p>The timestamp of when the deployment was last updated.</p>"
29432985
}
2986+
},
2987+
"DeploymentResult": {
2988+
"target": "com.amazonaws.gamesparks#DeploymentResult",
2989+
"traits": {
2990+
"smithy.api#documentation": "<p>The result of the deployment.</p>"
2991+
}
29442992
}
29452993
},
29462994
"traits": {
@@ -2985,6 +3033,12 @@
29853033
"traits": {
29863034
"smithy.api#documentation": "<p>The timestamp of when the deployment was last updated.</p>"
29873035
}
3036+
},
3037+
"DeploymentResult": {
3038+
"target": "com.amazonaws.gamesparks#DeploymentResult",
3039+
"traits": {
3040+
"smithy.api#documentation": "<p>The result of the deployment.</p>"
3041+
}
29883042
}
29893043
},
29903044
"traits": {

0 commit comments

Comments
 (0)