@aws-sdk/client-artifact 3.709.0 → 3.710.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/README.md +8 -0
- package/dist-cjs/Artifact.js +2 -0
- package/dist-cjs/commands/ListCustomerAgreementsCommand.js +26 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +11 -1
- package/dist-cjs/pagination/ListCustomerAgreementsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +55 -1
- package/dist-es/Artifact.js +2 -0
- package/dist-es/commands/ListCustomerAgreementsCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +10 -0
- package/dist-es/pagination/ListCustomerAgreementsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +52 -0
- package/dist-types/Artifact.d.ts +8 -0
- package/dist-types/ArtifactClient.d.ts +3 -2
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +1 -1
- package/dist-types/commands/GetReportMetadataCommand.d.ts +3 -3
- package/dist-types/commands/ListCustomerAgreementsCommand.d.ts +105 -0
- package/dist-types/commands/ListReportsCommand.d.ts +3 -3
- package/dist-types/commands/PutAccountSettingsCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +131 -17
- package/dist-types/pagination/ListCustomerAgreementsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/Artifact.d.ts +18 -0
- package/dist-types/ts3.4/ArtifactClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListCustomerAgreementsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +36 -0
- package/dist-types/ts3.4/pagination/ListCustomerAgreementsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -234,6 +234,14 @@ GetTermForReport
|
|
|
234
234
|
|
|
235
235
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/artifact/command/GetTermForReportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-artifact/Interface/GetTermForReportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-artifact/Interface/GetTermForReportCommandOutput/)
|
|
236
236
|
|
|
237
|
+
</details>
|
|
238
|
+
<details>
|
|
239
|
+
<summary>
|
|
240
|
+
ListCustomerAgreements
|
|
241
|
+
</summary>
|
|
242
|
+
|
|
243
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/artifact/command/ListCustomerAgreementsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-artifact/Interface/ListCustomerAgreementsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-artifact/Interface/ListCustomerAgreementsCommandOutput/)
|
|
244
|
+
|
|
237
245
|
</details>
|
|
238
246
|
<details>
|
|
239
247
|
<summary>
|
package/dist-cjs/Artifact.js
CHANGED
|
@@ -7,6 +7,7 @@ const GetAccountSettingsCommand_1 = require("./commands/GetAccountSettingsComman
|
|
|
7
7
|
const GetReportCommand_1 = require("./commands/GetReportCommand");
|
|
8
8
|
const GetReportMetadataCommand_1 = require("./commands/GetReportMetadataCommand");
|
|
9
9
|
const GetTermForReportCommand_1 = require("./commands/GetTermForReportCommand");
|
|
10
|
+
const ListCustomerAgreementsCommand_1 = require("./commands/ListCustomerAgreementsCommand");
|
|
10
11
|
const ListReportsCommand_1 = require("./commands/ListReportsCommand");
|
|
11
12
|
const PutAccountSettingsCommand_1 = require("./commands/PutAccountSettingsCommand");
|
|
12
13
|
const commands = {
|
|
@@ -14,6 +15,7 @@ const commands = {
|
|
|
14
15
|
GetReportCommand: GetReportCommand_1.GetReportCommand,
|
|
15
16
|
GetReportMetadataCommand: GetReportMetadataCommand_1.GetReportMetadataCommand,
|
|
16
17
|
GetTermForReportCommand: GetTermForReportCommand_1.GetTermForReportCommand,
|
|
18
|
+
ListCustomerAgreementsCommand: ListCustomerAgreementsCommand_1.ListCustomerAgreementsCommand,
|
|
17
19
|
ListReportsCommand: ListReportsCommand_1.ListReportsCommand,
|
|
18
20
|
PutAccountSettingsCommand: PutAccountSettingsCommand_1.PutAccountSettingsCommand,
|
|
19
21
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListCustomerAgreementsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListCustomerAgreementsCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("Artifact", "ListCustomerAgreements", {})
|
|
20
|
+
.n("ArtifactClient", "ListCustomerAgreementsCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_ListCustomerAgreementsCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_ListCustomerAgreementsCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.ListCustomerAgreementsCommand = ListCustomerAgreementsCommand;
|
|
@@ -5,5 +5,6 @@ tslib_1.__exportStar(require("./GetAccountSettingsCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./GetReportCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./GetReportMetadataCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetTermForReportCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListCustomerAgreementsCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./ListReportsCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./PutAccountSettingsCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadState = exports.PublishedState = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.NotificationSubscriptionStatus = exports.AccessDeniedException = exports.AcceptanceType = void 0;
|
|
3
|
+
exports.UploadState = exports.PublishedState = exports.CustomerAgreementState = exports.AgreementType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.NotificationSubscriptionStatus = exports.AccessDeniedException = exports.AcceptanceType = void 0;
|
|
4
4
|
const ArtifactServiceException_1 = require("./ArtifactServiceException");
|
|
5
5
|
exports.AcceptanceType = {
|
|
6
6
|
EXPLICIT: "EXPLICIT",
|
|
@@ -126,6 +126,16 @@ class ValidationException extends ArtifactServiceException_1.ArtifactServiceExce
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
exports.ValidationException = ValidationException;
|
|
129
|
+
exports.AgreementType = {
|
|
130
|
+
CUSTOM: "CUSTOM",
|
|
131
|
+
DEFAULT: "DEFAULT",
|
|
132
|
+
MODIFIED: "MODIFIED",
|
|
133
|
+
};
|
|
134
|
+
exports.CustomerAgreementState = {
|
|
135
|
+
ACTIVE: "ACTIVE",
|
|
136
|
+
AWS_TERMINATED: "AWS_TERMINATED",
|
|
137
|
+
CUSTOMER_TERMINATED: "CUSTOMER_TERMINATED",
|
|
138
|
+
};
|
|
129
139
|
exports.PublishedState = {
|
|
130
140
|
PUBLISHED: "PUBLISHED",
|
|
131
141
|
UNPUBLISHED: "UNPUBLISHED",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListCustomerAgreements = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
|
+
const ArtifactClient_1 = require("../ArtifactClient");
|
|
6
|
+
const ListCustomerAgreementsCommand_1 = require("../commands/ListCustomerAgreementsCommand");
|
|
7
|
+
exports.paginateListCustomerAgreements = (0, core_1.createPaginator)(ArtifactClient_1.ArtifactClient, ListCustomerAgreementsCommand_1.ListCustomerAgreementsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListCustomerAgreementsPaginator"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ListReportsPaginator"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_PutAccountSettingsCommand = exports.de_ListReportsCommand = exports.de_GetTermForReportCommand = exports.de_GetReportMetadataCommand = exports.de_GetReportCommand = exports.de_GetAccountSettingsCommand = exports.se_PutAccountSettingsCommand = exports.se_ListReportsCommand = exports.se_GetTermForReportCommand = exports.se_GetReportMetadataCommand = exports.se_GetReportCommand = exports.se_GetAccountSettingsCommand = void 0;
|
|
3
|
+
exports.de_PutAccountSettingsCommand = exports.de_ListReportsCommand = exports.de_ListCustomerAgreementsCommand = exports.de_GetTermForReportCommand = exports.de_GetReportMetadataCommand = exports.de_GetReportCommand = exports.de_GetAccountSettingsCommand = exports.se_PutAccountSettingsCommand = exports.se_ListReportsCommand = exports.se_ListCustomerAgreementsCommand = exports.se_GetTermForReportCommand = exports.se_GetReportMetadataCommand = exports.se_GetReportCommand = exports.se_GetAccountSettingsCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
5
|
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -55,6 +55,19 @@ const se_GetTermForReportCommand = async (input, context) => {
|
|
|
55
55
|
return b.build();
|
|
56
56
|
};
|
|
57
57
|
exports.se_GetTermForReportCommand = se_GetTermForReportCommand;
|
|
58
|
+
const se_ListCustomerAgreementsCommand = async (input, context) => {
|
|
59
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
60
|
+
const headers = {};
|
|
61
|
+
b.bp("/v1/customer-agreement/list");
|
|
62
|
+
const query = (0, smithy_client_1.map)({
|
|
63
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
64
|
+
[_nT]: [, input[_nT]],
|
|
65
|
+
});
|
|
66
|
+
let body;
|
|
67
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
68
|
+
return b.build();
|
|
69
|
+
};
|
|
70
|
+
exports.se_ListCustomerAgreementsCommand = se_ListCustomerAgreementsCommand;
|
|
58
71
|
const se_ListReportsCommand = async (input, context) => {
|
|
59
72
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
60
73
|
const headers = {};
|
|
@@ -143,6 +156,22 @@ const de_GetTermForReportCommand = async (output, context) => {
|
|
|
143
156
|
return contents;
|
|
144
157
|
};
|
|
145
158
|
exports.de_GetTermForReportCommand = de_GetTermForReportCommand;
|
|
159
|
+
const de_ListCustomerAgreementsCommand = async (output, context) => {
|
|
160
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
161
|
+
return de_CommandError(output, context);
|
|
162
|
+
}
|
|
163
|
+
const contents = (0, smithy_client_1.map)({
|
|
164
|
+
$metadata: deserializeMetadata(output),
|
|
165
|
+
});
|
|
166
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
167
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
168
|
+
customerAgreements: (_) => de_CustomerAgreementList(_, context),
|
|
169
|
+
nextToken: smithy_client_1.expectString,
|
|
170
|
+
});
|
|
171
|
+
Object.assign(contents, doc);
|
|
172
|
+
return contents;
|
|
173
|
+
};
|
|
174
|
+
exports.de_ListCustomerAgreementsCommand = de_ListCustomerAgreementsCommand;
|
|
146
175
|
const de_ListReportsCommand = async (output, context) => {
|
|
147
176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
148
177
|
return de_CommandError(output, context);
|
|
@@ -319,6 +348,31 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
319
348
|
});
|
|
320
349
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
321
350
|
};
|
|
351
|
+
const de_CustomerAgreementList = (output, context) => {
|
|
352
|
+
const retVal = (output || [])
|
|
353
|
+
.filter((e) => e != null)
|
|
354
|
+
.map((entry) => {
|
|
355
|
+
return de_CustomerAgreementSummary(entry, context);
|
|
356
|
+
});
|
|
357
|
+
return retVal;
|
|
358
|
+
};
|
|
359
|
+
const de_CustomerAgreementSummary = (output, context) => {
|
|
360
|
+
return (0, smithy_client_1.take)(output, {
|
|
361
|
+
acceptanceTerms: smithy_client_1._json,
|
|
362
|
+
agreementArn: smithy_client_1.expectString,
|
|
363
|
+
arn: smithy_client_1.expectString,
|
|
364
|
+
awsAccountId: smithy_client_1.expectString,
|
|
365
|
+
description: smithy_client_1.expectString,
|
|
366
|
+
effectiveEnd: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
367
|
+
effectiveStart: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
368
|
+
id: smithy_client_1.expectString,
|
|
369
|
+
name: smithy_client_1.expectString,
|
|
370
|
+
organizationArn: smithy_client_1.expectString,
|
|
371
|
+
state: smithy_client_1.expectString,
|
|
372
|
+
terminateTerms: smithy_client_1._json,
|
|
373
|
+
type: smithy_client_1.expectString,
|
|
374
|
+
});
|
|
375
|
+
};
|
|
322
376
|
const de_ReportDetail = (output, context) => {
|
|
323
377
|
return (0, smithy_client_1.take)(output, {
|
|
324
378
|
acceptanceType: smithy_client_1.expectString,
|
package/dist-es/Artifact.js
CHANGED
|
@@ -4,6 +4,7 @@ import { GetAccountSettingsCommand, } from "./commands/GetAccountSettingsCommand
|
|
|
4
4
|
import { GetReportCommand } from "./commands/GetReportCommand";
|
|
5
5
|
import { GetReportMetadataCommand, } from "./commands/GetReportMetadataCommand";
|
|
6
6
|
import { GetTermForReportCommand, } from "./commands/GetTermForReportCommand";
|
|
7
|
+
import { ListCustomerAgreementsCommand, } from "./commands/ListCustomerAgreementsCommand";
|
|
7
8
|
import { ListReportsCommand } from "./commands/ListReportsCommand";
|
|
8
9
|
import { PutAccountSettingsCommand, } from "./commands/PutAccountSettingsCommand";
|
|
9
10
|
const commands = {
|
|
@@ -11,6 +12,7 @@ const commands = {
|
|
|
11
12
|
GetReportCommand,
|
|
12
13
|
GetReportMetadataCommand,
|
|
13
14
|
GetTermForReportCommand,
|
|
15
|
+
ListCustomerAgreementsCommand,
|
|
14
16
|
ListReportsCommand,
|
|
15
17
|
PutAccountSettingsCommand,
|
|
16
18
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListCustomerAgreementsCommand, se_ListCustomerAgreementsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListCustomerAgreementsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Artifact", "ListCustomerAgreements", {})
|
|
17
|
+
.n("ArtifactClient", "ListCustomerAgreementsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListCustomerAgreementsCommand)
|
|
20
|
+
.de(de_ListCustomerAgreementsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -2,5 +2,6 @@ export * from "./GetAccountSettingsCommand";
|
|
|
2
2
|
export * from "./GetReportCommand";
|
|
3
3
|
export * from "./GetReportMetadataCommand";
|
|
4
4
|
export * from "./GetTermForReportCommand";
|
|
5
|
+
export * from "./ListCustomerAgreementsCommand";
|
|
5
6
|
export * from "./ListReportsCommand";
|
|
6
7
|
export * from "./PutAccountSettingsCommand";
|
|
@@ -116,6 +116,16 @@ export class ValidationException extends __BaseException {
|
|
|
116
116
|
this.fieldList = opts.fieldList;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
+
export const AgreementType = {
|
|
120
|
+
CUSTOM: "CUSTOM",
|
|
121
|
+
DEFAULT: "DEFAULT",
|
|
122
|
+
MODIFIED: "MODIFIED",
|
|
123
|
+
};
|
|
124
|
+
export const CustomerAgreementState = {
|
|
125
|
+
ACTIVE: "ACTIVE",
|
|
126
|
+
AWS_TERMINATED: "AWS_TERMINATED",
|
|
127
|
+
CUSTOMER_TERMINATED: "CUSTOMER_TERMINATED",
|
|
128
|
+
};
|
|
119
129
|
export const PublishedState = {
|
|
120
130
|
PUBLISHED: "PUBLISHED",
|
|
121
131
|
UNPUBLISHED: "UNPUBLISHED",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ArtifactClient } from "../ArtifactClient";
|
|
3
|
+
import { ListCustomerAgreementsCommand, } from "../commands/ListCustomerAgreementsCommand";
|
|
4
|
+
export const paginateListCustomerAgreements = createPaginator(ArtifactClient, ListCustomerAgreementsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -48,6 +48,18 @@ export const se_GetTermForReportCommand = async (input, context) => {
|
|
|
48
48
|
b.m("GET").h(headers).q(query).b(body);
|
|
49
49
|
return b.build();
|
|
50
50
|
};
|
|
51
|
+
export const se_ListCustomerAgreementsCommand = async (input, context) => {
|
|
52
|
+
const b = rb(input, context);
|
|
53
|
+
const headers = {};
|
|
54
|
+
b.bp("/v1/customer-agreement/list");
|
|
55
|
+
const query = map({
|
|
56
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
57
|
+
[_nT]: [, input[_nT]],
|
|
58
|
+
});
|
|
59
|
+
let body;
|
|
60
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
61
|
+
return b.build();
|
|
62
|
+
};
|
|
51
63
|
export const se_ListReportsCommand = async (input, context) => {
|
|
52
64
|
const b = rb(input, context);
|
|
53
65
|
const headers = {};
|
|
@@ -130,6 +142,21 @@ export const de_GetTermForReportCommand = async (output, context) => {
|
|
|
130
142
|
Object.assign(contents, doc);
|
|
131
143
|
return contents;
|
|
132
144
|
};
|
|
145
|
+
export const de_ListCustomerAgreementsCommand = async (output, context) => {
|
|
146
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
147
|
+
return de_CommandError(output, context);
|
|
148
|
+
}
|
|
149
|
+
const contents = map({
|
|
150
|
+
$metadata: deserializeMetadata(output),
|
|
151
|
+
});
|
|
152
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
153
|
+
const doc = take(data, {
|
|
154
|
+
customerAgreements: (_) => de_CustomerAgreementList(_, context),
|
|
155
|
+
nextToken: __expectString,
|
|
156
|
+
});
|
|
157
|
+
Object.assign(contents, doc);
|
|
158
|
+
return contents;
|
|
159
|
+
};
|
|
133
160
|
export const de_ListReportsCommand = async (output, context) => {
|
|
134
161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
135
162
|
return de_CommandError(output, context);
|
|
@@ -304,6 +331,31 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
304
331
|
});
|
|
305
332
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
306
333
|
};
|
|
334
|
+
const de_CustomerAgreementList = (output, context) => {
|
|
335
|
+
const retVal = (output || [])
|
|
336
|
+
.filter((e) => e != null)
|
|
337
|
+
.map((entry) => {
|
|
338
|
+
return de_CustomerAgreementSummary(entry, context);
|
|
339
|
+
});
|
|
340
|
+
return retVal;
|
|
341
|
+
};
|
|
342
|
+
const de_CustomerAgreementSummary = (output, context) => {
|
|
343
|
+
return take(output, {
|
|
344
|
+
acceptanceTerms: _json,
|
|
345
|
+
agreementArn: __expectString,
|
|
346
|
+
arn: __expectString,
|
|
347
|
+
awsAccountId: __expectString,
|
|
348
|
+
description: __expectString,
|
|
349
|
+
effectiveEnd: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
350
|
+
effectiveStart: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
351
|
+
id: __expectString,
|
|
352
|
+
name: __expectString,
|
|
353
|
+
organizationArn: __expectString,
|
|
354
|
+
state: __expectString,
|
|
355
|
+
terminateTerms: _json,
|
|
356
|
+
type: __expectString,
|
|
357
|
+
});
|
|
358
|
+
};
|
|
307
359
|
const de_ReportDetail = (output, context) => {
|
|
308
360
|
return take(output, {
|
|
309
361
|
acceptanceType: __expectString,
|
package/dist-types/Artifact.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from
|
|
|
4
4
|
import { GetReportCommandInput, GetReportCommandOutput } from "./commands/GetReportCommand";
|
|
5
5
|
import { GetReportMetadataCommandInput, GetReportMetadataCommandOutput } from "./commands/GetReportMetadataCommand";
|
|
6
6
|
import { GetTermForReportCommandInput, GetTermForReportCommandOutput } from "./commands/GetTermForReportCommand";
|
|
7
|
+
import { ListCustomerAgreementsCommandInput, ListCustomerAgreementsCommandOutput } from "./commands/ListCustomerAgreementsCommand";
|
|
7
8
|
import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
|
|
8
9
|
import { PutAccountSettingsCommandInput, PutAccountSettingsCommandOutput } from "./commands/PutAccountSettingsCommand";
|
|
9
10
|
export interface Artifact {
|
|
@@ -32,6 +33,13 @@ export interface Artifact {
|
|
|
32
33
|
getTermForReport(args: GetTermForReportCommandInput, options?: __HttpHandlerOptions): Promise<GetTermForReportCommandOutput>;
|
|
33
34
|
getTermForReport(args: GetTermForReportCommandInput, cb: (err: any, data?: GetTermForReportCommandOutput) => void): void;
|
|
34
35
|
getTermForReport(args: GetTermForReportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTermForReportCommandOutput) => void): void;
|
|
36
|
+
/**
|
|
37
|
+
* @see {@link ListCustomerAgreementsCommand}
|
|
38
|
+
*/
|
|
39
|
+
listCustomerAgreements(): Promise<ListCustomerAgreementsCommandOutput>;
|
|
40
|
+
listCustomerAgreements(args: ListCustomerAgreementsCommandInput, options?: __HttpHandlerOptions): Promise<ListCustomerAgreementsCommandOutput>;
|
|
41
|
+
listCustomerAgreements(args: ListCustomerAgreementsCommandInput, cb: (err: any, data?: ListCustomerAgreementsCommandOutput) => void): void;
|
|
42
|
+
listCustomerAgreements(args: ListCustomerAgreementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCustomerAgreementsCommandOutput) => void): void;
|
|
35
43
|
/**
|
|
36
44
|
* @see {@link ListReportsCommand}
|
|
37
45
|
*/
|
|
@@ -11,6 +11,7 @@ import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from
|
|
|
11
11
|
import { GetReportCommandInput, GetReportCommandOutput } from "./commands/GetReportCommand";
|
|
12
12
|
import { GetReportMetadataCommandInput, GetReportMetadataCommandOutput } from "./commands/GetReportMetadataCommand";
|
|
13
13
|
import { GetTermForReportCommandInput, GetTermForReportCommandOutput } from "./commands/GetTermForReportCommand";
|
|
14
|
+
import { ListCustomerAgreementsCommandInput, ListCustomerAgreementsCommandOutput } from "./commands/ListCustomerAgreementsCommand";
|
|
14
15
|
import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
|
|
15
16
|
import { PutAccountSettingsCommandInput, PutAccountSettingsCommandOutput } from "./commands/PutAccountSettingsCommand";
|
|
16
17
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -19,11 +20,11 @@ export { __Client };
|
|
|
19
20
|
/**
|
|
20
21
|
* @public
|
|
21
22
|
*/
|
|
22
|
-
export type ServiceInputTypes = GetAccountSettingsCommandInput | GetReportCommandInput | GetReportMetadataCommandInput | GetTermForReportCommandInput | ListReportsCommandInput | PutAccountSettingsCommandInput;
|
|
23
|
+
export type ServiceInputTypes = GetAccountSettingsCommandInput | GetReportCommandInput | GetReportMetadataCommandInput | GetTermForReportCommandInput | ListCustomerAgreementsCommandInput | ListReportsCommandInput | PutAccountSettingsCommandInput;
|
|
23
24
|
/**
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
26
|
-
export type ServiceOutputTypes = GetAccountSettingsCommandOutput | GetReportCommandOutput | GetReportMetadataCommandOutput | GetTermForReportCommandOutput | ListReportsCommandOutput | PutAccountSettingsCommandOutput;
|
|
27
|
+
export type ServiceOutputTypes = GetAccountSettingsCommandOutput | GetReportCommandOutput | GetReportMetadataCommandOutput | GetTermForReportCommandOutput | ListCustomerAgreementsCommandOutput | ListReportsCommandOutput | PutAccountSettingsCommandOutput;
|
|
27
28
|
/**
|
|
28
29
|
* @public
|
|
29
30
|
*/
|
|
@@ -39,7 +39,7 @@ declare const GetAccountSettingsCommand_base: {
|
|
|
39
39
|
* const response = await client.send(command);
|
|
40
40
|
* // { // GetAccountSettingsResponse
|
|
41
41
|
* // accountSettings: { // AccountSettings
|
|
42
|
-
* // notificationSubscriptionStatus: "
|
|
42
|
+
* // notificationSubscriptionStatus: "SUBSCRIBED" || "NOT_SUBSCRIBED",
|
|
43
43
|
* // },
|
|
44
44
|
* // };
|
|
45
45
|
*
|
|
@@ -50,7 +50,7 @@ declare const GetReportMetadataCommand_base: {
|
|
|
50
50
|
* // createdAt: new Date("TIMESTAMP"),
|
|
51
51
|
* // lastModifiedAt: new Date("TIMESTAMP"),
|
|
52
52
|
* // deletedAt: new Date("TIMESTAMP"),
|
|
53
|
-
* // state: "
|
|
53
|
+
* // state: "PUBLISHED" || "UNPUBLISHED",
|
|
54
54
|
* // arn: "STRING_VALUE",
|
|
55
55
|
* // series: "STRING_VALUE",
|
|
56
56
|
* // category: "STRING_VALUE",
|
|
@@ -58,9 +58,9 @@ declare const GetReportMetadataCommand_base: {
|
|
|
58
58
|
* // productName: "STRING_VALUE",
|
|
59
59
|
* // termArn: "STRING_VALUE",
|
|
60
60
|
* // version: Number("long"),
|
|
61
|
-
* // acceptanceType: "
|
|
61
|
+
* // acceptanceType: "PASSTHROUGH" || "EXPLICIT",
|
|
62
62
|
* // sequenceNumber: Number("long"),
|
|
63
|
-
* // uploadState: "
|
|
63
|
+
* // uploadState: "PROCESSING" || "COMPLETE" || "FAILED" || "FAULT",
|
|
64
64
|
* // statusMessage: "STRING_VALUE",
|
|
65
65
|
* // },
|
|
66
66
|
* // };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ArtifactClient";
|
|
4
|
+
import { ListCustomerAgreementsRequest, ListCustomerAgreementsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListCustomerAgreementsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListCustomerAgreementsCommandInput extends ListCustomerAgreementsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListCustomerAgreementsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListCustomerAgreementsCommandOutput extends ListCustomerAgreementsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListCustomerAgreementsCommand_base: {
|
|
25
|
+
new (input: ListCustomerAgreementsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCustomerAgreementsCommandInput, ListCustomerAgreementsCommandOutput, ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListCustomerAgreementsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListCustomerAgreementsCommandInput, ListCustomerAgreementsCommandOutput, ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>List active customer-agreements applicable to calling identity.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ArtifactClient, ListCustomerAgreementsCommand } from "@aws-sdk/client-artifact"; // ES Modules import
|
|
35
|
+
* // const { ArtifactClient, ListCustomerAgreementsCommand } = require("@aws-sdk/client-artifact"); // CommonJS import
|
|
36
|
+
* const client = new ArtifactClient(config);
|
|
37
|
+
* const input = { // ListCustomerAgreementsRequest
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListCustomerAgreementsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListCustomerAgreementsResponse
|
|
44
|
+
* // customerAgreements: [ // CustomerAgreementList // required
|
|
45
|
+
* // { // CustomerAgreementSummary
|
|
46
|
+
* // name: "STRING_VALUE",
|
|
47
|
+
* // arn: "STRING_VALUE",
|
|
48
|
+
* // id: "STRING_VALUE",
|
|
49
|
+
* // agreementArn: "STRING_VALUE",
|
|
50
|
+
* // awsAccountId: "STRING_VALUE",
|
|
51
|
+
* // organizationArn: "STRING_VALUE",
|
|
52
|
+
* // effectiveStart: new Date("TIMESTAMP"),
|
|
53
|
+
* // effectiveEnd: new Date("TIMESTAMP"),
|
|
54
|
+
* // state: "ACTIVE" || "CUSTOMER_TERMINATED" || "AWS_TERMINATED",
|
|
55
|
+
* // description: "STRING_VALUE",
|
|
56
|
+
* // acceptanceTerms: [ // AgreementTerms
|
|
57
|
+
* // "STRING_VALUE",
|
|
58
|
+
* // ],
|
|
59
|
+
* // terminateTerms: [
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
62
|
+
* // type: "CUSTOM" || "DEFAULT" || "MODIFIED",
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // nextToken: "STRING_VALUE",
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param ListCustomerAgreementsCommandInput - {@link ListCustomerAgreementsCommandInput}
|
|
71
|
+
* @returns {@link ListCustomerAgreementsCommandOutput}
|
|
72
|
+
* @see {@link ListCustomerAgreementsCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link ListCustomerAgreementsCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link ArtifactClientResolvedConfig | config} for ArtifactClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
77
|
+
* <p>User does not have sufficient access to perform this action.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* <p>An unknown server exception has occurred.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
83
|
+
* <p>Request was denied due to request throttling.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ValidationException} (client fault)
|
|
86
|
+
* <p>Request fails to satisfy the constraints specified by an AWS service.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ArtifactServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from Artifact service.</p>
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class ListCustomerAgreementsCommand extends ListCustomerAgreementsCommand_base {
|
|
94
|
+
/** @internal type navigation helper, not in runtime. */
|
|
95
|
+
protected static __types: {
|
|
96
|
+
api: {
|
|
97
|
+
input: ListCustomerAgreementsRequest;
|
|
98
|
+
output: ListCustomerAgreementsResponse;
|
|
99
|
+
};
|
|
100
|
+
sdk: {
|
|
101
|
+
input: ListCustomerAgreementsCommandInput;
|
|
102
|
+
output: ListCustomerAgreementsCommandOutput;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -45,10 +45,10 @@ declare const ListReportsCommand_base: {
|
|
|
45
45
|
* // { // ReportSummary
|
|
46
46
|
* // id: "STRING_VALUE",
|
|
47
47
|
* // name: "STRING_VALUE",
|
|
48
|
-
* // state: "
|
|
48
|
+
* // state: "PUBLISHED" || "UNPUBLISHED",
|
|
49
49
|
* // arn: "STRING_VALUE",
|
|
50
50
|
* // version: Number("long"),
|
|
51
|
-
* // uploadState: "
|
|
51
|
+
* // uploadState: "PROCESSING" || "COMPLETE" || "FAILED" || "FAULT",
|
|
52
52
|
* // description: "STRING_VALUE",
|
|
53
53
|
* // periodStart: new Date("TIMESTAMP"),
|
|
54
54
|
* // periodEnd: new Date("TIMESTAMP"),
|
|
@@ -57,7 +57,7 @@ declare const ListReportsCommand_base: {
|
|
|
57
57
|
* // companyName: "STRING_VALUE",
|
|
58
58
|
* // productName: "STRING_VALUE",
|
|
59
59
|
* // statusMessage: "STRING_VALUE",
|
|
60
|
-
* // acceptanceType: "
|
|
60
|
+
* // acceptanceType: "PASSTHROUGH" || "EXPLICIT",
|
|
61
61
|
* // },
|
|
62
62
|
* // ],
|
|
63
63
|
* // nextToken: "STRING_VALUE",
|
|
@@ -35,13 +35,13 @@ declare const PutAccountSettingsCommand_base: {
|
|
|
35
35
|
* // const { ArtifactClient, PutAccountSettingsCommand } = require("@aws-sdk/client-artifact"); // CommonJS import
|
|
36
36
|
* const client = new ArtifactClient(config);
|
|
37
37
|
* const input = { // PutAccountSettingsRequest
|
|
38
|
-
* notificationSubscriptionStatus: "
|
|
38
|
+
* notificationSubscriptionStatus: "SUBSCRIBED" || "NOT_SUBSCRIBED",
|
|
39
39
|
* };
|
|
40
40
|
* const command = new PutAccountSettingsCommand(input);
|
|
41
41
|
* const response = await client.send(command);
|
|
42
42
|
* // { // PutAccountSettingsResponse
|
|
43
43
|
* // accountSettings: { // AccountSettings
|
|
44
|
-
* // notificationSubscriptionStatus: "
|
|
44
|
+
* // notificationSubscriptionStatus: "SUBSCRIBED" || "NOT_SUBSCRIBED",
|
|
45
45
|
* // },
|
|
46
46
|
* // };
|
|
47
47
|
*
|
|
@@ -2,5 +2,6 @@ export * from "./GetAccountSettingsCommand";
|
|
|
2
2
|
export * from "./GetReportCommand";
|
|
3
3
|
export * from "./GetReportMetadataCommand";
|
|
4
4
|
export * from "./GetTermForReportCommand";
|
|
5
|
+
export * from "./ListCustomerAgreementsCommand";
|
|
5
6
|
export * from "./ListReportsCommand";
|
|
6
7
|
export * from "./PutAccountSettingsCommand";
|
|
@@ -6,14 +6,13 @@ import { ArtifactServiceException as __BaseException } from "./ArtifactServiceEx
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const AcceptanceType: {
|
|
8
8
|
/**
|
|
9
|
-
* Require explicit click-through acceptance of
|
|
10
|
-
*
|
|
9
|
+
* Require explicit click-through acceptance of the
|
|
10
|
+
* Term associated with this Report.
|
|
11
11
|
*/
|
|
12
12
|
readonly EXPLICIT: "EXPLICIT";
|
|
13
13
|
/**
|
|
14
|
-
* Do not require explicit click-through
|
|
15
|
-
*
|
|
16
|
-
* this Report.
|
|
14
|
+
* Do not require explicit click-through acceptance
|
|
15
|
+
* of the Term associated with this Report
|
|
17
16
|
*/
|
|
18
17
|
readonly PASSTHROUGH: "PASSTHROUGH";
|
|
19
18
|
};
|
|
@@ -38,13 +37,7 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
38
37
|
* @enum
|
|
39
38
|
*/
|
|
40
39
|
export declare const NotificationSubscriptionStatus: {
|
|
41
|
-
/**
|
|
42
|
-
* The account is not subscribed for notification.
|
|
43
|
-
*/
|
|
44
40
|
readonly NOT_SUBSCRIBED: "NOT_SUBSCRIBED";
|
|
45
|
-
/**
|
|
46
|
-
* The account is subscribed for notification.
|
|
47
|
-
*/
|
|
48
41
|
readonly SUBSCRIBED: "SUBSCRIBED";
|
|
49
42
|
};
|
|
50
43
|
/**
|
|
@@ -274,6 +267,133 @@ export interface PutAccountSettingsResponse {
|
|
|
274
267
|
*/
|
|
275
268
|
accountSettings?: AccountSettings | undefined;
|
|
276
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* @public
|
|
272
|
+
* @enum
|
|
273
|
+
*/
|
|
274
|
+
export declare const AgreementType: {
|
|
275
|
+
readonly CUSTOM: "CUSTOM";
|
|
276
|
+
readonly DEFAULT: "DEFAULT";
|
|
277
|
+
readonly MODIFIED: "MODIFIED";
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* @public
|
|
281
|
+
*/
|
|
282
|
+
export type AgreementType = (typeof AgreementType)[keyof typeof AgreementType];
|
|
283
|
+
/**
|
|
284
|
+
* @public
|
|
285
|
+
*/
|
|
286
|
+
export interface ListCustomerAgreementsRequest {
|
|
287
|
+
/**
|
|
288
|
+
* <p>Maximum number of resources to return in the paginated response.</p>
|
|
289
|
+
* @public
|
|
290
|
+
*/
|
|
291
|
+
maxResults?: number | undefined;
|
|
292
|
+
/**
|
|
293
|
+
* <p>Pagination token to request the next page of resources.</p>
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
nextToken?: string | undefined;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @public
|
|
300
|
+
* @enum
|
|
301
|
+
*/
|
|
302
|
+
export declare const CustomerAgreementState: {
|
|
303
|
+
readonly ACTIVE: "ACTIVE";
|
|
304
|
+
readonly AWS_TERMINATED: "AWS_TERMINATED";
|
|
305
|
+
readonly CUSTOMER_TERMINATED: "CUSTOMER_TERMINATED";
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* @public
|
|
309
|
+
*/
|
|
310
|
+
export type CustomerAgreementState = (typeof CustomerAgreementState)[keyof typeof CustomerAgreementState];
|
|
311
|
+
/**
|
|
312
|
+
* <p>Summary for customer-agreement resource.</p>
|
|
313
|
+
* @public
|
|
314
|
+
*/
|
|
315
|
+
export interface CustomerAgreementSummary {
|
|
316
|
+
/**
|
|
317
|
+
* <p>Name of the customer-agreement resource.</p>
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
320
|
+
name?: string | undefined;
|
|
321
|
+
/**
|
|
322
|
+
* <p>ARN of the customer-agreement resource.</p>
|
|
323
|
+
* @public
|
|
324
|
+
*/
|
|
325
|
+
arn?: string | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* <p>Identifier of the customer-agreement resource.</p>
|
|
328
|
+
* @public
|
|
329
|
+
*/
|
|
330
|
+
id?: string | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* <p>ARN of the agreement resource the customer-agreement resource represents.</p>
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
agreementArn?: string | undefined;
|
|
336
|
+
/**
|
|
337
|
+
* <p>AWS account Id that owns the resource.</p>
|
|
338
|
+
* @public
|
|
339
|
+
*/
|
|
340
|
+
awsAccountId?: string | undefined;
|
|
341
|
+
/**
|
|
342
|
+
* <p>ARN of the organization that owns the resource.</p>
|
|
343
|
+
* @public
|
|
344
|
+
*/
|
|
345
|
+
organizationArn?: string | undefined;
|
|
346
|
+
/**
|
|
347
|
+
* <p>Timestamp indicating when the agreement became effective.</p>
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
350
|
+
effectiveStart?: Date | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* <p>Timestamp indicating when the agreement was terminated.</p>
|
|
353
|
+
* @public
|
|
354
|
+
*/
|
|
355
|
+
effectiveEnd?: Date | undefined;
|
|
356
|
+
/**
|
|
357
|
+
* <p>State of the resource.</p>
|
|
358
|
+
* @public
|
|
359
|
+
*/
|
|
360
|
+
state?: CustomerAgreementState | undefined;
|
|
361
|
+
/**
|
|
362
|
+
* <p>Description of the resource.</p>
|
|
363
|
+
* @public
|
|
364
|
+
*/
|
|
365
|
+
description?: string | undefined;
|
|
366
|
+
/**
|
|
367
|
+
* <p>Terms required to accept the agreement resource.</p>
|
|
368
|
+
* @public
|
|
369
|
+
*/
|
|
370
|
+
acceptanceTerms?: string[] | undefined;
|
|
371
|
+
/**
|
|
372
|
+
* <p>Terms required to terminate the customer-agreement resource.</p>
|
|
373
|
+
* @public
|
|
374
|
+
*/
|
|
375
|
+
terminateTerms?: string[] | undefined;
|
|
376
|
+
/**
|
|
377
|
+
* <p>Type of the customer-agreement resource.</p>
|
|
378
|
+
* @public
|
|
379
|
+
*/
|
|
380
|
+
type?: AgreementType | undefined;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* @public
|
|
384
|
+
*/
|
|
385
|
+
export interface ListCustomerAgreementsResponse {
|
|
386
|
+
/**
|
|
387
|
+
* <p>List of customer-agreement resources.</p>
|
|
388
|
+
* @public
|
|
389
|
+
*/
|
|
390
|
+
customerAgreements: CustomerAgreementSummary[] | undefined;
|
|
391
|
+
/**
|
|
392
|
+
* <p>Pagination token to request the next page of resources.</p>
|
|
393
|
+
* @public
|
|
394
|
+
*/
|
|
395
|
+
nextToken?: string | undefined;
|
|
396
|
+
}
|
|
277
397
|
/**
|
|
278
398
|
* @public
|
|
279
399
|
*/
|
|
@@ -324,13 +444,7 @@ export interface GetReportMetadataRequest {
|
|
|
324
444
|
* @enum
|
|
325
445
|
*/
|
|
326
446
|
export declare const PublishedState: {
|
|
327
|
-
/**
|
|
328
|
-
* The resource is published for consumption.
|
|
329
|
-
*/
|
|
330
447
|
readonly PUBLISHED: "PUBLISHED";
|
|
331
|
-
/**
|
|
332
|
-
* The resource is not published for consumption.
|
|
333
|
-
*/
|
|
334
448
|
readonly UNPUBLISHED: "UNPUBLISHED";
|
|
335
449
|
};
|
|
336
450
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListCustomerAgreementsCommandInput, ListCustomerAgreementsCommandOutput } from "../commands/ListCustomerAgreementsCommand";
|
|
3
|
+
import { ArtifactPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateListCustomerAgreements: (config: ArtifactPaginationConfiguration, input: ListCustomerAgreementsCommandInput, ...rest: any[]) => Paginator<ListCustomerAgreementsCommandOutput>;
|
|
@@ -4,6 +4,7 @@ import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from
|
|
|
4
4
|
import { GetReportCommandInput, GetReportCommandOutput } from "../commands/GetReportCommand";
|
|
5
5
|
import { GetReportMetadataCommandInput, GetReportMetadataCommandOutput } from "../commands/GetReportMetadataCommand";
|
|
6
6
|
import { GetTermForReportCommandInput, GetTermForReportCommandOutput } from "../commands/GetTermForReportCommand";
|
|
7
|
+
import { ListCustomerAgreementsCommandInput, ListCustomerAgreementsCommandOutput } from "../commands/ListCustomerAgreementsCommand";
|
|
7
8
|
import { ListReportsCommandInput, ListReportsCommandOutput } from "../commands/ListReportsCommand";
|
|
8
9
|
import { PutAccountSettingsCommandInput, PutAccountSettingsCommandOutput } from "../commands/PutAccountSettingsCommand";
|
|
9
10
|
/**
|
|
@@ -22,6 +23,10 @@ export declare const se_GetReportMetadataCommand: (input: GetReportMetadataComma
|
|
|
22
23
|
* serializeAws_restJson1GetTermForReportCommand
|
|
23
24
|
*/
|
|
24
25
|
export declare const se_GetTermForReportCommand: (input: GetTermForReportCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
26
|
+
/**
|
|
27
|
+
* serializeAws_restJson1ListCustomerAgreementsCommand
|
|
28
|
+
*/
|
|
29
|
+
export declare const se_ListCustomerAgreementsCommand: (input: ListCustomerAgreementsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
30
|
/**
|
|
26
31
|
* serializeAws_restJson1ListReportsCommand
|
|
27
32
|
*/
|
|
@@ -46,6 +51,10 @@ export declare const de_GetReportMetadataCommand: (output: __HttpResponse, conte
|
|
|
46
51
|
* deserializeAws_restJson1GetTermForReportCommand
|
|
47
52
|
*/
|
|
48
53
|
export declare const de_GetTermForReportCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTermForReportCommandOutput>;
|
|
54
|
+
/**
|
|
55
|
+
* deserializeAws_restJson1ListCustomerAgreementsCommand
|
|
56
|
+
*/
|
|
57
|
+
export declare const de_ListCustomerAgreementsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListCustomerAgreementsCommandOutput>;
|
|
49
58
|
/**
|
|
50
59
|
* deserializeAws_restJson1ListReportsCommand
|
|
51
60
|
*/
|
|
@@ -16,6 +16,10 @@ import {
|
|
|
16
16
|
GetTermForReportCommandInput,
|
|
17
17
|
GetTermForReportCommandOutput,
|
|
18
18
|
} from "./commands/GetTermForReportCommand";
|
|
19
|
+
import {
|
|
20
|
+
ListCustomerAgreementsCommandInput,
|
|
21
|
+
ListCustomerAgreementsCommandOutput,
|
|
22
|
+
} from "./commands/ListCustomerAgreementsCommand";
|
|
19
23
|
import {
|
|
20
24
|
ListReportsCommandInput,
|
|
21
25
|
ListReportsCommandOutput,
|
|
@@ -78,6 +82,20 @@ export interface Artifact {
|
|
|
78
82
|
options: __HttpHandlerOptions,
|
|
79
83
|
cb: (err: any, data?: GetTermForReportCommandOutput) => void
|
|
80
84
|
): void;
|
|
85
|
+
listCustomerAgreements(): Promise<ListCustomerAgreementsCommandOutput>;
|
|
86
|
+
listCustomerAgreements(
|
|
87
|
+
args: ListCustomerAgreementsCommandInput,
|
|
88
|
+
options?: __HttpHandlerOptions
|
|
89
|
+
): Promise<ListCustomerAgreementsCommandOutput>;
|
|
90
|
+
listCustomerAgreements(
|
|
91
|
+
args: ListCustomerAgreementsCommandInput,
|
|
92
|
+
cb: (err: any, data?: ListCustomerAgreementsCommandOutput) => void
|
|
93
|
+
): void;
|
|
94
|
+
listCustomerAgreements(
|
|
95
|
+
args: ListCustomerAgreementsCommandInput,
|
|
96
|
+
options: __HttpHandlerOptions,
|
|
97
|
+
cb: (err: any, data?: ListCustomerAgreementsCommandOutput) => void
|
|
98
|
+
): void;
|
|
81
99
|
listReports(): Promise<ListReportsCommandOutput>;
|
|
82
100
|
listReports(
|
|
83
101
|
args: ListReportsCommandInput,
|
|
@@ -61,6 +61,10 @@ import {
|
|
|
61
61
|
GetTermForReportCommandInput,
|
|
62
62
|
GetTermForReportCommandOutput,
|
|
63
63
|
} from "./commands/GetTermForReportCommand";
|
|
64
|
+
import {
|
|
65
|
+
ListCustomerAgreementsCommandInput,
|
|
66
|
+
ListCustomerAgreementsCommandOutput,
|
|
67
|
+
} from "./commands/ListCustomerAgreementsCommand";
|
|
64
68
|
import {
|
|
65
69
|
ListReportsCommandInput,
|
|
66
70
|
ListReportsCommandOutput,
|
|
@@ -81,6 +85,7 @@ export type ServiceInputTypes =
|
|
|
81
85
|
| GetReportCommandInput
|
|
82
86
|
| GetReportMetadataCommandInput
|
|
83
87
|
| GetTermForReportCommandInput
|
|
88
|
+
| ListCustomerAgreementsCommandInput
|
|
84
89
|
| ListReportsCommandInput
|
|
85
90
|
| PutAccountSettingsCommandInput;
|
|
86
91
|
export type ServiceOutputTypes =
|
|
@@ -88,6 +93,7 @@ export type ServiceOutputTypes =
|
|
|
88
93
|
| GetReportCommandOutput
|
|
89
94
|
| GetReportMetadataCommandOutput
|
|
90
95
|
| GetTermForReportCommandOutput
|
|
96
|
+
| ListCustomerAgreementsCommandOutput
|
|
91
97
|
| ListReportsCommandOutput
|
|
92
98
|
| PutAccountSettingsCommandOutput;
|
|
93
99
|
export interface ClientDefaults
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
ArtifactClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../ArtifactClient";
|
|
8
|
+
import {
|
|
9
|
+
ListCustomerAgreementsRequest,
|
|
10
|
+
ListCustomerAgreementsResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface ListCustomerAgreementsCommandInput
|
|
15
|
+
extends ListCustomerAgreementsRequest {}
|
|
16
|
+
export interface ListCustomerAgreementsCommandOutput
|
|
17
|
+
extends ListCustomerAgreementsResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const ListCustomerAgreementsCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: ListCustomerAgreementsCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
ListCustomerAgreementsCommandInput,
|
|
24
|
+
ListCustomerAgreementsCommandOutput,
|
|
25
|
+
ArtifactClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
...[input]: [] | [ListCustomerAgreementsCommandInput]
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
ListCustomerAgreementsCommandInput,
|
|
33
|
+
ListCustomerAgreementsCommandOutput,
|
|
34
|
+
ArtifactClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class ListCustomerAgreementsCommand extends ListCustomerAgreementsCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: ListCustomerAgreementsRequest;
|
|
44
|
+
output: ListCustomerAgreementsResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: ListCustomerAgreementsCommandInput;
|
|
48
|
+
output: ListCustomerAgreementsCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -2,5 +2,6 @@ export * from "./GetAccountSettingsCommand";
|
|
|
2
2
|
export * from "./GetReportCommand";
|
|
3
3
|
export * from "./GetReportMetadataCommand";
|
|
4
4
|
export * from "./GetTermForReportCommand";
|
|
5
|
+
export * from "./ListCustomerAgreementsCommand";
|
|
5
6
|
export * from "./ListReportsCommand";
|
|
6
7
|
export * from "./PutAccountSettingsCommand";
|
|
@@ -103,6 +103,42 @@ export interface PutAccountSettingsRequest {
|
|
|
103
103
|
export interface PutAccountSettingsResponse {
|
|
104
104
|
accountSettings?: AccountSettings | undefined;
|
|
105
105
|
}
|
|
106
|
+
export declare const AgreementType: {
|
|
107
|
+
readonly CUSTOM: "CUSTOM";
|
|
108
|
+
readonly DEFAULT: "DEFAULT";
|
|
109
|
+
readonly MODIFIED: "MODIFIED";
|
|
110
|
+
};
|
|
111
|
+
export type AgreementType = (typeof AgreementType)[keyof typeof AgreementType];
|
|
112
|
+
export interface ListCustomerAgreementsRequest {
|
|
113
|
+
maxResults?: number | undefined;
|
|
114
|
+
nextToken?: string | undefined;
|
|
115
|
+
}
|
|
116
|
+
export declare const CustomerAgreementState: {
|
|
117
|
+
readonly ACTIVE: "ACTIVE";
|
|
118
|
+
readonly AWS_TERMINATED: "AWS_TERMINATED";
|
|
119
|
+
readonly CUSTOMER_TERMINATED: "CUSTOMER_TERMINATED";
|
|
120
|
+
};
|
|
121
|
+
export type CustomerAgreementState =
|
|
122
|
+
(typeof CustomerAgreementState)[keyof typeof CustomerAgreementState];
|
|
123
|
+
export interface CustomerAgreementSummary {
|
|
124
|
+
name?: string | undefined;
|
|
125
|
+
arn?: string | undefined;
|
|
126
|
+
id?: string | undefined;
|
|
127
|
+
agreementArn?: string | undefined;
|
|
128
|
+
awsAccountId?: string | undefined;
|
|
129
|
+
organizationArn?: string | undefined;
|
|
130
|
+
effectiveStart?: Date | undefined;
|
|
131
|
+
effectiveEnd?: Date | undefined;
|
|
132
|
+
state?: CustomerAgreementState | undefined;
|
|
133
|
+
description?: string | undefined;
|
|
134
|
+
acceptanceTerms?: string[] | undefined;
|
|
135
|
+
terminateTerms?: string[] | undefined;
|
|
136
|
+
type?: AgreementType | undefined;
|
|
137
|
+
}
|
|
138
|
+
export interface ListCustomerAgreementsResponse {
|
|
139
|
+
customerAgreements: CustomerAgreementSummary[] | undefined;
|
|
140
|
+
nextToken?: string | undefined;
|
|
141
|
+
}
|
|
106
142
|
export interface GetReportRequest {
|
|
107
143
|
reportId: string | undefined;
|
|
108
144
|
reportVersion?: number | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListCustomerAgreementsCommandInput,
|
|
4
|
+
ListCustomerAgreementsCommandOutput,
|
|
5
|
+
} from "../commands/ListCustomerAgreementsCommand";
|
|
6
|
+
import { ArtifactPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListCustomerAgreements: (
|
|
8
|
+
config: ArtifactPaginationConfiguration,
|
|
9
|
+
input: ListCustomerAgreementsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListCustomerAgreementsCommandOutput>;
|
|
@@ -19,6 +19,10 @@ import {
|
|
|
19
19
|
GetTermForReportCommandInput,
|
|
20
20
|
GetTermForReportCommandOutput,
|
|
21
21
|
} from "../commands/GetTermForReportCommand";
|
|
22
|
+
import {
|
|
23
|
+
ListCustomerAgreementsCommandInput,
|
|
24
|
+
ListCustomerAgreementsCommandOutput,
|
|
25
|
+
} from "../commands/ListCustomerAgreementsCommand";
|
|
22
26
|
import {
|
|
23
27
|
ListReportsCommandInput,
|
|
24
28
|
ListReportsCommandOutput,
|
|
@@ -43,6 +47,10 @@ export declare const se_GetTermForReportCommand: (
|
|
|
43
47
|
input: GetTermForReportCommandInput,
|
|
44
48
|
context: __SerdeContext
|
|
45
49
|
) => Promise<__HttpRequest>;
|
|
50
|
+
export declare const se_ListCustomerAgreementsCommand: (
|
|
51
|
+
input: ListCustomerAgreementsCommandInput,
|
|
52
|
+
context: __SerdeContext
|
|
53
|
+
) => Promise<__HttpRequest>;
|
|
46
54
|
export declare const se_ListReportsCommand: (
|
|
47
55
|
input: ListReportsCommandInput,
|
|
48
56
|
context: __SerdeContext
|
|
@@ -67,6 +75,10 @@ export declare const de_GetTermForReportCommand: (
|
|
|
67
75
|
output: __HttpResponse,
|
|
68
76
|
context: __SerdeContext
|
|
69
77
|
) => Promise<GetTermForReportCommandOutput>;
|
|
78
|
+
export declare const de_ListCustomerAgreementsCommand: (
|
|
79
|
+
output: __HttpResponse,
|
|
80
|
+
context: __SerdeContext
|
|
81
|
+
) => Promise<ListCustomerAgreementsCommandOutput>;
|
|
70
82
|
export declare const de_ListReportsCommand: (
|
|
71
83
|
output: __HttpResponse,
|
|
72
84
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-artifact",
|
|
3
3
|
"description": "AWS SDK for JavaScript Artifact Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.710.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",
|