Skip to content

Commit

Permalink
feat(client-iottwinmaker): This release adds a field for GetScene API…
Browse files Browse the repository at this point in the history
… to return error code and message from dependency services.
  • Loading branch information
awstools committed May 3, 2023
1 parent ce20904 commit 653fc59
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 53 deletions.
4 changes: 4 additions & 0 deletions clients/client-iottwinmaker/src/commands/GetSceneCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export interface GetSceneCommandOutput extends GetSceneResponse, __MetadataBeare
* // generatedSceneMetadata: { // GeneratedSceneMetadataMap
* // "<keys>": "STRING_VALUE",
* // },
* // error: { // SceneError
* // code: "STRING_VALUE",
* // message: "STRING_VALUE",
* // },
* // };
*
* ```
Expand Down
34 changes: 34 additions & 0 deletions clients/client-iottwinmaker/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,35 @@ export interface GetSceneRequest {
sceneId: string | undefined;
}

/**
* @public
* @enum
*/
export const SceneErrorCode = {
MATTERPORT_ERROR: "MATTERPORT_ERROR",
} as const;

/**
* @public
*/
export type SceneErrorCode = (typeof SceneErrorCode)[keyof typeof SceneErrorCode];

/**
* @public
* <p>The scene error.</p>
*/
export interface SceneError {
/**
* <p>The SceneError code.</p>
*/
code?: SceneErrorCode | string;

/**
* <p>The SceneError message.</p>
*/
message?: string;
}

/**
* @public
*/
Expand Down Expand Up @@ -1274,6 +1303,11 @@ export interface GetSceneResponse {
* <p>The generated scene metadata.</p>
*/
generatedSceneMetadata?: Record<string, string>;

/**
* <p>The SceneResponse error.</p>
*/
error?: SceneError;
}

/**
Expand Down
3 changes: 3 additions & 0 deletions clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2558,6 +2558,7 @@ export const de_GetSceneCommand = async (
contentLocation: __expectString,
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
description: __expectString,
error: _json,
generatedSceneMetadata: _json,
sceneId: __expectString,
sceneMetadata: _json,
Expand Down Expand Up @@ -4490,6 +4491,8 @@ const de_Rows = (output: any, context: __SerdeContext): Row[] => {

// de_SceneCapabilities omitted.

// de_SceneError omitted.

// de_SceneMetadataMap omitted.

/**
Expand Down
Loading

0 comments on commit 653fc59

Please sign in to comment.