import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class MarketplaceCatalog extends Service { /** * Constructs a service object. This object has one method for each API operation. */ constructor(options?: MarketplaceCatalog.Types.ClientConfiguration) config: Config & MarketplaceCatalog.Types.ClientConfiguration; /** * 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. */ cancelChangeSet(params: MarketplaceCatalog.Types.CancelChangeSetRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.CancelChangeSetResponse) => void): Request; /** * 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. */ cancelChangeSet(callback?: (err: AWSError, data: MarketplaceCatalog.Types.CancelChangeSetResponse) => void): Request; /** * Deletes a resource-based policy on an Entity that is identified by its resource ARN. */ deleteResourcePolicy(params: MarketplaceCatalog.Types.DeleteResourcePolicyRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.DeleteResourcePolicyResponse) => void): Request; /** * Deletes a resource-based policy on an Entity that is identified by its resource ARN. */ deleteResourcePolicy(callback?: (err: AWSError, data: MarketplaceCatalog.Types.DeleteResourcePolicyResponse) => void): Request; /** * Provides information about a given change set. */ describeChangeSet(params: MarketplaceCatalog.Types.DescribeChangeSetRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.DescribeChangeSetResponse) => void): Request; /** * Provides information about a given change set. */ describeChangeSet(callback?: (err: AWSError, data: MarketplaceCatalog.Types.DescribeChangeSetResponse) => void): Request; /** * Returns the metadata and content of the entity. */ describeEntity(params: MarketplaceCatalog.Types.DescribeEntityRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.DescribeEntityResponse) => void): Request; /** * Returns the metadata and content of the entity. */ describeEntity(callback?: (err: AWSError, data: MarketplaceCatalog.Types.DescribeEntityResponse) => void): Request; /** * Gets a resource-based policy of an Entity that is identified by its resource ARN. */ getResourcePolicy(params: MarketplaceCatalog.Types.GetResourcePolicyRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.GetResourcePolicyResponse) => void): Request; /** * Gets a resource-based policy of an Entity that is identified by its resource ARN. */ getResourcePolicy(callback?: (err: AWSError, data: MarketplaceCatalog.Types.GetResourcePolicyResponse) => void): Request; /** * 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. */ listChangeSets(params: MarketplaceCatalog.Types.ListChangeSetsRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListChangeSetsResponse) => void): Request; /** * 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. */ listChangeSets(callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListChangeSetsResponse) => void): Request; /** * Provides the list of entities of a given type. */ listEntities(params: MarketplaceCatalog.Types.ListEntitiesRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListEntitiesResponse) => void): Request; /** * Provides the list of entities of a given type. */ listEntities(callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListEntitiesResponse) => void): Request; /** * Lists all tags that have been added to a resource (either an entity or change set). */ listTagsForResource(params: MarketplaceCatalog.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListTagsForResourceResponse) => void): Request; /** * Lists all tags that have been added to a resource (either an entity or change set). */ listTagsForResource(callback?: (err: AWSError, data: MarketplaceCatalog.Types.ListTagsForResourceResponse) => void): Request; /** * Attaches a resource-based policy to an Entity. Examples of an entity include: AmiProduct and ContainerProduct. */ putResourcePolicy(params: MarketplaceCatalog.Types.PutResourcePolicyRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.PutResourcePolicyResponse) => void): Request; /** * Attaches a resource-based policy to an Entity. Examples of an entity include: AmiProduct and ContainerProduct. */ putResourcePolicy(callback?: (err: AWSError, data: MarketplaceCatalog.Types.PutResourcePolicyResponse) => void): Request; /** * Allows you to request changes for your entities. Within a single ChangeSet, you can't start the same change type against the same entity multiple times. Additionally, when a ChangeSet is running, all the entities targeted by the different changes are locked until the change set has completed (either succeeded, cancelled, or failed). If you try to start a change set containing a change against an entity that is already locked, you will receive a ResourceInUseException error. For example, you can't start the ChangeSet described in the example later in this topic because it contains two changes to run the same change type (AddRevisions) against the same entity (entity-id@1). For more information about working with change sets, see Working with change sets. For information on change types for single-AMI products, see Working with single-AMI products. Als, for more information on change types available for container-based products, see Working with container products. */ startChangeSet(params: MarketplaceCatalog.Types.StartChangeSetRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.StartChangeSetResponse) => void): Request; /** * Allows you to request changes for your entities. Within a single ChangeSet, you can't start the same change type against the same entity multiple times. Additionally, when a ChangeSet is running, all the entities targeted by the different changes are locked until the change set has completed (either succeeded, cancelled, or failed). If you try to start a change set containing a change against an entity that is already locked, you will receive a ResourceInUseException error. For example, you can't start the ChangeSet described in the example later in this topic because it contains two changes to run the same change type (AddRevisions) against the same entity (entity-id@1). For more information about working with change sets, see Working with change sets. For information on change types for single-AMI products, see Working with single-AMI products. Als, for more information on change types available for container-based products, see Working with container products. */ startChangeSet(callback?: (err: AWSError, data: MarketplaceCatalog.Types.StartChangeSetResponse) => void): Request; /** * Tags a resource (either an entity or change set). */ tagResource(params: MarketplaceCatalog.Types.TagResourceRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.TagResourceResponse) => void): Request; /** * Tags a resource (either an entity or change set). */ tagResource(callback?: (err: AWSError, data: MarketplaceCatalog.Types.TagResourceResponse) => void): Request; /** * Removes a tag or list of tags from a resource (either an entity or change set). */ untagResource(params: MarketplaceCatalog.Types.UntagResourceRequest, callback?: (err: AWSError, data: MarketplaceCatalog.Types.UntagResourceResponse) => void): Request; /** * Removes a tag or list of tags from a resource (either an entity or change set). */ untagResource(callback?: (err: AWSError, data: MarketplaceCatalog.Types.UntagResourceResponse) => void): Request; } declare namespace MarketplaceCatalog { export type ARN = string; export interface CancelChangeSetRequest { /** * Required. The catalog related to the request. Fixed value: AWSMarketplace. */ Catalog: Catalog; /** * Required. The unique identifier of the StartChangeSet request that you want to cancel. */ ChangeSetId: ResourceId; } export interface CancelChangeSetResponse { /** * The unique identifier for the change set referenced in this request. */ ChangeSetId?: ResourceId; /** * The ARN associated with the change set referenced in this request. */ ChangeSetArn?: ARN; } export type Catalog = string; export interface Change { /** * 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. For more information on change types available for single-AMI products, see Working with single-AMI products. Also, for more information on change types available for container-based products, see Working with container products. */ ChangeType: ChangeType; /** * The entity to be changed. */ Entity: Entity; /** * The tags associated with the change. */ EntityTags?: TagList; /** * This object contains details specific to the change type of the requested change. For more information on change types available for single-AMI products, see Working with single-AMI products. Also, for more information on change types available for container-based products, see Working with container products. */ Details: Json; /** * Optional name for the change. */ ChangeName?: ChangeName; } export type ChangeName = string; export type ChangeSetDescription = ChangeSummary[]; export type ChangeSetName = string; export type ChangeSetSummaryList = ChangeSetSummaryListItem[]; export interface ChangeSetSummaryListItem { /** * The unique identifier for a change set. */ ChangeSetId?: ResourceId; /** * The ARN associated with the unique identifier for the change set referenced in this request. */ ChangeSetArn?: ARN; /** * The non-unique name for the change set. */ ChangeSetName?: ChangeSetName; /** * The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was started. */ StartTime?: DateTimeISO8601; /** * The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was finished. */ EndTime?: DateTimeISO8601; /** * The current status of the change set. */ Status?: ChangeStatus; /** * 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. */ EntityIdList?: ResourceIdList; /** * Returned if the change set is in FAILED status. Can be either CLIENT_ERROR, which means that there are issues with the request (see the ErrorDetailList of DescribeChangeSet), or SERVER_FAULT, which means that there is a problem in the system, and you should retry your request. */ FailureCode?: FailureCode; } export type ChangeStatus = "PREPARING"|"APPLYING"|"SUCCEEDED"|"CANCELLED"|"FAILED"|string; export interface ChangeSummary { /** * The type of the change. */ ChangeType?: ChangeType; /** * The entity to be changed. */ Entity?: Entity; /** * This object contains details specific to the change type of the requested change. */ Details?: Json; /** * An array of ErrorDetail objects associated with the change. */ ErrorDetailList?: ErrorDetailList; /** * Optional name for the change. */ ChangeName?: ChangeName; } export type ChangeType = string; export type ClientRequestToken = string; export type DateTimeISO8601 = string; export interface DeleteResourcePolicyRequest { /** * The Amazon Resource Name (ARN) of the Entity resource that is associated with the resource policy. */ ResourceArn: ResourceARN; } export interface DeleteResourcePolicyResponse { } export interface DescribeChangeSetRequest { /** * Required. The catalog related to the request. Fixed value: AWSMarketplace */ Catalog: Catalog; /** * Required. The unique identifier for the StartChangeSet request that you want to describe the details for. */ ChangeSetId: ResourceId; } export interface DescribeChangeSetResponse { /** * Required. The unique identifier for the change set referenced in this request. */ ChangeSetId?: ResourceId; /** * The ARN associated with the unique identifier for the change set referenced in this request. */ ChangeSetArn?: ARN; /** * The optional name provided in the StartChangeSet request. If you do not provide a name, one is set by default. */ ChangeSetName?: ChangeSetName; /** * The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request started. */ StartTime?: DateTimeISO8601; /** * 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. */ EndTime?: DateTimeISO8601; /** * The status of the change request. */ Status?: ChangeStatus; /** * Returned if the change set is in FAILED status. Can be either CLIENT_ERROR, which means that there are issues with the request (see the ErrorDetailList), or SERVER_FAULT, which means that there is a problem in the system, and you should retry your request. */ FailureCode?: FailureCode; /** * Returned if there is a failure on the change set, but that failure is not related to any of the changes in the request. */ FailureDescription?: ExceptionMessageContent; /** * An array of ChangeSummary objects. */ ChangeSet?: ChangeSetDescription; } export interface DescribeEntityRequest { /** * Required. The catalog related to the request. Fixed value: AWSMarketplace */ Catalog: Catalog; /** * Required. The unique ID of the entity to describe. */ EntityId: ResourceId; } export interface DescribeEntityResponse { /** * The named type of the entity, in the format of EntityType@Version. */ EntityType?: EntityType; /** * The identifier of the entity, in the format of EntityId@RevisionId. */ EntityIdentifier?: Identifier; /** * The ARN associated to the unique identifier for the entity referenced in this request. */ EntityArn?: ARN; /** * The last modified date of the entity, in ISO 8601 format (2018-02-27T13:45:22Z). */ LastModifiedDate?: DateTimeISO8601; /** * This stringified JSON object includes the details of the entity. */ Details?: Json; } export interface Entity { /** * The type of entity. */ Type: EntityType; /** * The identifier for the entity. */ Identifier?: Identifier; } export type EntityNameString = string; export interface EntitySummary { /** * The name for the entity. This value is not unique. It is defined by the seller. */ Name?: EntityNameString; /** * The type of the entity. */ EntityType?: EntityType; /** * The unique identifier for the entity. */ EntityId?: ResourceId; /** * The ARN associated with the unique identifier for the entity. */ EntityArn?: ARN; /** * The last time the entity was published, using ISO 8601 format (2018-02-27T13:45:22Z). */ LastModifiedDate?: DateTimeISO8601; /** * The visibility status of the entity to buyers. 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 buyers can view it). */ Visibility?: VisibilityValue; } export type EntitySummaryList = EntitySummary[]; export type EntityType = string; export type ErrorCodeString = string; export interface ErrorDetail { /** * The error code that identifies the type of error. */ ErrorCode?: ErrorCodeString; /** * The message for the error. */ ErrorMessage?: ExceptionMessageContent; } export type ErrorDetailList = ErrorDetail[]; export type ExceptionMessageContent = string; export type FailureCode = "CLIENT_ERROR"|"SERVER_FAULT"|string; export interface Filter { /** * For ListEntities, the supported value for this is an EntityId. For ListChangeSets, the supported values are as follows: */ Name?: FilterName; /** * 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. */ ValueList?: ValueList; } export type FilterList = Filter[]; export type FilterName = string; export type FilterValueContent = string; export interface GetResourcePolicyRequest { /** * The Amazon Resource Name (ARN) of the Entity resource that is associated with the resource policy. */ ResourceArn: ResourceARN; } export interface GetResourcePolicyResponse { /** * The policy document to set; formatted in JSON. */ Policy?: ResourcePolicyJson; } export type Identifier = string; export type Json = string; export type ListChangeSetsMaxResultInteger = number; export interface ListChangeSetsRequest { /** * The catalog related to the request. Fixed value: AWSMarketplace */ Catalog: Catalog; /** * An array of filter objects. */ FilterList?: FilterList; /** * An object that contains two attributes, SortBy and SortOrder. */ Sort?: Sort; /** * 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. */ MaxResults?: ListChangeSetsMaxResultInteger; /** * The token value retrieved from a previous call to access the next page of results. */ NextToken?: NextToken; } export interface ListChangeSetsResponse { /** * Array of ChangeSetSummaryListItem objects. */ ChangeSetSummaryList?: ChangeSetSummaryList; /** * The value of the next token, if it exists. Null if there are no more results. */ NextToken?: NextToken; } export type ListEntitiesMaxResultInteger = number; export interface ListEntitiesRequest { /** * The catalog related to the request. Fixed value: AWSMarketplace */ Catalog: Catalog; /** * The type of entities to retrieve. */ EntityType: EntityType; /** * An array of filter objects. Each filter object contains two attributes, filterName and filterValues. */ FilterList?: FilterList; /** * An object that contains two attributes, SortBy and SortOrder. */ Sort?: Sort; /** * The value of the next token, if it exists. Null if there are no more results. */ NextToken?: NextToken; /** * Specifies the upper limit of the elements on a single page. If a value isn't provided, the default value is 20. */ MaxResults?: ListEntitiesMaxResultInteger; OwnershipType?: OwnershipType; } export interface ListEntitiesResponse { /** * Array of EntitySummary object. */ EntitySummaryList?: EntitySummaryList; /** * The value of the next token if it exists. Null if there is no more result. */ NextToken?: NextToken; } export interface ListTagsForResourceRequest { /** * Required. The Amazon Resource Name (ARN) associated with the resource you want to list tags on. */ ResourceArn: ResourceARN; } export interface ListTagsForResourceResponse { /** * Required. The ARN associated with the resource you want to list tags on. */ ResourceArn?: ResourceARN; /** * Required. A list of objects specifying each key name and value. Number of objects allowed: 1-50. */ Tags?: TagList; } export type NextToken = string; export type OwnershipType = "SELF"|"SHARED"|string; export interface PutResourcePolicyRequest { /** * The Amazon Resource Name (ARN) of the Entity resource you want to associate with a resource policy. */ ResourceArn: ResourceARN; /** * The policy document to set; formatted in JSON. */ Policy: ResourcePolicyJson; } export interface PutResourcePolicyResponse { } export type RequestedChangeList = Change[]; export type ResourceARN = string; export type ResourceId = string; export type ResourceIdList = ResourceId[]; export type ResourcePolicyJson = string; export interface Sort { /** * For ListEntities, supported attributes include LastModifiedDate (default), Visibility, EntityId, and Name. For ListChangeSets, supported attributes include StartTime and EndTime. */ SortBy?: SortBy; /** * The sorting order. Can be ASCENDING or DESCENDING. The default value is DESCENDING. */ SortOrder?: SortOrder; } export type SortBy = string; export type SortOrder = "ASCENDING"|"DESCENDING"|string; export interface StartChangeSetRequest { /** * The catalog related to the request. Fixed value: AWSMarketplace */ Catalog: Catalog; /** * Array of change object. */ ChangeSet: RequestedChangeList; /** * Optional case sensitive string of up to 100 ASCII characters. The change set name can be used to filter the list of change sets. */ ChangeSetName?: ChangeSetName; /** * A unique token to identify the request to ensure idempotency. */ ClientRequestToken?: ClientRequestToken; /** * A list of objects specifying each key name and value for the ChangeSetTags property. */ ChangeSetTags?: TagList; } export interface StartChangeSetResponse { /** * Unique identifier generated for the request. */ ChangeSetId?: ResourceId; /** * The ARN associated to the unique identifier generated for the request. */ ChangeSetArn?: ARN; } export interface Tag { /** * The key associated with the tag. */ Key: TagKey; /** * The value associated with the tag. */ Value: TagValue; } export type TagKey = string; export type TagKeyList = TagKey[]; export type TagList = Tag[]; export interface TagResourceRequest { /** * Required. The Amazon Resource Name (ARN) associated with the resource you want to tag. */ ResourceArn: ResourceARN; /** * Required. A list of objects specifying each key name and value. Number of objects allowed: 1-50. */ Tags: TagList; } export interface TagResourceResponse { } export type TagValue = string; export interface UntagResourceRequest { /** * Required. The Amazon Resource Name (ARN) associated with the resource you want to remove the tag from. */ ResourceArn: ResourceARN; /** * Required. A list of key names of tags to be removed. Number of strings allowed: 0-256. */ TagKeys: TagKeyList; } export interface UntagResourceResponse { } export type ValueList = FilterValueContent[]; export type VisibilityValue = string; /** * 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. */ export type apiVersion = "2018-09-17"|"latest"|string; export interface ClientApiVersions { /** * 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. */ apiVersion?: apiVersion; } export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions; /** * Contains interfaces for use with the MarketplaceCatalog client. */ export import Types = MarketplaceCatalog; } export = MarketplaceCatalog;