Skip to content

Commit 3fb0a96

Browse files
author
awstools
committed
feat(client-workspaces): Added new field "reason" to OperationNotSupportedException. Receiving this exception in the DeregisterWorkspaceDirectory API will now return a reason giving more context on the failure.
1 parent 02083d6 commit 3fb0a96

File tree

3 files changed

+55
-43
lines changed

3 files changed

+55
-43
lines changed

clients/client-workspaces/src/models/models_0.ts

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ export class InvalidResourceStateException extends __BaseException {
172172
export class OperationNotSupportedException extends __BaseException {
173173
readonly name: "OperationNotSupportedException" = "OperationNotSupportedException";
174174
readonly $fault: "client" = "client";
175+
/**
176+
* <p>The exception error reason.</p>
177+
*/
178+
reason?: string;
179+
175180
/**
176181
* @internal
177182
*/
@@ -182,6 +187,7 @@ export class OperationNotSupportedException extends __BaseException {
182187
...opts,
183188
});
184189
Object.setPrototypeOf(this, OperationNotSupportedException.prototype);
190+
this.reason = opts.reason;
185191
}
186192
}
187193

@@ -1463,8 +1469,8 @@ export enum DedicatedTenancySupportEnum {
14631469
*/
14641470
export interface DefaultClientBrandingAttributes {
14651471
/**
1466-
* <p>The logo URL. This is the link where users can download the logo image. The only
1467-
* supported image format is <code>.png</code>.</p>
1472+
* <p>The logo URL. The only image
1473+
* format accepted is a binary data object that is converted from a <code>.png</code> file.</p>
14681474
*/
14691475
LogoUrl?: string;
14701476

@@ -1536,8 +1542,8 @@ export namespace DefaultClientBrandingAttributes {
15361542
*/
15371543
export interface DefaultImportClientBrandingAttributes {
15381544
/**
1539-
* <p>The logo. This is the link where users can download the logo image. The only image
1540-
* format accepted is <code>.png</code>.</p>
1545+
* <p>The logo. The only image
1546+
* format accepted is a binary data object that is converted from a <code>.png</code> file.</p>
15411547
*/
15421548
Logo?: Uint8Array;
15431549

@@ -1995,15 +2001,17 @@ export namespace DescribeClientBrandingRequest {
19952001
*/
19962002
export interface IosClientBrandingAttributes {
19972003
/**
1998-
* <p>The logo. This is the link where users can download the logo image. This is the
2004+
* <p>The logo. This is the
19992005
* standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal
2000-
* to one point.</p>
2006+
* to one point. The only image format accepted is a binary data object that is converted from
2007+
* a <code>.png</code> file.</p>
20012008
*/
20022009
LogoUrl?: string;
20032010

20042011
/**
20052012
* <p>The @2x version of the logo. This is the higher resolution display that offers a scale
2006-
* factor of 2.0 (or @2x).</p>
2013+
* factor of 2.0 (or @2x). The only image format accepted is a binary data object that is
2014+
* converted from a <code>.png</code> file.</p>
20072015
* <note>
20082016
* <p> For more information about iOS image size and resolution, see <a href="https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/">Image Size and Resolution </a> in the <i>Apple Human Interface
20092017
* Guidelines</i>.</p>
@@ -2013,7 +2021,8 @@ export interface IosClientBrandingAttributes {
20132021

20142022
/**
20152023
* <p>The @3x version of the logo. This is the higher resolution display that offers a scale
2016-
* factor of 3.0 (or @3x).</p>
2024+
* factor of 3.0 (or @3x).The only image format accepted is a binary data object that is
2025+
* converted from a <code>.png</code> file.</p>
20172026
* <note>
20182027
* <p> For more information about iOS image size and resolution, see <a href="https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/">Image Size and Resolution </a> in the <i>Apple Human Interface
20192028
* Guidelines</i>.</p>
@@ -3330,15 +3339,17 @@ export namespace FailedWorkspaceChangeRequest {
33303339
*/
33313340
export interface IosImportClientBrandingAttributes {
33323341
/**
3333-
* <p>The logo. This is the link where users can download the logo image. This is the
3342+
* <p>The logo. This is the
33343343
* standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal
3335-
* to one point.</p>
3344+
* to one point. The only image format accepted is a binary data object that is converted
3345+
* from a <code>.png</code> file.</p>
33363346
*/
33373347
Logo?: Uint8Array;
33383348

33393349
/**
33403350
* <p>The @2x version of the logo. This is the higher resolution display that offers a scale
3341-
* factor of 2.0 (or @2x).</p>
3351+
* factor of 2.0 (or @2x). The only image format accepted is a binary data object that is
3352+
* converted from a <code>.png</code> file.</p>
33423353
* <note>
33433354
* <p> For more information about iOS image size and resolution, see <a href="https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/">Image Size and Resolution </a> in the <i>Apple Human Interface
33443355
* Guidelines</i>.</p>
@@ -3348,7 +3359,8 @@ export interface IosImportClientBrandingAttributes {
33483359

33493360
/**
33503361
* <p>The @3x version of the logo. This is the higher resolution display that offers a scale
3351-
* factor of 3.0 (or @3x).</p>
3362+
* factor of 3.0 (or @3x). The only image format accepted is a binary data object that is
3363+
* converted from a <code>.png</code> file.</p>
33523364
* <note>
33533365
* <p> For more information about iOS image size and resolution, see <a href="https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/">Image Size and Resolution </a> in the <i>Apple Human Interface
33543366
* Guidelines</i>.</p>
@@ -3518,17 +3530,12 @@ export interface ImportWorkspaceImageRequest {
35183530

35193531
/**
35203532
* <p>The ingestion process to be used when importing the image, depending on which protocol
3521-
* you want to use for your BYOL Workspace image, either PCoIP or WorkSpaces Streaming Protocol
3522-
* (WSP). To use WSP, specify a value that ends in <code>_WSP</code>. To use PCoIP, specify a value
3523-
* that does not end in <code>_WSP</code>. </p>
3524-
*
3525-
* <p>For non-GPU-enabled images (bundles other than Graphics.g4dn, GraphicsPro.g4dn, Graphics,
3526-
* or GraphicsPro), specify <code>BYOL_REGULAR</code> or <code>BYOL_REGULAR_WSP</code>, depending
3527-
* on the protocol.</p>
3528-
* <note>
3529-
* <p>Use <code>BYOL_GRAPHICS_G4DN</code> ingestion for both Graphics.g4dn and
3530-
* GraphicsPro.g4dn.</p>
3531-
* </note>
3533+
* you want to use for your BYOL Workspace image, either PCoIP or WorkSpaces Streaming
3534+
* Protocol (WSP). To use WSP, specify a value that ends in <code>_WSP</code>. To use PCoIP,
3535+
* specify a value that does not end in <code>_WSP</code>. </p>
3536+
* <p>For non-GPU-enabled bundles (bundles other than Graphics or GraphicsPro), specify
3537+
* <code>BYOL_REGULAR</code> or <code>BYOL_REGULAR_WSP</code>, depending on the
3538+
* protocol.</p>
35323539
*/
35333540
IngestionProcess: WorkspaceImageIngestionProcess | string | undefined;
35343541

@@ -3552,15 +3559,7 @@ export interface ImportWorkspaceImageRequest {
35523559
* BYOL images. For more information about subscribing to Office for BYOL images, see <a href="https://docs.aws.amazon.com/workspaces/latest/adminguide/byol-windows-images.html"> Bring
35533560
* Your Own Windows Desktop Licenses</a>.</p>
35543561
* <note>
3555-
* <ul>
3556-
* <li>
3557-
* <p>Although this parameter is an array, only one item is allowed at this time</p>
3558-
* </li>
3559-
* <li>
3560-
* <p>Microsoft Office 2016 application subscription through AWS is currently not supported
3561-
* for Graphics.g4dn Bring Your Own License (BYOL) images</p>
3562-
* </li>
3563-
* </ul>
3562+
* <p>Although this parameter is an array, only one item is allowed at this time.</p>
35643563
* </note>
35653564
*/
35663565
Applications?: (Application | string)[];

clients/client-workspaces/src/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6545,6 +6545,7 @@ const deserializeAws_json1_1OperationNotSupportedException = (
65456545
): OperationNotSupportedException => {
65466546
return {
65476547
message: __expectString(output.message),
6548+
reason: __expectString(output.reason),
65486549
} as any;
65496550
};
65506551

codegen/sdk-codegen/aws-models/workspaces.json

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@
14401440
"LogoUrl": {
14411441
"target": "com.amazonaws.workspaces#ClientUrl",
14421442
"traits": {
1443-
"smithy.api#documentation": "<p>The logo URL. This is the link where users can download the logo image. The only\n supported image format is <code>.png</code>.</p>"
1443+
"smithy.api#documentation": "<p>The logo URL. The only image \n format accepted is a binary data object that is converted from a <code>.png</code> file.</p>"
14441444
}
14451445
},
14461446
"SupportEmail": {
@@ -1478,7 +1478,7 @@
14781478
"Logo": {
14791479
"target": "com.amazonaws.workspaces#DefaultLogo",
14801480
"traits": {
1481-
"smithy.api#documentation": "<p>The logo. This is the link where users can download the logo image. The only image\n format accepted is <code>.png</code>.</p>"
1481+
"smithy.api#documentation": "<p>The logo. The only image \n format accepted is a binary data object that is converted from a <code>.png</code> file.</p>"
14821482
}
14831483
},
14841484
"SupportEmail": {
@@ -3014,6 +3014,9 @@
30143014
"com.amazonaws.workspaces#ErrorType": {
30153015
"type": "string"
30163016
},
3017+
"com.amazonaws.workspaces#ExceptionErrorCode": {
3018+
"type": "string"
3019+
},
30173020
"com.amazonaws.workspaces#ExceptionMessage": {
30183021
"type": "string"
30193022
},
@@ -3297,7 +3300,7 @@
32973300
"IngestionProcess": {
32983301
"target": "com.amazonaws.workspaces#WorkspaceImageIngestionProcess",
32993302
"traits": {
3300-
"smithy.api#documentation": "<p>The ingestion process to be used when importing the image, depending on which protocol \n you want to use for your BYOL Workspace image, either PCoIP or WorkSpaces Streaming Protocol \n (WSP). To use WSP, specify a value that ends in <code>_WSP</code>. To use PCoIP, specify a value \n that does not end in <code>_WSP</code>. </p>\n \n <p>For non-GPU-enabled images (bundles other than Graphics.g4dn, GraphicsPro.g4dn, Graphics, \n or GraphicsPro), specify <code>BYOL_REGULAR</code> or <code>BYOL_REGULAR_WSP</code>, depending\n on the protocol.</p>\n <note>\n <p>Use <code>BYOL_GRAPHICS_G4DN</code> ingestion for both Graphics.g4dn and\n GraphicsPro.g4dn.</p>\n </note>",
3303+
"smithy.api#documentation": "<p>The ingestion process to be used when importing the image, depending on which protocol\n you want to use for your BYOL Workspace image, either PCoIP or WorkSpaces Streaming\n Protocol (WSP). To use WSP, specify a value that ends in <code>_WSP</code>. To use PCoIP,\n specify a value that does not end in <code>_WSP</code>. </p>\n <p>For non-GPU-enabled bundles (bundles other than Graphics or GraphicsPro), specify\n <code>BYOL_REGULAR</code> or <code>BYOL_REGULAR_WSP</code>, depending on the\n protocol.</p>",
33013304
"smithy.api#required": {}
33023305
}
33033306
},
@@ -3324,7 +3327,7 @@
33243327
"Applications": {
33253328
"target": "com.amazonaws.workspaces#ApplicationList",
33263329
"traits": {
3327-
"smithy.api#documentation": "<p>If specified, the version of Microsoft Office to subscribe to. Valid only for Windows 10\n BYOL images. For more information about subscribing to Office for BYOL images, see <a href=\"https://docs.aws.amazon.com/workspaces/latest/adminguide/byol-windows-images.html\"> Bring\n Your Own Windows Desktop Licenses</a>.</p>\n <note>\n <ul>\n <li>\n <p>Although this parameter is an array, only one item is allowed at this time</p>\n </li>\n <li>\n <p>Microsoft Office 2016 application subscription through AWS is currently not supported \n for Graphics.g4dn Bring Your Own License (BYOL) images</p>\n </li>\n </ul>\n </note>"
3330+
"smithy.api#documentation": "<p>If specified, the version of Microsoft Office to subscribe to. Valid only for Windows 10\n BYOL images. For more information about subscribing to Office for BYOL images, see <a href=\"https://docs.aws.amazon.com/workspaces/latest/adminguide/byol-windows-images.html\"> Bring\n Your Own Windows Desktop Licenses</a>.</p>\n <note>\n <p>Although this parameter is an array, only one item is allowed at this time.</p>\n </note>"
33283331
}
33293332
}
33303333
}
@@ -3391,19 +3394,19 @@
33913394
"LogoUrl": {
33923395
"target": "com.amazonaws.workspaces#ClientUrl",
33933396
"traits": {
3394-
"smithy.api#documentation": "<p>The logo. This is the link where users can download the logo image. This is the\n standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal\n to one point.</p>"
3397+
"smithy.api#documentation": "<p>The logo. This is the\n standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal\n to one point. The only image format accepted is a binary data object that is converted from \n a <code>.png</code> file.</p>"
33953398
}
33963399
},
33973400
"Logo2xUrl": {
33983401
"target": "com.amazonaws.workspaces#ClientUrl",
33993402
"traits": {
3400-
"smithy.api#documentation": "<p>The @2x version of the logo. This is the higher resolution display that offers a scale\n factor of 2.0 (or @2x).</p>\n <note>\n <p> For more information about iOS image size and resolution, see <a href=\"https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/\">Image Size and Resolution </a> in the <i>Apple Human Interface\n Guidelines</i>.</p>\n </note>"
3403+
"smithy.api#documentation": "<p>The @2x version of the logo. This is the higher resolution display that offers a scale\n factor of 2.0 (or @2x). The only image format accepted is a binary data object that is \n converted from a <code>.png</code> file.</p>\n <note>\n <p> For more information about iOS image size and resolution, see <a href=\"https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/\">Image Size and Resolution </a> in the <i>Apple Human Interface\n Guidelines</i>.</p>\n </note>"
34013404
}
34023405
},
34033406
"Logo3xUrl": {
34043407
"target": "com.amazonaws.workspaces#ClientUrl",
34053408
"traits": {
3406-
"smithy.api#documentation": "<p>The @3x version of the logo. This is the higher resolution display that offers a scale\n factor of 3.0 (or @3x).</p>\n <note>\n <p> For more information about iOS image size and resolution, see <a href=\"https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/\">Image Size and Resolution </a> in the <i>Apple Human Interface\n Guidelines</i>.</p>\n </note>"
3409+
"smithy.api#documentation": "<p>The @3x version of the logo. This is the higher resolution display that offers a scale\n factor of 3.0 (or @3x).The only image format accepted is a binary data object that is \n converted from a <code>.png</code> file.</p>\n <note>\n <p> For more information about iOS image size and resolution, see <a href=\"https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/\">Image Size and Resolution </a> in the <i>Apple Human Interface\n Guidelines</i>.</p>\n </note>"
34073410
}
34083411
},
34093412
"SupportEmail": {
@@ -3441,19 +3444,19 @@
34413444
"Logo": {
34423445
"target": "com.amazonaws.workspaces#IosLogo",
34433446
"traits": {
3444-
"smithy.api#documentation": "<p>The logo. This is the link where users can download the logo image. This is the\n standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal\n to one point.</p>"
3447+
"smithy.api#documentation": "<p>The logo. This is the\n standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal\n to one point. The only image format accepted is a binary data object that is converted \n from a <code>.png</code> file.</p>"
34453448
}
34463449
},
34473450
"Logo2x": {
34483451
"target": "com.amazonaws.workspaces#Ios2XLogo",
34493452
"traits": {
3450-
"smithy.api#documentation": "<p>The @2x version of the logo. This is the higher resolution display that offers a scale\n factor of 2.0 (or @2x).</p>\n <note>\n <p> For more information about iOS image size and resolution, see <a href=\"https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/\">Image Size and Resolution </a> in the <i>Apple Human Interface\n Guidelines</i>.</p>\n </note>"
3453+
"smithy.api#documentation": "<p>The @2x version of the logo. This is the higher resolution display that offers a scale\n factor of 2.0 (or @2x). The only image format accepted is a binary data object that is \n converted from a <code>.png</code> file.</p>\n <note>\n <p> For more information about iOS image size and resolution, see <a href=\"https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/\">Image Size and Resolution </a> in the <i>Apple Human Interface\n Guidelines</i>.</p>\n </note>"
34513454
}
34523455
},
34533456
"Logo3x": {
34543457
"target": "com.amazonaws.workspaces#Ios3XLogo",
34553458
"traits": {
3456-
"smithy.api#documentation": "<p>The @3x version of the logo. This is the higher resolution display that offers a scale\n factor of 3.0 (or @3x).</p>\n <note>\n <p> For more information about iOS image size and resolution, see <a href=\"https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/\">Image Size and Resolution </a> in the <i>Apple Human Interface\n Guidelines</i>.</p>\n </note>"
3459+
"smithy.api#documentation": "<p>The @3x version of the logo. This is the higher resolution display that offers a scale\n factor of 3.0 (or @3x). The only image format accepted is a binary data object that is \n converted from a <code>.png</code> file.</p>\n <note>\n <p> For more information about iOS image size and resolution, see <a href=\"https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/\">Image Size and Resolution </a> in the <i>Apple Human Interface\n Guidelines</i>.</p>\n </note>"
34573460
}
34583461
},
34593462
"SupportEmail": {
@@ -4168,7 +4171,16 @@
41684171
"type": "structure",
41694172
"members": {
41704173
"message": {
4171-
"target": "com.amazonaws.workspaces#ExceptionMessage"
4174+
"target": "com.amazonaws.workspaces#ExceptionMessage",
4175+
"traits": {
4176+
"smithy.api#documentation": "<p>The exception error message.</p>"
4177+
}
4178+
},
4179+
"reason": {
4180+
"target": "com.amazonaws.workspaces#ExceptionErrorCode",
4181+
"traits": {
4182+
"smithy.api#documentation": "<p>The exception error reason.</p>"
4183+
}
41724184
}
41734185
},
41744186
"traits": {

0 commit comments

Comments
 (0)