@aws-sdk/client-workspaces-instances 3.835.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +309 -0
- package/dist-cjs/WorkspacesInstances.js +37 -0
- package/dist-cjs/WorkspacesInstancesClient.js +52 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AssociateVolumeCommand.js +26 -0
- package/dist-cjs/commands/CreateVolumeCommand.js +27 -0
- package/dist-cjs/commands/CreateWorkspaceInstanceCommand.js +27 -0
- package/dist-cjs/commands/DeleteVolumeCommand.js +26 -0
- package/dist-cjs/commands/DeleteWorkspaceInstanceCommand.js +26 -0
- package/dist-cjs/commands/DisassociateVolumeCommand.js +26 -0
- package/dist-cjs/commands/GetWorkspaceInstanceCommand.js +26 -0
- package/dist-cjs/commands/ListInstanceTypesCommand.js +27 -0
- package/dist-cjs/commands/ListRegionsCommand.js +27 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/ListWorkspaceInstancesCommand.js +27 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/endpoint/EndpointParameters.js +15 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/WorkspacesInstancesServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +329 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListInstanceTypesPaginator.js +7 -0
- package/dist-cjs/pagination/ListRegionsPaginator.js +7 -0
- package/dist-cjs/pagination/ListWorkspaceInstancesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_0.js +486 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +13 -0
- package/dist-es/WorkspacesInstances.js +33 -0
- package/dist-es/WorkspacesInstancesClient.js +48 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssociateVolumeCommand.js +22 -0
- package/dist-es/commands/CreateVolumeCommand.js +23 -0
- package/dist-es/commands/CreateWorkspaceInstanceCommand.js +23 -0
- package/dist-es/commands/DeleteVolumeCommand.js +22 -0
- package/dist-es/commands/DeleteWorkspaceInstanceCommand.js +22 -0
- package/dist-es/commands/DisassociateVolumeCommand.js +22 -0
- package/dist-es/commands/GetWorkspaceInstanceCommand.js +22 -0
- package/dist-es/commands/ListInstanceTypesCommand.js +23 -0
- package/dist-es/commands/ListRegionsCommand.js +23 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/ListWorkspaceInstancesCommand.js +23 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/WorkspacesInstancesServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +305 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListInstanceTypesPaginator.js +4 -0
- package/dist-es/pagination/ListRegionsPaginator.js +4 -0
- package/dist-es/pagination/ListWorkspaceInstancesPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +457 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-types/WorkspacesInstances.d.ts +104 -0
- package/dist-types/WorkspacesInstancesClient.d.ts +200 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AssociateVolumeCommand.d.ts +90 -0
- package/dist-types/commands/CreateVolumeCommand.d.ts +109 -0
- package/dist-types/commands/CreateWorkspaceInstanceCommand.d.ts +273 -0
- package/dist-types/commands/DeleteVolumeCommand.d.ts +88 -0
- package/dist-types/commands/DeleteWorkspaceInstanceCommand.d.ts +88 -0
- package/dist-types/commands/DisassociateVolumeCommand.d.ts +91 -0
- package/dist-types/commands/GetWorkspaceInstanceCommand.d.ts +104 -0
- package/dist-types/commands/ListInstanceTypesCommand.d.ts +90 -0
- package/dist-types/commands/ListRegionsCommand.d.ts +90 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +92 -0
- package/dist-types/commands/ListWorkspaceInstancesCommand.d.ts +97 -0
- package/dist-types/commands/TagResourceCommand.d.ts +91 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/WorkspacesInstancesServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1787 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListInstanceTypesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRegionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkspaceInstancesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +119 -0
- package/dist-types/runtimeConfig.browser.d.ts +50 -0
- package/dist-types/runtimeConfig.d.ts +50 -0
- package/dist-types/runtimeConfig.native.d.ts +49 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/WorkspacesInstances.d.ts +231 -0
- package/dist-types/ts3.4/WorkspacesInstancesClient.d.ts +200 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AssociateVolumeCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateVolumeCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateWorkspaceInstanceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteVolumeCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteWorkspaceInstanceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateVolumeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkspaceInstanceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListInstanceTypesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRegionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWorkspaceInstancesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/WorkspacesInstancesServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +558 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListInstanceTypesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRegionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkspaceInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +161 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +101 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { AssociateVolumeCommandInput, AssociateVolumeCommandOutput } from "./commands/AssociateVolumeCommand";
|
|
3
|
+
import { CreateVolumeCommandInput, CreateVolumeCommandOutput } from "./commands/CreateVolumeCommand";
|
|
4
|
+
import { CreateWorkspaceInstanceCommandInput, CreateWorkspaceInstanceCommandOutput } from "./commands/CreateWorkspaceInstanceCommand";
|
|
5
|
+
import { DeleteVolumeCommandInput, DeleteVolumeCommandOutput } from "./commands/DeleteVolumeCommand";
|
|
6
|
+
import { DeleteWorkspaceInstanceCommandInput, DeleteWorkspaceInstanceCommandOutput } from "./commands/DeleteWorkspaceInstanceCommand";
|
|
7
|
+
import { DisassociateVolumeCommandInput, DisassociateVolumeCommandOutput } from "./commands/DisassociateVolumeCommand";
|
|
8
|
+
import { GetWorkspaceInstanceCommandInput, GetWorkspaceInstanceCommandOutput } from "./commands/GetWorkspaceInstanceCommand";
|
|
9
|
+
import { ListInstanceTypesCommandInput, ListInstanceTypesCommandOutput } from "./commands/ListInstanceTypesCommand";
|
|
10
|
+
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
|
|
11
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
12
|
+
import { ListWorkspaceInstancesCommandInput, ListWorkspaceInstancesCommandOutput } from "./commands/ListWorkspaceInstancesCommand";
|
|
13
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
14
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
15
|
+
import { WorkspacesInstancesClient } from "./WorkspacesInstancesClient";
|
|
16
|
+
export interface WorkspacesInstances {
|
|
17
|
+
/**
|
|
18
|
+
* @see {@link AssociateVolumeCommand}
|
|
19
|
+
*/
|
|
20
|
+
associateVolume(args: AssociateVolumeCommandInput, options?: __HttpHandlerOptions): Promise<AssociateVolumeCommandOutput>;
|
|
21
|
+
associateVolume(args: AssociateVolumeCommandInput, cb: (err: any, data?: AssociateVolumeCommandOutput) => void): void;
|
|
22
|
+
associateVolume(args: AssociateVolumeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateVolumeCommandOutput) => void): void;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link CreateVolumeCommand}
|
|
25
|
+
*/
|
|
26
|
+
createVolume(args: CreateVolumeCommandInput, options?: __HttpHandlerOptions): Promise<CreateVolumeCommandOutput>;
|
|
27
|
+
createVolume(args: CreateVolumeCommandInput, cb: (err: any, data?: CreateVolumeCommandOutput) => void): void;
|
|
28
|
+
createVolume(args: CreateVolumeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateVolumeCommandOutput) => void): void;
|
|
29
|
+
/**
|
|
30
|
+
* @see {@link CreateWorkspaceInstanceCommand}
|
|
31
|
+
*/
|
|
32
|
+
createWorkspaceInstance(args: CreateWorkspaceInstanceCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkspaceInstanceCommandOutput>;
|
|
33
|
+
createWorkspaceInstance(args: CreateWorkspaceInstanceCommandInput, cb: (err: any, data?: CreateWorkspaceInstanceCommandOutput) => void): void;
|
|
34
|
+
createWorkspaceInstance(args: CreateWorkspaceInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkspaceInstanceCommandOutput) => void): void;
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link DeleteVolumeCommand}
|
|
37
|
+
*/
|
|
38
|
+
deleteVolume(args: DeleteVolumeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteVolumeCommandOutput>;
|
|
39
|
+
deleteVolume(args: DeleteVolumeCommandInput, cb: (err: any, data?: DeleteVolumeCommandOutput) => void): void;
|
|
40
|
+
deleteVolume(args: DeleteVolumeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteVolumeCommandOutput) => void): void;
|
|
41
|
+
/**
|
|
42
|
+
* @see {@link DeleteWorkspaceInstanceCommand}
|
|
43
|
+
*/
|
|
44
|
+
deleteWorkspaceInstance(args: DeleteWorkspaceInstanceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWorkspaceInstanceCommandOutput>;
|
|
45
|
+
deleteWorkspaceInstance(args: DeleteWorkspaceInstanceCommandInput, cb: (err: any, data?: DeleteWorkspaceInstanceCommandOutput) => void): void;
|
|
46
|
+
deleteWorkspaceInstance(args: DeleteWorkspaceInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWorkspaceInstanceCommandOutput) => void): void;
|
|
47
|
+
/**
|
|
48
|
+
* @see {@link DisassociateVolumeCommand}
|
|
49
|
+
*/
|
|
50
|
+
disassociateVolume(args: DisassociateVolumeCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateVolumeCommandOutput>;
|
|
51
|
+
disassociateVolume(args: DisassociateVolumeCommandInput, cb: (err: any, data?: DisassociateVolumeCommandOutput) => void): void;
|
|
52
|
+
disassociateVolume(args: DisassociateVolumeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateVolumeCommandOutput) => void): void;
|
|
53
|
+
/**
|
|
54
|
+
* @see {@link GetWorkspaceInstanceCommand}
|
|
55
|
+
*/
|
|
56
|
+
getWorkspaceInstance(args: GetWorkspaceInstanceCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkspaceInstanceCommandOutput>;
|
|
57
|
+
getWorkspaceInstance(args: GetWorkspaceInstanceCommandInput, cb: (err: any, data?: GetWorkspaceInstanceCommandOutput) => void): void;
|
|
58
|
+
getWorkspaceInstance(args: GetWorkspaceInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkspaceInstanceCommandOutput) => void): void;
|
|
59
|
+
/**
|
|
60
|
+
* @see {@link ListInstanceTypesCommand}
|
|
61
|
+
*/
|
|
62
|
+
listInstanceTypes(): Promise<ListInstanceTypesCommandOutput>;
|
|
63
|
+
listInstanceTypes(args: ListInstanceTypesCommandInput, options?: __HttpHandlerOptions): Promise<ListInstanceTypesCommandOutput>;
|
|
64
|
+
listInstanceTypes(args: ListInstanceTypesCommandInput, cb: (err: any, data?: ListInstanceTypesCommandOutput) => void): void;
|
|
65
|
+
listInstanceTypes(args: ListInstanceTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInstanceTypesCommandOutput) => void): void;
|
|
66
|
+
/**
|
|
67
|
+
* @see {@link ListRegionsCommand}
|
|
68
|
+
*/
|
|
69
|
+
listRegions(): Promise<ListRegionsCommandOutput>;
|
|
70
|
+
listRegions(args: ListRegionsCommandInput, options?: __HttpHandlerOptions): Promise<ListRegionsCommandOutput>;
|
|
71
|
+
listRegions(args: ListRegionsCommandInput, cb: (err: any, data?: ListRegionsCommandOutput) => void): void;
|
|
72
|
+
listRegions(args: ListRegionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRegionsCommandOutput) => void): void;
|
|
73
|
+
/**
|
|
74
|
+
* @see {@link ListTagsForResourceCommand}
|
|
75
|
+
*/
|
|
76
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
77
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
78
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link ListWorkspaceInstancesCommand}
|
|
81
|
+
*/
|
|
82
|
+
listWorkspaceInstances(): Promise<ListWorkspaceInstancesCommandOutput>;
|
|
83
|
+
listWorkspaceInstances(args: ListWorkspaceInstancesCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkspaceInstancesCommandOutput>;
|
|
84
|
+
listWorkspaceInstances(args: ListWorkspaceInstancesCommandInput, cb: (err: any, data?: ListWorkspaceInstancesCommandOutput) => void): void;
|
|
85
|
+
listWorkspaceInstances(args: ListWorkspaceInstancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkspaceInstancesCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link TagResourceCommand}
|
|
88
|
+
*/
|
|
89
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
90
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
91
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* @see {@link UntagResourceCommand}
|
|
94
|
+
*/
|
|
95
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
96
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
97
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* <p>Amazon WorkSpaces Instances provides an API framework for managing virtual workspace environments across multiple AWS regions, enabling programmatic creation and configuration of desktop infrastructure.</p>
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare class WorkspacesInstances extends WorkspacesInstancesClient implements WorkspacesInstances {
|
|
104
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { AssociateVolumeCommandInput, AssociateVolumeCommandOutput } from "./commands/AssociateVolumeCommand";
|
|
11
|
+
import { CreateVolumeCommandInput, CreateVolumeCommandOutput } from "./commands/CreateVolumeCommand";
|
|
12
|
+
import { CreateWorkspaceInstanceCommandInput, CreateWorkspaceInstanceCommandOutput } from "./commands/CreateWorkspaceInstanceCommand";
|
|
13
|
+
import { DeleteVolumeCommandInput, DeleteVolumeCommandOutput } from "./commands/DeleteVolumeCommand";
|
|
14
|
+
import { DeleteWorkspaceInstanceCommandInput, DeleteWorkspaceInstanceCommandOutput } from "./commands/DeleteWorkspaceInstanceCommand";
|
|
15
|
+
import { DisassociateVolumeCommandInput, DisassociateVolumeCommandOutput } from "./commands/DisassociateVolumeCommand";
|
|
16
|
+
import { GetWorkspaceInstanceCommandInput, GetWorkspaceInstanceCommandOutput } from "./commands/GetWorkspaceInstanceCommand";
|
|
17
|
+
import { ListInstanceTypesCommandInput, ListInstanceTypesCommandOutput } from "./commands/ListInstanceTypesCommand";
|
|
18
|
+
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
|
|
19
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
20
|
+
import { ListWorkspaceInstancesCommandInput, ListWorkspaceInstancesCommandOutput } from "./commands/ListWorkspaceInstancesCommand";
|
|
21
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
22
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
23
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
24
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
25
|
+
export { __Client };
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export type ServiceInputTypes = AssociateVolumeCommandInput | CreateVolumeCommandInput | CreateWorkspaceInstanceCommandInput | DeleteVolumeCommandInput | DeleteWorkspaceInstanceCommandInput | DisassociateVolumeCommandInput | GetWorkspaceInstanceCommandInput | ListInstanceTypesCommandInput | ListRegionsCommandInput | ListTagsForResourceCommandInput | ListWorkspaceInstancesCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export type ServiceOutputTypes = AssociateVolumeCommandOutput | CreateVolumeCommandOutput | CreateWorkspaceInstanceCommandOutput | DeleteVolumeCommandOutput | DeleteWorkspaceInstanceCommandOutput | DisassociateVolumeCommandOutput | GetWorkspaceInstanceCommandOutput | ListInstanceTypesCommandOutput | ListRegionsCommandOutput | ListTagsForResourceCommandOutput | ListWorkspaceInstancesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
38
|
+
/**
|
|
39
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
40
|
+
*/
|
|
41
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
42
|
+
/**
|
|
43
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
44
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
48
|
+
/**
|
|
49
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
urlParser?: __UrlParser;
|
|
53
|
+
/**
|
|
54
|
+
* A function that can calculate the length of a request body.
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
58
|
+
/**
|
|
59
|
+
* A function that converts a stream into an array of bytes.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
streamCollector?: __StreamCollector;
|
|
63
|
+
/**
|
|
64
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
base64Decoder?: __Decoder;
|
|
68
|
+
/**
|
|
69
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
base64Encoder?: __Encoder;
|
|
73
|
+
/**
|
|
74
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
utf8Decoder?: __Decoder;
|
|
78
|
+
/**
|
|
79
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
utf8Encoder?: __Encoder;
|
|
83
|
+
/**
|
|
84
|
+
* The runtime environment.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
runtime?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
90
|
+
* trait of an operation.
|
|
91
|
+
*/
|
|
92
|
+
disableHostPrefix?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Unique service identifier.
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
serviceId?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
100
|
+
*/
|
|
101
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* Enables FIPS compatible endpoints.
|
|
104
|
+
*/
|
|
105
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* The AWS region to which this client will send requests
|
|
108
|
+
*/
|
|
109
|
+
region?: string | __Provider<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Setting a client profile is similar to setting a value for the
|
|
112
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
113
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
114
|
+
*
|
|
115
|
+
* When set, and only for environments where an AWS configuration
|
|
116
|
+
* file exists, fields configurable by this file will be retrieved
|
|
117
|
+
* from the specified profile within that file.
|
|
118
|
+
* Conflicting code configuration and environment variables will
|
|
119
|
+
* still have higher priority.
|
|
120
|
+
*
|
|
121
|
+
* For client credential resolution that involves checking the AWS
|
|
122
|
+
* configuration file, the client's profile (this value) will be
|
|
123
|
+
* used unless a different profile is set in the credential
|
|
124
|
+
* provider options.
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
profile?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
133
|
+
/**
|
|
134
|
+
* Default credentials provider; Not available in browser runtime.
|
|
135
|
+
* @deprecated
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
139
|
+
/**
|
|
140
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
141
|
+
*/
|
|
142
|
+
maxAttempts?: number | __Provider<number>;
|
|
143
|
+
/**
|
|
144
|
+
* Specifies which retry algorithm to use.
|
|
145
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
retryMode?: string | __Provider<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Optional logger for logging debug/info/warn/error.
|
|
151
|
+
*/
|
|
152
|
+
logger?: __Logger;
|
|
153
|
+
/**
|
|
154
|
+
* Optional extensions
|
|
155
|
+
*/
|
|
156
|
+
extensions?: RuntimeExtension[];
|
|
157
|
+
/**
|
|
158
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
159
|
+
*/
|
|
160
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
export type WorkspacesInstancesClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
*
|
|
169
|
+
* The configuration interface of WorkspacesInstancesClient class constructor that set the region, credentials and other options.
|
|
170
|
+
*/
|
|
171
|
+
export interface WorkspacesInstancesClientConfig extends WorkspacesInstancesClientConfigType {
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export type WorkspacesInstancesClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*
|
|
180
|
+
* The resolved configuration interface of WorkspacesInstancesClient class. This is resolved and normalized from the {@link WorkspacesInstancesClientConfig | constructor configuration interface}.
|
|
181
|
+
*/
|
|
182
|
+
export interface WorkspacesInstancesClientResolvedConfig extends WorkspacesInstancesClientResolvedConfigType {
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* <p>Amazon WorkSpaces Instances provides an API framework for managing virtual workspace environments across multiple AWS regions, enabling programmatic creation and configuration of desktop infrastructure.</p>
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export declare class WorkspacesInstancesClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WorkspacesInstancesClientResolvedConfig> {
|
|
189
|
+
/**
|
|
190
|
+
* The resolved configuration of WorkspacesInstancesClient class. This is resolved and normalized from the {@link WorkspacesInstancesClientConfig | constructor configuration interface}.
|
|
191
|
+
*/
|
|
192
|
+
readonly config: WorkspacesInstancesClientResolvedConfig;
|
|
193
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<WorkspacesInstancesClientConfig>);
|
|
194
|
+
/**
|
|
195
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
196
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
197
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
198
|
+
*/
|
|
199
|
+
destroy(): void;
|
|
200
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { WorkspacesInstancesHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: WorkspacesInstancesHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): WorkspacesInstancesHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: WorkspacesInstancesHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { WorkspacesInstancesClientResolvedConfig } from "../WorkspacesInstancesClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface WorkspacesInstancesHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface WorkspacesInstancesHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<WorkspacesInstancesClientResolvedConfig, HandlerExecutionContext, WorkspacesInstancesHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultWorkspacesInstancesHttpAuthSchemeParametersProvider: (config: WorkspacesInstancesClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<WorkspacesInstancesHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface WorkspacesInstancesHttpAuthSchemeProvider extends HttpAuthSchemeProvider<WorkspacesInstancesHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultWorkspacesInstancesHttpAuthSchemeProvider: WorkspacesInstancesHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: WorkspacesInstancesHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: WorkspacesInstancesHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AssociateVolumeRequest, AssociateVolumeResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkspacesInstancesClientResolvedConfig } from "../WorkspacesInstancesClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AssociateVolumeCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AssociateVolumeCommandInput extends AssociateVolumeRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AssociateVolumeCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AssociateVolumeCommandOutput extends AssociateVolumeResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AssociateVolumeCommand_base: {
|
|
25
|
+
new (input: AssociateVolumeCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateVolumeCommandInput, AssociateVolumeCommandOutput, WorkspacesInstancesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AssociateVolumeCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateVolumeCommandInput, AssociateVolumeCommandOutput, WorkspacesInstancesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Attaches a volume to a WorkSpace Instance.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WorkspacesInstancesClient, AssociateVolumeCommand } from "@aws-sdk/client-workspaces-instances"; // ES Modules import
|
|
35
|
+
* // const { WorkspacesInstancesClient, AssociateVolumeCommand } = require("@aws-sdk/client-workspaces-instances"); // CommonJS import
|
|
36
|
+
* const client = new WorkspacesInstancesClient(config);
|
|
37
|
+
* const input = { // AssociateVolumeRequest
|
|
38
|
+
* WorkspaceInstanceId: "STRING_VALUE", // required
|
|
39
|
+
* VolumeId: "STRING_VALUE", // required
|
|
40
|
+
* Device: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new AssociateVolumeCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param AssociateVolumeCommandInput - {@link AssociateVolumeCommandInput}
|
|
49
|
+
* @returns {@link AssociateVolumeCommandOutput}
|
|
50
|
+
* @see {@link AssociateVolumeCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link AssociateVolumeCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link WorkspacesInstancesClientResolvedConfig | config} for WorkspacesInstancesClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>Indicates insufficient permissions to perform the requested action.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ConflictException} (client fault)
|
|
58
|
+
* <p>Signals a conflict with the current state of the resource.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* <p>Indicates an unexpected server-side error occurred.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
|
+
* <p>Indicates the requested resource could not be found.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
67
|
+
* <p>Indicates the request rate has exceeded limits.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>Indicates invalid input parameters in the request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link WorkspacesInstancesServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from WorkspacesInstances service.</p>
|
|
74
|
+
*
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export declare class AssociateVolumeCommand extends AssociateVolumeCommand_base {
|
|
79
|
+
/** @internal type navigation helper, not in runtime. */
|
|
80
|
+
protected static __types: {
|
|
81
|
+
api: {
|
|
82
|
+
input: AssociateVolumeRequest;
|
|
83
|
+
output: {};
|
|
84
|
+
};
|
|
85
|
+
sdk: {
|
|
86
|
+
input: AssociateVolumeCommandInput;
|
|
87
|
+
output: AssociateVolumeCommandOutput;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateVolumeRequest, CreateVolumeResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkspacesInstancesClientResolvedConfig } from "../WorkspacesInstancesClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateVolumeCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateVolumeCommandInput extends CreateVolumeRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateVolumeCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateVolumeCommandOutput extends CreateVolumeResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateVolumeCommand_base: {
|
|
25
|
+
new (input: CreateVolumeCommandInput): import("@smithy/smithy-client").CommandImpl<CreateVolumeCommandInput, CreateVolumeCommandOutput, WorkspacesInstancesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateVolumeCommandInput): import("@smithy/smithy-client").CommandImpl<CreateVolumeCommandInput, CreateVolumeCommandOutput, WorkspacesInstancesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a new volume for WorkSpace Instances.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WorkspacesInstancesClient, CreateVolumeCommand } from "@aws-sdk/client-workspaces-instances"; // ES Modules import
|
|
35
|
+
* // const { WorkspacesInstancesClient, CreateVolumeCommand } = require("@aws-sdk/client-workspaces-instances"); // CommonJS import
|
|
36
|
+
* const client = new WorkspacesInstancesClient(config);
|
|
37
|
+
* const input = { // CreateVolumeRequest
|
|
38
|
+
* AvailabilityZone: "STRING_VALUE", // required
|
|
39
|
+
* ClientToken: "STRING_VALUE",
|
|
40
|
+
* Encrypted: true || false,
|
|
41
|
+
* Iops: Number("int"),
|
|
42
|
+
* KmsKeyId: "STRING_VALUE",
|
|
43
|
+
* SizeInGB: Number("int"),
|
|
44
|
+
* SnapshotId: "STRING_VALUE",
|
|
45
|
+
* TagSpecifications: [ // TagSpecifications
|
|
46
|
+
* { // TagSpecification
|
|
47
|
+
* ResourceType: "instance" || "volume" || "spot-instances-request" || "network-interface",
|
|
48
|
+
* Tags: [ // TagList
|
|
49
|
+
* { // Tag
|
|
50
|
+
* Key: "STRING_VALUE",
|
|
51
|
+
* Value: "STRING_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* Throughput: Number("int"),
|
|
57
|
+
* VolumeType: "standard" || "io1" || "io2" || "gp2" || "sc1" || "st1" || "gp3",
|
|
58
|
+
* };
|
|
59
|
+
* const command = new CreateVolumeCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* // { // CreateVolumeResponse
|
|
62
|
+
* // VolumeId: "STRING_VALUE",
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param CreateVolumeCommandInput - {@link CreateVolumeCommandInput}
|
|
68
|
+
* @returns {@link CreateVolumeCommandOutput}
|
|
69
|
+
* @see {@link CreateVolumeCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link CreateVolumeCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link WorkspacesInstancesClientResolvedConfig | config} for WorkspacesInstancesClient's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
74
|
+
* <p>Indicates insufficient permissions to perform the requested action.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ConflictException} (client fault)
|
|
77
|
+
* <p>Signals a conflict with the current state of the resource.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* <p>Indicates an unexpected server-side error occurred.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
83
|
+
* <p>Indicates that a service quota has been exceeded.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
86
|
+
* <p>Indicates the request rate has exceeded limits.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p>Indicates invalid input parameters in the request.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link WorkspacesInstancesServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from WorkspacesInstances service.</p>
|
|
93
|
+
*
|
|
94
|
+
*
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare class CreateVolumeCommand extends CreateVolumeCommand_base {
|
|
98
|
+
/** @internal type navigation helper, not in runtime. */
|
|
99
|
+
protected static __types: {
|
|
100
|
+
api: {
|
|
101
|
+
input: CreateVolumeRequest;
|
|
102
|
+
output: CreateVolumeResponse;
|
|
103
|
+
};
|
|
104
|
+
sdk: {
|
|
105
|
+
input: CreateVolumeCommandInput;
|
|
106
|
+
output: CreateVolumeCommandOutput;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}
|