@aws-sdk/client-grafana 3.1046.0 → 3.1048.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.
Files changed (31) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +2 -2
  2. package/dist-cjs/index.js +14 -13
  3. package/dist-cjs/runtimeConfig.browser.js +5 -5
  4. package/dist-cjs/runtimeConfig.js +2 -3
  5. package/dist-cjs/schemas/schemas_0.js +7 -6
  6. package/dist-es/GrafanaClient.js +1 -4
  7. package/dist-es/endpoint/endpointResolver.js +1 -1
  8. package/dist-es/models/enums.js +4 -0
  9. package/dist-es/runtimeConfig.browser.js +1 -1
  10. package/dist-es/runtimeConfig.js +1 -2
  11. package/dist-es/runtimeExtensions.js +1 -1
  12. package/dist-es/schemas/schemas_0.js +7 -6
  13. package/dist-types/GrafanaClient.d.ts +1 -2
  14. package/dist-types/commands/AssociateLicenseCommand.d.ts +1 -0
  15. package/dist-types/commands/CreateWorkspaceCommand.d.ts +2 -0
  16. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +1 -0
  17. package/dist-types/commands/DescribeWorkspaceCommand.d.ts +1 -0
  18. package/dist-types/commands/DisassociateLicenseCommand.d.ts +1 -0
  19. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +2 -0
  20. package/dist-types/models/enums.d.ts +18 -0
  21. package/dist-types/models/models_0.d.ts +16 -1
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  23. package/dist-types/runtimeConfig.d.ts +1 -1
  24. package/dist-types/runtimeConfig.native.d.ts +1 -1
  25. package/dist-types/ts3.4/GrafanaClient.d.ts +1 -3
  26. package/dist-types/ts3.4/models/enums.d.ts +5 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  29. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  31. package/package.json +6 -14
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@aws-sdk/util-endpoints");
4
+ const client_1 = require("@aws-sdk/core/client");
5
5
  const endpoints_1 = require("@smithy/core/endpoints");
6
6
  const bdd_1 = require("./bdd");
7
7
  const cache = new endpoints_1.EndpointCache({
@@ -15,4 +15,4 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {
15
15
  }));
16
16
  };
17
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
18
+ endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,9 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
- var middlewareLogger = require('@aws-sdk/middleware-logger');
5
- var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
- var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
3
+ var client$1 = require('@aws-sdk/core/client');
7
4
  var core = require('@smithy/core');
8
5
  var client = require('@smithy/core/client');
9
6
  var config = require('@smithy/core/config');
@@ -13,7 +10,6 @@ var retry = require('@smithy/core/retry');
13
10
  var schema = require('@smithy/core/schema');
14
11
  var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
12
  var runtimeConfig = require('./runtimeConfig');
16
- var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
13
  var schemas_0 = require('./schemas/schemas_0');
18
14
  var errors = require('./models/errors');
19
15
  var GrafanaServiceException = require('./models/GrafanaServiceException');
@@ -72,9 +68,9 @@ const resolveHttpAuthRuntimeConfig = (config) => {
72
68
  };
73
69
 
74
70
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
- const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
71
+ const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
72
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
- return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
73
+ return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
74
  };
79
75
 
