UNPKG

17.3 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class MarketplaceCatalog extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: MarketplaceCatalog.Types.ClientConfiguration)
13 config: Config & MarketplaceCatalog.Types.ClientConfiguration;
14 /**
15 * Used to cancel an open change request. Must be sent before the status of the request changes to APPLYING, the final stage of completing your change request. You can describe a change during the 60-day request history retention period for API calls.
16 */
17 cancelChangeSet(params: MarketplaceCatalog.Types.CancelChangeSetRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.CancelChangeSetResponse) => void): Request<MarketplaceCatalog.Types.CancelChangeSetResponse, AWSError>;
18 /**
19 * Used to cancel an open change request. Must be sent before the status of the request changes to APPLYING, the final stage of completing your change request. You can describe a change during the 60-day request history retention period for API calls.
20 */
21 cancelChangeSet(callback?: (err: AWSError, data: MarketplaceCatalog.Types.CancelChangeSetResponse) => void): Request<MarketplaceCatalog.Types.CancelChangeSetResponse, AWSError>;
22 /**
23 * Provides information about a given change set.
24 */
25 describeChangeSet(params: MarketplaceCatalog.Types.DescribeChangeSetRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.DescribeChangeSetResponse) => void): Request<MarketplaceCatalog.Types.DescribeChangeSetResponse, AWSError>;
26 /**
27 * Provides information about a given change set.
28 */
29 describeChangeSet(callback?: (err: AWSError, data: MarketplaceCatalog.Types.DescribeChangeSetResponse) => void): Request<MarketplaceCatalog.Types.DescribeChangeSetResponse, AWSError>;
30 /**
31 * Returns the metadata and content of the entity.
32 */
33 describeEntity(params: MarketplaceCatalog.Types.DescribeEntityRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.DescribeEntityResponse) => void): Request<MarketplaceCatalog.Types.DescribeEntityResponse, AWSError>;
34 /**
35 * Returns the metadata and content of the entity.
36 */
37 describeEntity(callback?: (err: AWSError, data: MarketplaceCatalog.Types.DescribeEntityResponse) => void): Request<MarketplaceCatalog.Types.DescribeEntityResponse, AWSError>;
38 /**
39 * Returns the list of change sets owned by the account being used to make the call. You can filter this list by providing any combination of entityId, ChangeSetName, and status. If you provide more than one filter, the API operation applies a logical AND between the filters. You can describe a change during the 60-day request history retention period for API calls.
40 */
41 listChangeSets(params: MarketplaceCatalog.Types.ListChangeSetsRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListChangeSetsResponse) => void): Request<MarketplaceCatalog.Types.ListChangeSetsResponse, AWSError>;
42 /**
43 * Returns the list of change sets owned by the account being used to make the call. You can filter this list by providing any combination of entityId, ChangeSetName, and status. If you provide more than one filter, the API operation applies a logical AND between the filters. You can describe a change during the 60-day request history retention period for API calls.
44 */
45 listChangeSets(callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListChangeSetsResponse) => void): Request<MarketplaceCatalog.Types.ListChangeSetsResponse, AWSError>;
46 /**
47 * Provides the list of entities of a given type.
48 */
49 listEntities(params: MarketplaceCatalog.Types.ListEntitiesRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListEntitiesResponse) => void): Request<MarketplaceCatalog.Types.ListEntitiesResponse, AWSError>;
50 /**
51 * Provides the list of entities of a given type.
52 */
53 listEntities(callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListEntitiesResponse) => void): Request<MarketplaceCatalog.Types.ListEntitiesResponse, AWSError>;
54 /**
55 * This operation allows you to request changes in your entities.
56 */
57 startChangeSet(params: MarketplaceCatalog.Types.StartChangeSetRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.StartChangeSetResponse) => void): Request<MarketplaceCatalog.Types.StartChangeSetResponse, AWSError>;
58 /**
59 * This operation allows you to request changes in your entities.
60 */
61 startChangeSet(callback?: (err: AWSError, data: MarketplaceCatalog.Types.StartChangeSetResponse) => void): Request<MarketplaceCatalog.Types.StartChangeSetResponse, AWSError>;
62}
63declare namespace MarketplaceCatalog {
64 export type ARN = string;
65 export interface CancelChangeSetRequest {
66 /**
67 * Required. The catalog related to the request. Fixed value: AWSMarketplace.
68 */
69 Catalog: Catalog;
70 /**
71 * Required. The unique identifier of the StartChangeSet request that you want to cancel.
72 */
73 ChangeSetId: ResourceId;
74 }
75 export interface CancelChangeSetResponse {
76 /**
77 * The unique identifier for the change set referenced in this request.
78 */
79 ChangeSetId?: ResourceId;
80 /**
81 * The ARN associated with the change set referenced in this request.
82 */
83 ChangeSetArn?: ARN;
84 }
85 export type Catalog = string;
86 export interface Change {
87 /**
88 * Change types are single string values that describe your intention for the change. Each change type is unique for each EntityType provided in the change's scope.
89 */
90 ChangeType: ChangeType;
91 /**
92 * The entity to be changed.
93 */
94 Entity: Entity;
95 /**
96 * This object contains details specific to the change type of the requested change.
97 */
98 Details: Json;
99 }
100 export type ChangeSetDescription = ChangeSummary[];
101 export type ChangeSetName = string;
102 export type ChangeSetSummaryList = ChangeSetSummaryListItem[];
103 export interface ChangeSetSummaryListItem {
104 /**
105 * The unique identifier for a change set.
106 */
107 ChangeSetId?: ResourceId;
108 /**
109 * The ARN associated with the unique identifier for the change set referenced in this request.
110 */
111 ChangeSetArn?: ARN;
112 /**
113 * The non-unique name for the change set.
114 */
115 ChangeSetName?: ChangeSetName;
116 /**
117 * The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was started.
118 */
119 StartTime?: DateTimeISO8601;
120 /**
121 * The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was finished.
122 */
123 EndTime?: DateTimeISO8601;
124 /**
125 * The current status of the change set.
126 */
127 Status?: ChangeStatus;
128 /**
129 * This object is a list of entity IDs (string) that are a part of a change set. The entity ID list is a maximum of 20 entities. It must contain at least one entity.
130 */
131 EntityIdList?: ResourceIdList;
132 }
133 export type ChangeStatus = "PREPARING"|"APPLYING"|"SUCCEEDED"|"CANCELLED"|"FAILED"|string;
134 export interface ChangeSummary {
135 /**
136 * The type of the change.
137 */
138 ChangeType?: ChangeType;
139 /**
140 * The entity to be changed.
141 */
142 Entity?: Entity;
143 /**
144 * An array of ErrorDetail objects associated with the change.
145 */
146 ErrorDetailList?: ErrorDetailList;
147 }
148 export type ChangeType = string;
149 export type ClientRequestToken = string;
150 export type DateTimeISO8601 = string;
151 export interface DescribeChangeSetRequest {
152 /**
153 * Required. The catalog related to the request. Fixed value: AWSMarketplace
154 */
155 Catalog: Catalog;
156 /**
157 * Required. The unique identifier for the StartChangeSet request that you want to describe the details for.
158 */
159 ChangeSetId: ResourceId;
160 }
161 export interface DescribeChangeSetResponse {
162 /**
163 * Required. The unique identifier for the change set referenced in this request.
164 */
165 ChangeSetId?: ResourceId;
166 /**
167 * The ARN associated with the unique identifier for the change set referenced in this request.
168 */
169 ChangeSetArn?: ARN;
170 /**
171 * The optional name provided in the StartChangeSet request. If you do not provide a name, one is set by default.
172 */
173 ChangeSetName?: ChangeSetName;
174 /**
175 * The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request started.
176 */
177 StartTime?: DateTimeISO8601;
178 /**
179 * The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request transitioned to a terminal state. The change cannot transition to a different state. Null if the request is not in a terminal state.
180 */
181 EndTime?: DateTimeISO8601;
182 /**
183 * The status of the change request.
184 */
185 Status?: ChangeStatus;
186 /**
187 * Returned if there is a failure on the change set, but that failure is not related to any of the changes in the request.
188 */
189 FailureDescription?: StringValue;
190 /**
191 * An array of ChangeSummary objects.
192 */
193 ChangeSet?: ChangeSetDescription;
194 }
195 export interface DescribeEntityRequest {
196 /**
197 * Required. The catalog related to the request. Fixed value: AWSMarketplace
198 */
199 Catalog: Catalog;
200 /**
201 * Required. The unique ID of the entity to describe.
202 */
203 EntityId: ResourceId;
204 }
205 export interface DescribeEntityResponse {
206 /**
207 * The named type of the entity, in the format of EntityType@Version.
208 */
209 EntityType?: EntityType;
210 /**
211 * The identifier of the entity, in the format of EntityId@RevisionId.
212 */
213 EntityIdentifier?: Identifier;
214 /**
215 * The ARN associated to the unique identifier for the change set referenced in this request.
216 */
217 EntityArn?: ARN;
218 /**
219 * The last modified date of the entity, in ISO 8601 format (2018-02-27T13:45:22Z).
220 */
221 LastModifiedDate?: StringValue;
222 /**
223 * This stringified JSON object includes the details of the entity.
224 */
225 Details?: Json;
226 }
227 export interface Entity {
228 /**
229 * The type of entity.
230 */
231 Type: EntityType;
232 /**
233 * The identifier for the entity.
234 */
235 Identifier?: Identifier;
236 }
237 export interface EntitySummary {
238 /**
239 * The name for the entity. This value is not unique. It is defined by the provider.
240 */
241 Name?: StringValue;
242 /**
243 * The type of the entity.
244 */
245 EntityType?: EntityType;
246 /**
247 * The unique identifier for the entity.
248 */
249 EntityId?: ResourceId;
250 /**
251 * The ARN associated with the unique identifier for the entity.
252 */
253 EntityArn?: ARN;
254 /**
255 * The last time the entity was published, using ISO 8601 format (2018-02-27T13:45:22Z).
256 */
257 LastModifiedDate?: StringValue;
258 /**
259 * The visibility status of the entity to subscribers. This value can be Public (everyone can view the entity), Limited (the entity is visible to limited accounts only), or Restricted (the entity was published and then unpublished and only existing subscribers can view it).
260 */
261 Visibility?: StringValue;
262 }
263 export type EntitySummaryList = EntitySummary[];
264 export type EntityType = string;
265 export interface ErrorDetail {
266 /**
267 * The error code that identifies the type of error.
268 */
269 ErrorCode?: StringValue;
270 /**
271 * The message for the error.
272 */
273 ErrorMessage?: StringValue;
274 }
275 export type ErrorDetailList = ErrorDetail[];
276 export interface Filter {
277 /**
278 * For ListEntities, the supported value for this is an EntityId. For ListChangeSets, the supported values are as follows:
279 */
280 Name?: FilterName;
281 /**
282 * ListEntities - This is a list of unique EntityIds. ListChangeSets - The supported filter names and associated ValueLists is as follows: ChangeSetName - The supported ValueList is a list of non-unique ChangeSetNames. These are defined when you call the StartChangeSet action. Status - The supported ValueList is a list of statuses for all change set requests. EntityId - The supported ValueList is a list of unique EntityIds. BeforeStartTime - The supported ValueList is a list of all change sets that started before the filter value. AfterStartTime - The supported ValueList is a list of all change sets that started after the filter value. BeforeEndTime - The supported ValueList is a list of all change sets that ended before the filter value. AfterEndTime - The supported ValueList is a list of all change sets that ended after the filter value.
283 */
284 ValueList?: ValueList;
285 }
286 export type FilterList = Filter[];
287 export type FilterName = string;
288 export type Identifier = string;
289 export type Json = string;
290 export interface ListChangeSetsRequest {
291 /**
292 * The catalog related to the request. Fixed value: AWSMarketplace
293 */
294 Catalog: Catalog;
295 /**
296 * An array of filter objects.
297 */
298 FilterList?: FilterList;
299 /**
300 * An object that contains two attributes, sortBy and sortOrder.
301 */
302 Sort?: Sort;
303 /**
304 * The maximum number of results returned by a single call. This value must be provided in the next call to retrieve the next set of results. By default, this value is 20.
305 */
306 MaxResults?: MaxResultInteger;
307 /**
308 * The token value retrieved from a previous call to access the next page of results.
309 */
310 NextToken?: NextToken;
311 }
312 export interface ListChangeSetsResponse {
313 /**
314 * Array of ChangeSetSummaryListItem objects.
315 */
316 ChangeSetSummaryList?: ChangeSetSummaryList;
317 /**
318 * The value of the next token, if it exists. Null if there are no more results.
319 */
320 NextToken?: NextToken;
321 }
322 export interface ListEntitiesRequest {
323 /**
324 * The catalog related to the request. Fixed value: AWSMarketplace
325 */
326 Catalog: Catalog;
327 /**
328 * The type of entities to retrieve.
329 */
330 EntityType: EntityType;
331 /**
332 * An array of filter objects. Each filter object contains two attributes, filterName and filterValues.
333 */
334 FilterList?: FilterList;
335 /**
336 * An object that contains two attributes, sortBy and sortOrder.
337 */
338 Sort?: Sort;
339 /**
340 * The value of the next token, if it exists. Null if there are no more results.
341 */
342 NextToken?: NextToken;
343 /**
344 * Specifies the upper limit of the elements on a single page. If a value isn't provided, the default value is 20.
345 */
346 MaxResults?: MaxResultInteger;
347 }
348 export interface ListEntitiesResponse {
349 /**
350 * Array of EntitySummary object.
351 */
352 EntitySummaryList?: EntitySummaryList;
353 /**
354 * The value of the next token if it exists. Null if there is no more result.
355 */
356 NextToken?: NextToken;
357 }
358 export type MaxResultInteger = number;
359 export type NextToken = string;
360 export type RequestedChangeList = Change[];
361 export type ResourceId = string;
362 export type ResourceIdList = ResourceId[];
363 export interface Sort {
364 /**
365 * For ListEntities, supported attributes include LastModifiedDate (default), Visibility, EntityId, and Name. For ListChangeSets, supported attributes include StartTime and EndTime.
366 */
367 SortBy?: SortBy;
368 /**
369 * The sorting order. Can be ASCENDING or DESCENDING. The default value is DESCENDING.
370 */
371 SortOrder?: SortOrder;
372 }
373 export type SortBy = string;
374 export type SortOrder = "ASCENDING"|"DESCENDING"|string;
375 export interface StartChangeSetRequest {
376 /**
377 * The catalog related to the request. Fixed value: AWSMarketplace
378 */
379 Catalog: Catalog;
380 /**
381 * Array of change object.
382 */
383 ChangeSet: RequestedChangeList;
384 /**
385 * Optional case sensitive string of up to 100 ASCII characters. The change set name can be used to filter the list of change sets.
386 */
387 ChangeSetName?: ChangeSetName;
388 /**
389 * A unique token to identify the request to ensure idempotency.
390 */
391 ClientRequestToken?: ClientRequestToken;
392 }
393 export interface StartChangeSetResponse {
394 /**
395 * Unique identifier generated for the request.
396 */
397 ChangeSetId?: ResourceId;
398 /**
399 * The ARN associated to the unique identifier generated for the request.
400 */
401 ChangeSetArn?: ARN;
402 }
403 export type StringValue = string;
404 export type ValueList = StringValue[];
405 /**
406 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
407 */
408 export type apiVersion = "2018-09-17"|"latest"|string;
409 export interface ClientApiVersions {
410 /**
411 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
412 */
413 apiVersion?: apiVersion;
414 }
415 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
416 /**
417 * Contains interfaces for use with the MarketplaceCatalog client.
418 */
419 export import Types = MarketplaceCatalog;
420}
421export = MarketplaceCatalog;