@aws-sdk/client-tnb 3.774.0 → 3.777.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/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/TnbClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/CancelSolNetworkOperationCommand.d.ts +14 -0
- package/dist-types/commands/CreateSolFunctionPackageCommand.d.ts +25 -0
- package/dist-types/commands/CreateSolNetworkInstanceCommand.d.ts +27 -0
- package/dist-types/commands/CreateSolNetworkPackageCommand.d.ts +25 -0
- package/dist-types/commands/DeleteSolFunctionPackageCommand.d.ts +14 -0
- package/dist-types/commands/DeleteSolNetworkInstanceCommand.d.ts +14 -0
- package/dist-types/commands/DeleteSolNetworkPackageCommand.d.ts +14 -0
- package/dist-types/commands/GetSolFunctionInstanceCommand.d.ts +40 -0
- package/dist-types/commands/GetSolFunctionPackageCommand.d.ts +31 -0
- package/dist-types/commands/GetSolFunctionPackageContentCommand.d.ts +18 -0
- package/dist-types/commands/GetSolFunctionPackageDescriptorCommand.d.ts +18 -0
- package/dist-types/commands/GetSolNetworkInstanceCommand.d.ts +29 -0
- package/dist-types/commands/GetSolNetworkOperationCommand.d.ts +174 -0
- package/dist-types/commands/GetSolNetworkPackageCommand.d.ts +42 -0
- package/dist-types/commands/GetSolNetworkPackageContentCommand.d.ts +18 -0
- package/dist-types/commands/GetSolNetworkPackageDescriptorCommand.d.ts +17 -0
- package/dist-types/commands/InstantiateSolNetworkInstanceCommand.d.ts +41 -0
- package/dist-types/commands/ListSolFunctionInstancesCommand.d.ts +74 -0
- package/dist-types/commands/ListSolFunctionPackagesCommand.d.ts +83 -0
- package/dist-types/commands/ListSolNetworkInstancesCommand.d.ts +58 -0
- package/dist-types/commands/ListSolNetworkOperationsCommand.d.ts +118 -0
- package/dist-types/commands/ListSolNetworkPackagesCommand.d.ts +101 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/commands/PutSolFunctionPackageContentCommand.d.ts +27 -0
- package/dist-types/commands/PutSolNetworkPackageContentCommand.d.ts +39 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/commands/TerminateSolNetworkInstanceCommand.d.ts +22 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSolFunctionPackageCommand.d.ts +33 -0
- package/dist-types/commands/UpdateSolNetworkInstanceCommand.d.ts +59 -0
- package/dist-types/commands/UpdateSolNetworkPackageCommand.d.ts +33 -0
- package/dist-types/commands/ValidateSolFunctionPackageContentCommand.d.ts +27 -0
- package/dist-types/commands/ValidateSolNetworkPackageContentCommand.d.ts +39 -0
- package/package.json +34 -34
|
@@ -40,8 +40,6 @@ const defaultTnbHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultTnbHttpAuthSchemeProvider = defaultTnbHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -125,12 +125,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
125
125
|
|
|
126
126
|
// src/endpoint/EndpointParameters.ts
|
|
127
127
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
128
|
-
return {
|
|
129
|
-
...options,
|
|
128
|
+
return Object.assign(options, {
|
|
130
129
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
131
130
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
132
131
|
defaultSigningName: "tnb"
|
|
133
|
-
};
|
|
132
|
+
});
|
|
134
133
|
}, "resolveClientEndpointParameters");
|
|
135
134
|
var commonParams = {
|
|
136
135
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -187,22 +186,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
187
186
|
}, "resolveHttpAuthRuntimeConfig");
|
|
188
187
|
|
|
189
188
|
// src/runtimeExtensions.ts
|
|
190
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
191
189
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
192
|
-
const extensionConfiguration =
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
190
|
+
const extensionConfiguration = Object.assign(
|
|
191
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
192
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
193
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
194
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
195
|
+
);
|
|
198
196
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
199
|
-
return
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
197
|
+
return Object.assign(
|
|
198
|
+
runtimeConfig,
|
|
199
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
200
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
201
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
202
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
203
|
+
);
|
|
206
204
|
}, "resolveRuntimeExtensions");
|
|
207
205
|
|
|
208
206
|
// src/TnbClient.ts
|
|
@@ -216,6 +214,8 @@ var TnbClient = class extends import_smithy_client.Client {
|
|
|
216
214
|
config;
|
|
217
215
|
constructor(...[configuration]) {
|
|
218
216
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
217
|
+
super(_config_0);
|
|
218
|
+
this.initConfig = _config_0;
|
|
219
219
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
220
220
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
221
221
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -224,7 +224,6 @@ var TnbClient = class extends import_smithy_client.Client {
|
|
|
224
224
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
225
225
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
226
226
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
227
|
-
super(_config_8);
|
|
228
227
|
this.config = _config_8;
|
|
229
228
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
230
229
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
package/dist-es/TnbClient.js
CHANGED
|
@@ -17,6 +17,8 @@ export class TnbClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class TnbClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultTnbHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "tnb",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -69,6 +69,20 @@ declare const CancelSolNetworkOperationCommand_base: {
|
|
|
69
69
|
* @throws {@link TnbServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
71
71
|
*
|
|
72
|
+
*
|
|
73
|
+
* @example Cancel a in-progress Sol Network Operation.
|
|
74
|
+
* ```javascript
|
|
75
|
+
* //
|
|
76
|
+
* const input = {
|
|
77
|
+
* nsLcmOpOccId: "no-0d5b823eb5c2a9241"
|
|
78
|
+
* };
|
|
79
|
+
* const command = new CancelSolNetworkOperationCommand(input);
|
|
80
|
+
* const response = await client.send(command);
|
|
81
|
+
* /* response is
|
|
82
|
+
* { /* metadata only *\/ }
|
|
83
|
+
* *\/
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
72
86
|
* @public
|
|
73
87
|
*/
|
|
74
88
|
export declare class CancelSolNetworkOperationCommand extends CancelSolNetworkOperationCommand_base {
|
|
@@ -84,6 +84,31 @@ declare const CreateSolFunctionPackageCommand_base: {
|
|
|
84
84
|
* @throws {@link TnbServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
86
86
|
*
|
|
87
|
+
*
|
|
88
|
+
* @example Create a Sol function package
|
|
89
|
+
* ```javascript
|
|
90
|
+
* //
|
|
91
|
+
* const input = {
|
|
92
|
+
* tags: {
|
|
93
|
+
* Name: "Resource"
|
|
94
|
+
* }
|
|
95
|
+
* };
|
|
96
|
+
* const command = new CreateSolFunctionPackageCommand(input);
|
|
97
|
+
* const response = await client.send(command);
|
|
98
|
+
* /* response is
|
|
99
|
+
* {
|
|
100
|
+
* arn: "arn:aws:tnb:us-west-2:123456789000:function-package/fp-07aa863e53460a2a6",
|
|
101
|
+
* id: "fp-07aa863e53460a2a6",
|
|
102
|
+
* onboardingState: "CREATED",
|
|
103
|
+
* operationalState: "DISABLED",
|
|
104
|
+
* tags: {
|
|
105
|
+
* Name: "Resource"
|
|
106
|
+
* },
|
|
107
|
+
* usageState: "NOT_IN_USE"
|
|
108
|
+
* }
|
|
109
|
+
* *\/
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
87
112
|
* @public
|
|
88
113
|
*/
|
|
89
114
|
export declare class CreateSolFunctionPackageCommand extends CreateSolFunctionPackageCommand_base {
|
|
@@ -89,6 +89,33 @@ declare const CreateSolNetworkInstanceCommand_base: {
|
|
|
89
89
|
* @throws {@link TnbServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
91
91
|
*
|
|
92
|
+
*
|
|
93
|
+
* @example Create a Sol Network Instance
|
|
94
|
+
* ```javascript
|
|
95
|
+
* //
|
|
96
|
+
* const input = {
|
|
97
|
+
* nsDescription: "Test network for CITY",
|
|
98
|
+
* nsName: "CITY Instance",
|
|
99
|
+
* nsdInfoId: "np-0d5b823eb5c2a9241",
|
|
100
|
+
* tags: {
|
|
101
|
+
* Name: "Resource"
|
|
102
|
+
* }
|
|
103
|
+
* };
|
|
104
|
+
* const command = new CreateSolNetworkInstanceCommand(input);
|
|
105
|
+
* const response = await client.send(command);
|
|
106
|
+
* /* response is
|
|
107
|
+
* {
|
|
108
|
+
* arn: "arn:aws:tnb:us-west-2:123456789000:network-instance/ni-07aa863e53460a2a6",
|
|
109
|
+
* id: "ni-07aa863e53460a2a6",
|
|
110
|
+
* nsInstanceName: "CITY Instance",
|
|
111
|
+
* nsdInfoId: "np-0d5b823eb5c2a9241",
|
|
112
|
+
* tags: {
|
|
113
|
+
* Name: "Resource"
|
|
114
|
+
* }
|
|
115
|
+
* }
|
|
116
|
+
* *\/
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
92
119
|
* @public
|
|
93
120
|
*/
|
|
94
121
|
export declare class CreateSolNetworkInstanceCommand extends CreateSolNetworkInstanceCommand_base {
|
|
@@ -87,6 +87,31 @@ declare const CreateSolNetworkPackageCommand_base: {
|
|
|
87
87
|
* @throws {@link TnbServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
89
89
|
*
|
|
90
|
+
*
|
|
91
|
+
* @example Create a Sol network package
|
|
92
|
+
* ```javascript
|
|
93
|
+
* //
|
|
94
|
+
* const input = {
|
|
95
|
+
* tags: {
|
|
96
|
+
* Name: "Resource"
|
|
97
|
+
* }
|
|
98
|
+
* };
|
|
99
|
+
* const command = new CreateSolNetworkPackageCommand(input);
|
|
100
|
+
* const response = await client.send(command);
|
|
101
|
+
* /* response is
|
|
102
|
+
* {
|
|
103
|
+
* arn: "arn:aws:tnb:us-west-2:123456789000:network-package/np-0d5b823eb5c2a9241",
|
|
104
|
+
* id: "np-0d5b823eb5c2a9241",
|
|
105
|
+
* nsdOnboardingState: "CREATED",
|
|
106
|
+
* nsdOperationalState: "DISABLED",
|
|
107
|
+
* nsdUsageState: "NOT_IN_USE",
|
|
108
|
+
* tags: {
|
|
109
|
+
* Name: "Resource"
|
|
110
|
+
* }
|
|
111
|
+
* }
|
|
112
|
+
* *\/
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
90
115
|
* @public
|
|
91
116
|
*/
|
|
92
117
|
export declare class CreateSolNetworkPackageCommand extends CreateSolNetworkPackageCommand_base {
|
|
@@ -71,6 +71,20 @@ declare const DeleteSolFunctionPackageCommand_base: {
|
|
|
71
71
|
* @throws {@link TnbServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
73
73
|
*
|
|
74
|
+
*
|
|
75
|
+
* @example Delete a function package
|
|
76
|
+
* ```javascript
|
|
77
|
+
* //
|
|
78
|
+
* const input = {
|
|
79
|
+
* vnfPkgId: "fp-07aa863e53460a2a6"
|
|
80
|
+
* };
|
|
81
|
+
* const command = new DeleteSolFunctionPackageCommand(input);
|
|
82
|
+
* const response = await client.send(command);
|
|
83
|
+
* /* response is
|
|
84
|
+
* { /* metadata only *\/ }
|
|
85
|
+
* *\/
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
74
88
|
* @public
|
|
75
89
|
*/
|
|
76
90
|
export declare class DeleteSolFunctionPackageCommand extends DeleteSolFunctionPackageCommand_base {
|
|
@@ -71,6 +71,20 @@ declare const DeleteSolNetworkInstanceCommand_base: {
|
|
|
71
71
|
* @throws {@link TnbServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
73
73
|
*
|
|
74
|
+
*
|
|
75
|
+
* @example Delete a Sol Network Instance.
|
|
76
|
+
* ```javascript
|
|
77
|
+
* //
|
|
78
|
+
* const input = {
|
|
79
|
+
* nsInstanceId: "ni-07aa863e53460a2a6"
|
|
80
|
+
* };
|
|
81
|
+
* const command = new DeleteSolNetworkInstanceCommand(input);
|
|
82
|
+
* const response = await client.send(command);
|
|
83
|
+
* /* response is
|
|
84
|
+
* { /* metadata only *\/ }
|
|
85
|
+
* *\/
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
74
88
|
* @public
|
|
75
89
|
*/
|
|
76
90
|
export declare class DeleteSolNetworkInstanceCommand extends DeleteSolNetworkInstanceCommand_base {
|
|
@@ -71,6 +71,20 @@ declare const DeleteSolNetworkPackageCommand_base: {
|
|
|
71
71
|
* @throws {@link TnbServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
73
73
|
*
|
|
74
|
+
*
|
|
75
|
+
* @example Delete a Sol network package
|
|
76
|
+
* ```javascript
|
|
77
|
+
* //
|
|
78
|
+
* const input = {
|
|
79
|
+
* nsdInfoId: "np-0d5b823eb5c2a9241"
|
|
80
|
+
* };
|
|
81
|
+
* const command = new DeleteSolNetworkPackageCommand(input);
|
|
82
|
+
* const response = await client.send(command);
|
|
83
|
+
* /* response is
|
|
84
|
+
* { /* metadata only *\/ }
|
|
85
|
+
* *\/
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
74
88
|
* @public
|
|
75
89
|
*/
|
|
76
90
|
export declare class DeleteSolNetworkPackageCommand extends DeleteSolNetworkPackageCommand_base {
|
|
@@ -99,6 +99,46 @@ declare const GetSolFunctionInstanceCommand_base: {
|
|
|
99
99
|
* @throws {@link TnbServiceException}
|
|
100
100
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
101
101
|
*
|
|
102
|
+
*
|
|
103
|
+
* @example Get a Sol Network Function Instance details
|
|
104
|
+
* ```javascript
|
|
105
|
+
* //
|
|
106
|
+
* const input = {
|
|
107
|
+
* vnfInstanceId: "fi-b9439c34c1ef86c54"
|
|
108
|
+
* };
|
|
109
|
+
* const command = new GetSolFunctionInstanceCommand(input);
|
|
110
|
+
* const response = await client.send(command);
|
|
111
|
+
* /* response is
|
|
112
|
+
* {
|
|
113
|
+
* arn: "arn:aws:tnb:us-west-2:123456789000:function-instance/fi-b9439c34c1ef86c54",
|
|
114
|
+
* id: "fi-b9439c34c1ef86c54",
|
|
115
|
+
* instantiatedVnfInfo: {
|
|
116
|
+
* vnfState: "STARTED",
|
|
117
|
+
* vnfcResourceInfo: [
|
|
118
|
+
* {
|
|
119
|
+
* metadata: {
|
|
120
|
+
* cluster: "TestCluster",
|
|
121
|
+
* helmChart: "VnfHelmChart01",
|
|
122
|
+
* nodeGroup: "Core-EKS-TEST01-EKSNodeGroup-94BNRKWRV6MP"
|
|
123
|
+
* }
|
|
124
|
+
* }
|
|
125
|
+
* ]
|
|
126
|
+
* },
|
|
127
|
+
* instantiationState: "INSTANTIATED",
|
|
128
|
+
* metadata: {
|
|
129
|
+
* createdAt: "2022-06-10T19:48:33Z",
|
|
130
|
+
* lastModified: "2022-06-10T19:48:33Z"
|
|
131
|
+
* },
|
|
132
|
+
* nsInstanceId: "ni-07aa863e53460a2a6",
|
|
133
|
+
* vnfPkgId: "fp-07aa863e53460a2a6",
|
|
134
|
+
* vnfProductName: "VNFBuilder-AMF",
|
|
135
|
+
* vnfProvider: "VNFBuilder",
|
|
136
|
+
* vnfdId: "6625a858-2157-4d74-9197-a6ff67d51f3e",
|
|
137
|
+
* vnfdVersion: "1.0"
|
|
138
|
+
* }
|
|
139
|
+
* *\/
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
102
142
|
* @public
|
|
103
143
|
*/
|
|
104
144
|
export declare class GetSolFunctionInstanceCommand extends GetSolFunctionInstanceCommand_base {
|
|
@@ -95,6 +95,37 @@ declare const GetSolFunctionPackageCommand_base: {
|
|
|
95
95
|
* @throws {@link TnbServiceException}
|
|
96
96
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
97
97
|
*
|
|
98
|
+
*
|
|
99
|
+
* @example Describe a function package with correct vnfPkgId
|
|
100
|
+
* ```javascript
|
|
101
|
+
* //
|
|
102
|
+
* const input = {
|
|
103
|
+
* vnfPkgId: "fp-07aa863e53460a2a6"
|
|
104
|
+
* };
|
|
105
|
+
* const command = new GetSolFunctionPackageCommand(input);
|
|
106
|
+
* const response = await client.send(command);
|
|
107
|
+
* /* response is
|
|
108
|
+
* {
|
|
109
|
+
* arn: "arn:aws:tnb:us-west-2:123456789000:function-package/fp-07aa863e53460a2a6",
|
|
110
|
+
* id: "fp-07aa863e53460a2a6",
|
|
111
|
+
* metadata: {
|
|
112
|
+
* createdAt: "2022-06-10T19:48:34Z",
|
|
113
|
+
* lastModified: "2022-06-10T21:48:33Z",
|
|
114
|
+
* vnfd: {
|
|
115
|
+
* overrides: []
|
|
116
|
+
* }
|
|
117
|
+
* },
|
|
118
|
+
* onboardingState: "ONBOARDED",
|
|
119
|
+
* operationalState: "ENABLED",
|
|
120
|
+
* usageState: "IN_USE",
|
|
121
|
+
* vnfProductName: "NRF",
|
|
122
|
+
* vnfProvider: "VNFBuilder",
|
|
123
|
+
* vnfdId: "eefaac4a-cf5c-4b1f-869e-9d31a9fa6d71",
|
|
124
|
+
* vnfdVersion: "1.0.0"
|
|
125
|
+
* }
|
|
126
|
+
* *\/
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
98
129
|
* @public
|
|
99
130
|
*/
|
|
100
131
|
export declare class GetSolFunctionPackageCommand extends GetSolFunctionPackageCommand_base {
|
|
@@ -80,6 +80,24 @@ declare const GetSolFunctionPackageContentCommand_base: {
|
|
|
80
80
|
* @throws {@link TnbServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
82
82
|
*
|
|
83
|
+
*
|
|
84
|
+
* @example Get the content of a function package
|
|
85
|
+
* ```javascript
|
|
86
|
+
* //
|
|
87
|
+
* const input = {
|
|
88
|
+
* accept: "application/zip",
|
|
89
|
+
* vnfPkgId: "fp-07aa863e53460a2a6"
|
|
90
|
+
* };
|
|
91
|
+
* const command = new GetSolFunctionPackageContentCommand(input);
|
|
92
|
+
* const response = await client.send(command);
|
|
93
|
+
* /* response is
|
|
94
|
+
* {
|
|
95
|
+
* contentType: "application/zip",
|
|
96
|
+
* packageContent: "dGVzdCBjb250ZW50IGhlcmU="
|
|
97
|
+
* }
|
|
98
|
+
* *\/
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
83
101
|
* @public
|
|
84
102
|
*/
|
|
85
103
|
export declare class GetSolFunctionPackageContentCommand extends GetSolFunctionPackageContentCommand_base {
|
|
@@ -81,6 +81,24 @@ declare const GetSolFunctionPackageDescriptorCommand_base: {
|
|
|
81
81
|
* @throws {@link TnbServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
83
83
|
*
|
|
84
|
+
*
|
|
85
|
+
* @example Get the descriptor of a function package
|
|
86
|
+
* ```javascript
|
|
87
|
+
* //
|
|
88
|
+
* const input = {
|
|
89
|
+
* accept: "text/plain",
|
|
90
|
+
* vnfPkgId: "fp-07aa863e53460a2a6"
|
|
91
|
+
* };
|
|
92
|
+
* const command = new GetSolFunctionPackageDescriptorCommand(input);
|
|
93
|
+
* const response = await client.send(command);
|
|
94
|
+
* /* response is
|
|
95
|
+
* {
|
|
96
|
+
* contentType: "text/plain",
|
|
97
|
+
* vnfd: "dGVzdCBjb250ZW50IGhlcmU="
|
|
98
|
+
* }
|
|
99
|
+
* *\/
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
84
102
|
* @public
|
|
85
103
|
*/
|
|
86
104
|
export declare class GetSolFunctionPackageDescriptorCommand extends GetSolFunctionPackageDescriptorCommand_base {
|
|
@@ -87,6 +87,35 @@ declare const GetSolNetworkInstanceCommand_base: {
|
|
|
87
87
|
* @throws {@link TnbServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from Tnb service.</p>
|
|
89
89
|
*
|
|
90
|
+
*
|
|
91
|
+
* @example Get a Sol Network Instance details
|
|
92
|
+
* ```javascript
|
|
93
|
+
* //
|
|
94
|
+
* const input = {
|
|
95
|
+
* nsInstanceId: "ni-07aa863e53460a2a6"
|
|
96
|
+
* };
|
|
97
|
+
* const command = new GetSolNetworkInstanceCommand(input);
|
|
98
|
+
* const response = await client.send(command);
|
|
99
|
+
* /* response is
|
|
100
|
+
* {
|
|
101
|
+
* arn: "arn:aws:tnb:us-west-2:123456789000:network-instance/ni-07aa863e53460a2a6",
|
|
102
|
+
* id: "ni-07aa863e53460a2a6",
|
|
103
|
+
* lcmOpInfo: {
|
|
104
|
+
* nsLcmOpOccId: "no-0d5b823eb5c2a9241"
|
|
105
|
+
* },
|
|
106
|
+
* metadata: {
|
|
107
|
+
* createdAt: "2022-06-10T19:48:33Z",
|
|
108
|
+
* lastModified: "2022-06-10T19:48:33Z"
|
|
109
|
+
* },
|
|
110
|
+
* nsInstanceDescription: "Network service for CITY",
|
|
111
|
+
* nsInstanceName: "CITY Instance",
|
|
112
|
+
* nsState: "INSTANTIATED",
|
|
113
|
+
* nsdId: "6625a858-2157-4d74-9197-a6ff67d51f3e",
|
|
114
|
+
* nsdInfoId: "np-07aa863e53460a2a6"
|
|
115
|
+
* }
|
|
116
|
+
* *\/
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
90
119
|
* @public
|
|
91
120
|
*/
|
|
92
121
|
export declare class GetSolNetworkInstanceCommand extends GetSolNetworkInstanceCommand_base {
|