80
76
  class GrafanaClient extends client.Client {
@@ -84,21 +80,21 @@ class GrafanaClient extends client.Client {
84
80
  super(_config_0);
85
81
  this.initConfig = _config_0;
86
82
  const _config_1 = resolveClientEndpointParameters(_config_0);
87
- const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
83
+ const _config_2 = client$1.resolveUserAgentConfig(_config_1);
88
84
  const _config_3 = retry.resolveRetryConfig(_config_2);
89
85
  const _config_4 = config.resolveRegionConfig(_config_3);
90
- const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
86
+ const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
91
87
  const _config_6 = endpoints.resolveEndpointConfig(_config_5);
92
88
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
89
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
90
  this.config = _config_8;
95
91
  this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
96
- this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
92
+ this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
97
93
  this.middlewareStack.use(retry.getRetryPlugin(this.config));
98
94
  this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
99
- this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
100
- this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
101
- this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
95
+ this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
96
+ this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
97
+ this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
102
98
  this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
103
99
  httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultGrafanaHttpAuthSchemeParametersProvider,
104
100
  identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
@@ -493,6 +489,10 @@ const DataSourceType = {
493
489
  TWINMAKER: "TWINMAKER",
494
490
  XRAY: "XRAY",
495
491
  };
492
+ const IPAddressType = {
493
+ DUAL_STACK: "DualStack",
494
+ IPV4: "IPv4",
495
+ };
496
496
  const NotificationDestinationType = {
497
497
  SNS: "SNS",
498
498
  };
@@ -550,6 +550,7 @@ exports.DescribeWorkspaceConfigurationCommand = DescribeWorkspaceConfigurationCo
550
550
  exports.DisassociateLicenseCommand = DisassociateLicenseCommand;
551
551
  exports.Grafana = Grafana;
552
552
  exports.GrafanaClient = GrafanaClient;
553
+ exports.IPAddressType = IPAddressType;
553
554
  exports.LicenseType = LicenseType;
554
555
  exports.ListPermissionsCommand = ListPermissionsCommand;
555
556
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -4,8 +4,8 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
- const client_1 = require("@smithy/core/client");
7
+ const client_1 = require("@aws-sdk/core/client");
8
+ const client_2 = require("@smithy/core/client");
9
9
  const config_1 = require("@smithy/core/config");
10
10
  const retry_1 = require("@smithy/core/retry");
11
11
  const serde_1 = require("@smithy/core/serde");
@@ -13,7 +13,7 @@ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
13
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
14
  const getRuntimeConfig = (config) => {
15
15
  const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_1.loadConfigsForDefaultMode);
16
+ const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
17
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
18
18
  return {
19
19
  ...clientSharedValues,
@@ -22,9 +22,9 @@ const getRuntimeConfig = (config) => {
22
22
  defaultsMode,
23
23
  bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
24
24
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
25
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
26
  maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_1.invalidProvider)("Region is missing"),
27
+ region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
28
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
29
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
30
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
@@ -6,7 +6,6 @@ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const client_1 = require("@aws-sdk/core/client");
7
7
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
8
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
- const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
10
9
  const client_2 = require("@smithy/core/client");
11
10
  const config_1 = require("@smithy/core/config");
12
11
  const retry_1 = require("@smithy/core/retry");
@@ -31,7 +30,7 @@ const getRuntimeConfig = (config) => {
31
30
  authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
32
31
  bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
33
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
34
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
34
  maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
35
  region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
37
36
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -44,7 +43,7 @@ const getRuntimeConfig = (config) => {
44
43
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
44
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
45
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
47
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
46
+ userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
48
47
  };
49
48
  };
50
49
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -162,6 +162,7 @@ const _hE = "httpError";
162
162
  const _hH = "httpHeader";
163
163
  const _hQ = "httpQuery";
164
164
  const _i = "id";
165
+ const _iAT = "ipAddressType";
165
166
  const _iD = "isDisabled";
166
167
  const _iM = "idpMetadata";
167
168
  const _k = "key";
@@ -340,8 +341,8 @@ exports.CreateWorkspaceApiKeyResponse$ = [3, n0, _CWAKRr,
340
341
  ];
341
342
  exports.CreateWorkspaceRequest$ = [3, n0, _CWR,
342
343
  0,
343
- [_aAT, _pT, _aP, _cT, _oRN, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _t, _vC, _co, _nAC, _gV, _kKI],
344
- [0, 0, 64 | 0, [0, 4], [() => OrganizationRoleName, 0], 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], 128 | 0, () => exports.VpcConfiguration$, [() => OverridableConfigurationJson, 0], () => exports.NetworkAccessConfiguration$, 0, 0], 3
344
+ [_aAT, _pT, _aP, _cT, _oRN, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _t, _vC, _co, _nAC, _gV, _iAT, _kKI],
345
+ [0, 0, 64 | 0, [0, 4], [() => OrganizationRoleName, 0], 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], 128 | 0, () => exports.VpcConfiguration$, [() => OverridableConfigurationJson, 0], () => exports.NetworkAccessConfiguration$, 0, 0, 0], 3
345
346
  ];
346
347
  exports.CreateWorkspaceResponse$ = [3, n0, _CWRr,
347
348
  0,
@@ -610,8 +611,8 @@ exports.UpdateWorkspaceConfigurationResponse$ = [3, n0, _UWCRp,
610
611
  ];
611
612
  exports.UpdateWorkspaceRequest$ = [3, n0, _UWR,
612
613
  0,
613
- [_wI, _aAT, _oRN, _pT, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _vC, _rVC, _nAC, _rNAC],
614
- [[0, 1], 0, [() => OrganizationRoleName, 0], 0, 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], () => exports.VpcConfiguration$, 2, () => exports.NetworkAccessConfiguration$, 2], 1
614
+ [_wI, _aAT, _oRN, _pT, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _vC, _rVC, _nAC, _rNAC, _iAT],
615
+ [[0, 1], 0, [() => OrganizationRoleName, 0], 0, 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], () => exports.VpcConfiguration$, 2, () => exports.NetworkAccessConfiguration$, 2, 0], 1
615
616
  ];
