diff --git a/clients/client-gamesparks/src/models/models_0.ts b/clients/client-gamesparks/src/models/models_0.ts index c163b945090ed..d12d97f76db6f 100644 --- a/clients/client-gamesparks/src/models/models_0.ts +++ b/clients/client-gamesparks/src/models/models_0.ts @@ -588,6 +588,36 @@ export enum DeploymentAction { UNDEPLOY = "UNDEPLOY", } +export enum ResultCode { + INVALID_ROLE_FAILURE = "INVALID_ROLE_FAILURE", + SUCCESS = "SUCCESS", + UNSPECIFIED_FAILURE = "UNSPECIFIED_FAILURE", +} + +/** + *
The result of the deployment.
+ */ +export interface DeploymentResult { + /** + *The type of deployment result.
+ */ + ResultCode?: ResultCode | string; + + /** + *Details about the deployment result.
+ */ + Message?: string; +} + +export namespace DeploymentResult { + /** + * @internal + */ + export const filterSensitiveLog = (obj: DeploymentResult): any => ({ + ...obj, + }); +} + export enum DeploymentState { COMPLETED = "COMPLETED", FAILED = "FAILED", @@ -1202,6 +1232,11 @@ export interface StageDeploymentDetails { *The timestamp of when the deployment was last updated.
*/ LastUpdated?: Date; + + /** + *The result of the deployment.
+ */ + DeploymentResult?: DeploymentResult; } export namespace StageDeploymentDetails { @@ -1707,6 +1742,11 @@ export interface StageDeploymentSummary { *The timestamp of when the deployment was last updated.
*/ LastUpdated?: Date; + + /** + *The result of the deployment.
+ */ + DeploymentResult?: DeploymentResult; } export namespace StageDeploymentSummary { diff --git a/clients/client-gamesparks/src/protocols/Aws_restJson1.ts b/clients/client-gamesparks/src/protocols/Aws_restJson1.ts index 95ad30d5040cc..01286f903a15b 100644 --- a/clients/client-gamesparks/src/protocols/Aws_restJson1.ts +++ b/clients/client-gamesparks/src/protocols/Aws_restJson1.ts @@ -91,6 +91,7 @@ import { AccessDeniedException, ConflictException, Connection, + DeploymentResult, ExtensionDetails, ExtensionVersionDetails, GameConfigurationDetails, @@ -3417,6 +3418,13 @@ const deserializeAws_restJson1ConnectionList = (output: any, context: __SerdeCon return retVal; }; +const deserializeAws_restJson1DeploymentResult = (output: any, context: __SerdeContext): DeploymentResult => { + return { + Message: __expectString(output.Message), + ResultCode: __expectString(output.ResultCode), + } as any; +}; + const deserializeAws_restJson1Document = (output: any, context: __SerdeContext): __DocumentType => { return output; }; @@ -3645,6 +3653,10 @@ const deserializeAws_restJson1StageDeploymentDetails = ( : undefined, DeploymentAction: __expectString(output.DeploymentAction), DeploymentId: __expectString(output.DeploymentId), + DeploymentResult: + output.DeploymentResult !== undefined && output.DeploymentResult !== null + ? deserializeAws_restJson1DeploymentResult(output.DeploymentResult, context) + : undefined, DeploymentState: __expectString(output.DeploymentState), LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null @@ -3676,6 +3688,10 @@ const deserializeAws_restJson1StageDeploymentSummary = ( return { DeploymentAction: __expectString(output.DeploymentAction), DeploymentId: __expectString(output.DeploymentId), + DeploymentResult: + output.DeploymentResult !== undefined && output.DeploymentResult !== null + ? deserializeAws_restJson1DeploymentResult(output.DeploymentResult, context) + : undefined, DeploymentState: __expectString(output.DeploymentState), LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null diff --git a/codegen/sdk-codegen/aws-models/gamesparks.json b/codegen/sdk-codegen/aws-models/gamesparks.json index 0f44d7360d0c8..c05c84e86790c 100644 --- a/codegen/sdk-codegen/aws-models/gamesparks.json +++ b/codegen/sdk-codegen/aws-models/gamesparks.json @@ -481,6 +481,26 @@ "smithy.api#pattern": "^\\S(.*\\S)?$" } }, + "com.amazonaws.gamesparks#DeploymentResult": { + "type": "structure", + "members": { + "ResultCode": { + "target": "com.amazonaws.gamesparks#ResultCode", + "traits": { + "smithy.api#documentation": "The type of deployment result.
" + } + }, + "Message": { + "target": "com.amazonaws.gamesparks#Message", + "traits": { + "smithy.api#documentation": "Details about the deployment result.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The result of the deployment.
" + } + }, "com.amazonaws.gamesparks#DeploymentState": { "type": "string", "traits": { @@ -2589,6 +2609,9 @@ } } }, + "com.amazonaws.gamesparks#Message": { + "type": "string" + }, "com.amazonaws.gamesparks#NextToken": { "type": "string", "traits": { @@ -2670,6 +2693,25 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.gamesparks#ResultCode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SUCCESS", + "name": "SUCCESS" + }, + { + "value": "INVALID_ROLE_FAILURE", + "name": "INVALID_ROLE_FAILURE" + }, + { + "value": "UNSPECIFIED_FAILURE", + "name": "UNSPECIFIED_FAILURE" + } + ] + } + }, "com.amazonaws.gamesparks#RoleARN": { "type": "string", "traits": { @@ -2941,6 +2983,12 @@ "traits": { "smithy.api#documentation": "The timestamp of when the deployment was last updated.
" } + }, + "DeploymentResult": { + "target": "com.amazonaws.gamesparks#DeploymentResult", + "traits": { + "smithy.api#documentation": "The result of the deployment.
" + } } }, "traits": { @@ -2985,6 +3033,12 @@ "traits": { "smithy.api#documentation": "The timestamp of when the deployment was last updated.
" } + }, + "DeploymentResult": { + "target": "com.amazonaws.gamesparks#DeploymentResult", + "traits": { + "smithy.api#documentation": "The result of the deployment.
" + } } }, "traits": {