@aws-sdk/client-workspaces 3.804.0 → 3.807.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.
@@ -23,20 +23,20 @@ const getRuntimeConfig = (config) => {
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
24
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
- const profileConfig = { profile: config?.profile };
26
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
27
27
  return {
28
28
  ...clientSharedValues,
29
29
  ...config,
30
30
  runtime: "node",
31
31
  defaultsMode,
32
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
32
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
33
33
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
34
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
35
35
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
36
  (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
37
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
38
38
  region: config?.region ??
39
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
39
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
40
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
41
41
  retryMode: config?.retryMode ??
42
42
  (0, node_config_provider_1.loadConfig)({
@@ -45,9 +45,9 @@ const getRuntimeConfig = (config) => {
45
45
  }, config),
46
46
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
47
47
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
48
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
49
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
50
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
48
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
49
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
50
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
51
51
  };
52
52
  };
53
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,20 +19,20 @@ export const getRuntimeConfig = (config) => {
19
19
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
20
  const clientSharedValues = getSharedRuntimeConfig(config);
21
21
  awsCheckVersion(process.version);
22
- const profileConfig = { profile: config?.profile };
22
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
26
26
  runtime: "node",
27
27
  defaultsMode,
28
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
28
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
29
29
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
30
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
31
31
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
32
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
33
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
34
34
  region: config?.region ??
35
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
35
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
37
  retryMode: config?.retryMode ??
38
38
  loadNodeConfig({
@@ -41,8 +41,8 @@ export const getRuntimeConfig = (config) => {
41
41
  }, config),
42
42
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
43
43
  streamCollector: config?.streamCollector ?? streamCollector,
44
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
45
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
46
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
44
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
45
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
47
47
  };
48
48
  };
@@ -73,7 +73,6 @@ declare const DescribeWorkspaceDirectoriesCommand_base: {
73
73
  * // WorkspaceSecurityGroupId: "STRING_VALUE",
74
74
  * // State: "REGISTERING" || "REGISTERED" || "DEREGISTERING" || "DEREGISTERED" || "ERROR",
75
75
  * // WorkspaceCreationProperties: { // DefaultWorkspaceCreationProperties
76
- * // EnableWorkDocs: true || false,
77
76
  * // EnableInternetAccess: true || false,
78
77
  * // DefaultOu: "STRING_VALUE",
79
78
  * // CustomSecurityGroupId: "STRING_VALUE",
@@ -37,7 +37,6 @@ declare const ModifyWorkspaceCreationPropertiesCommand_base: {
37
37
  * const input = { // ModifyWorkspaceCreationPropertiesRequest
38
38
  * ResourceId: "STRING_VALUE", // required
39
39
  * WorkspaceCreationProperties: { // WorkspaceCreationProperties
40
- * EnableWorkDocs: true || false,
41
40
  * EnableInternetAccess: true || false,
42
41
  * DefaultOu: "STRING_VALUE",
43
42
  * CustomSecurityGroupId: "STRING_VALUE",
@@ -43,7 +43,6 @@ declare const RegisterWorkspaceDirectoryCommand_base: {
43
43
  * SubnetIds: [ // SubnetIds
44
44
  * "STRING_VALUE",
45
45
  * ],
46
- * EnableWorkDocs: true || false,
47
46
  * EnableSelfService: true || false,
48
47
  * Tenancy: "DEDICATED" || "SHARED",
49
48
  * Tags: [ // TagList
@@ -2801,11 +2801,6 @@ export interface DefaultImportClientBrandingAttributes {
2801
2801
  * @public
2802
2802
  */
2803
2803
  export interface DefaultWorkspaceCreationProperties {
2804
- /**
2805
- * <p>Specifies whether the directory is enabled for Amazon WorkDocs.</p>
2806
- * @public
2807
- */
2808
- EnableWorkDocs?: boolean | undefined;
2809
2804
  /**
2810
2805
  * <p>Specifies whether to automatically assign an Elastic public IP address to WorkSpaces in
2811
2806
  * this directory by default. If enabled, the Elastic public IP address allows outbound
@@ -5783,23 +5778,6 @@ export interface ModifyWorkspaceAccessPropertiesResult {
5783
5778
  * @public
5784
5779
  */
5785
5780
  export interface WorkspaceCreationProperties {
5786
- /**
5787
- * <p>Indicates whether Amazon WorkDocs is enabled for your WorkSpaces.</p>
5788
- * <note>
5789
- * <p>If WorkDocs is already enabled for a WorkSpaces directory and you disable it, new
5790
- * WorkSpaces launched in the directory will not have WorkDocs enabled. However, WorkDocs
5791
- * remains enabled for any existing WorkSpaces, unless you either disable users' access to
5792
- * WorkDocs or you delete the WorkDocs site. To disable users' access to WorkDocs, see
5793
- * <a href="https://docs.aws.amazon.com/workdocs/latest/adminguide/inactive-user.html">Disabling Users</a> in the <i>Amazon WorkDocs Administration
5794
- * Guide</i>. To delete a WorkDocs site, see <a href="https://docs.aws.amazon.com/workdocs/latest/adminguide/manage-sites.html">Deleting a Site</a> in the
5795
- * <i>Amazon WorkDocs Administration Guide</i>.</p>
5796
- * <p>If you enable WorkDocs on a directory that already has existing WorkSpaces, the
5797
- * existing WorkSpaces and any new WorkSpaces that are launched in the directory will have
5798
- * WorkDocs enabled.</p>
5799
- * </note>
5800
- * @public
5801
- */
5802
- EnableWorkDocs?: boolean | undefined;
5803
5781
  /**
5804
5782
  * <p>Indicates whether internet access is enabled for your WorkSpaces.</p>
5805
5783
  * @public
@@ -54,14 +54,6 @@ export interface RegisterWorkspaceDirectoryRequest {
54
54
  * @public
55
55
  */
56
56
  SubnetIds?: string[] | undefined;
57
- /**
58
- * <p>Indicates whether Amazon WorkDocs is enabled or disabled. If you have enabled this
59
- * parameter and WorkDocs is not available in the Region, you will receive an
60
- * OperationNotSupportedException error. Set <code>EnableWorkDocs</code> to disabled, and try
61
- * again.</p>
62
- * @public
63
- */
64
- EnableWorkDocs?: boolean | undefined;
65
57
  /**
66
58
  * <p>Indicates whether self-service capabilities are enabled or disabled.</p>
67
59
  * @public
@@ -890,7 +890,6 @@ export interface DefaultImportClientBrandingAttributes {
890
890
  LoginMessage?: Record<string, string> | undefined;
891
891
  }
892
892
  export interface DefaultWorkspaceCreationProperties {
893
- EnableWorkDocs?: boolean | undefined;
894
893
  EnableInternetAccess?: boolean | undefined;
895
894
  DefaultOu?: string | undefined;
896
895
  CustomSecurityGroupId?: string | undefined;
@@ -1671,7 +1670,6 @@ export interface ModifyWorkspaceAccessPropertiesRequest {
1671
1670
  }
1672
1671
  export interface ModifyWorkspaceAccessPropertiesResult {}
1673
1672
  export interface WorkspaceCreationProperties {
1674
- EnableWorkDocs?: boolean | undefined;
1675
1673
  EnableInternetAccess?: boolean | undefined;
1676
1674
  DefaultOu?: string | undefined;
1677
1675
  CustomSecurityGroupId?: string | undefined;
@@ -29,7 +29,6 @@ export interface RebuildWorkspacesResult {
29
29
  export interface RegisterWorkspaceDirectoryRequest {
30
30
  DirectoryId?: string | undefined;
31
31
  SubnetIds?: string[] | undefined;
32
- EnableWorkDocs?: boolean | undefined;
33
32
  EnableSelfService?: boolean | undefined;
34
33
  Tenancy?: Tenancy | undefined;
35
34
  Tags?: Tag[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workspaces",
3
3
  "description": "AWS SDK for JavaScript Workspaces Client for Node.js, Browser and React Native",
4
- "version": "3.804.0",
4
+ "version": "3.807.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-workspaces",
@@ -20,39 +20,39 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.804.0",
24
- "@aws-sdk/credential-provider-node": "3.804.0",
23
+ "@aws-sdk/core": "3.806.0",
24
+ "@aws-sdk/credential-provider-node": "3.806.0",
25
25
  "@aws-sdk/middleware-host-header": "3.804.0",
26
26
  "@aws-sdk/middleware-logger": "3.804.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.804.0",
28
- "@aws-sdk/middleware-user-agent": "3.804.0",
29
- "@aws-sdk/region-config-resolver": "3.804.0",
28
+ "@aws-sdk/middleware-user-agent": "3.806.0",
29
+ "@aws-sdk/region-config-resolver": "3.806.0",
30
30
  "@aws-sdk/types": "3.804.0",
31
- "@aws-sdk/util-endpoints": "3.804.0",
31
+ "@aws-sdk/util-endpoints": "3.806.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.804.0",
33
- "@aws-sdk/util-user-agent-node": "3.804.0",
34
- "@smithy/config-resolver": "^4.1.0",
33
+ "@aws-sdk/util-user-agent-node": "3.806.0",
34
+ "@smithy/config-resolver": "^4.1.1",
35
35
  "@smithy/core": "^3.3.1",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",
37
37
  "@smithy/hash-node": "^4.0.2",
38
38
  "@smithy/invalid-dependency": "^4.0.2",
39
39
  "@smithy/middleware-content-length": "^4.0.2",
40
- "@smithy/middleware-endpoint": "^4.1.2",
41
- "@smithy/middleware-retry": "^4.1.3",
40
+ "@smithy/middleware-endpoint": "^4.1.3",
41
+ "@smithy/middleware-retry": "^4.1.4",
42
42
  "@smithy/middleware-serde": "^4.0.3",
43
43
  "@smithy/middleware-stack": "^4.0.2",
44
- "@smithy/node-config-provider": "^4.0.2",
44
+ "@smithy/node-config-provider": "^4.1.0",
45
45
  "@smithy/node-http-handler": "^4.0.4",
46
46
  "@smithy/protocol-http": "^5.1.0",
47
- "@smithy/smithy-client": "^4.2.2",
47
+ "@smithy/smithy-client": "^4.2.3",
48
48
  "@smithy/types": "^4.2.0",
49
49
  "@smithy/url-parser": "^4.0.2",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.10",
54
- "@smithy/util-defaults-mode-node": "^4.0.10",
55
- "@smithy/util-endpoints": "^3.0.2",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.11",
54
+ "@smithy/util-defaults-mode-node": "^4.0.11",
55
+ "@smithy/util-endpoints": "^3.0.3",
56
56
  "@smithy/util-middleware": "^4.0.2",
57
57
  "@smithy/util-retry": "^4.0.3",
58
58
  "@smithy/util-utf8": "^4.0.0",