616
617
  exports.UpdateWorkspaceResponse$ = [3, n0, _UWRp,
617
618
  0,
@@ -635,8 +636,8 @@ exports.VpcConfiguration$ = [3, n0, _VC,
635
636
  ];
636
637
  exports.WorkspaceDescription$ = [3, n0, _WD,
637
638
  0,
638
- [_cr, _dS, _en, _gV, _i, _mo, _st, _au, _aAT, _d, _n, _oRN, _nD, _oU, _pT, _sSN, _wRA, _lT, _fTC, _lE, _fTE, _t, _vC, _nAC, _gT, _kKI],
639
- [4, 64 | 0, 0, 0, 0, 4, 0, () => exports.AuthenticationSummary$, 0, [() => Description, 0], [() => WorkspaceName, 0], [() => OrganizationRoleName, 0], 64 | 0, [() => OrganizationalUnitList, 0], 0, 0, [() => IamRoleArn, 0], 0, 2, 4, 4, 128 | 0, () => exports.VpcConfiguration$, () => exports.NetworkAccessConfiguration$, 0, 0], 8
639
+ [_cr, _dS, _en, _gV, _i, _mo, _st, _au, _aAT, _d, _n, _oRN, _nD, _oU, _pT, _sSN, _wRA, _lT, _fTC, _lE, _fTE, _t, _vC, _nAC, _gT, _iAT, _kKI],
640
+ [4, 64 | 0, 0, 0, 0, 4, 0, () => exports.AuthenticationSummary$, 0, [() => Description, 0], [() => WorkspaceName, 0], [() => OrganizationRoleName, 0], 64 | 0, [() => OrganizationalUnitList, 0], 0, 0, [() => IamRoleArn, 0], 0, 2, 4, 4, 128 | 0, () => exports.VpcConfiguration$, () => exports.NetworkAccessConfiguration$, 0, 0, 0], 8
640
641
  ];
641
642
  exports.WorkspaceSummary$ = [3, n0, _WS,
642
643
  0,
@@ -1,7 +1,4 @@
1
- import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
- import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
- import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
5
2
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
6
3
  import { Client as __Client, } from "@smithy/core/client";
7
4
  import { resolveRegionConfig } from "@smithy/core/config";
@@ -1,4 +1,4 @@
1
- import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/core/client";
2
2
  import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
3
  import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
@@ -31,6 +31,10 @@ export const DataSourceType = {
31
31
  TWINMAKER: "TWINMAKER",
32
32
  XRAY: "XRAY",
33
33
  };
34
+ export const IPAddressType = {
35
+ DUAL_STACK: "DualStack",
36
+ IPV4: "IPv4",
37
+ };
34
38
  export const NotificationDestinationType = {
35
39
  SNS: "SNS",
36
40
  };
@@ -1,6 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
- import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
3
+ import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
4
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
5
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
6
6
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
@@ -1,8 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core/client";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
3
3
  import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
- import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
6
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
7
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
@@ -1,4 +1,4 @@
1
- import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
2
2
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
3
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
@@ -157,6 +157,7 @@ const _hE = "httpError";
157
157
  const _hH = "httpHeader";
158
158
  const _hQ = "httpQuery";
159
159
  const _i = "id";
160
+ const _iAT = "ipAddressType";
160
161
  const _iD = "isDisabled";
161
162
  const _iM = "idpMetadata";
162
163
  const _k = "key";
@@ -335,8 +336,8 @@ export var CreateWorkspaceApiKeyResponse$ = [3, n0, _CWAKRr,
335
336
  ];
336
337
  export var CreateWorkspaceRequest$ = [3, n0, _CWR,
337
338
  0,
338
- [_aAT, _pT, _aP, _cT, _oRN, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _t, _vC, _co, _nAC, _gV, _kKI],
339
- [0, 0, 64 | 0, [0, 4], [() => OrganizationRoleName, 0], 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], 128 | 0, () => VpcConfiguration$, [() => OverridableConfigurationJson, 0], () => NetworkAccessConfiguration$, 0, 0], 3
339
+ [_aAT, _pT, _aP, _cT, _oRN, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _t, _vC, _co, _nAC, _gV, _iAT, _kKI],
340
+ [0, 0, 64 | 0, [0, 4], [() => OrganizationRoleName, 0], 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], 128 | 0, () => VpcConfiguration$, [() => OverridableConfigurationJson, 0], () => NetworkAccessConfiguration$, 0, 0, 0], 3
340
341
  ];
