@aws-sdk/client-marketplace-catalog 3.1111.0 → 3.1113.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 +21 -7
- package/dist-cjs/index.js +210 -7
- package/dist-es/MarketplaceCatalog.js +8 -0
- package/dist-es/commands/DescribeAssessmentCommand.js +4 -0
- package/dist-es/commands/ListAssessmentsCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +16 -0
- package/dist-es/models/errors.js +2 -0
- package/dist-es/pagination/DescribeAssessmentPaginator.js +4 -0
- package/dist-es/pagination/ListAssessmentsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +151 -6
- package/dist-types/MarketplaceCatalog.d.ts +28 -0
- package/dist-types/MarketplaceCatalogClient.d.ts +4 -2
- package/dist-types/commands/DescribeAssessmentCommand.d.ts +134 -0
- package/dist-types/commands/ListAssessmentsCommand.d.ts +132 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/enums.d.ts +40 -0
- package/dist-types/models/errors.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +482 -1
- package/dist-types/pagination/DescribeAssessmentPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAssessmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +19 -0
- package/dist-types/ts3.4/MarketplaceCatalog.d.ts +48 -0
- package/dist-types/ts3.4/MarketplaceCatalogClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribeAssessmentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAssessmentsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +21 -0
- package/dist-types/ts3.4/models/errors.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +137 -0
- package/dist-types/ts3.4/pagination/DescribeAssessmentPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssessmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListAssessmentsRequest, ListAssessmentsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListAssessmentsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListAssessmentsCommandInput extends ListAssessmentsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListAssessmentsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListAssessmentsCommandOutput extends ListAssessmentsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListAssessmentsCommand_base: {
|
|
22
|
+
new (input: ListAssessmentsCommandInput): import("@smithy/core/client").CommandImpl<ListAssessmentsCommandInput, ListAssessmentsCommandOutput, import("..").MarketplaceCatalogClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListAssessmentsCommandInput): import("@smithy/core/client").CommandImpl<ListAssessmentsCommandInput, ListAssessmentsCommandOutput, import("..").MarketplaceCatalogClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns a paginated list of assessments associated with an entity or change set in
|
|
28
|
+
* AWS Marketplace. An <i>assessment</i> is the result of evaluating a
|
|
29
|
+
* product or change set against a framework, such as AMI Security or Container
|
|
30
|
+
* Security.</p>
|
|
31
|
+
* <p>Use the <code>AssessmentTargetFilter</code> to scope results to a specific entity or
|
|
32
|
+
* change set, and use <code>FrameworkFilters</code> to scope results to a single
|
|
33
|
+
* framework. To retrieve detailed control-level results for an individual assessment, use
|
|
34
|
+
* the <code>DescribeAssessment</code> action.</p>
|
|
35
|
+
* <p>Results are sorted by assessment creation time in descending order.</p>
|
|
36
|
+
* @example
|
|
37
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
+
* ```javascript
|
|
39
|
+
* import { MarketplaceCatalogClient, ListAssessmentsCommand } from "@aws-sdk/client-marketplace-catalog"; // ES Modules import
|
|
40
|
+
* // const { MarketplaceCatalogClient, ListAssessmentsCommand } = require("@aws-sdk/client-marketplace-catalog"); // CommonJS import
|
|
41
|
+
* // import type { MarketplaceCatalogClientConfig } from "@aws-sdk/client-marketplace-catalog";
|
|
42
|
+
* const config = {}; // type is MarketplaceCatalogClientConfig
|
|
43
|
+
* const client = new MarketplaceCatalogClient(config);
|
|
44
|
+
* const input = { // ListAssessmentsRequest
|
|
45
|
+
* Catalog: "STRING_VALUE", // required
|
|
46
|
+
* FrameworkId: "STRING_VALUE",
|
|
47
|
+
* AssessmentTargetFilter: { // AssessmentTargetFilter
|
|
48
|
+
* EntityId: "STRING_VALUE",
|
|
49
|
+
* ChangeSetId: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* FrameworkFilters: { // FrameworkFilters Union: only one key present
|
|
52
|
+
* AMISecurityFilters: { // AMISecurityFilters
|
|
53
|
+
* DeliveryOptionId: "STRING_VALUE",
|
|
54
|
+
* },
|
|
55
|
+
* ContainerSecurityFilters: { // ContainerSecurityFilters
|
|
56
|
+
* DeliveryOptionId: "STRING_VALUE",
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* MaxResults: Number("int"),
|
|
60
|
+
* NextToken: "STRING_VALUE",
|
|
61
|
+
* };
|
|
62
|
+
* const command = new ListAssessmentsCommand(input);
|
|
63
|
+
* const response = await client.send(command);
|
|
64
|
+
* // { // ListAssessmentsResponse
|
|
65
|
+
* // AssessmentSummaryList: [ // AssessmentSummaryList
|
|
66
|
+
* // { // AssessmentSummary
|
|
67
|
+
* // AssessmentArn: "STRING_VALUE",
|
|
68
|
+
* // AssessmentId: "STRING_VALUE",
|
|
69
|
+
* // FrameworkId: "STRING_VALUE",
|
|
70
|
+
* // AssessmentTargetSummary: { // AssessmentTargetSummary
|
|
71
|
+
* // EntityId: "STRING_VALUE",
|
|
72
|
+
* // ChangeSetId: "STRING_VALUE",
|
|
73
|
+
* // },
|
|
74
|
+
* // FrameworkSummary: { // FrameworkSummary Union: only one key present
|
|
75
|
+
* // AMISecuritySummary: { // AMISecuritySummary
|
|
76
|
+
* // DeliveryOptionId: "STRING_VALUE",
|
|
77
|
+
* // },
|
|
78
|
+
* // ContainerSecuritySummary: { // ContainerSecuritySummary
|
|
79
|
+
* // DeliveryOptionId: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // AssessmentResult: "PASS" || "FAIL",
|
|
83
|
+
* // CreatedAt: "STRING_VALUE",
|
|
84
|
+
* // ExpiresAt: "STRING_VALUE",
|
|
85
|
+
* // },
|
|
86
|
+
* // ],
|
|
87
|
+
* // NextToken: "STRING_VALUE",
|
|
88
|
+
* // };
|
|
89
|
+
*
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @param ListAssessmentsCommandInput - {@link ListAssessmentsCommandInput}
|
|
93
|
+
* @returns {@link ListAssessmentsCommandOutput}
|
|
94
|
+
* @see {@link ListAssessmentsCommandInput} for command's `input` shape.
|
|
95
|
+
* @see {@link ListAssessmentsCommandOutput} for command's `response` shape.
|
|
96
|
+
* @see {@link MarketplaceCatalogClientResolvedConfig | config} for MarketplaceCatalogClient's `config` shape.
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
99
|
+
* <p>Access is denied.</p>
|
|
100
|
+
* <p>HTTP status code: 403</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
103
|
+
* <p>There was an internal service exception.</p>
|
|
104
|
+
* <p>HTTP status code: 500</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
107
|
+
* <p>Too many requests.</p>
|
|
108
|
+
* <p>HTTP status code: 429</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ValidationException} (client fault)
|
|
111
|
+
* <p>An error occurred during validation.</p>
|
|
112
|
+
* <p>HTTP status code: 422</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link MarketplaceCatalogServiceException}
|
|
115
|
+
* <p>Base exception class for all service exceptions from MarketplaceCatalog service.</p>
|
|
116
|
+
*
|
|
117
|
+
*
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
export declare class ListAssessmentsCommand extends ListAssessmentsCommand_base {
|
|
121
|
+
/** @internal type navigation helper, not in runtime. */
|
|
122
|
+
protected static __types: {
|
|
123
|
+
api: {
|
|
124
|
+
input: ListAssessmentsRequest;
|
|
125
|
+
output: ListAssessmentsResponse;
|
|
126
|
+
};
|
|
127
|
+
sdk: {
|
|
128
|
+
input: ListAssessmentsCommandInput;
|
|
129
|
+
output: ListAssessmentsCommandOutput;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from "./BatchDescribeEntitiesCommand";
|
|
2
2
|
export * from "./CancelChangeSetCommand";
|
|
3
3
|
export * from "./DeleteResourcePolicyCommand";
|
|
4
|
+
export * from "./DescribeAssessmentCommand";
|
|
4
5
|
export * from "./DescribeChangeSetCommand";
|
|
5
6
|
export * from "./DescribeEntityCommand";
|
|
6
7
|
export * from "./GetResourcePolicyCommand";
|
|
8
|
+
export * from "./ListAssessmentsCommand";
|
|
7
9
|
export * from "./ListChangeSetsCommand";
|
|
8
10
|
export * from "./ListEntitiesCommand";
|
|
9
11
|
export * from "./ListTagsForResourceCommand";
|
|
@@ -38,6 +38,46 @@ export declare const SortOrder: {
|
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
40
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
* @enum
|
|
44
|
+
*/
|
|
45
|
+
export declare const AssessmentResult: {
|
|
46
|
+
readonly FAIL: "FAIL";
|
|
47
|
+
readonly PASS: "PASS";
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export type AssessmentResult = (typeof AssessmentResult)[keyof typeof AssessmentResult];
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
* @enum
|
|
56
|
+
*/
|
|
57
|
+
export declare const ValidationExceptionReason: {
|
|
58
|
+
readonly CANNOT_PARSE: "CannotParse";
|
|
59
|
+
readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
|
|
60
|
+
readonly OTHER: "Other";
|
|
61
|
+
readonly UNKNOWN_OPERATION: "UnknownOperation";
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
* @enum
|
|
70
|
+
*/
|
|
71
|
+
export declare const ControlAssessmentResult: {
|
|
72
|
+
readonly EXEMPTION_PASS: "EXEMPTION_PASS";
|
|
73
|
+
readonly FAIL: "FAIL";
|
|
74
|
+
readonly NOT_EXECUTED: "NOT_EXECUTED";
|
|
75
|
+
readonly PASS: "PASS";
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export type ControlAssessmentResult = (typeof ControlAssessmentResult)[keyof typeof ControlAssessmentResult];
|
|
41
81
|
/**
|
|
42
82
|
* @public
|
|
43
83
|
* @enum
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
2
|
import { MarketplaceCatalogServiceException as __BaseException } from "./MarketplaceCatalogServiceException";
|
|
3
|
+
import type { ValidationExceptionField } from "./models_0";
|
|
3
4
|
/**
|
|
4
5
|
* <p>Access is denied.</p>
|
|
5
6
|
* <p>HTTP status code: 403</p>
|
|
@@ -51,6 +52,13 @@ export declare class ValidationException extends __BaseException {
|
|
|
51
52
|
readonly name: "ValidationException";
|
|
52
53
|
readonly $fault: "client";
|
|
53
54
|
Message?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* <p>A list of detailed entries describing the request fields that failed
|
|
57
|
+
* validation. Present when the failure can be attributed to one or more specific
|
|
58
|
+
* fields.</p>
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
ValidationExceptionFieldList?: ValidationExceptionField[] | undefined;
|
|
54
62
|
/**
|
|
55
63
|
* @internal
|
|
56
64
|
*/
|