A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/aws/aws-sdk-js-v3/commit/5e93ef1d238bfa73c4318d551c9642d174c155aa below:

New APIs introduced to import WorkSpaces BYO… · aws/aws-sdk-js-v3@5e93ef1 · GitHub

1 +

// smithy-typescript generated code

2 +

import { getEndpointPlugin } from "@smithy/middleware-endpoint";

3 +

import { getSerdePlugin } from "@smithy/middleware-serde";

4 +

import { Command as $Command } from "@smithy/smithy-client";

5 +

import { MetadataBearer as __MetadataBearer } from "@smithy/types";

6 + 7 +

import { commonParams } from "../endpoint/EndpointParameters";

8 +

import {

9 +

DescribeCustomWorkspaceImageImportRequest,

10 +

DescribeCustomWorkspaceImageImportResult,

11 +

} from "../models/models_0";

12 +

import {

13 +

de_DescribeCustomWorkspaceImageImportCommand,

14 +

se_DescribeCustomWorkspaceImageImportCommand,

15 +

} from "../protocols/Aws_json1_1";

16 +

import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient";

17 + 18 +

/**

19 +

* @public

20 +

*/

21 +

export type { __MetadataBearer };

22 +

export { $Command };

23 +

/**

24 +

* @public

25 +

*

26 +

* The input for {@link DescribeCustomWorkspaceImageImportCommand}.

27 +

*/

28 +

export interface DescribeCustomWorkspaceImageImportCommandInput extends DescribeCustomWorkspaceImageImportRequest {}

29 +

/**

30 +

* @public

31 +

*

32 +

* The output of {@link DescribeCustomWorkspaceImageImportCommand}.

33 +

*/

34 +

export interface DescribeCustomWorkspaceImageImportCommandOutput

35 +

extends DescribeCustomWorkspaceImageImportResult,

36 +

__MetadataBearer {}

37 + 38 +

/**

39 +

* <p>Retrieves information about a WorkSpace BYOL image being imported via ImportCustomWorkspaceImage.</p>

40 +

* @example

41 +

* Use a bare-bones client and the command you need to make an API call.

42 +

* ```javascript

43 +

* import { WorkSpacesClient, DescribeCustomWorkspaceImageImportCommand } from "@aws-sdk/client-workspaces"; // ES Modules import

44 +

* // const { WorkSpacesClient, DescribeCustomWorkspaceImageImportCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import

45 +

* const client = new WorkSpacesClient(config);

46 +

* const input = { // DescribeCustomWorkspaceImageImportRequest

47 +

* ImageId: "STRING_VALUE", // required

48 +

* };

49 +

* const command = new DescribeCustomWorkspaceImageImportCommand(input);

50 +

* const response = await client.send(command);

51 +

* // { // DescribeCustomWorkspaceImageImportResult

52 +

* // ImageId: "STRING_VALUE",

53 +

* // InfrastructureConfigurationArn: "STRING_VALUE",

54 +

* // State: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "ERROR",

55 +

* // Created: new Date("TIMESTAMP"),

56 +

* // LastUpdatedTime: new Date("TIMESTAMP"),

57 +

* // ImageSource: { // ImageSourceIdentifier Union: only one key present

58 +

* // Ec2ImportTaskId: "STRING_VALUE",

59 +

* // ImageBuildVersionArn: "STRING_VALUE",

60 +

* // Ec2ImageId: "STRING_VALUE",

61 +

* // },

62 +

* // ImageBuilderInstanceId: "STRING_VALUE",

63 +

* // ErrorDetails: [ // CustomWorkspaceImageImportErrorDetailsList

64 +

* // { // CustomWorkspaceImageImportErrorDetails

65 +

* // ErrorCode: "STRING_VALUE",

66 +

* // ErrorMessage: "STRING_VALUE",

67 +

* // },

68 +

* // ],

69 +

* // };

70 +

*

71 +

* ```

72 +

*

73 +

* @param DescribeCustomWorkspaceImageImportCommandInput - {@link DescribeCustomWorkspaceImageImportCommandInput}

74 +

* @returns {@link DescribeCustomWorkspaceImageImportCommandOutput}

75 +

* @see {@link DescribeCustomWorkspaceImageImportCommandInput} for command's `input` shape.

76 +

* @see {@link DescribeCustomWorkspaceImageImportCommandOutput} for command's `response` shape.

77 +

* @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape.

78 +

*

79 +

* @throws {@link AccessDeniedException} (client fault)

80 +

* <p>The user is not authorized to access a resource.</p>

81 +

*

82 +

* @throws {@link ResourceNotFoundException} (client fault)

83 +

* <p>The resource could not be found.</p>

84 +

*

85 +

* @throws {@link WorkSpacesServiceException}

86 +

* <p>Base exception class for all service exceptions from WorkSpaces service.</p>

87 +

*

88 +

*

89 +

* @public

90 +

*/

91 +

export class DescribeCustomWorkspaceImageImportCommand extends $Command

92 +

.classBuilder<

93 +

DescribeCustomWorkspaceImageImportCommandInput,

94 +

DescribeCustomWorkspaceImageImportCommandOutput,

95 +

WorkSpacesClientResolvedConfig,

96 +

ServiceInputTypes,

97 +

ServiceOutputTypes

98 +

>()

99 +

.ep(commonParams)

100 +

.m(function (this: any, Command: any, cs: any, config: WorkSpacesClientResolvedConfig, o: any) {

101 +

return [

102 +

getSerdePlugin(config, this.serialize, this.deserialize),

103 +

getEndpointPlugin(config, Command.getEndpointParameterInstructions()),

104 +

];

105 +

})

106 +

.s("WorkspacesService", "DescribeCustomWorkspaceImageImport", {})

107 +

.n("WorkSpacesClient", "DescribeCustomWorkspaceImageImportCommand")

108 +

.f(void 0, void 0)

109 +

.ser(se_DescribeCustomWorkspaceImageImportCommand)

110 +

.de(de_DescribeCustomWorkspaceImageImportCommand)

111 +

.build() {

112 +

/** @internal type navigation helper, not in runtime. */

113 +

protected declare static __types: {

114 +

api: {

115 +

input: DescribeCustomWorkspaceImageImportRequest;

116 +

output: DescribeCustomWorkspaceImageImportResult;

117 +

};

118 +

sdk: {

119 +

input: DescribeCustomWorkspaceImageImportCommandInput;

120 +

output: DescribeCustomWorkspaceImageImportCommandOutput;

121 +

};

122 +

};

123 +

}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4