341
342
  export var CreateWorkspaceResponse$ = [3, n0, _CWRr,
342
343
  0,
@@ -605,8 +606,8 @@ export var UpdateWorkspaceConfigurationResponse$ = [3, n0, _UWCRp,
605
606
  ];
606
607
  export var UpdateWorkspaceRequest$ = [3, n0, _UWR,
607
608
  0,
608
- [_wI, _aAT, _oRN, _pT, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _vC, _rVC, _nAC, _rNAC],
609
- [[0, 1], 0, [() => OrganizationRoleName, 0], 0, 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], () => VpcConfiguration$, 2, () => NetworkAccessConfiguration$, 2], 1
609
+ [_wI, _aAT, _oRN, _pT, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _vC, _rVC, _nAC, _rNAC, _iAT],
610
+ [[0, 1], 0, [() => OrganizationRoleName, 0], 0, 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], () => VpcConfiguration$, 2, () => NetworkAccessConfiguration$, 2, 0], 1
610
611
  ];
611
612
  export var UpdateWorkspaceResponse$ = [3, n0, _UWRp,
612
613
  0,
@@ -630,8 +631,8 @@ export var VpcConfiguration$ = [3, n0, _VC,
630
631
  ];
631
632
  export var WorkspaceDescription$ = [3, n0, _WD,
632
633
  0,
633
- [_cr, _dS, _en, _gV, _i, _mo, _st, _au, _aAT, _d, _n, _oRN, _nD, _oU, _pT, _sSN, _wRA, _lT, _fTC, _lE, _fTE, _t, _vC, _nAC, _gT, _kKI],
634
- [4, 64 | 0, 0, 0, 0, 4, 0, () => AuthenticationSummary$, 0, [() => Description, 0], [() => WorkspaceName, 0], [() => OrganizationRoleName, 0], 64 | 0, [() => OrganizationalUnitList, 0], 0, 0, [() => IamRoleArn, 0], 0, 2, 4, 4, 128 | 0, () => VpcConfiguration$, () => NetworkAccessConfiguration$, 0, 0], 8
634
+ [_cr, _dS, _en, _gV, _i, _mo, _st, _au, _aAT, _d, _n, _oRN, _nD, _oU, _pT, _sSN, _wRA, _lT, _fTC, _lE, _fTE, _t, _vC, _nAC, _gT, _iAT, _kKI],
635
+ [4, 64 | 0, 0, 0, 0, 4, 0, () => AuthenticationSummary$, 0, [() => Description, 0], [() => WorkspaceName, 0], [() => OrganizationRoleName, 0], 64 | 0, [() => OrganizationalUnitList, 0], 0, 0, [() => IamRoleArn, 0], 0, 2, 4, 4, 128 | 0, () => VpcConfiguration$, () => NetworkAccessConfiguration$, 0, 0, 0], 8
635
636
  ];
636
637
  export var WorkspaceSummary$ = [3, n0, _WS,
637
638
  0,
@@ -1,5 +1,4 @@
1
- import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
- import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
3
2
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
4
3
  import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
5
4
  import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
@@ -99,6 +99,7 @@ declare const AssociateLicenseCommand_base: {
99
99
  * // ],
100
100
  * // },
101
101
  * // grafanaToken: "STRING_VALUE",
102
+ * // ipAddressType: "STRING_VALUE",
102
103
  * // kmsKeyId: "STRING_VALUE",
103
104
  * // },
104
105
  * // };
@@ -80,6 +80,7 @@ declare const CreateWorkspaceCommand_base: {
80
80
  * ],
81
81
  * },
82
82
  * grafanaVersion: "STRING_VALUE",
83
+ * ipAddressType: "STRING_VALUE",
83
84
  * kmsKeyId: "STRING_VALUE",
84
85
  * };
85
86
  * const command = new CreateWorkspaceCommand(input);
@@ -138,6 +139,7 @@ declare const CreateWorkspaceCommand_base: {
138
139
  * // ],
139
140
  * // },
140
141
  * // grafanaToken: "STRING_VALUE",
142
+ * // ipAddressType: "STRING_VALUE",
141
143
  * // kmsKeyId: "STRING_VALUE",
142
144
  * // },
143
145
  * // };
@@ -97,6 +97,7 @@ declare const DeleteWorkspaceCommand_base: {
97
97
  * // ],
98
98
  * // },
99
99
  * // grafanaToken: "STRING_VALUE",
100
+ * // ipAddressType: "STRING_VALUE",
100
101
  * // kmsKeyId: "STRING_VALUE",
101
102
  * // },
102
103
  * // };
@@ -97,6 +97,7 @@ declare const DescribeWorkspaceCommand_base: {
97
97
  * // ],
98
98
  * // },
99
99
  * // grafanaToken: "STRING_VALUE",
100
+ * // ipAddressType: "STRING_VALUE",
100
101
  * // kmsKeyId: "STRING_VALUE",
101
102
  * // },
102
103
  * // };
@@ -98,6 +98,7 @@ declare const DisassociateLicenseCommand_base: {
98
98
  * // ],
99
99
  * // },
100
100
  * // grafanaToken: "STRING_VALUE",
101
+ * // ipAddressType: "STRING_VALUE",
101
102
  * // kmsKeyId: "STRING_VALUE",
102
103
  * // },
103
104
  * // };
@@ -74,6 +74,7 @@ declare const UpdateWorkspaceCommand_base: {
74
74
  * ],
75
75
  * },
76
76
  * removeNetworkAccessConfiguration: true || false,
77
+ * ipAddressType: "STRING_VALUE",
77
78
  * };
78
79
  * const command = new UpdateWorkspaceCommand(input);
79
80
  * const response = await client.send(command);
@@ -131,6 +132,7 @@ declare const UpdateWorkspaceCommand_base: {
131
132
  * // ],
132
133
  * // },
133
134
  * // grafanaToken: "STRING_VALUE",
135
+ * // ipAddressType: "STRING_VALUE",
134
136
  * // kmsKeyId: "STRING_VALUE",
135
137
  * // },
136
138
  * // };
@@ -130,6 +130,24 @@ export declare const DataSourceType: {
130
130
  * @public
131
131
  */
132
132
  export type DataSourceType = (typeof DataSourceType)[keyof typeof DataSourceType];
133
+ /**
134
+ * @public
135
+ * @enum
136
+ */
137
+ export declare const IPAddressType: {
138
+ /**
139
+ * Indicates that connections to this workspace can be made over IPv4 or IPv6.
140
+ */
141
+ readonly DUAL_STACK: "DualStack";
142
+ /**
143
+ * Indicates that connections to this workspace can only be made over IPv4.
144
+ */
145
+ readonly IPV4: "IPv4";
146
+ };
147
+ /**
148
+ * @public
149
+ */
150
+ export type IPAddressType = (typeof IPAddressType)[keyof typeof IPAddressType];
133
151
  /**
134
152
  * @public
135
153
  * @enum
@@ -1,5 +1,5 @@
1
1
  import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/core/serde";
2
- import type { AccountAccessType, AuthenticationProviderTypes, DataSourceType, LicenseType, NotificationDestinationType, PermissionType, Role, SamlConfigurationStatus, UpdateAction, UserType, WorkspaceStatus } from "./enums";
2
+ import type { AccountAccessType, AuthenticationProviderTypes, DataSourceType, IPAddressType, LicenseType, NotificationDestinationType, PermissionType, Role, SamlConfigurationStatus, UpdateAction, UserType, WorkspaceStatus } from "./enums";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -325,6 +325,11 @@ export interface WorkspaceDescription {
325
325
  * @public
326
326
  */
327
327
  grafanaToken?: string | undefined;
328
+ /**
329
+ * <p>The type of IP addresses supported for connection to the workspace. Valid values are <code>IPv4</code> and <code>DualStack</code>.</p>
330
+ * @public
331
+ */
332
+ ipAddressType?: IPAddressType | undefined;
328
333
  /**
329
334
  * <p>The ID or ARN of the Key Management Service key used for encrypting workspace data.</p>
330
335
  * @public
@@ -1267,6 +1272,11 @@ export interface CreateWorkspaceRequest {
1267
1272
  * @public
1268
1273
  */
1269
1274
  grafanaVersion?: string | undefined;
1275
+ /**
1276
+ * <p>Specifies whether the workspace supports IPv4 only, or IPv4 and IPv6. Valid values are <code>IPv4</code> and <code>DualStack</code>. For more information about IP address types, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-nac.html">Network access control</a>.</p>
1277
+ * @public
1278
+ */
1279
+ ipAddressType?: IPAddressType | undefined;
1270
1280
  /**
1271
1281
  * <p>The ID or ARN of the Key Management Service key to use for encrypting workspace data.</p>
1272
1282
  * @public
@@ -1503,6 +1513,11 @@ export interface UpdateWorkspaceRequest {
1503
1513
  * @public
1504
1514
  */
1505
1515
  removeNetworkAccessConfiguration?: boolean | undefined;
1516
+ /**
1517
+ * <p>Specifies whether the workspace supports IPv4 only, or IPv4 and IPv6. Valid values are <code>IPv4</code> and <code>DualStack</code>. For more information about IP address types, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-nac.html">Network access control</a>.</p>
1518
+ * @public
1519
+ */
1520
+ ipAddressType?: IPAddressType | undefined;
1506
1521
  }
1507
1522
  /**
1508
1523
  * @public
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: GrafanaClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: GrafanaClientConfig) => {
9
9
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
11
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
12
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
13
13
  maxAttempts: number | import("@smithy/types").Provider<number>;
14
14
  region: string | import("@smithy/types").Provider<string>;
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: GrafanaClientConfig) => {
26
26
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
27
  region: string | import("@smithy/types").Provider<any>;
28
28
  profile?: string;
29
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
29
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
30
30
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
31
31
  maxAttempts: number | import("@smithy/types").Provider<number>;
32
32
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -1,11 +1,9 @@
1
1
  import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
- } from "@aws-sdk/middleware-host-header";
5
- import {
6
4
  UserAgentInputConfig,
7
5
  UserAgentResolvedConfig,
8
- } from "@aws-sdk/middleware-user-agent";
6
+ } from "@aws-sdk/core/client";
9
7
  import {
10
8
  DefaultsMode as __DefaultsMode,
11
9
  SmithyConfiguration as __SmithyConfiguration,
@@ -42,6 +42,11 @@ export declare const DataSourceType: {
42
42
  };
43
43
  export type DataSourceType =
44
44
  (typeof DataSourceType)[keyof typeof DataSourceType];
45
+ export declare const IPAddressType: {
46
+ readonly DUAL_STACK: "DualStack";
47
+ readonly IPV4: "IPv4";
48
+ };
49
+ export type IPAddressType = (typeof IPAddressType)[keyof typeof IPAddressType];
45
50
  export declare const NotificationDestinationType: {
46
51
  readonly SNS: "SNS";
47
52
  };
@@ -3,6 +3,7 @@ import {
3
3
  AccountAccessType,
4
4
  AuthenticationProviderTypes,
5
5
  DataSourceType,
6
+ IPAddressType,
6
7
  LicenseType,
7
8
  NotificationDestinationType,
8
9
  PermissionType,
@@ -86,6 +87,7 @@ export interface WorkspaceDescription {
86
87
  vpcConfiguration?: VpcConfiguration | undefined;
87
88
  networkAccessControl?: NetworkAccessConfiguration | undefined;
88
89
  grafanaToken?: string | undefined;
90
+ ipAddressType?: IPAddressType | undefined;
89
91
  kmsKeyId?: string | undefined;
90
92
  }
91
93
  export interface AssociateLicenseResponse {
@@ -334,6 +336,7 @@ export interface CreateWorkspaceRequest {
334
336
  configuration?: __AutomaticJsonStringConversion | string | undefined;
335
337
  networkAccessControl?: NetworkAccessConfiguration | undefined;
336
338
  grafanaVersion?: string | undefined;
339
+ ipAddressType?: IPAddressType | undefined;
337
340
  kmsKeyId?: string | undefined;
338
341
  }
339
342
  export interface CreateWorkspaceResponse {
@@ -390,6 +393,7 @@ export interface UpdateWorkspaceRequest {
390
393
  removeVpcConfiguration?: boolean | undefined;
391
394
  networkAccessControl?: NetworkAccessConfiguration | undefined;
392
395
  removeNetworkAccessConfiguration?: boolean | undefined;
396
+ ipAddressType?: IPAddressType | undefined;
393
397
  }
394
398
  export interface UpdateWorkspaceResponse {
395
399
  workspace: WorkspaceDescription | undefined;
@@ -12,7 +12,7 @@ export declare const getRuntimeConfig: (config: GrafanaClientConfig) => {
12
12
  _: unknown
13
13
  ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
14
14
  defaultUserAgentProvider: (
15
- config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
15
+ config?: import("@aws-sdk/core/client").PreviouslyResolved
16
16
  ) => Promise<import("@smithy/types").UserAgent>;
17
17
  maxAttempts: number | import("@smithy/types").Provider<number>;
18
18
  region: string | import("@smithy/types").Provider<any>;
@@ -13,7 +13,7 @@ export declare const getRuntimeConfig: (config: GrafanaClientConfig) => {
13
13
  init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
14
  ) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
15
15
  defaultUserAgentProvider: (
16
- config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved
16
+ config?: import("@aws-sdk/core/client").PreviouslyResolved
17
17
  ) => Promise<import("@smithy/types").UserAgent>;
18
18
  maxAttempts: number | import("@smithy/types").Provider<number>;
19
19
  region: string | import("@smithy/types").Provider<string>;
@@ -34,7 +34,7 @@ export declare const getRuntimeConfig: (config: GrafanaClientConfig) => {
34
34
  region: string | import("@smithy/types").Provider<any>;
35
35
  profile?: string;
36
36
  defaultUserAgentProvider: (
37
- config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
37
+ config?: import("@aws-sdk/core/client").PreviouslyResolved
38
38
  ) => Promise<import("@smithy/types").UserAgent>;
39
39
  credentialDefaultProvider:
40
40
  | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-grafana",
3
3
  "description": "AWS SDK for JavaScript Grafana Client for Node.js, Browser and React Native",
4
- "version": "3.1046.0",
4
+ "version": "3.1048.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-grafana",
@@ -21,20 +21,12 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.9",
25
- "@aws-sdk/credential-provider-node": "^3.972.40",
26
- "@aws-sdk/middleware-host-header": "^3.972.11",
27
- "@aws-sdk/middleware-logger": "^3.972.10",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.12",
29
- "@aws-sdk/middleware-user-agent": "^3.972.39",
30
- "@aws-sdk/region-config-resolver": "^3.972.14",
24
+ "@aws-sdk/core": "^3.974.11",
25
+ "@aws-sdk/credential-provider-node": "^3.972.42",
31
26
  "@aws-sdk/types": "^3.973.8",
32
- "@aws-sdk/util-endpoints": "^3.996.9",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.11",
34
- "@aws-sdk/util-user-agent-node": "^3.973.25",
35
- "@smithy/core": "^3.24.1",
36
- "@smithy/fetch-http-handler": "^5.4.1",
37
- "@smithy/node-http-handler": "^4.7.1",
27
+ "@smithy/core": "^3.24.2",
28
+ "@smithy/fetch-http-handler": "^5.4.2",
29
+ "@smithy/node-http-handler": "^4.7.2",
38
30
  "@smithy/types": "^4.14.1",
39
31
  "tslib": "^2.6.2"
40
32
  },