@aws-sdk/client-marketplace-entitlement-service 3.231.0 → 3.235.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/endpoint/ruleset.js +4 -315
- package/dist-cjs/models/models_0.js +4 -29
- package/dist-cjs/protocols/Aws_json1_1.js +7 -14
- package/dist-es/endpoint/ruleset.js +4 -315
- package/dist-es/models/models_0.js +3 -28
- package/dist-es/protocols/Aws_json1_1.js +8 -15
- package/dist-types/models/models_0.d.ts +5 -45
- package/dist-types/ts3.4/models/models_0.d.ts +5 -50
- package/package.json +8 -8
|
@@ -1,318 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
builtIn: "AWS::Region",
|
|
9
|
-
required: false,
|
|
10
|
-
documentation: "The AWS region used to dispatch the request.",
|
|
11
|
-
type: "String",
|
|
12
|
-
},
|
|
13
|
-
UseDualStack: {
|
|
14
|
-
builtIn: "AWS::UseDualStack",
|
|
15
|
-
required: true,
|
|
16
|
-
default: false,
|
|
17
|
-
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
18
|
-
type: "Boolean",
|
|
19
|
-
},
|
|
20
|
-
UseFIPS: {
|
|
21
|
-
builtIn: "AWS::UseFIPS",
|
|
22
|
-
required: true,
|
|
23
|
-
default: false,
|
|
24
|
-
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
25
|
-
type: "Boolean",
|
|
26
|
-
},
|
|
27
|
-
Endpoint: {
|
|
28
|
-
builtIn: "SDK::Endpoint",
|
|
29
|
-
required: false,
|
|
30
|
-
documentation: "Override the endpoint used to send this request",
|
|
31
|
-
type: "String",
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
rules: [
|
|
35
|
-
{
|
|
36
|
-
conditions: [
|
|
37
|
-
{
|
|
38
|
-
fn: "aws.partition",
|
|
39
|
-
argv: [
|
|
40
|
-
{
|
|
41
|
-
ref: "Region",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
assign: "PartitionResult",
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
type: "tree",
|
|
48
|
-
rules: [
|
|
49
|
-
{
|
|
50
|
-
conditions: [
|
|
51
|
-
{
|
|
52
|
-
fn: "isSet",
|
|
53
|
-
argv: [
|
|
54
|
-
{
|
|
55
|
-
ref: "Endpoint",
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
fn: "parseURL",
|
|
61
|
-
argv: [
|
|
62
|
-
{
|
|
63
|
-
ref: "Endpoint",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
assign: "url",
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
type: "tree",
|
|
70
|
-
rules: [
|
|
71
|
-
{
|
|
72
|
-
conditions: [
|
|
73
|
-
{
|
|
74
|
-
fn: "booleanEquals",
|
|
75
|
-
argv: [
|
|
76
|
-
{
|
|
77
|
-
ref: "UseFIPS",
|
|
78
|
-
},
|
|
79
|
-
true,
|
|
80
|
-
],
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
84
|
-
type: "error",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
conditions: [],
|
|
88
|
-
type: "tree",
|
|
89
|
-
rules: [
|
|
90
|
-
{
|
|
91
|
-
conditions: [
|
|
92
|
-
{
|
|
93
|
-
fn: "booleanEquals",
|
|
94
|
-
argv: [
|
|
95
|
-
{
|
|
96
|
-
ref: "UseDualStack",
|
|
97
|
-
},
|
|
98
|
-
true,
|
|
99
|
-
],
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
103
|
-
type: "error",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
conditions: [],
|
|
107
|
-
endpoint: {
|
|
108
|
-
url: {
|
|
109
|
-
ref: "Endpoint",
|
|
110
|
-
},
|
|
111
|
-
properties: {},
|
|
112
|
-
headers: {},
|
|
113
|
-
},
|
|
114
|
-
type: "endpoint",
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
conditions: [
|
|
122
|
-
{
|
|
123
|
-
fn: "booleanEquals",
|
|
124
|
-
argv: [
|
|
125
|
-
{
|
|
126
|
-
ref: "UseFIPS",
|
|
127
|
-
},
|
|
128
|
-
true,
|
|
129
|
-
],
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
fn: "booleanEquals",
|
|
133
|
-
argv: [
|
|
134
|
-
{
|
|
135
|
-
ref: "UseDualStack",
|
|
136
|
-
},
|
|
137
|
-
true,
|
|
138
|
-
],
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
type: "tree",
|
|
142
|
-
rules: [
|
|
143
|
-
{
|
|
144
|
-
conditions: [
|
|
145
|
-
{
|
|
146
|
-
fn: "booleanEquals",
|
|
147
|
-
argv: [
|
|
148
|
-
true,
|
|
149
|
-
{
|
|
150
|
-
fn: "getAttr",
|
|
151
|
-
argv: [
|
|
152
|
-
{
|
|
153
|
-
ref: "PartitionResult",
|
|
154
|
-
},
|
|
155
|
-
"supportsFIPS",
|
|
156
|
-
],
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
fn: "booleanEquals",
|
|
162
|
-
argv: [
|
|
163
|
-
true,
|
|
164
|
-
{
|
|
165
|
-
fn: "getAttr",
|
|
166
|
-
argv: [
|
|
167
|
-
{
|
|
168
|
-
ref: "PartitionResult",
|
|
169
|
-
},
|
|
170
|
-
"supportsDualStack",
|
|
171
|
-
],
|
|
172
|
-
},
|
|
173
|
-
],
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
type: "tree",
|
|
177
|
-
rules: [
|
|
178
|
-
{
|
|
179
|
-
conditions: [],
|
|
180
|
-
endpoint: {
|
|
181
|
-
url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
182
|
-
properties: {},
|
|
183
|
-
headers: {},
|
|
184
|
-
},
|
|
185
|
-
type: "endpoint",
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
conditions: [],
|
|
191
|
-
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
192
|
-
type: "error",
|
|
193
|
-
},
|
|
194
|
-
],
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
conditions: [
|
|
198
|
-
{
|
|
199
|
-
fn: "booleanEquals",
|
|
200
|
-
argv: [
|
|
201
|
-
{
|
|
202
|
-
ref: "UseFIPS",
|
|
203
|
-
},
|
|
204
|
-
true,
|
|
205
|
-
],
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
type: "tree",
|
|
209
|
-
rules: [
|
|
210
|
-
{
|
|
211
|
-
conditions: [
|
|
212
|
-
{
|
|
213
|
-
fn: "booleanEquals",
|
|
214
|
-
argv: [
|
|
215
|
-
true,
|
|
216
|
-
{
|
|
217
|
-
fn: "getAttr",
|
|
218
|
-
argv: [
|
|
219
|
-
{
|
|
220
|
-
ref: "PartitionResult",
|
|
221
|
-
},
|
|
222
|
-
"supportsFIPS",
|
|
223
|
-
],
|
|
224
|
-
},
|
|
225
|
-
],
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
type: "tree",
|
|
229
|
-
rules: [
|
|
230
|
-
{
|
|
231
|
-
conditions: [],
|
|
232
|
-
type: "tree",
|
|
233
|
-
rules: [
|
|
234
|
-
{
|
|
235
|
-
conditions: [],
|
|
236
|
-
endpoint: {
|
|
237
|
-
url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
238
|
-
properties: {},
|
|
239
|
-
headers: {},
|
|
240
|
-
},
|
|
241
|
-
type: "endpoint",
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
},
|
|
245
|
-
],
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
conditions: [],
|
|
249
|
-
error: "FIPS is enabled but this partition does not support FIPS",
|
|
250
|
-
type: "error",
|
|
251
|
-
},
|
|
252
|
-
],
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
conditions: [
|
|
256
|
-
{
|
|
257
|
-
fn: "booleanEquals",
|
|
258
|
-
argv: [
|
|
259
|
-
{
|
|
260
|
-
ref: "UseDualStack",
|
|
261
|
-
},
|
|
262
|
-
true,
|
|
263
|
-
],
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
type: "tree",
|
|
267
|
-
rules: [
|
|
268
|
-
{
|
|
269
|
-
conditions: [
|
|
270
|
-
{
|
|
271
|
-
fn: "booleanEquals",
|
|
272
|
-
argv: [
|
|
273
|
-
true,
|
|
274
|
-
{
|
|
275
|
-
fn: "getAttr",
|
|
276
|
-
argv: [
|
|
277
|
-
{
|
|
278
|
-
ref: "PartitionResult",
|
|
279
|
-
},
|
|
280
|
-
"supportsDualStack",
|
|
281
|
-
],
|
|
282
|
-
},
|
|
283
|
-
],
|
|
284
|
-
},
|
|
285
|
-
],
|
|
286
|
-
type: "tree",
|
|
287
|
-
rules: [
|
|
288
|
-
{
|
|
289
|
-
conditions: [],
|
|
290
|
-
endpoint: {
|
|
291
|
-
url: "https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
292
|
-
properties: {},
|
|
293
|
-
headers: {},
|
|
294
|
-
},
|
|
295
|
-
type: "endpoint",
|
|
296
|
-
},
|
|
297
|
-
],
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
conditions: [],
|
|
301
|
-
error: "DualStack is enabled but this partition does not support DualStack",
|
|
302
|
-
type: "error",
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
conditions: [],
|
|
308
|
-
endpoint: {
|
|
309
|
-
url: "https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}",
|
|
310
|
-
properties: {},
|
|
311
|
-
headers: {},
|
|
312
|
-
},
|
|
313
|
-
type: "endpoint",
|
|
314
|
-
},
|
|
315
|
-
],
|
|
316
|
-
},
|
|
317
|
-
],
|
|
318
|
-
};
|
|
4
|
+
const s = "fn", t = "argv", u = "ref";
|
|
5
|
+
const a = false, b = true, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "error", h = "endpoint", i = { [u]: "Endpoint" }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, l = {}, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [], r = [k];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", type: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: b, default: a, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", type: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: b, default: a, documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", type: d }, Endpoint: { builtIn: "SDK::Endpoint", required: a, documentation: "Override the endpoint used to send this request", type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [{ [u]: "Region" }], assign: e }], type: f, rules: [{ conditions: [{ [s]: "isSet", [t]: o }, { [s]: "parseURL", [t]: o, assign: "url" }], type: f, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: g }, { conditions: q, type: f, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: g }, { conditions: q, endpoint: { url: i, properties: l, headers: l }, type: h }] }] }, { conditions: [j, k], type: f, rules: [{ conditions: [m, n], type: f, rules: [{ conditions: q, endpoint: { url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: g }] }, { conditions: p, type: f, rules: [{ conditions: [m], type: f, rules: [{ conditions: q, type: f, rules: [{ conditions: q, endpoint: { url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] }, { conditions: q, error: "FIPS is enabled but this partition does not support FIPS", type: g }] }, { conditions: r, type: f, rules: [{ conditions: [n], type: f, rules: [{ conditions: q, endpoint: { url: "https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "DualStack is enabled but this partition does not support DualStack", type: g }] }, { conditions: q, endpoint: { url: "https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] };
|
|
7
|
+
exports.ruleSet = _data;
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetEntitlementsResultFilterSensitiveLog = exports.EntitlementFilterSensitiveLog = exports.EntitlementValueFilterSensitiveLog = exports.GetEntitlementsRequestFilterSensitiveLog = exports.ThrottlingException = exports.InvalidParameterException = exports.InternalServiceErrorException = exports.
|
|
3
|
+
exports.GetEntitlementsResultFilterSensitiveLog = exports.EntitlementFilterSensitiveLog = exports.EntitlementValueFilterSensitiveLog = exports.GetEntitlementsRequestFilterSensitiveLog = exports.ThrottlingException = exports.InvalidParameterException = exports.InternalServiceErrorException = exports.GetEntitlementFilterName = void 0;
|
|
4
4
|
const MarketplaceEntitlementServiceServiceException_1 = require("./MarketplaceEntitlementServiceServiceException");
|
|
5
5
|
var GetEntitlementFilterName;
|
|
6
6
|
(function (GetEntitlementFilterName) {
|
|
7
7
|
GetEntitlementFilterName["CUSTOMER_IDENTIFIER"] = "CUSTOMER_IDENTIFIER";
|
|
8
8
|
GetEntitlementFilterName["DIMENSION"] = "DIMENSION";
|
|
9
9
|
})(GetEntitlementFilterName = exports.GetEntitlementFilterName || (exports.GetEntitlementFilterName = {}));
|
|
10
|
-
var EntitlementValue;
|
|
11
|
-
(function (EntitlementValue) {
|
|
12
|
-
EntitlementValue.visit = (value, visitor) => {
|
|
13
|
-
if (value.IntegerValue !== undefined)
|
|
14
|
-
return visitor.IntegerValue(value.IntegerValue);
|
|
15
|
-
if (value.DoubleValue !== undefined)
|
|
16
|
-
return visitor.DoubleValue(value.DoubleValue);
|
|
17
|
-
if (value.BooleanValue !== undefined)
|
|
18
|
-
return visitor.BooleanValue(value.BooleanValue);
|
|
19
|
-
if (value.StringValue !== undefined)
|
|
20
|
-
return visitor.StringValue(value.StringValue);
|
|
21
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
22
|
-
};
|
|
23
|
-
})(EntitlementValue = exports.EntitlementValue || (exports.EntitlementValue = {}));
|
|
24
10
|
class InternalServiceErrorException extends MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException {
|
|
25
11
|
constructor(opts) {
|
|
26
12
|
super({
|
|
@@ -64,26 +50,15 @@ const GetEntitlementsRequestFilterSensitiveLog = (obj) => ({
|
|
|
64
50
|
...obj,
|
|
65
51
|
});
|
|
66
52
|
exports.GetEntitlementsRequestFilterSensitiveLog = GetEntitlementsRequestFilterSensitiveLog;
|
|
67
|
-
const EntitlementValueFilterSensitiveLog = (obj) => {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (obj.DoubleValue !== undefined)
|
|
71
|
-
return { DoubleValue: obj.DoubleValue };
|
|
72
|
-
if (obj.BooleanValue !== undefined)
|
|
73
|
-
return { BooleanValue: obj.BooleanValue };
|
|
74
|
-
if (obj.StringValue !== undefined)
|
|
75
|
-
return { StringValue: obj.StringValue };
|
|
76
|
-
if (obj.$unknown !== undefined)
|
|
77
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
78
|
-
};
|
|
53
|
+
const EntitlementValueFilterSensitiveLog = (obj) => ({
|
|
54
|
+
...obj,
|
|
55
|
+
});
|
|
79
56
|
exports.EntitlementValueFilterSensitiveLog = EntitlementValueFilterSensitiveLog;
|
|
80
57
|
const EntitlementFilterSensitiveLog = (obj) => ({
|
|
81
58
|
...obj,
|
|
82
|
-
...(obj.Value && { Value: (0, exports.EntitlementValueFilterSensitiveLog)(obj.Value) }),
|
|
83
59
|
});
|
|
84
60
|
exports.EntitlementFilterSensitiveLog = EntitlementFilterSensitiveLog;
|
|
85
61
|
const GetEntitlementsResultFilterSensitiveLog = (obj) => ({
|
|
86
62
|
...obj,
|
|
87
|
-
...(obj.Entitlements && { Entitlements: obj.Entitlements.map((item) => (0, exports.EntitlementFilterSensitiveLog)(item)) }),
|
|
88
63
|
});
|
|
89
64
|
exports.GetEntitlementsResultFilterSensitiveLog = GetEntitlementsResultFilterSensitiveLog;
|
|
@@ -114,7 +114,7 @@ const deserializeAws_json1_1Entitlement = (output, context) => {
|
|
|
114
114
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationDate)))
|
|
115
115
|
: undefined,
|
|
116
116
|
ProductCode: (0, smithy_client_1.expectString)(output.ProductCode),
|
|
117
|
-
Value: output.Value != null ? deserializeAws_json1_1EntitlementValue(
|
|
117
|
+
Value: output.Value != null ? deserializeAws_json1_1EntitlementValue(output.Value, context) : undefined,
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
@@ -129,19 +129,12 @@ const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
|
129
129
|
return retVal;
|
|
130
130
|
};
|
|
131
131
|
const deserializeAws_json1_1EntitlementValue = (output, context) => {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
if ((0, smithy_client_1.expectInt32)(output.IntegerValue) !== undefined) {
|
|
139
|
-
return { IntegerValue: (0, smithy_client_1.expectInt32)(output.IntegerValue) };
|
|
140
|
-
}
|
|
141
|
-
if ((0, smithy_client_1.expectString)(output.StringValue) !== undefined) {
|
|
142
|
-
return { StringValue: (0, smithy_client_1.expectString)(output.StringValue) };
|
|
143
|
-
}
|
|
144
|
-
return { $unknown: Object.entries(output)[0] };
|
|
132
|
+
return {
|
|
133
|
+
BooleanValue: (0, smithy_client_1.expectBoolean)(output.BooleanValue),
|
|
134
|
+
DoubleValue: (0, smithy_client_1.limitedParseDouble)(output.DoubleValue),
|
|
135
|
+
IntegerValue: (0, smithy_client_1.expectInt32)(output.IntegerValue),
|
|
136
|
+
StringValue: (0, smithy_client_1.expectString)(output.StringValue),
|
|
137
|
+
};
|
|
145
138
|
};
|
|
146
139
|
const deserializeAws_json1_1GetEntitlementsResult = (output, context) => {
|
|
147
140
|
return {
|
|
@@ -1,315 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
builtIn: "AWS::Region",
|
|
6
|
-
required: false,
|
|
7
|
-
documentation: "The AWS region used to dispatch the request.",
|
|
8
|
-
type: "String",
|
|
9
|
-
},
|
|
10
|
-
UseDualStack: {
|
|
11
|
-
builtIn: "AWS::UseDualStack",
|
|
12
|
-
required: true,
|
|
13
|
-
default: false,
|
|
14
|
-
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
15
|
-
type: "Boolean",
|
|
16
|
-
},
|
|
17
|
-
UseFIPS: {
|
|
18
|
-
builtIn: "AWS::UseFIPS",
|
|
19
|
-
required: true,
|
|
20
|
-
default: false,
|
|
21
|
-
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
22
|
-
type: "Boolean",
|
|
23
|
-
},
|
|
24
|
-
Endpoint: {
|
|
25
|
-
builtIn: "SDK::Endpoint",
|
|
26
|
-
required: false,
|
|
27
|
-
documentation: "Override the endpoint used to send this request",
|
|
28
|
-
type: "String",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
rules: [
|
|
32
|
-
{
|
|
33
|
-
conditions: [
|
|
34
|
-
{
|
|
35
|
-
fn: "aws.partition",
|
|
36
|
-
argv: [
|
|
37
|
-
{
|
|
38
|
-
ref: "Region",
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
assign: "PartitionResult",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
type: "tree",
|
|
45
|
-
rules: [
|
|
46
|
-
{
|
|
47
|
-
conditions: [
|
|
48
|
-
{
|
|
49
|
-
fn: "isSet",
|
|
50
|
-
argv: [
|
|
51
|
-
{
|
|
52
|
-
ref: "Endpoint",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
fn: "parseURL",
|
|
58
|
-
argv: [
|
|
59
|
-
{
|
|
60
|
-
ref: "Endpoint",
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
assign: "url",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
type: "tree",
|
|
67
|
-
rules: [
|
|
68
|
-
{
|
|
69
|
-
conditions: [
|
|
70
|
-
{
|
|
71
|
-
fn: "booleanEquals",
|
|
72
|
-
argv: [
|
|
73
|
-
{
|
|
74
|
-
ref: "UseFIPS",
|
|
75
|
-
},
|
|
76
|
-
true,
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
81
|
-
type: "error",
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
conditions: [],
|
|
85
|
-
type: "tree",
|
|
86
|
-
rules: [
|
|
87
|
-
{
|
|
88
|
-
conditions: [
|
|
89
|
-
{
|
|
90
|
-
fn: "booleanEquals",
|
|
91
|
-
argv: [
|
|
92
|
-
{
|
|
93
|
-
ref: "UseDualStack",
|
|
94
|
-
},
|
|
95
|
-
true,
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
100
|
-
type: "error",
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
conditions: [],
|
|
104
|
-
endpoint: {
|
|
105
|
-
url: {
|
|
106
|
-
ref: "Endpoint",
|
|
107
|
-
},
|
|
108
|
-
properties: {},
|
|
109
|
-
headers: {},
|
|
110
|
-
},
|
|
111
|
-
type: "endpoint",
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
conditions: [
|
|
119
|
-
{
|
|
120
|
-
fn: "booleanEquals",
|
|
121
|
-
argv: [
|
|
122
|
-
{
|
|
123
|
-
ref: "UseFIPS",
|
|
124
|
-
},
|
|
125
|
-
true,
|
|
126
|
-
],
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
fn: "booleanEquals",
|
|
130
|
-
argv: [
|
|
131
|
-
{
|
|
132
|
-
ref: "UseDualStack",
|
|
133
|
-
},
|
|
134
|
-
true,
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
type: "tree",
|
|
139
|
-
rules: [
|
|
140
|
-
{
|
|
141
|
-
conditions: [
|
|
142
|
-
{
|
|
143
|
-
fn: "booleanEquals",
|
|
144
|
-
argv: [
|
|
145
|
-
true,
|
|
146
|
-
{
|
|
147
|
-
fn: "getAttr",
|
|
148
|
-
argv: [
|
|
149
|
-
{
|
|
150
|
-
ref: "PartitionResult",
|
|
151
|
-
},
|
|
152
|
-
"supportsFIPS",
|
|
153
|
-
],
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
fn: "booleanEquals",
|
|
159
|
-
argv: [
|
|
160
|
-
true,
|
|
161
|
-
{
|
|
162
|
-
fn: "getAttr",
|
|
163
|
-
argv: [
|
|
164
|
-
{
|
|
165
|
-
ref: "PartitionResult",
|
|
166
|
-
},
|
|
167
|
-
"supportsDualStack",
|
|
168
|
-
],
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
},
|
|
172
|
-
],
|
|
173
|
-
type: "tree",
|
|
174
|
-
rules: [
|
|
175
|
-
{
|
|
176
|
-
conditions: [],
|
|
177
|
-
endpoint: {
|
|
178
|
-
url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
179
|
-
properties: {},
|
|
180
|
-
headers: {},
|
|
181
|
-
},
|
|
182
|
-
type: "endpoint",
|
|
183
|
-
},
|
|
184
|
-
],
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
conditions: [],
|
|
188
|
-
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
189
|
-
type: "error",
|
|
190
|
-
},
|
|
191
|
-
],
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
conditions: [
|
|
195
|
-
{
|
|
196
|
-
fn: "booleanEquals",
|
|
197
|
-
argv: [
|
|
198
|
-
{
|
|
199
|
-
ref: "UseFIPS",
|
|
200
|
-
},
|
|
201
|
-
true,
|
|
202
|
-
],
|
|
203
|
-
},
|
|
204
|
-
],
|
|
205
|
-
type: "tree",
|
|
206
|
-
rules: [
|
|
207
|
-
{
|
|
208
|
-
conditions: [
|
|
209
|
-
{
|
|
210
|
-
fn: "booleanEquals",
|
|
211
|
-
argv: [
|
|
212
|
-
true,
|
|
213
|
-
{
|
|
214
|
-
fn: "getAttr",
|
|
215
|
-
argv: [
|
|
216
|
-
{
|
|
217
|
-
ref: "PartitionResult",
|
|
218
|
-
},
|
|
219
|
-
"supportsFIPS",
|
|
220
|
-
],
|
|
221
|
-
},
|
|
222
|
-
],
|
|
223
|
-
},
|
|
224
|
-
],
|
|
225
|
-
type: "tree",
|
|
226
|
-
rules: [
|
|
227
|
-
{
|
|
228
|
-
conditions: [],
|
|
229
|
-
type: "tree",
|
|
230
|
-
rules: [
|
|
231
|
-
{
|
|
232
|
-
conditions: [],
|
|
233
|
-
endpoint: {
|
|
234
|
-
url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
235
|
-
properties: {},
|
|
236
|
-
headers: {},
|
|
237
|
-
},
|
|
238
|
-
type: "endpoint",
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
|
-
},
|
|
242
|
-
],
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
conditions: [],
|
|
246
|
-
error: "FIPS is enabled but this partition does not support FIPS",
|
|
247
|
-
type: "error",
|
|
248
|
-
},
|
|
249
|
-
],
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
conditions: [
|
|
253
|
-
{
|
|
254
|
-
fn: "booleanEquals",
|
|
255
|
-
argv: [
|
|
256
|
-
{
|
|
257
|
-
ref: "UseDualStack",
|
|
258
|
-
},
|
|
259
|
-
true,
|
|
260
|
-
],
|
|
261
|
-
},
|
|
262
|
-
],
|
|
263
|
-
type: "tree",
|
|
264
|
-
rules: [
|
|
265
|
-
{
|
|
266
|
-
conditions: [
|
|
267
|
-
{
|
|
268
|
-
fn: "booleanEquals",
|
|
269
|
-
argv: [
|
|
270
|
-
true,
|
|
271
|
-
{
|
|
272
|
-
fn: "getAttr",
|
|
273
|
-
argv: [
|
|
274
|
-
{
|
|
275
|
-
ref: "PartitionResult",
|
|
276
|
-
},
|
|
277
|
-
"supportsDualStack",
|
|
278
|
-
],
|
|
279
|
-
},
|
|
280
|
-
],
|
|
281
|
-
},
|
|
282
|
-
],
|
|
283
|
-
type: "tree",
|
|
284
|
-
rules: [
|
|
285
|
-
{
|
|
286
|
-
conditions: [],
|
|
287
|
-
endpoint: {
|
|
288
|
-
url: "https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
289
|
-
properties: {},
|
|
290
|
-
headers: {},
|
|
291
|
-
},
|
|
292
|
-
type: "endpoint",
|
|
293
|
-
},
|
|
294
|
-
],
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
conditions: [],
|
|
298
|
-
error: "DualStack is enabled but this partition does not support DualStack",
|
|
299
|
-
type: "error",
|
|
300
|
-
},
|
|
301
|
-
],
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
conditions: [],
|
|
305
|
-
endpoint: {
|
|
306
|
-
url: "https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}",
|
|
307
|
-
properties: {},
|
|
308
|
-
headers: {},
|
|
309
|
-
},
|
|
310
|
-
type: "endpoint",
|
|
311
|
-
},
|
|
312
|
-
],
|
|
313
|
-
},
|
|
314
|
-
],
|
|
315
|
-
};
|
|
1
|
+
const s = "fn", t = "argv", u = "ref";
|
|
2
|
+
const a = false, b = true, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "error", h = "endpoint", i = { [u]: "Endpoint" }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, l = {}, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [], r = [k];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", type: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: b, default: a, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", type: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: b, default: a, documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", type: d }, Endpoint: { builtIn: "SDK::Endpoint", required: a, documentation: "Override the endpoint used to send this request", type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [{ [u]: "Region" }], assign: e }], type: f, rules: [{ conditions: [{ [s]: "isSet", [t]: o }, { [s]: "parseURL", [t]: o, assign: "url" }], type: f, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: g }, { conditions: q, type: f, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: g }, { conditions: q, endpoint: { url: i, properties: l, headers: l }, type: h }] }] }, { conditions: [j, k], type: f, rules: [{ conditions: [m, n], type: f, rules: [{ conditions: q, endpoint: { url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: g }] }, { conditions: p, type: f, rules: [{ conditions: [m], type: f, rules: [{ conditions: q, type: f, rules: [{ conditions: q, endpoint: { url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] }, { conditions: q, error: "FIPS is enabled but this partition does not support FIPS", type: g }] }, { conditions: r, type: f, rules: [{ conditions: [n], type: f, rules: [{ conditions: q, endpoint: { url: "https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "DualStack is enabled but this partition does not support DualStack", type: g }] }, { conditions: q, endpoint: { url: "https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -4,20 +4,6 @@ export var GetEntitlementFilterName;
|
|
|
4
4
|
GetEntitlementFilterName["CUSTOMER_IDENTIFIER"] = "CUSTOMER_IDENTIFIER";
|
|
5
5
|
GetEntitlementFilterName["DIMENSION"] = "DIMENSION";
|
|
6
6
|
})(GetEntitlementFilterName || (GetEntitlementFilterName = {}));
|
|
7
|
-
export var EntitlementValue;
|
|
8
|
-
(function (EntitlementValue) {
|
|
9
|
-
EntitlementValue.visit = (value, visitor) => {
|
|
10
|
-
if (value.IntegerValue !== undefined)
|
|
11
|
-
return visitor.IntegerValue(value.IntegerValue);
|
|
12
|
-
if (value.DoubleValue !== undefined)
|
|
13
|
-
return visitor.DoubleValue(value.DoubleValue);
|
|
14
|
-
if (value.BooleanValue !== undefined)
|
|
15
|
-
return visitor.BooleanValue(value.BooleanValue);
|
|
16
|
-
if (value.StringValue !== undefined)
|
|
17
|
-
return visitor.StringValue(value.StringValue);
|
|
18
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
19
|
-
};
|
|
20
|
-
})(EntitlementValue || (EntitlementValue = {}));
|
|
21
7
|
export class InternalServiceErrorException extends __BaseException {
|
|
22
8
|
constructor(opts) {
|
|
23
9
|
super({
|
|
@@ -57,23 +43,12 @@ export class ThrottlingException extends __BaseException {
|
|
|
57
43
|
export const GetEntitlementsRequestFilterSensitiveLog = (obj) => ({
|
|
58
44
|
...obj,
|
|
59
45
|
});
|
|
60
|
-
export const EntitlementValueFilterSensitiveLog = (obj) => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (obj.DoubleValue !== undefined)
|
|
64
|
-
return { DoubleValue: obj.DoubleValue };
|
|
65
|
-
if (obj.BooleanValue !== undefined)
|
|
66
|
-
return { BooleanValue: obj.BooleanValue };
|
|
67
|
-
if (obj.StringValue !== undefined)
|
|
68
|
-
return { StringValue: obj.StringValue };
|
|
69
|
-
if (obj.$unknown !== undefined)
|
|
70
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
71
|
-
};
|
|
46
|
+
export const EntitlementValueFilterSensitiveLog = (obj) => ({
|
|
47
|
+
...obj,
|
|
48
|
+
});
|
|
72
49
|
export const EntitlementFilterSensitiveLog = (obj) => ({
|
|
73
50
|
...obj,
|
|
74
|
-
...(obj.Value && { Value: EntitlementValueFilterSensitiveLog(obj.Value) }),
|
|
75
51
|
});
|
|
76
52
|
export const GetEntitlementsResultFilterSensitiveLog = (obj) => ({
|
|
77
53
|
...obj,
|
|
78
|
-
...(obj.Entitlements && { Entitlements: obj.Entitlements.map((item) => EntitlementFilterSensitiveLog(item)) }),
|
|
79
54
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MarketplaceEntitlementServiceServiceException as __BaseException } from "../models/MarketplaceEntitlementServiceServiceException";
|
|
4
4
|
import { InternalServiceErrorException, InvalidParameterException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_json1_1GetEntitlementsCommand = async (input, context) => {
|
|
@@ -109,7 +109,7 @@ const deserializeAws_json1_1Entitlement = (output, context) => {
|
|
|
109
109
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationDate)))
|
|
110
110
|
: undefined,
|
|
111
111
|
ProductCode: __expectString(output.ProductCode),
|
|
112
|
-
Value: output.Value != null ? deserializeAws_json1_1EntitlementValue(
|
|
112
|
+
Value: output.Value != null ? deserializeAws_json1_1EntitlementValue(output.Value, context) : undefined,
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
115
|
const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
@@ -124,19 +124,12 @@ const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
|
124
124
|
return retVal;
|
|
125
125
|
};
|
|
126
126
|
const deserializeAws_json1_1EntitlementValue = (output, context) => {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
if (__expectInt32(output.IntegerValue) !== undefined) {
|
|
134
|
-
return { IntegerValue: __expectInt32(output.IntegerValue) };
|
|
135
|
-
}
|
|
136
|
-
if (__expectString(output.StringValue) !== undefined) {
|
|
137
|
-
return { StringValue: __expectString(output.StringValue) };
|
|
138
|
-
}
|
|
139
|
-
return { $unknown: Object.entries(output)[0] };
|
|
127
|
+
return {
|
|
128
|
+
BooleanValue: __expectBoolean(output.BooleanValue),
|
|
129
|
+
DoubleValue: __limitedParseDouble(output.DoubleValue),
|
|
130
|
+
IntegerValue: __expectInt32(output.IntegerValue),
|
|
131
|
+
StringValue: __expectString(output.StringValue),
|
|
132
|
+
};
|
|
140
133
|
};
|
|
141
134
|
const deserializeAws_json1_1GetEntitlementsResult = (output, context) => {
|
|
142
135
|
return {
|
|
@@ -36,67 +36,27 @@ export interface GetEntitlementsRequest {
|
|
|
36
36
|
* <p>The EntitlementValue represents the amount of capacity that the customer is entitled to
|
|
37
37
|
* for the product.</p>
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
40
|
-
export declare namespace EntitlementValue {
|
|
39
|
+
export interface EntitlementValue {
|
|
41
40
|
/**
|
|
42
41
|
* <p>The IntegerValue field will be populated with an integer value when the entitlement is an
|
|
43
42
|
* integer type. Otherwise, the field will not be set.</p>
|
|
44
43
|
*/
|
|
45
|
-
|
|
46
|
-
IntegerValue: number;
|
|
47
|
-
DoubleValue?: never;
|
|
48
|
-
BooleanValue?: never;
|
|
49
|
-
StringValue?: never;
|
|
50
|
-
$unknown?: never;
|
|
51
|
-
}
|
|
44
|
+
IntegerValue?: number;
|
|
52
45
|
/**
|
|
53
46
|
* <p>The DoubleValue field will be populated with a double value when the entitlement is a
|
|
54
47
|
* double type. Otherwise, the field will not be set.</p>
|
|
55
48
|
*/
|
|
56
|
-
|
|
57
|
-
IntegerValue?: never;
|
|
58
|
-
DoubleValue: number;
|
|
59
|
-
BooleanValue?: never;
|
|
60
|
-
StringValue?: never;
|
|
61
|
-
$unknown?: never;
|
|
62
|
-
}
|
|
49
|
+
DoubleValue?: number;
|
|
63
50
|
/**
|
|
64
51
|
* <p>The BooleanValue field will be populated with a boolean value when the entitlement is a
|
|
65
52
|
* boolean type. Otherwise, the field will not be set.</p>
|
|
66
53
|
*/
|
|
67
|
-
|
|
68
|
-
IntegerValue?: never;
|
|
69
|
-
DoubleValue?: never;
|
|
70
|
-
BooleanValue: boolean;
|
|
71
|
-
StringValue?: never;
|
|
72
|
-
$unknown?: never;
|
|
73
|
-
}
|
|
54
|
+
BooleanValue?: boolean;
|
|
74
55
|
/**
|
|
75
56
|
* <p>The StringValue field will be populated with a string value when the entitlement is a
|
|
76
57
|
* string type. Otherwise, the field will not be set.</p>
|
|
77
58
|
*/
|
|
78
|
-
|
|
79
|
-
IntegerValue?: never;
|
|
80
|
-
DoubleValue?: never;
|
|
81
|
-
BooleanValue?: never;
|
|
82
|
-
StringValue: string;
|
|
83
|
-
$unknown?: never;
|
|
84
|
-
}
|
|
85
|
-
interface $UnknownMember {
|
|
86
|
-
IntegerValue?: never;
|
|
87
|
-
DoubleValue?: never;
|
|
88
|
-
BooleanValue?: never;
|
|
89
|
-
StringValue?: never;
|
|
90
|
-
$unknown: [string, any];
|
|
91
|
-
}
|
|
92
|
-
interface Visitor<T> {
|
|
93
|
-
IntegerValue: (value: number) => T;
|
|
94
|
-
DoubleValue: (value: number) => T;
|
|
95
|
-
BooleanValue: (value: boolean) => T;
|
|
96
|
-
StringValue: (value: string) => T;
|
|
97
|
-
_: (name: string, value: any) => T;
|
|
98
|
-
}
|
|
99
|
-
const visit: <T>(value: EntitlementValue, visitor: Visitor<T>) => T;
|
|
59
|
+
StringValue?: string;
|
|
100
60
|
}
|
|
101
61
|
/**
|
|
102
62
|
* <p>An entitlement represents capacity in a product owned by the customer. For example, a
|
|
@@ -10,56 +10,11 @@ export interface GetEntitlementsRequest {
|
|
|
10
10
|
NextToken?: string;
|
|
11
11
|
MaxResults?: number;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
| EntitlementValue.$UnknownMember;
|
|
19
|
-
export declare namespace EntitlementValue {
|
|
20
|
-
interface IntegerValueMember {
|
|
21
|
-
IntegerValue: number;
|
|
22
|
-
DoubleValue?: never;
|
|
23
|
-
BooleanValue?: never;
|
|
24
|
-
StringValue?: never;
|
|
25
|
-
$unknown?: never;
|
|
26
|
-
}
|
|
27
|
-
interface DoubleValueMember {
|
|
28
|
-
IntegerValue?: never;
|
|
29
|
-
DoubleValue: number;
|
|
30
|
-
BooleanValue?: never;
|
|
31
|
-
StringValue?: never;
|
|
32
|
-
$unknown?: never;
|
|
33
|
-
}
|
|
34
|
-
interface BooleanValueMember {
|
|
35
|
-
IntegerValue?: never;
|
|
36
|
-
DoubleValue?: never;
|
|
37
|
-
BooleanValue: boolean;
|
|
38
|
-
StringValue?: never;
|
|
39
|
-
$unknown?: never;
|
|
40
|
-
}
|
|
41
|
-
interface StringValueMember {
|
|
42
|
-
IntegerValue?: never;
|
|
43
|
-
DoubleValue?: never;
|
|
44
|
-
BooleanValue?: never;
|
|
45
|
-
StringValue: string;
|
|
46
|
-
$unknown?: never;
|
|
47
|
-
}
|
|
48
|
-
interface $UnknownMember {
|
|
49
|
-
IntegerValue?: never;
|
|
50
|
-
DoubleValue?: never;
|
|
51
|
-
BooleanValue?: never;
|
|
52
|
-
StringValue?: never;
|
|
53
|
-
$unknown: [string, any];
|
|
54
|
-
}
|
|
55
|
-
interface Visitor<T> {
|
|
56
|
-
IntegerValue: (value: number) => T;
|
|
57
|
-
DoubleValue: (value: number) => T;
|
|
58
|
-
BooleanValue: (value: boolean) => T;
|
|
59
|
-
StringValue: (value: string) => T;
|
|
60
|
-
_: (name: string, value: any) => T;
|
|
61
|
-
}
|
|
62
|
-
const visit: <T>(value: EntitlementValue, visitor: Visitor<T>) => T;
|
|
13
|
+
export interface EntitlementValue {
|
|
14
|
+
IntegerValue?: number;
|
|
15
|
+
DoubleValue?: number;
|
|
16
|
+
BooleanValue?: boolean;
|
|
17
|
+
StringValue?: string;
|
|
63
18
|
}
|
|
64
19
|
export interface Entitlement {
|
|
65
20
|
ProductCode?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-entitlement-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Entitlement Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.235.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.235.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.234.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.235.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.226.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.226.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@aws-sdk/middleware-host-header": "3.226.0",
|
|
31
31
|
"@aws-sdk/middleware-logger": "3.226.0",
|
|
32
32
|
"@aws-sdk/middleware-recursion-detection": "3.226.0",
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.235.0",
|
|
34
34
|
"@aws-sdk/middleware-serde": "3.226.0",
|
|
35
35
|
"@aws-sdk/middleware-signing": "3.226.0",
|
|
36
36
|
"@aws-sdk/middleware-stack": "3.226.0",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@aws-sdk/node-config-provider": "3.226.0",
|
|
39
39
|
"@aws-sdk/node-http-handler": "3.226.0",
|
|
40
40
|
"@aws-sdk/protocol-http": "3.226.0",
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
+
"@aws-sdk/smithy-client": "3.234.0",
|
|
42
42
|
"@aws-sdk/types": "3.226.0",
|
|
43
43
|
"@aws-sdk/url-parser": "3.226.0",
|
|
44
44
|
"@aws-sdk/util-base64": "3.208.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.234.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.234.0",
|
|
49
49
|
"@aws-sdk/util-endpoints": "3.226.0",
|
|
50
50
|
"@aws-sdk/util-retry": "3.229.0",
|
|
51
51
|
"@aws-sdk/util-user-agent-browser": "3.226.0",
|