marketplacedeployment.d.ts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class MarketplaceDeployment extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: MarketplaceDeployment.Types.ClientConfiguration)
  13. config: Config & MarketplaceDeployment.Types.ClientConfiguration;
  14. /**
  15. * Lists all tags that have been added to a deployment parameter resource.
  16. */
  17. listTagsForResource(params: MarketplaceDeployment.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: MarketplaceDeployment.Types.ListTagsForResourceResponse) => void): Request<MarketplaceDeployment.Types.ListTagsForResourceResponse, AWSError>;
  18. /**
  19. * Lists all tags that have been added to a deployment parameter resource.
  20. */
  21. listTagsForResource(callback?: (err: AWSError, data: MarketplaceDeployment.Types.ListTagsForResourceResponse) => void): Request<MarketplaceDeployment.Types.ListTagsForResourceResponse, AWSError>;
  22. /**
  23. * Creates or updates a deployment parameter and is targeted by catalog and agreementId.
  24. */
  25. putDeploymentParameter(params: MarketplaceDeployment.Types.PutDeploymentParameterRequest, callback?: (err: AWSError, data: MarketplaceDeployment.Types.PutDeploymentParameterResponse) => void): Request<MarketplaceDeployment.Types.PutDeploymentParameterResponse, AWSError>;
  26. /**
  27. * Creates or updates a deployment parameter and is targeted by catalog and agreementId.
  28. */
  29. putDeploymentParameter(callback?: (err: AWSError, data: MarketplaceDeployment.Types.PutDeploymentParameterResponse) => void): Request<MarketplaceDeployment.Types.PutDeploymentParameterResponse, AWSError>;
  30. /**
  31. * Tags a resource.
  32. */
  33. tagResource(params: MarketplaceDeployment.Types.TagResourceRequest, callback?: (err: AWSError, data: MarketplaceDeployment.Types.TagResourceResponse) => void): Request<MarketplaceDeployment.Types.TagResourceResponse, AWSError>;
  34. /**
  35. * Tags a resource.
  36. */
  37. tagResource(callback?: (err: AWSError, data: MarketplaceDeployment.Types.TagResourceResponse) => void): Request<MarketplaceDeployment.Types.TagResourceResponse, AWSError>;
  38. /**
  39. * Removes a tag or list of tags from a resource.
  40. */
  41. untagResource(params: MarketplaceDeployment.Types.UntagResourceRequest, callback?: (err: AWSError, data: MarketplaceDeployment.Types.UntagResourceResponse) => void): Request<MarketplaceDeployment.Types.UntagResourceResponse, AWSError>;
  42. /**
  43. * Removes a tag or list of tags from a resource.
  44. */
  45. untagResource(callback?: (err: AWSError, data: MarketplaceDeployment.Types.UntagResourceResponse) => void): Request<MarketplaceDeployment.Types.UntagResourceResponse, AWSError>;
  46. }
  47. declare namespace MarketplaceDeployment {
  48. export type Catalog = string;
  49. export type ClientToken = string;
  50. export interface DeploymentParameterInput {
  51. /**
  52. * The desired name of the deployment parameter. This is the identifier on which deployment parameters are keyed for a given buyer and product. If this name matches an existing deployment parameter, this request will update the existing resource.
  53. */
  54. name: DeploymentParameterName;
  55. /**
  56. * The text to encrypt and store in the secret.
  57. */
  58. secretString: SecretString;
  59. }
  60. export type DeploymentParameterName = string;
  61. export type DeploymentParameterResourceIdentifier = string;
  62. export interface ListTagsForResourceRequest {
  63. /**
  64. * The Amazon Resource Name (ARN) associated with the deployment parameter resource you want to list tags on.
  65. */
  66. resourceArn: String;
  67. }
  68. export interface ListTagsForResourceResponse {
  69. /**
  70. * A map of key-value pairs, where each pair represents a tag present on the resource.
  71. */
  72. tags?: Tags;
  73. }
  74. export interface PutDeploymentParameterRequest {
  75. /**
  76. * The unique identifier of the agreement.
  77. */
  78. agreementId: ResourceId;
  79. /**
  80. * The catalog related to the request. Fixed value: AWS Marketplace
  81. */
  82. catalog: Catalog;
  83. /**
  84. * The idempotency token for deployment parameters. A unique identifier for the new version.
  85. */
  86. clientToken?: ClientToken;
  87. /**
  88. * The deployment parameter targeted to the acceptor of an agreement for which to create the AWS Secret Manager resource.
  89. */
  90. deploymentParameter: DeploymentParameterInput;
  91. /**
  92. * The date when deployment parameters expire and are scheduled for deletion.
  93. */
  94. expirationDate?: SyntheticTimestamp_date_time;
  95. /**
  96. * The product for which AWS Marketplace will save secrets for the buyer’s account.
  97. */
  98. productId: ResourceId;
  99. /**
  100. * A map of key-value pairs, where each pair represents a tag saved to the resource. Tags will only be applied for create operations, and they'll be ignored if the resource already exists.
  101. */
  102. tags?: TagsMap;
  103. }
  104. export interface PutDeploymentParameterResponse {
  105. /**
  106. * The unique identifier of the agreement.
  107. */
  108. agreementId: ResourceId;
  109. /**
  110. * The unique identifier of the deployment parameter.
  111. */
  112. deploymentParameterId: DeploymentParameterResourceIdentifier;
  113. /**
  114. * The Amazon Resource Name (ARN) associated with the deployment parameter resource you want to create or update.
  115. */
  116. resourceArn: ResourceArn;
  117. /**
  118. * A map of key-value pairs, where each pair represents a tag saved to the resource. Tags will only be applied for create operations, and they'll be ignored if the resource already exists.
  119. */
  120. tags?: TagsMap;
  121. }
  122. export type ResourceArn = string;
  123. export type ResourceId = string;
  124. export type SecretString = string;
  125. export type String = string;
  126. export type StringList = String[];
  127. export type SyntheticTimestamp_date_time = Date;
  128. export type TagKey = string;
  129. export interface TagResourceRequest {
  130. /**
  131. * The Amazon Resource Name (ARN) associated with the resource you want to tag.
  132. */
  133. resourceArn: String;
  134. /**
  135. * A map of key-value pairs, where each pair represents a tag present on the resource.
  136. */
  137. tags?: Tags;
  138. }
  139. export interface TagResourceResponse {
  140. }
  141. export type TagValue = string;
  142. export type Tags = {[key: string]: String};
  143. export type TagsMap = {[key: string]: TagValue};
  144. export interface UntagResourceRequest {
  145. /**
  146. * The Amazon Resource Name (ARN) associated with the resource you want to remove the tag from.
  147. */
  148. resourceArn: String;
  149. /**
  150. * A list of key names of tags to be removed.
  151. */
  152. tagKeys: StringList;
  153. }
  154. export interface UntagResourceResponse {
  155. }
  156. /**
  157. * 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.
  158. */
  159. export type apiVersion = "2023-01-25"|"latest"|string;
  160. export interface ClientApiVersions {
  161. /**
  162. * 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.
  163. */
  164. apiVersion?: apiVersion;
  165. }
  166. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  167. /**
  168. * Contains interfaces for use with the MarketplaceDeployment client.
  169. */
  170. export import Types = MarketplaceDeployment;
  171. }
  172. export = MarketplaceDeployment;