Skip to content

Commit

Permalink
feat(client-gamesparks): This release adds an optional DeploymentResu…
Browse files Browse the repository at this point in the history
…lt field in the responses of GetStageDeploymentIntegrationTests and ListStageDeploymentIntegrationTests APIs.
  • Loading branch information
awstools committed May 19, 2022
1 parent c28ed70 commit e31958e
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 0 deletions.
40 changes: 40 additions & 0 deletions clients/client-gamesparks/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,36 @@ export enum DeploymentAction {
UNDEPLOY = "UNDEPLOY",
}

export enum ResultCode {
INVALID_ROLE_FAILURE = "INVALID_ROLE_FAILURE",
SUCCESS = "SUCCESS",
UNSPECIFIED_FAILURE = "UNSPECIFIED_FAILURE",
}

/**
* <p>The result of the deployment.</p>
*/
export interface DeploymentResult {
/**
* <p>The type of deployment result.</p>
*/
ResultCode?: ResultCode | string;

/**
* <p>Details about the deployment result.</p>
*/
Message?: string;
}

export namespace DeploymentResult {
/**
* @internal
*/
export const filterSensitiveLog = (obj: DeploymentResult): any => ({
...obj,
});
}

export enum DeploymentState {
COMPLETED = "COMPLETED",
FAILED = "FAILED",
Expand Down Expand Up @@ -1202,6 +1232,11 @@ export interface StageDeploymentDetails {
* <p>The timestamp of when the deployment was last updated.</p>
*/
LastUpdated?: Date;

/**
* <p>The result of the deployment.</p>
*/
DeploymentResult?: DeploymentResult;
}

export namespace StageDeploymentDetails {
Expand Down Expand Up @@ -1707,6 +1742,11 @@ export interface StageDeploymentSummary {
* <p>The timestamp of when the deployment was last updated.</p>
*/
LastUpdated?: Date;

/**
* <p>The result of the deployment.</p>
*/
DeploymentResult?: DeploymentResult;
}

export namespace StageDeploymentSummary {
Expand Down
16 changes: 16 additions & 0 deletions clients/client-gamesparks/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ import {
AccessDeniedException,
ConflictException,
Connection,
DeploymentResult,
ExtensionDetails,
ExtensionVersionDetails,
GameConfigurationDetails,
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
54 changes: 54 additions & 0 deletions codegen/sdk-codegen/aws-models/gamesparks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<p>The type of deployment result.</p>"
}
},
"Message": {
"target": "com.amazonaws.gamesparks#Message",
"traits": {
"smithy.api#documentation": "<p>Details about the deployment result.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The result of the deployment.</p>"
}
},
"com.amazonaws.gamesparks#DeploymentState": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -2589,6 +2609,9 @@
}
}
},
"com.amazonaws.gamesparks#Message": {
"type": "string"
},
"com.amazonaws.gamesparks#NextToken": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -2941,6 +2983,12 @@
"traits": {
"smithy.api#documentation": "<p>The timestamp of when the deployment was last updated.</p>"
}
},
"DeploymentResult": {
"target": "com.amazonaws.gamesparks#DeploymentResult",
"traits": {
"smithy.api#documentation": "<p>The result of the deployment.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2985,6 +3033,12 @@
"traits": {
"smithy.api#documentation": "<p>The timestamp of when the deployment was last updated.</p>"
}
},
"DeploymentResult": {
"target": "com.amazonaws.gamesparks#DeploymentResult",
"traits": {
"smithy.api#documentation": "<p>The result of the deployment.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit e31958e

Please sign in to comment.