@aws-sdk/client-workspaces-thin-client 3.458.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 +344 -0
- package/dist-cjs/WorkSpacesThin.js +43 -0
- package/dist-cjs/WorkSpacesThinClientClient.js +43 -0
- package/dist-cjs/commands/CreateEnvironmentCommand.js +52 -0
- package/dist-cjs/commands/DeleteDeviceCommand.js +51 -0
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +51 -0
- package/dist-cjs/commands/DeregisterDeviceCommand.js +51 -0
- package/dist-cjs/commands/GetDeviceCommand.js +52 -0
- package/dist-cjs/commands/GetEnvironmentCommand.js +52 -0
- package/dist-cjs/commands/GetSoftwareSetCommand.js +51 -0
- package/dist-cjs/commands/ListDevicesCommand.js +52 -0
- package/dist-cjs/commands/ListEnvironmentsCommand.js +52 -0
- package/dist-cjs/commands/ListSoftwareSetsCommand.js +51 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +52 -0
- package/dist-cjs/commands/TagResourceCommand.js +52 -0
- package/dist-cjs/commands/UntagResourceCommand.js +52 -0
- package/dist-cjs/commands/UpdateDeviceCommand.js +52 -0
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +52 -0
- package/dist-cjs/commands/UpdateSoftwareSetCommand.js +51 -0
- package/dist-cjs/commands/index.js +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/WorkSpacesThinClientServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +287 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListDevicesPaginator.js +29 -0
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +29 -0
- package/dist-cjs/pagination/ListSoftwareSetsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1486 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/WorkSpacesThin.js +39 -0
- package/dist-es/WorkSpacesThinClientClient.js +39 -0
- package/dist-es/commands/CreateEnvironmentCommand.js +48 -0
- package/dist-es/commands/DeleteDeviceCommand.js +47 -0
- package/dist-es/commands/DeleteEnvironmentCommand.js +47 -0
- package/dist-es/commands/DeregisterDeviceCommand.js +47 -0
- package/dist-es/commands/GetDeviceCommand.js +48 -0
- package/dist-es/commands/GetEnvironmentCommand.js +48 -0
- package/dist-es/commands/GetSoftwareSetCommand.js +47 -0
- package/dist-es/commands/ListDevicesCommand.js +48 -0
- package/dist-es/commands/ListEnvironmentsCommand.js +48 -0
- package/dist-es/commands/ListSoftwareSetsCommand.js +47 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +48 -0
- package/dist-es/commands/TagResourceCommand.js +48 -0
- package/dist-es/commands/UntagResourceCommand.js +48 -0
- package/dist-es/commands/UpdateDeviceCommand.js +48 -0
- package/dist-es/commands/UpdateEnvironmentCommand.js +48 -0
- package/dist-es/commands/UpdateSoftwareSetCommand.js +47 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/WorkSpacesThinClientServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +258 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDevicesPaginator.js +25 -0
- package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -0
- package/dist-es/pagination/ListSoftwareSetsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1451 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/WorkSpacesThin.d.ts +133 -0
- package/dist-types/WorkSpacesThinClientClient.d.ts +196 -0
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +146 -0
- package/dist-types/commands/DeleteDeviceCommand.d.ts +92 -0
- package/dist-types/commands/DeleteEnvironmentCommand.d.ts +92 -0
- package/dist-types/commands/DeregisterDeviceCommand.d.ts +93 -0
- package/dist-types/commands/GetDeviceCommand.d.ts +113 -0
- package/dist-types/commands/GetEnvironmentCommand.d.ts +121 -0
- package/dist-types/commands/GetSoftwareSetCommand.d.ts +101 -0
- package/dist-types/commands/ListDevicesCommand.d.ts +109 -0
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +118 -0
- package/dist-types/commands/ListSoftwareSetsCommand.d.ts +96 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +84 -0
- package/dist-types/commands/TagResourceCommand.d.ts +83 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +83 -0
- package/dist-types/commands/UpdateDeviceCommand.d.ts +112 -0
- package/dist-types/commands/UpdateEnvironmentCommand.d.ts +134 -0
- package/dist-types/commands/UpdateSoftwareSetCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -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 +8 -0
- package/dist-types/index.d.ts +26 -0
- package/dist-types/models/WorkSpacesThinClientServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1506 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListDevicesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSoftwareSetsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +146 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/WorkSpacesThin.d.ts +279 -0
- package/dist-types/ts3.4/WorkSpacesThinClientClient.d.ts +217 -0
- package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteDeviceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeregisterDeviceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSoftwareSetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListSoftwareSetsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateDeviceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateEnvironmentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateSoftwareSetCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -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 +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/WorkSpacesThinClientServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +440 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListDevicesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSoftwareSetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +197 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +104 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
6
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
7
|
+
import { Hash } from "@smithy/hash-node";
|
|
8
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
9
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
10
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
11
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
12
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
13
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
15
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
16
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "node",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
29
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
30
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
31
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
35
|
+
retryMode: config?.retryMode ??
|
|
36
|
+
loadNodeConfig({
|
|
37
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
38
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
39
|
+
}),
|
|
40
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
41
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
42
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
2
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
3
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2023-08-22",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "WorkSpaces Thin Client",
|
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
const asPartial = (t) => t;
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = {
|
|
7
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
8
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
9
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
10
|
+
};
|
|
11
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
12
|
+
return {
|
|
13
|
+
...runtimeConfig,
|
|
14
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
15
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
16
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput } from "./commands/CreateEnvironmentCommand";
|
|
3
|
+
import { DeleteDeviceCommandInput, DeleteDeviceCommandOutput } from "./commands/DeleteDeviceCommand";
|
|
4
|
+
import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "./commands/DeleteEnvironmentCommand";
|
|
5
|
+
import { DeregisterDeviceCommandInput, DeregisterDeviceCommandOutput } from "./commands/DeregisterDeviceCommand";
|
|
6
|
+
import { GetDeviceCommandInput, GetDeviceCommandOutput } from "./commands/GetDeviceCommand";
|
|
7
|
+
import { GetEnvironmentCommandInput, GetEnvironmentCommandOutput } from "./commands/GetEnvironmentCommand";
|
|
8
|
+
import { GetSoftwareSetCommandInput, GetSoftwareSetCommandOutput } from "./commands/GetSoftwareSetCommand";
|
|
9
|
+
import { ListDevicesCommandInput, ListDevicesCommandOutput } from "./commands/ListDevicesCommand";
|
|
10
|
+
import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
|
|
11
|
+
import { ListSoftwareSetsCommandInput, ListSoftwareSetsCommandOutput } from "./commands/ListSoftwareSetsCommand";
|
|
12
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
13
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
14
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
15
|
+
import { UpdateDeviceCommandInput, UpdateDeviceCommandOutput } from "./commands/UpdateDeviceCommand";
|
|
16
|
+
import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
|
|
17
|
+
import { UpdateSoftwareSetCommandInput, UpdateSoftwareSetCommandOutput } from "./commands/UpdateSoftwareSetCommand";
|
|
18
|
+
import { WorkSpacesThinClientClient } from "./WorkSpacesThinClientClient";
|
|
19
|
+
export interface WorkSpacesThin {
|
|
20
|
+
/**
|
|
21
|
+
* @see {@link CreateEnvironmentCommand}
|
|
22
|
+
*/
|
|
23
|
+
createEnvironment(args: CreateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateEnvironmentCommandOutput>;
|
|
24
|
+
createEnvironment(args: CreateEnvironmentCommandInput, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
25
|
+
createEnvironment(args: CreateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link DeleteDeviceCommand}
|
|
28
|
+
*/
|
|
29
|
+
deleteDevice(args: DeleteDeviceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDeviceCommandOutput>;
|
|
30
|
+
deleteDevice(args: DeleteDeviceCommandInput, cb: (err: any, data?: DeleteDeviceCommandOutput) => void): void;
|
|
31
|
+
deleteDevice(args: DeleteDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDeviceCommandOutput) => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* @see {@link DeleteEnvironmentCommand}
|
|
34
|
+
*/
|
|
35
|
+
deleteEnvironment(args: DeleteEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEnvironmentCommandOutput>;
|
|
36
|
+
deleteEnvironment(args: DeleteEnvironmentCommandInput, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
37
|
+
deleteEnvironment(args: DeleteEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
38
|
+
/**
|
|
39
|
+
* @see {@link DeregisterDeviceCommand}
|
|
40
|
+
*/
|
|
41
|
+
deregisterDevice(args: DeregisterDeviceCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterDeviceCommandOutput>;
|
|
42
|
+
deregisterDevice(args: DeregisterDeviceCommandInput, cb: (err: any, data?: DeregisterDeviceCommandOutput) => void): void;
|
|
43
|
+
deregisterDevice(args: DeregisterDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterDeviceCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link GetDeviceCommand}
|
|
46
|
+
*/
|
|
47
|
+
getDevice(args: GetDeviceCommandInput, options?: __HttpHandlerOptions): Promise<GetDeviceCommandOutput>;
|
|
48
|
+
getDevice(args: GetDeviceCommandInput, cb: (err: any, data?: GetDeviceCommandOutput) => void): void;
|
|
49
|
+
getDevice(args: GetDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeviceCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* @see {@link GetEnvironmentCommand}
|
|
52
|
+
*/
|
|
53
|
+
getEnvironment(args: GetEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<GetEnvironmentCommandOutput>;
|
|
54
|
+
getEnvironment(args: GetEnvironmentCommandInput, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
55
|
+
getEnvironment(args: GetEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link GetSoftwareSetCommand}
|
|
58
|
+
*/
|
|
59
|
+
getSoftwareSet(args: GetSoftwareSetCommandInput, options?: __HttpHandlerOptions): Promise<GetSoftwareSetCommandOutput>;
|
|
60
|
+
getSoftwareSet(args: GetSoftwareSetCommandInput, cb: (err: any, data?: GetSoftwareSetCommandOutput) => void): void;
|
|
61
|
+
getSoftwareSet(args: GetSoftwareSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSoftwareSetCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link ListDevicesCommand}
|
|
64
|
+
*/
|
|
65
|
+
listDevices(args: ListDevicesCommandInput, options?: __HttpHandlerOptions): Promise<ListDevicesCommandOutput>;
|
|
66
|
+
listDevices(args: ListDevicesCommandInput, cb: (err: any, data?: ListDevicesCommandOutput) => void): void;
|
|
67
|
+
listDevices(args: ListDevicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDevicesCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link ListEnvironmentsCommand}
|
|
70
|
+
*/
|
|
71
|
+
listEnvironments(args: ListEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnvironmentsCommandOutput>;
|
|
72
|
+
listEnvironments(args: ListEnvironmentsCommandInput, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
73
|
+
listEnvironments(args: ListEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* @see {@link ListSoftwareSetsCommand}
|
|
76
|
+
*/
|
|
77
|
+
listSoftwareSets(args: ListSoftwareSetsCommandInput, options?: __HttpHandlerOptions): Promise<ListSoftwareSetsCommandOutput>;
|
|
78
|
+
listSoftwareSets(args: ListSoftwareSetsCommandInput, cb: (err: any, data?: ListSoftwareSetsCommandOutput) => void): void;
|
|
79
|
+
listSoftwareSets(args: ListSoftwareSetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSoftwareSetsCommandOutput) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* @see {@link ListTagsForResourceCommand}
|
|
82
|
+
*/
|
|
83
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
84
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
85
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => 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
|
+
* @see {@link UpdateDeviceCommand}
|
|
100
|
+
*/
|
|
101
|
+
updateDevice(args: UpdateDeviceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDeviceCommandOutput>;
|
|
102
|
+
updateDevice(args: UpdateDeviceCommandInput, cb: (err: any, data?: UpdateDeviceCommandOutput) => void): void;
|
|
103
|
+
updateDevice(args: UpdateDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDeviceCommandOutput) => void): void;
|
|
104
|
+
/**
|
|
105
|
+
* @see {@link UpdateEnvironmentCommand}
|
|
106
|
+
*/
|
|
107
|
+
updateEnvironment(args: UpdateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnvironmentCommandOutput>;
|
|
108
|
+
updateEnvironment(args: UpdateEnvironmentCommandInput, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
|
|
109
|
+
updateEnvironment(args: UpdateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
|
|
110
|
+
/**
|
|
111
|
+
* @see {@link UpdateSoftwareSetCommand}
|
|
112
|
+
*/
|
|
113
|
+
updateSoftwareSet(args: UpdateSoftwareSetCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSoftwareSetCommandOutput>;
|
|
114
|
+
updateSoftwareSet(args: UpdateSoftwareSetCommandInput, cb: (err: any, data?: UpdateSoftwareSetCommandOutput) => void): void;
|
|
115
|
+
updateSoftwareSet(args: UpdateSoftwareSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSoftwareSetCommandOutput) => void): void;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
* <p>Amazon WorkSpaces Thin Client is a affordable device built to work with Amazon Web Services End User
|
|
120
|
+
* Computing (EUC) virtual desktops to provide users with a complete cloud desktop
|
|
121
|
+
* solution. WorkSpaces Thin Client is a compact device designed to connect up to two monitors and USB
|
|
122
|
+
* devices like a keyboard, mouse, headset, and webcam. To maximize endpoint security, WorkSpaces Thin Client
|
|
123
|
+
* devices do not allow local data storage or installation of unapproved applications. The
|
|
124
|
+
* WorkSpaces Thin Client device ships preloaded with device management software.</p>
|
|
125
|
+
* <p>You can use these APIs to complete WorkSpaces Thin Client tasks, such as creating environments or
|
|
126
|
+
* viewing devices. For more information about WorkSpaces Thin Client, including the required permissions to
|
|
127
|
+
* use the service, see the <a href="https://docs.aws.amazon.com/workspaces-thin-client/latest/ag/">Amazon WorkSpaces Thin Client Administrator Guide</a>. For
|
|
128
|
+
* more information about using the Command Line Interface (CLI) to manage
|
|
129
|
+
* your WorkSpaces Thin Client resources, see the <a href="https://docs.aws.amazon.com/cli/latest/reference/workspaces-thin-client/index.html">WorkSpaces Thin Client section of the
|
|
130
|
+
* CLI Reference</a>.</p>
|
|
131
|
+
*/
|
|
132
|
+
export declare class WorkSpacesThin extends WorkSpacesThinClientClient implements WorkSpacesThin {
|
|
133
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
3
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
|
+
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
5
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
+
import { 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";
|
|
11
|
+
import { CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput } from "./commands/CreateEnvironmentCommand";
|
|
12
|
+
import { DeleteDeviceCommandInput, DeleteDeviceCommandOutput } from "./commands/DeleteDeviceCommand";
|
|
13
|
+
import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "./commands/DeleteEnvironmentCommand";
|
|
14
|
+
import { DeregisterDeviceCommandInput, DeregisterDeviceCommandOutput } from "./commands/DeregisterDeviceCommand";
|
|
15
|
+
import { GetDeviceCommandInput, GetDeviceCommandOutput } from "./commands/GetDeviceCommand";
|
|
16
|
+
import { GetEnvironmentCommandInput, GetEnvironmentCommandOutput } from "./commands/GetEnvironmentCommand";
|
|
17
|
+
import { GetSoftwareSetCommandInput, GetSoftwareSetCommandOutput } from "./commands/GetSoftwareSetCommand";
|
|
18
|
+
import { ListDevicesCommandInput, ListDevicesCommandOutput } from "./commands/ListDevicesCommand";
|
|
19
|
+
import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
|
|
20
|
+
import { ListSoftwareSetsCommandInput, ListSoftwareSetsCommandOutput } from "./commands/ListSoftwareSetsCommand";
|
|
21
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
22
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
23
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
24
|
+
import { UpdateDeviceCommandInput, UpdateDeviceCommandOutput } from "./commands/UpdateDeviceCommand";
|
|
25
|
+
import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
|
|
26
|
+
import { UpdateSoftwareSetCommandInput, UpdateSoftwareSetCommandOutput } from "./commands/UpdateSoftwareSetCommand";
|
|
27
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
28
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
29
|
+
export { __Client };
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export type ServiceInputTypes = CreateEnvironmentCommandInput | DeleteDeviceCommandInput | DeleteEnvironmentCommandInput | DeregisterDeviceCommandInput | GetDeviceCommandInput | GetEnvironmentCommandInput | GetSoftwareSetCommandInput | ListDevicesCommandInput | ListEnvironmentsCommandInput | ListSoftwareSetsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDeviceCommandInput | UpdateEnvironmentCommandInput | UpdateSoftwareSetCommandInput;
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export type ServiceOutputTypes = CreateEnvironmentCommandOutput | DeleteDeviceCommandOutput | DeleteEnvironmentCommandOutput | DeregisterDeviceCommandOutput | GetDeviceCommandOutput | GetEnvironmentCommandOutput | GetSoftwareSetCommandOutput | ListDevicesCommandOutput | ListEnvironmentsCommandOutput | ListSoftwareSetsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDeviceCommandOutput | UpdateEnvironmentCommandOutput | UpdateSoftwareSetCommandOutput;
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
42
|
+
/**
|
|
43
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
44
|
+
*/
|
|
45
|
+
requestHandler?: __HttpHandler;
|
|
46
|
+
/**
|
|
47
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
48
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
52
|
+
/**
|
|
53
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
urlParser?: __UrlParser;
|
|
57
|
+
/**
|
|
58
|
+
* A function that can calculate the length of a request body.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
62
|
+
/**
|
|
63
|
+
* A function that converts a stream into an array of bytes.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
streamCollector?: __StreamCollector;
|
|
67
|
+
/**
|
|
68
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
base64Decoder?: __Decoder;
|
|
72
|
+
/**
|
|
73
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
base64Encoder?: __Encoder;
|
|
77
|
+
/**
|
|
78
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
utf8Decoder?: __Decoder;
|
|
82
|
+
/**
|
|
83
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
utf8Encoder?: __Encoder;
|
|
87
|
+
/**
|
|
88
|
+
* The runtime environment.
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
runtime?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
94
|
+
* trait of an operation.
|
|
95
|
+
*/
|
|
96
|
+
disableHostPrefix?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Unique service identifier.
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
serviceId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
104
|
+
*/
|
|
105
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Enables FIPS compatible endpoints.
|
|
108
|
+
*/
|
|
109
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* The AWS region to which this client will send requests
|
|
112
|
+
*/
|
|
113
|
+
region?: string | __Provider<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Default credentials provider; Not available in browser runtime.
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
119
|
+
/**
|
|
120
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
124
|
+
/**
|
|
125
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
126
|
+
*/
|
|
127
|
+
maxAttempts?: number | __Provider<number>;
|
|
128
|
+
/**
|
|
129
|
+
* Specifies which retry algorithm to use.
|
|
130
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
retryMode?: string | __Provider<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Optional logger for logging debug/info/warn/error.
|
|
136
|
+
*/
|
|
137
|
+
logger?: __Logger;
|
|
138
|
+
/**
|
|
139
|
+
* Optional extensions
|
|
140
|
+
*/
|
|
141
|
+
extensions?: RuntimeExtension[];
|
|
142
|
+
/**
|
|
143
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
144
|
+
*/
|
|
145
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
export type WorkSpacesThinClientClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
151
|
+
/**
|
|
152
|
+
* @public
|
|
153
|
+
*
|
|
154
|
+
* The configuration interface of WorkSpacesThinClientClient class constructor that set the region, credentials and other options.
|
|
155
|
+
*/
|
|
156
|
+
export interface WorkSpacesThinClientClientConfig extends WorkSpacesThinClientClientConfigType {
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
export type WorkSpacesThinClientClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
*
|
|
165
|
+
* The resolved configuration interface of WorkSpacesThinClientClient class. This is resolved and normalized from the {@link WorkSpacesThinClientClientConfig | constructor configuration interface}.
|
|
166
|
+
*/
|
|
167
|
+
export interface WorkSpacesThinClientClientResolvedConfig extends WorkSpacesThinClientClientResolvedConfigType {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
* <p>Amazon WorkSpaces Thin Client is a affordable device built to work with Amazon Web Services End User
|
|
172
|
+
* Computing (EUC) virtual desktops to provide users with a complete cloud desktop
|
|
173
|
+
* solution. WorkSpaces Thin Client is a compact device designed to connect up to two monitors and USB
|
|
174
|
+
* devices like a keyboard, mouse, headset, and webcam. To maximize endpoint security, WorkSpaces Thin Client
|
|
175
|
+
* devices do not allow local data storage or installation of unapproved applications. The
|
|
176
|
+
* WorkSpaces Thin Client device ships preloaded with device management software.</p>
|
|
177
|
+
* <p>You can use these APIs to complete WorkSpaces Thin Client tasks, such as creating environments or
|
|
178
|
+
* viewing devices. For more information about WorkSpaces Thin Client, including the required permissions to
|
|
179
|
+
* use the service, see the <a href="https://docs.aws.amazon.com/workspaces-thin-client/latest/ag/">Amazon WorkSpaces Thin Client Administrator Guide</a>. For
|
|
180
|
+
* more information about using the Command Line Interface (CLI) to manage
|
|
181
|
+
* your WorkSpaces Thin Client resources, see the <a href="https://docs.aws.amazon.com/cli/latest/reference/workspaces-thin-client/index.html">WorkSpaces Thin Client section of the
|
|
182
|
+
* CLI Reference</a>.</p>
|
|
183
|
+
*/
|
|
184
|
+
export declare class WorkSpacesThinClientClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WorkSpacesThinClientClientResolvedConfig> {
|
|
185
|
+
/**
|
|
186
|
+
* The resolved configuration of WorkSpacesThinClientClient class. This is resolved and normalized from the {@link WorkSpacesThinClientClientConfig | constructor configuration interface}.
|
|
187
|
+
*/
|
|
188
|
+
readonly config: WorkSpacesThinClientClientResolvedConfig;
|
|
189
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<WorkSpacesThinClientClientConfig>);
|
|
190
|
+
/**
|
|
191
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
192
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
193
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
194
|
+
*/
|
|
195
|
+
destroy(): void;
|
|
196
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CreateEnvironmentRequest, CreateEnvironmentResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesThinClientClientResolvedConfig } from "../WorkSpacesThinClientClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateEnvironmentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateEnvironmentCommandInput extends CreateEnvironmentRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateEnvironmentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateEnvironmentCommandOutput extends CreateEnvironmentResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates an environment for your thin client devices.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { WorkSpacesThinClientClient, CreateEnvironmentCommand } from "@aws-sdk/client-workspaces-thin-client"; // ES Modules import
|
|
31
|
+
* // const { WorkSpacesThinClientClient, CreateEnvironmentCommand } = require("@aws-sdk/client-workspaces-thin-client"); // CommonJS import
|
|
32
|
+
* const client = new WorkSpacesThinClientClient(config);
|
|
33
|
+
* const input = { // CreateEnvironmentRequest
|
|
34
|
+
* name: "STRING_VALUE",
|
|
35
|
+
* desktopArn: "STRING_VALUE", // required
|
|
36
|
+
* desktopEndpoint: "STRING_VALUE",
|
|
37
|
+
* softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY",
|
|
38
|
+
* maintenanceWindow: { // MaintenanceWindow
|
|
39
|
+
* type: "SYSTEM" || "CUSTOM",
|
|
40
|
+
* startTimeHour: Number("int"),
|
|
41
|
+
* startTimeMinute: Number("int"),
|
|
42
|
+
* endTimeHour: Number("int"),
|
|
43
|
+
* endTimeMinute: Number("int"),
|
|
44
|
+
* daysOfTheWeek: [ // DayOfWeekList
|
|
45
|
+
* "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY",
|
|
46
|
+
* ],
|
|
47
|
+
* applyTimeOf: "UTC" || "DEVICE",
|
|
48
|
+
* },
|
|
49
|
+
* softwareSetUpdateMode: "USE_LATEST" || "USE_DESIRED",
|
|
50
|
+
* desiredSoftwareSetId: "STRING_VALUE",
|
|
51
|
+
* kmsKeyArn: "STRING_VALUE",
|
|
52
|
+
* clientToken: "STRING_VALUE",
|
|
53
|
+
* tags: { // TagsMap
|
|
54
|
+
* "<keys>": "STRING_VALUE",
|
|
55
|
+
* },
|
|
56
|
+
* };
|
|
57
|
+
* const command = new CreateEnvironmentCommand(input);
|
|
58
|
+
* const response = await client.send(command);
|
|
59
|
+
* // { // CreateEnvironmentResponse
|
|
60
|
+
* // environment: { // EnvironmentSummary
|
|
61
|
+
* // id: "STRING_VALUE",
|
|
62
|
+
* // name: "STRING_VALUE",
|
|
63
|
+
* // desktopArn: "STRING_VALUE",
|
|
64
|
+
* // desktopEndpoint: "STRING_VALUE",
|
|
65
|
+
* // desktopType: "workspaces" || "appstream" || "workspaces-web",
|
|
66
|
+
* // activationCode: "STRING_VALUE",
|
|
67
|
+
* // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY",
|
|
68
|
+
* // maintenanceWindow: { // MaintenanceWindow
|
|
69
|
+
* // type: "SYSTEM" || "CUSTOM",
|
|
70
|
+
* // startTimeHour: Number("int"),
|
|
71
|
+
* // startTimeMinute: Number("int"),
|
|
72
|
+
* // endTimeHour: Number("int"),
|
|
73
|
+
* // endTimeMinute: Number("int"),
|
|
74
|
+
* // daysOfTheWeek: [ // DayOfWeekList
|
|
75
|
+
* // "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY",
|
|
76
|
+
* // ],
|
|
77
|
+
* // applyTimeOf: "UTC" || "DEVICE",
|
|
78
|
+
* // },
|
|
79
|
+
* // softwareSetUpdateMode: "USE_LATEST" || "USE_DESIRED",
|
|
80
|
+
* // desiredSoftwareSetId: "STRING_VALUE",
|
|
81
|
+
* // pendingSoftwareSetId: "STRING_VALUE",
|
|
82
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
83
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
84
|
+
* // arn: "STRING_VALUE",
|
|
85
|
+
* // tags: { // EmbeddedTag
|
|
86
|
+
* // resourceArn: "STRING_VALUE",
|
|
87
|
+
* // internalId: "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // },
|
|
90
|
+
* // };
|
|
91
|
+
*
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @param CreateEnvironmentCommandInput - {@link CreateEnvironmentCommandInput}
|
|
95
|
+
* @returns {@link CreateEnvironmentCommandOutput}
|
|
96
|
+
* @see {@link CreateEnvironmentCommandInput} for command's `input` shape.
|
|
97
|
+
* @see {@link CreateEnvironmentCommandOutput} for command's `response` shape.
|
|
98
|
+
* @see {@link WorkSpacesThinClientClientResolvedConfig | config} for WorkSpacesThinClientClient's `config` shape.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
101
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ConflictException} (client fault)
|
|
104
|
+
* <p>The requested operation would cause a conflict with the current state of a service
|
|
105
|
+
* resource associated with the request. Resolve the conflict before retrying this
|
|
106
|
+
* request.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link InternalServerException} (server fault)
|
|
109
|
+
* <p>The server encountered an internal error and is unable to complete the request.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
112
|
+
* <p>The resource specified in the request was not found.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
115
|
+
* <p>Your request exceeds a service quota.</p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
118
|
+
* <p>The request was denied due to request throttling.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link ValidationException} (client fault)
|
|
121
|
+
* <p>The input fails to satisfy the specified constraints.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link WorkSpacesThinClientServiceException}
|
|
124
|
+
* <p>Base exception class for all service exceptions from WorkSpacesThinClient service.</p>
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
export declare class CreateEnvironmentCommand extends $Command<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput, WorkSpacesThinClientClientResolvedConfig> {
|
|
128
|
+
readonly input: CreateEnvironmentCommandInput;
|
|
129
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
130
|
+
/**
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
constructor(input: CreateEnvironmentCommandInput);
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkSpacesThinClientClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput>;
|
|
138
|
+
/**
|
|
139
|
+
* @internal
|
|
140
|
+
*/
|
|
141
|
+
private serialize;
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
private deserialize;
|
|
146
|
+
}
|