@aws-sdk/client-mediastore 3.35.0 → 3.38.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.
Files changed (214) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/MediaStore.js +0 -5
  3. package/dist-cjs/MediaStoreClient.js +0 -10
  4. package/dist-cjs/commands/CreateContainerCommand.js +0 -26
  5. package/dist-cjs/commands/DeleteContainerCommand.js +0 -27
  6. package/dist-cjs/commands/DeleteContainerPolicyCommand.js +0 -25
  7. package/dist-cjs/commands/DeleteCorsPolicyCommand.js +0 -29
  8. package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +0 -25
  9. package/dist-cjs/commands/DeleteMetricPolicyCommand.js +0 -25
  10. package/dist-cjs/commands/DescribeContainerCommand.js +0 -31
  11. package/dist-cjs/commands/GetContainerPolicyCommand.js +0 -27
  12. package/dist-cjs/commands/GetCorsPolicyCommand.js +0 -29
  13. package/dist-cjs/commands/GetLifecyclePolicyCommand.js +0 -25
  14. package/dist-cjs/commands/GetMetricPolicyCommand.js +0 -25
  15. package/dist-cjs/commands/ListContainersCommand.js +0 -33
  16. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  17. package/dist-cjs/commands/PutContainerPolicyCommand.js +0 -31
  18. package/dist-cjs/commands/PutCorsPolicyCommand.js +0 -35
  19. package/dist-cjs/commands/PutLifecyclePolicyCommand.js +0 -26
  20. package/dist-cjs/commands/PutMetricPolicyCommand.js +0 -25
  21. package/dist-cjs/commands/StartAccessLoggingCommand.js +0 -25
  22. package/dist-cjs/commands/StopAccessLoggingCommand.js +0 -25
  23. package/dist-cjs/commands/TagResourceCommand.js +0 -27
  24. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  25. package/dist-cjs/commands/index.js +24 -0
  26. package/dist-cjs/endpoints.js +1 -2
  27. package/dist-cjs/index.js +4 -26
  28. package/dist-cjs/models/index.js +0 -1
  29. package/dist-cjs/models/models_0.js +0 -160
  30. package/dist-cjs/pagination/Interfaces.js +0 -1
  31. package/dist-cjs/pagination/ListContainersPaginator.js +0 -11
  32. package/dist-cjs/pagination/index.js +5 -0
  33. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  34. package/dist-cjs/runtimeConfig.browser.js +1 -6
  35. package/dist-cjs/runtimeConfig.js +2 -7
  36. package/dist-cjs/runtimeConfig.native.js +0 -4
  37. package/dist-cjs/runtimeConfig.shared.js +0 -4
  38. package/dist-es/MediaStore.js +0 -1
  39. package/dist-es/MediaStoreClient.js +0 -1
  40. package/dist-es/commands/CreateContainerCommand.js +0 -1
  41. package/dist-es/commands/DeleteContainerCommand.js +0 -1
  42. package/dist-es/commands/DeleteContainerPolicyCommand.js +0 -1
  43. package/dist-es/commands/DeleteCorsPolicyCommand.js +0 -1
  44. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +0 -1
  45. package/dist-es/commands/DeleteMetricPolicyCommand.js +0 -1
  46. package/dist-es/commands/DescribeContainerCommand.js +0 -1
  47. package/dist-es/commands/GetContainerPolicyCommand.js +0 -1
  48. package/dist-es/commands/GetCorsPolicyCommand.js +0 -1
  49. package/dist-es/commands/GetLifecyclePolicyCommand.js +0 -1
  50. package/dist-es/commands/GetMetricPolicyCommand.js +0 -1
  51. package/dist-es/commands/ListContainersCommand.js +0 -1
  52. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  53. package/dist-es/commands/PutContainerPolicyCommand.js +0 -1
  54. package/dist-es/commands/PutCorsPolicyCommand.js +0 -1
  55. package/dist-es/commands/PutLifecyclePolicyCommand.js +0 -1
  56. package/dist-es/commands/PutMetricPolicyCommand.js +0 -1
  57. package/dist-es/commands/StartAccessLoggingCommand.js +0 -1
  58. package/dist-es/commands/StopAccessLoggingCommand.js +0 -1
  59. package/dist-es/commands/TagResourceCommand.js +0 -1
  60. package/dist-es/commands/UntagResourceCommand.js +0 -1
  61. package/dist-es/commands/index.js +21 -0
  62. package/dist-es/endpoints.js +1 -2
  63. package/dist-es/index.js +4 -26
  64. package/dist-es/models/index.js +0 -1
  65. package/dist-es/models/models_0.js +0 -1
  66. package/dist-es/pagination/Interfaces.js +0 -1
  67. package/dist-es/pagination/ListContainersPaginator.js +0 -1
  68. package/dist-es/pagination/index.js +2 -0
  69. package/dist-es/protocols/Aws_json1_1.js +0 -1
  70. package/dist-es/runtimeConfig.browser.js +1 -2
  71. package/dist-es/runtimeConfig.js +2 -3
  72. package/dist-es/runtimeConfig.native.js +0 -1
  73. package/dist-es/runtimeConfig.shared.js +0 -1
  74. package/dist-types/commands/index.d.ts +21 -0
  75. package/dist-types/index.d.ts +4 -25
  76. package/dist-types/pagination/index.d.ts +2 -0
  77. package/dist-types/ts3.4/MediaStore.d.ts +22 -113
  78. package/dist-types/ts3.4/MediaStoreClient.d.ts +24 -90
  79. package/dist-types/ts3.4/commands/CreateContainerCommand.d.ts +2 -21
  80. package/dist-types/ts3.4/commands/DeleteContainerCommand.d.ts +2 -22
  81. package/dist-types/ts3.4/commands/DeleteContainerPolicyCommand.d.ts +2 -20
  82. package/dist-types/ts3.4/commands/DeleteCorsPolicyCommand.d.ts +2 -24
  83. package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +2 -20
  84. package/dist-types/ts3.4/commands/DeleteMetricPolicyCommand.d.ts +2 -20
  85. package/dist-types/ts3.4/commands/DescribeContainerCommand.d.ts +2 -26
  86. package/dist-types/ts3.4/commands/GetContainerPolicyCommand.d.ts +2 -22
  87. package/dist-types/ts3.4/commands/GetCorsPolicyCommand.d.ts +2 -24
  88. package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +2 -20
  89. package/dist-types/ts3.4/commands/GetMetricPolicyCommand.d.ts +2 -20
  90. package/dist-types/ts3.4/commands/ListContainersCommand.d.ts +2 -28
  91. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  92. package/dist-types/ts3.4/commands/PutContainerPolicyCommand.d.ts +2 -26
  93. package/dist-types/ts3.4/commands/PutCorsPolicyCommand.d.ts +2 -30
  94. package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +2 -21
  95. package/dist-types/ts3.4/commands/PutMetricPolicyCommand.d.ts +2 -20
  96. package/dist-types/ts3.4/commands/StartAccessLoggingCommand.d.ts +2 -20
  97. package/dist-types/ts3.4/commands/StopAccessLoggingCommand.d.ts +2 -20
  98. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -22
  99. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  100. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  101. package/dist-types/ts3.4/index.d.ts +4 -25
  102. package/dist-types/ts3.4/models/models_0.d.ts +14 -746
  103. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  104. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  105. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  106. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  107. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  108. package/package.json +33 -30
  109. package/dist-cjs/MediaStore.js.map +0 -1
  110. package/dist-cjs/MediaStoreClient.js.map +0 -1
  111. package/dist-cjs/commands/CreateContainerCommand.js.map +0 -1
  112. package/dist-cjs/commands/DeleteContainerCommand.js.map +0 -1
  113. package/dist-cjs/commands/DeleteContainerPolicyCommand.js.map +0 -1
  114. package/dist-cjs/commands/DeleteCorsPolicyCommand.js.map +0 -1
  115. package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js.map +0 -1
  116. package/dist-cjs/commands/DeleteMetricPolicyCommand.js.map +0 -1
  117. package/dist-cjs/commands/DescribeContainerCommand.js.map +0 -1
  118. package/dist-cjs/commands/GetContainerPolicyCommand.js.map +0 -1
  119. package/dist-cjs/commands/GetCorsPolicyCommand.js.map +0 -1
  120. package/dist-cjs/commands/GetLifecyclePolicyCommand.js.map +0 -1
  121. package/dist-cjs/commands/GetMetricPolicyCommand.js.map +0 -1
  122. package/dist-cjs/commands/ListContainersCommand.js.map +0 -1
  123. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  124. package/dist-cjs/commands/PutContainerPolicyCommand.js.map +0 -1
  125. package/dist-cjs/commands/PutCorsPolicyCommand.js.map +0 -1
  126. package/dist-cjs/commands/PutLifecyclePolicyCommand.js.map +0 -1
  127. package/dist-cjs/commands/PutMetricPolicyCommand.js.map +0 -1
  128. package/dist-cjs/commands/StartAccessLoggingCommand.js.map +0 -1
  129. package/dist-cjs/commands/StopAccessLoggingCommand.js.map +0 -1
  130. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  131. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  132. package/dist-cjs/endpoints.js.map +0 -1
  133. package/dist-cjs/index.js.map +0 -1
  134. package/dist-cjs/models/index.js.map +0 -1
  135. package/dist-cjs/models/models_0.js.map +0 -1
  136. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  137. package/dist-cjs/pagination/ListContainersPaginator.js.map +0 -1
  138. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  139. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  140. package/dist-cjs/runtimeConfig.js.map +0 -1
  141. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  142. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  143. package/dist-es/MediaStore.js.map +0 -1
  144. package/dist-es/MediaStoreClient.js.map +0 -1
  145. package/dist-es/commands/CreateContainerCommand.js.map +0 -1
  146. package/dist-es/commands/DeleteContainerCommand.js.map +0 -1
  147. package/dist-es/commands/DeleteContainerPolicyCommand.js.map +0 -1
  148. package/dist-es/commands/DeleteCorsPolicyCommand.js.map +0 -1
  149. package/dist-es/commands/DeleteLifecyclePolicyCommand.js.map +0 -1
  150. package/dist-es/commands/DeleteMetricPolicyCommand.js.map +0 -1
  151. package/dist-es/commands/DescribeContainerCommand.js.map +0 -1
  152. package/dist-es/commands/GetContainerPolicyCommand.js.map +0 -1
  153. package/dist-es/commands/GetCorsPolicyCommand.js.map +0 -1
  154. package/dist-es/commands/GetLifecyclePolicyCommand.js.map +0 -1
  155. package/dist-es/commands/GetMetricPolicyCommand.js.map +0 -1
  156. package/dist-es/commands/ListContainersCommand.js.map +0 -1
  157. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  158. package/dist-es/commands/PutContainerPolicyCommand.js.map +0 -1
  159. package/dist-es/commands/PutCorsPolicyCommand.js.map +0 -1
  160. package/dist-es/commands/PutLifecyclePolicyCommand.js.map +0 -1
  161. package/dist-es/commands/PutMetricPolicyCommand.js.map +0 -1
  162. package/dist-es/commands/StartAccessLoggingCommand.js.map +0 -1
  163. package/dist-es/commands/StopAccessLoggingCommand.js.map +0 -1
  164. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  165. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  166. package/dist-es/endpoints.js.map +0 -1
  167. package/dist-es/index.js.map +0 -1
  168. package/dist-es/models/index.js.map +0 -1
  169. package/dist-es/models/models_0.js.map +0 -1
  170. package/dist-es/pagination/Interfaces.js.map +0 -1
  171. package/dist-es/pagination/ListContainersPaginator.js.map +0 -1
  172. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  173. package/dist-es/runtimeConfig.browser.js.map +0 -1
  174. package/dist-es/runtimeConfig.js.map +0 -1
  175. package/dist-es/runtimeConfig.native.js.map +0 -1
  176. package/dist-es/runtimeConfig.shared.js.map +0 -1
  177. package/jest.config.js +0 -4
  178. package/src/MediaStore.ts +0 -822
  179. package/src/MediaStoreClient.ts +0 -309
  180. package/src/commands/CreateContainerCommand.ts +0 -96
  181. package/src/commands/DeleteContainerCommand.ts +0 -97
  182. package/src/commands/DeleteContainerPolicyCommand.ts +0 -95
  183. package/src/commands/DeleteCorsPolicyCommand.ts +0 -99
  184. package/src/commands/DeleteLifecyclePolicyCommand.ts +0 -95
  185. package/src/commands/DeleteMetricPolicyCommand.ts +0 -95
  186. package/src/commands/DescribeContainerCommand.ts +0 -101
  187. package/src/commands/GetContainerPolicyCommand.ts +0 -97
  188. package/src/commands/GetCorsPolicyCommand.ts +0 -99
  189. package/src/commands/GetLifecyclePolicyCommand.ts +0 -95
  190. package/src/commands/GetMetricPolicyCommand.ts +0 -95
  191. package/src/commands/ListContainersCommand.ts +0 -103
  192. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  193. package/src/commands/PutContainerPolicyCommand.ts +0 -101
  194. package/src/commands/PutCorsPolicyCommand.ts +0 -105
  195. package/src/commands/PutLifecyclePolicyCommand.ts +0 -96
  196. package/src/commands/PutMetricPolicyCommand.ts +0 -95
  197. package/src/commands/StartAccessLoggingCommand.ts +0 -95
  198. package/src/commands/StopAccessLoggingCommand.ts +0 -95
  199. package/src/commands/TagResourceCommand.ts +0 -97
  200. package/src/commands/UntagResourceCommand.ts +0 -95
  201. package/src/endpoints.ts +0 -57
  202. package/src/index.ts +0 -26
  203. package/src/models/index.ts +0 -1
  204. package/src/models/models_0.ts +0 -1013
  205. package/src/pagination/Interfaces.ts +0 -8
  206. package/src/pagination/ListContainersPaginator.ts +0 -59
  207. package/src/protocols/Aws_json1_1.ts +0 -2693
  208. package/src/runtimeConfig.browser.ts +0 -41
  209. package/src/runtimeConfig.native.ts +0 -17
  210. package/src/runtimeConfig.shared.ts +0 -17
  211. package/src/runtimeConfig.ts +0 -46
  212. package/tsconfig.es.json +0 -10
  213. package/tsconfig.json +0 -33
  214. package/tsconfig.types.json +0 -9
package/src/MediaStore.ts DELETED
@@ -1,822 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- CreateContainerCommand,
5
- CreateContainerCommandInput,
6
- CreateContainerCommandOutput,
7
- } from "./commands/CreateContainerCommand";
8
- import {
9
- DeleteContainerCommand,
10
- DeleteContainerCommandInput,
11
- DeleteContainerCommandOutput,
12
- } from "./commands/DeleteContainerCommand";
13
- import {
14
- DeleteContainerPolicyCommand,
15
- DeleteContainerPolicyCommandInput,
16
- DeleteContainerPolicyCommandOutput,
17
- } from "./commands/DeleteContainerPolicyCommand";
18
- import {
19
- DeleteCorsPolicyCommand,
20
- DeleteCorsPolicyCommandInput,
21
- DeleteCorsPolicyCommandOutput,
22
- } from "./commands/DeleteCorsPolicyCommand";
23
- import {
24
- DeleteLifecyclePolicyCommand,
25
- DeleteLifecyclePolicyCommandInput,
26
- DeleteLifecyclePolicyCommandOutput,
27
- } from "./commands/DeleteLifecyclePolicyCommand";
28
- import {
29
- DeleteMetricPolicyCommand,
30
- DeleteMetricPolicyCommandInput,
31
- DeleteMetricPolicyCommandOutput,
32
- } from "./commands/DeleteMetricPolicyCommand";
33
- import {
34
- DescribeContainerCommand,
35
- DescribeContainerCommandInput,
36
- DescribeContainerCommandOutput,
37
- } from "./commands/DescribeContainerCommand";
38
- import {
39
- GetContainerPolicyCommand,
40
- GetContainerPolicyCommandInput,
41
- GetContainerPolicyCommandOutput,
42
- } from "./commands/GetContainerPolicyCommand";
43
- import {
44
- GetCorsPolicyCommand,
45
- GetCorsPolicyCommandInput,
46
- GetCorsPolicyCommandOutput,
47
- } from "./commands/GetCorsPolicyCommand";
48
- import {
49
- GetLifecyclePolicyCommand,
50
- GetLifecyclePolicyCommandInput,
51
- GetLifecyclePolicyCommandOutput,
52
- } from "./commands/GetLifecyclePolicyCommand";
53
- import {
54
- GetMetricPolicyCommand,
55
- GetMetricPolicyCommandInput,
56
- GetMetricPolicyCommandOutput,
57
- } from "./commands/GetMetricPolicyCommand";
58
- import {
59
- ListContainersCommand,
60
- ListContainersCommandInput,
61
- ListContainersCommandOutput,
62
- } from "./commands/ListContainersCommand";
63
- import {
64
- ListTagsForResourceCommand,
65
- ListTagsForResourceCommandInput,
66
- ListTagsForResourceCommandOutput,
67
- } from "./commands/ListTagsForResourceCommand";
68
- import {
69
- PutContainerPolicyCommand,
70
- PutContainerPolicyCommandInput,
71
- PutContainerPolicyCommandOutput,
72
- } from "./commands/PutContainerPolicyCommand";
73
- import {
74
- PutCorsPolicyCommand,
75
- PutCorsPolicyCommandInput,
76
- PutCorsPolicyCommandOutput,
77
- } from "./commands/PutCorsPolicyCommand";
78
- import {
79
- PutLifecyclePolicyCommand,
80
- PutLifecyclePolicyCommandInput,
81
- PutLifecyclePolicyCommandOutput,
82
- } from "./commands/PutLifecyclePolicyCommand";
83
- import {
84
- PutMetricPolicyCommand,
85
- PutMetricPolicyCommandInput,
86
- PutMetricPolicyCommandOutput,
87
- } from "./commands/PutMetricPolicyCommand";
88
- import {
89
- StartAccessLoggingCommand,
90
- StartAccessLoggingCommandInput,
91
- StartAccessLoggingCommandOutput,
92
- } from "./commands/StartAccessLoggingCommand";
93
- import {
94
- StopAccessLoggingCommand,
95
- StopAccessLoggingCommandInput,
96
- StopAccessLoggingCommandOutput,
97
- } from "./commands/StopAccessLoggingCommand";
98
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
99
- import {
100
- UntagResourceCommand,
101
- UntagResourceCommandInput,
102
- UntagResourceCommandOutput,
103
- } from "./commands/UntagResourceCommand";
104
- import { MediaStoreClient } from "./MediaStoreClient";
105
-
106
- /**
107
- * <p>An AWS Elemental MediaStore container is a namespace that holds folders and objects.
108
- * You use a container endpoint to create, read, and delete objects. </p>
109
- */
110
- export class MediaStore extends MediaStoreClient {
111
- /**
112
- * <p>Creates a storage container to hold objects. A container is similar to a bucket in
113
- * the Amazon S3 service.</p>
114
- */
115
- public createContainer(
116
- args: CreateContainerCommandInput,
117
- options?: __HttpHandlerOptions
118
- ): Promise<CreateContainerCommandOutput>;
119
- public createContainer(
120
- args: CreateContainerCommandInput,
121
- cb: (err: any, data?: CreateContainerCommandOutput) => void
122
- ): void;
123
- public createContainer(
124
- args: CreateContainerCommandInput,
125
- options: __HttpHandlerOptions,
126
- cb: (err: any, data?: CreateContainerCommandOutput) => void
127
- ): void;
128
- public createContainer(
129
- args: CreateContainerCommandInput,
130
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateContainerCommandOutput) => void),
131
- cb?: (err: any, data?: CreateContainerCommandOutput) => void
132
- ): Promise<CreateContainerCommandOutput> | void {
133
- const command = new CreateContainerCommand(args);
134
- if (typeof optionsOrCb === "function") {
135
- this.send(command, optionsOrCb);
136
- } else if (typeof cb === "function") {
137
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
- this.send(command, optionsOrCb || {}, cb);
139
- } else {
140
- return this.send(command, optionsOrCb);
141
- }
142
- }
143
-
144
- /**
145
- * <p>Deletes the specified container. Before you make a <code>DeleteContainer</code>
146
- * request, delete any objects in the container or in any folders in the container. You can
147
- * delete only empty containers. </p>
148
- */
149
- public deleteContainer(
150
- args: DeleteContainerCommandInput,
151
- options?: __HttpHandlerOptions
152
- ): Promise<DeleteContainerCommandOutput>;
153
- public deleteContainer(
154
- args: DeleteContainerCommandInput,
155
- cb: (err: any, data?: DeleteContainerCommandOutput) => void
156
- ): void;
157
- public deleteContainer(
158
- args: DeleteContainerCommandInput,
159
- options: __HttpHandlerOptions,
160
- cb: (err: any, data?: DeleteContainerCommandOutput) => void
161
- ): void;
162
- public deleteContainer(
163
- args: DeleteContainerCommandInput,
164
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteContainerCommandOutput) => void),
165
- cb?: (err: any, data?: DeleteContainerCommandOutput) => void
166
- ): Promise<DeleteContainerCommandOutput> | void {
167
- const command = new DeleteContainerCommand(args);
168
- if (typeof optionsOrCb === "function") {
169
- this.send(command, optionsOrCb);
170
- } else if (typeof cb === "function") {
171
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
- this.send(command, optionsOrCb || {}, cb);
173
- } else {
174
- return this.send(command, optionsOrCb);
175
- }
176
- }
177
-
178
- /**
179
- * <p>Deletes the access policy that is associated with the specified container.</p>
180
- */
181
- public deleteContainerPolicy(
182
- args: DeleteContainerPolicyCommandInput,
183
- options?: __HttpHandlerOptions
184
- ): Promise<DeleteContainerPolicyCommandOutput>;
185
- public deleteContainerPolicy(
186
- args: DeleteContainerPolicyCommandInput,
187
- cb: (err: any, data?: DeleteContainerPolicyCommandOutput) => void
188
- ): void;
189
- public deleteContainerPolicy(
190
- args: DeleteContainerPolicyCommandInput,
191
- options: __HttpHandlerOptions,
192
- cb: (err: any, data?: DeleteContainerPolicyCommandOutput) => void
193
- ): void;
194
- public deleteContainerPolicy(
195
- args: DeleteContainerPolicyCommandInput,
196
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteContainerPolicyCommandOutput) => void),
197
- cb?: (err: any, data?: DeleteContainerPolicyCommandOutput) => void
198
- ): Promise<DeleteContainerPolicyCommandOutput> | void {
199
- const command = new DeleteContainerPolicyCommand(args);
200
- if (typeof optionsOrCb === "function") {
201
- this.send(command, optionsOrCb);
202
- } else if (typeof cb === "function") {
203
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
- this.send(command, optionsOrCb || {}, cb);
205
- } else {
206
- return this.send(command, optionsOrCb);
207
- }
208
- }
209
-
210
- /**
211
- * <p>Deletes the cross-origin resource sharing (CORS) configuration information that is
212
- * set for the container.</p>
213
- * <p>To use this operation, you must have permission to perform the
214
- * <code>MediaStore:DeleteCorsPolicy</code> action. The container owner has this permission
215
- * by default and can grant this permission to others.</p>
216
- */
217
- public deleteCorsPolicy(
218
- args: DeleteCorsPolicyCommandInput,
219
- options?: __HttpHandlerOptions
220
- ): Promise<DeleteCorsPolicyCommandOutput>;
221
- public deleteCorsPolicy(
222
- args: DeleteCorsPolicyCommandInput,
223
- cb: (err: any, data?: DeleteCorsPolicyCommandOutput) => void
224
- ): void;
225
- public deleteCorsPolicy(
226
- args: DeleteCorsPolicyCommandInput,
227
- options: __HttpHandlerOptions,
228
- cb: (err: any, data?: DeleteCorsPolicyCommandOutput) => void
229
- ): void;
230
- public deleteCorsPolicy(
231
- args: DeleteCorsPolicyCommandInput,
232
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteCorsPolicyCommandOutput) => void),
233
- cb?: (err: any, data?: DeleteCorsPolicyCommandOutput) => void
234
- ): Promise<DeleteCorsPolicyCommandOutput> | void {
235
- const command = new DeleteCorsPolicyCommand(args);
236
- if (typeof optionsOrCb === "function") {
237
- this.send(command, optionsOrCb);
238
- } else if (typeof cb === "function") {
239
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
- this.send(command, optionsOrCb || {}, cb);
241
- } else {
242
- return this.send(command, optionsOrCb);
243
- }
244
- }
245
-
246
- /**
247
- * <p>Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.</p>
248
- */
249
- public deleteLifecyclePolicy(
250
- args: DeleteLifecyclePolicyCommandInput,
251
- options?: __HttpHandlerOptions
252
- ): Promise<DeleteLifecyclePolicyCommandOutput>;
253
- public deleteLifecyclePolicy(
254
- args: DeleteLifecyclePolicyCommandInput,
255
- cb: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void
256
- ): void;
257
- public deleteLifecyclePolicy(
258
- args: DeleteLifecyclePolicyCommandInput,
259
- options: __HttpHandlerOptions,
260
- cb: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void
261
- ): void;
262
- public deleteLifecyclePolicy(
263
- args: DeleteLifecyclePolicyCommandInput,
264
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteLifecyclePolicyCommandOutput) => void),
265
- cb?: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void
266
- ): Promise<DeleteLifecyclePolicyCommandOutput> | void {
267
- const command = new DeleteLifecyclePolicyCommand(args);
268
- if (typeof optionsOrCb === "function") {
269
- this.send(command, optionsOrCb);
270
- } else if (typeof cb === "function") {
271
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
- this.send(command, optionsOrCb || {}, cb);
273
- } else {
274
- return this.send(command, optionsOrCb);
275
- }
276
- }
277
-
278
- /**
279
- * <p>Deletes the metric policy that is associated with the specified container. If there is no metric policy associated with the container, MediaStore doesn't send metrics to CloudWatch.</p>
280
- */
281
- public deleteMetricPolicy(
282
- args: DeleteMetricPolicyCommandInput,
283
- options?: __HttpHandlerOptions
284
- ): Promise<DeleteMetricPolicyCommandOutput>;
285
- public deleteMetricPolicy(
286
- args: DeleteMetricPolicyCommandInput,
287
- cb: (err: any, data?: DeleteMetricPolicyCommandOutput) => void
288
- ): void;
289
- public deleteMetricPolicy(
290
- args: DeleteMetricPolicyCommandInput,
291
- options: __HttpHandlerOptions,
292
- cb: (err: any, data?: DeleteMetricPolicyCommandOutput) => void
293
- ): void;
294
- public deleteMetricPolicy(
295
- args: DeleteMetricPolicyCommandInput,
296
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteMetricPolicyCommandOutput) => void),
297
- cb?: (err: any, data?: DeleteMetricPolicyCommandOutput) => void
298
- ): Promise<DeleteMetricPolicyCommandOutput> | void {
299
- const command = new DeleteMetricPolicyCommand(args);
300
- if (typeof optionsOrCb === "function") {
301
- this.send(command, optionsOrCb);
302
- } else if (typeof cb === "function") {
303
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
- this.send(command, optionsOrCb || {}, cb);
305
- } else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
-
310
- /**
311
- * <p>Retrieves the properties of the requested container. This request is commonly used to
312
- * retrieve the endpoint of a container. An endpoint is a value assigned by the service when a
313
- * new container is created. A container's endpoint does not change after it has been
314
- * assigned. The <code>DescribeContainer</code> request returns a single
315
- * <code>Container</code> object based on <code>ContainerName</code>. To return all
316
- * <code>Container</code> objects that are associated with a specified AWS account, use
317
- * <a>ListContainers</a>.</p>
318
- */
319
- public describeContainer(
320
- args: DescribeContainerCommandInput,
321
- options?: __HttpHandlerOptions
322
- ): Promise<DescribeContainerCommandOutput>;
323
- public describeContainer(
324
- args: DescribeContainerCommandInput,
325
- cb: (err: any, data?: DescribeContainerCommandOutput) => void
326
- ): void;
327
- public describeContainer(
328
- args: DescribeContainerCommandInput,
329
- options: __HttpHandlerOptions,
330
- cb: (err: any, data?: DescribeContainerCommandOutput) => void
331
- ): void;
332
- public describeContainer(
333
- args: DescribeContainerCommandInput,
334
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeContainerCommandOutput) => void),
335
- cb?: (err: any, data?: DescribeContainerCommandOutput) => void
336
- ): Promise<DescribeContainerCommandOutput> | void {
337
- const command = new DescribeContainerCommand(args);
338
- if (typeof optionsOrCb === "function") {
339
- this.send(command, optionsOrCb);
340
- } else if (typeof cb === "function") {
341
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
342
- this.send(command, optionsOrCb || {}, cb);
343
- } else {
344
- return this.send(command, optionsOrCb);
345
- }
346
- }
347
-
348
- /**
349
- * <p>Retrieves the access policy for the specified container. For information about the
350
- * data that is included in an access policy, see the <a href="https://aws.amazon.com/documentation/iam/">AWS Identity and Access Management User
351
- * Guide</a>.</p>
352
- */
353
- public getContainerPolicy(
354
- args: GetContainerPolicyCommandInput,
355
- options?: __HttpHandlerOptions
356
- ): Promise<GetContainerPolicyCommandOutput>;
357
- public getContainerPolicy(
358
- args: GetContainerPolicyCommandInput,
359
- cb: (err: any, data?: GetContainerPolicyCommandOutput) => void
360
- ): void;
361
- public getContainerPolicy(
362
- args: GetContainerPolicyCommandInput,
363
- options: __HttpHandlerOptions,
364
- cb: (err: any, data?: GetContainerPolicyCommandOutput) => void
365
- ): void;
366
- public getContainerPolicy(
367
- args: GetContainerPolicyCommandInput,
368
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetContainerPolicyCommandOutput) => void),
369
- cb?: (err: any, data?: GetContainerPolicyCommandOutput) => void
370
- ): Promise<GetContainerPolicyCommandOutput> | void {
371
- const command = new GetContainerPolicyCommand(args);
372
- if (typeof optionsOrCb === "function") {
373
- this.send(command, optionsOrCb);
374
- } else if (typeof cb === "function") {
375
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
- this.send(command, optionsOrCb || {}, cb);
377
- } else {
378
- return this.send(command, optionsOrCb);
379
- }
380
- }
381
-
382
- /**
383
- * <p>Returns the cross-origin resource sharing (CORS) configuration information that is
384
- * set for the container.</p>
385
- * <p>To use this operation, you must have permission to perform the
386
- * <code>MediaStore:GetCorsPolicy</code> action. By default, the container owner has this
387
- * permission and can grant it to others.</p>
388
- */
389
- public getCorsPolicy(
390
- args: GetCorsPolicyCommandInput,
391
- options?: __HttpHandlerOptions
392
- ): Promise<GetCorsPolicyCommandOutput>;
393
- public getCorsPolicy(
394
- args: GetCorsPolicyCommandInput,
395
- cb: (err: any, data?: GetCorsPolicyCommandOutput) => void
396
- ): void;
397
- public getCorsPolicy(
398
- args: GetCorsPolicyCommandInput,
399
- options: __HttpHandlerOptions,
400
- cb: (err: any, data?: GetCorsPolicyCommandOutput) => void
401
- ): void;
402
- public getCorsPolicy(
403
- args: GetCorsPolicyCommandInput,
404
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCorsPolicyCommandOutput) => void),
405
- cb?: (err: any, data?: GetCorsPolicyCommandOutput) => void
406
- ): Promise<GetCorsPolicyCommandOutput> | void {
407
- const command = new GetCorsPolicyCommand(args);
408
- if (typeof optionsOrCb === "function") {
409
- this.send(command, optionsOrCb);
410
- } else if (typeof cb === "function") {
411
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
412
- this.send(command, optionsOrCb || {}, cb);
413
- } else {
414
- return this.send(command, optionsOrCb);
415
- }
416
- }
417
-
418
- /**
419
- * <p>Retrieves the object lifecycle policy that is assigned to a container.</p>
420
- */
421
- public getLifecyclePolicy(
422
- args: GetLifecyclePolicyCommandInput,
423
- options?: __HttpHandlerOptions
424
- ): Promise<GetLifecyclePolicyCommandOutput>;
425
- public getLifecyclePolicy(
426
- args: GetLifecyclePolicyCommandInput,
427
- cb: (err: any, data?: GetLifecyclePolicyCommandOutput) => void
428
- ): void;
429
- public getLifecyclePolicy(
430
- args: GetLifecyclePolicyCommandInput,
431
- options: __HttpHandlerOptions,
432
- cb: (err: any, data?: GetLifecyclePolicyCommandOutput) => void
433
- ): void;
434
- public getLifecyclePolicy(
435
- args: GetLifecyclePolicyCommandInput,
436
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetLifecyclePolicyCommandOutput) => void),
437
- cb?: (err: any, data?: GetLifecyclePolicyCommandOutput) => void
438
- ): Promise<GetLifecyclePolicyCommandOutput> | void {
439
- const command = new GetLifecyclePolicyCommand(args);
440
- if (typeof optionsOrCb === "function") {
441
- this.send(command, optionsOrCb);
442
- } else if (typeof cb === "function") {
443
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
444
- this.send(command, optionsOrCb || {}, cb);
445
- } else {
446
- return this.send(command, optionsOrCb);
447
- }
448
- }
449
-
450
- /**
451
- * <p>Returns the metric policy for the specified container. </p>
452
- */
453
- public getMetricPolicy(
454
- args: GetMetricPolicyCommandInput,
455
- options?: __HttpHandlerOptions
456
- ): Promise<GetMetricPolicyCommandOutput>;
457
- public getMetricPolicy(
458
- args: GetMetricPolicyCommandInput,
459
- cb: (err: any, data?: GetMetricPolicyCommandOutput) => void
460
- ): void;
461
- public getMetricPolicy(
462
- args: GetMetricPolicyCommandInput,
463
- options: __HttpHandlerOptions,
464
- cb: (err: any, data?: GetMetricPolicyCommandOutput) => void
465
- ): void;
466
- public getMetricPolicy(
467
- args: GetMetricPolicyCommandInput,
468
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMetricPolicyCommandOutput) => void),
469
- cb?: (err: any, data?: GetMetricPolicyCommandOutput) => void
470
- ): Promise<GetMetricPolicyCommandOutput> | void {
471
- const command = new GetMetricPolicyCommand(args);
472
- if (typeof optionsOrCb === "function") {
473
- this.send(command, optionsOrCb);
474
- } else if (typeof cb === "function") {
475
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
476
- this.send(command, optionsOrCb || {}, cb);
477
- } else {
478
- return this.send(command, optionsOrCb);
479
- }
480
- }
481
-
482
- /**
483
- * <p>Lists the properties of all containers in AWS Elemental MediaStore. </p>
484
- * <p>You can query to receive all the containers in one response. Or you can include the
485
- * <code>MaxResults</code> parameter to receive a limited number of containers in each
486
- * response. In this case, the response includes a token. To get the next set of containers,
487
- * send the command again, this time with the <code>NextToken</code> parameter (with the
488
- * returned token as its value). The next set of responses appears, with a token if there are
489
- * still more containers to receive. </p>
490
- * <p>See also <a>DescribeContainer</a>, which gets the properties of one
491
- * container. </p>
492
- */
493
- public listContainers(
494
- args: ListContainersCommandInput,
495
- options?: __HttpHandlerOptions
496
- ): Promise<ListContainersCommandOutput>;
497
- public listContainers(
498
- args: ListContainersCommandInput,
499
- cb: (err: any, data?: ListContainersCommandOutput) => void
500
- ): void;
501
- public listContainers(
502
- args: ListContainersCommandInput,
503
- options: __HttpHandlerOptions,
504
- cb: (err: any, data?: ListContainersCommandOutput) => void
505
- ): void;
506
- public listContainers(
507
- args: ListContainersCommandInput,
508
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListContainersCommandOutput) => void),
509
- cb?: (err: any, data?: ListContainersCommandOutput) => void
510
- ): Promise<ListContainersCommandOutput> | void {
511
- const command = new ListContainersCommand(args);
512
- if (typeof optionsOrCb === "function") {
513
- this.send(command, optionsOrCb);
514
- } else if (typeof cb === "function") {
515
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
516
- this.send(command, optionsOrCb || {}, cb);
517
- } else {
518
- return this.send(command, optionsOrCb);
519
- }
520
- }
521
-
522
- /**
523
- * <p>Returns a list of the tags assigned to the specified container. </p>
524
- */
525
- public listTagsForResource(
526
- args: ListTagsForResourceCommandInput,
527
- options?: __HttpHandlerOptions
528
- ): Promise<ListTagsForResourceCommandOutput>;
529
- public listTagsForResource(
530
- args: ListTagsForResourceCommandInput,
531
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
532
- ): void;
533
- public listTagsForResource(
534
- args: ListTagsForResourceCommandInput,
535
- options: __HttpHandlerOptions,
536
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
537
- ): void;
538
- public listTagsForResource(
539
- args: ListTagsForResourceCommandInput,
540
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
541
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
542
- ): Promise<ListTagsForResourceCommandOutput> | void {
543
- const command = new ListTagsForResourceCommand(args);
544
- if (typeof optionsOrCb === "function") {
545
- this.send(command, optionsOrCb);
546
- } else if (typeof cb === "function") {
547
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
548
- this.send(command, optionsOrCb || {}, cb);
549
- } else {
550
- return this.send(command, optionsOrCb);
551
- }
552
- }
553
-
554
- /**
555
- * <p>Creates an access policy for the specified container to restrict the users and
556
- * clients that can access it. For information about the data that is included in an access
557
- * policy, see the <a href="https://aws.amazon.com/documentation/iam/">AWS Identity and
558
- * Access Management User Guide</a>.</p>
559
- * <p>For this release of the REST API, you can create only one policy for a container. If
560
- * you enter <code>PutContainerPolicy</code> twice, the second command modifies the existing
561
- * policy. </p>
562
- */
563
- public putContainerPolicy(
564
- args: PutContainerPolicyCommandInput,
565
- options?: __HttpHandlerOptions
566
- ): Promise<PutContainerPolicyCommandOutput>;
567
- public putContainerPolicy(
568
- args: PutContainerPolicyCommandInput,
569
- cb: (err: any, data?: PutContainerPolicyCommandOutput) => void
570
- ): void;
571
- public putContainerPolicy(
572
- args: PutContainerPolicyCommandInput,
573
- options: __HttpHandlerOptions,
574
- cb: (err: any, data?: PutContainerPolicyCommandOutput) => void
575
- ): void;
576
- public putContainerPolicy(
577
- args: PutContainerPolicyCommandInput,
578
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutContainerPolicyCommandOutput) => void),
579
- cb?: (err: any, data?: PutContainerPolicyCommandOutput) => void
580
- ): Promise<PutContainerPolicyCommandOutput> | void {
581
- const command = new PutContainerPolicyCommand(args);
582
- if (typeof optionsOrCb === "function") {
583
- this.send(command, optionsOrCb);
584
- } else if (typeof cb === "function") {
585
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
586
- this.send(command, optionsOrCb || {}, cb);
587
- } else {
588
- return this.send(command, optionsOrCb);
589
- }
590
- }
591
-
592
- /**
593
- * <p>Sets the cross-origin resource sharing (CORS) configuration on a container so that
594
- * the container can service cross-origin requests. For example, you might want to enable a
595
- * request whose origin is http://www.example.com to access your AWS Elemental MediaStore
596
- * container at my.example.container.com by using the browser's XMLHttpRequest
597
- * capability.</p>
598
- * <p>To enable CORS on a container, you attach a CORS policy to the container. In the CORS
599
- * policy, you configure rules that identify origins and the HTTP methods that can be executed
600
- * on your container. The policy can contain up to 398,000 characters. You can add up to 100
601
- * rules to a CORS policy. If more than one rule applies, the service uses the first
602
- * applicable rule listed.</p>
603
- * <p>To learn more about CORS, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/cors-policy.html">Cross-Origin Resource Sharing (CORS) in AWS Elemental MediaStore</a>.</p>
604
- */
605
- public putCorsPolicy(
606
- args: PutCorsPolicyCommandInput,
607
- options?: __HttpHandlerOptions
608
- ): Promise<PutCorsPolicyCommandOutput>;
609
- public putCorsPolicy(
610
- args: PutCorsPolicyCommandInput,
611
- cb: (err: any, data?: PutCorsPolicyCommandOutput) => void
612
- ): void;
613
- public putCorsPolicy(
614
- args: PutCorsPolicyCommandInput,
615
- options: __HttpHandlerOptions,
616
- cb: (err: any, data?: PutCorsPolicyCommandOutput) => void
617
- ): void;
618
- public putCorsPolicy(
619
- args: PutCorsPolicyCommandInput,
620
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutCorsPolicyCommandOutput) => void),
621
- cb?: (err: any, data?: PutCorsPolicyCommandOutput) => void
622
- ): Promise<PutCorsPolicyCommandOutput> | void {
623
- const command = new PutCorsPolicyCommand(args);
624
- if (typeof optionsOrCb === "function") {
625
- this.send(command, optionsOrCb);
626
- } else if (typeof cb === "function") {
627
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
628
- this.send(command, optionsOrCb || {}, cb);
629
- } else {
630
- return this.send(command, optionsOrCb);
631
- }
632
- }
633
-
634
- /**
635
- * <p>Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.</p>
636
- * <p>For information about how to construct an object lifecycle policy, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/policies-object-lifecycle-components.html">Components of an Object Lifecycle Policy</a>.</p>
637
- */
638
- public putLifecyclePolicy(
639
- args: PutLifecyclePolicyCommandInput,
640
- options?: __HttpHandlerOptions
641
- ): Promise<PutLifecyclePolicyCommandOutput>;
642
- public putLifecyclePolicy(
643
- args: PutLifecyclePolicyCommandInput,
644
- cb: (err: any, data?: PutLifecyclePolicyCommandOutput) => void
645
- ): void;
646
- public putLifecyclePolicy(
647
- args: PutLifecyclePolicyCommandInput,
648
- options: __HttpHandlerOptions,
649
- cb: (err: any, data?: PutLifecyclePolicyCommandOutput) => void
650
- ): void;
651
- public putLifecyclePolicy(
652
- args: PutLifecyclePolicyCommandInput,
653
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutLifecyclePolicyCommandOutput) => void),
654
- cb?: (err: any, data?: PutLifecyclePolicyCommandOutput) => void
655
- ): Promise<PutLifecyclePolicyCommandOutput> | void {
656
- const command = new PutLifecyclePolicyCommand(args);
657
- if (typeof optionsOrCb === "function") {
658
- this.send(command, optionsOrCb);
659
- } else if (typeof cb === "function") {
660
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
661
- this.send(command, optionsOrCb || {}, cb);
662
- } else {
663
- return this.send(command, optionsOrCb);
664
- }
665
- }
666
-
667
- /**
668
- * <p>The metric policy that you want to add to the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes for the new policy to take effect.</p>
669
- */
670
- public putMetricPolicy(
671
- args: PutMetricPolicyCommandInput,
672
- options?: __HttpHandlerOptions
673
- ): Promise<PutMetricPolicyCommandOutput>;
674
- public putMetricPolicy(
675
- args: PutMetricPolicyCommandInput,
676
- cb: (err: any, data?: PutMetricPolicyCommandOutput) => void
677
- ): void;
678
- public putMetricPolicy(
679
- args: PutMetricPolicyCommandInput,
680
- options: __HttpHandlerOptions,
681
- cb: (err: any, data?: PutMetricPolicyCommandOutput) => void
682
- ): void;
683
- public putMetricPolicy(
684
- args: PutMetricPolicyCommandInput,
685
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutMetricPolicyCommandOutput) => void),
686
- cb?: (err: any, data?: PutMetricPolicyCommandOutput) => void
687
- ): Promise<PutMetricPolicyCommandOutput> | void {
688
- const command = new PutMetricPolicyCommand(args);
689
- if (typeof optionsOrCb === "function") {
690
- this.send(command, optionsOrCb);
691
- } else if (typeof cb === "function") {
692
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
693
- this.send(command, optionsOrCb || {}, cb);
694
- } else {
695
- return this.send(command, optionsOrCb);
696
- }
697
- }
698
-
699
- /**
700
- * <p>Starts access logging on the specified container. When you enable access logging on a container, MediaStore delivers access logs for objects stored in that container to Amazon CloudWatch Logs.</p>
701
- */
702
- public startAccessLogging(
703
- args: StartAccessLoggingCommandInput,
704
- options?: __HttpHandlerOptions
705
- ): Promise<StartAccessLoggingCommandOutput>;
706
- public startAccessLogging(
707
- args: StartAccessLoggingCommandInput,
708
- cb: (err: any, data?: StartAccessLoggingCommandOutput) => void
709
- ): void;
710
- public startAccessLogging(
711
- args: StartAccessLoggingCommandInput,
712
- options: __HttpHandlerOptions,
713
- cb: (err: any, data?: StartAccessLoggingCommandOutput) => void
714
- ): void;
715
- public startAccessLogging(
716
- args: StartAccessLoggingCommandInput,
717
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartAccessLoggingCommandOutput) => void),
718
- cb?: (err: any, data?: StartAccessLoggingCommandOutput) => void
719
- ): Promise<StartAccessLoggingCommandOutput> | void {
720
- const command = new StartAccessLoggingCommand(args);
721
- if (typeof optionsOrCb === "function") {
722
- this.send(command, optionsOrCb);
723
- } else if (typeof cb === "function") {
724
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
725
- this.send(command, optionsOrCb || {}, cb);
726
- } else {
727
- return this.send(command, optionsOrCb);
728
- }
729
- }
730
-
731
- /**
732
- * <p>Stops access logging on the specified container. When you stop access logging on a container, MediaStore stops sending access logs to Amazon CloudWatch Logs. These access logs are not saved and are not retrievable.</p>
733
- */
734
- public stopAccessLogging(
735
- args: StopAccessLoggingCommandInput,
736
- options?: __HttpHandlerOptions
737
- ): Promise<StopAccessLoggingCommandOutput>;
738
- public stopAccessLogging(
739
- args: StopAccessLoggingCommandInput,
740
- cb: (err: any, data?: StopAccessLoggingCommandOutput) => void
741
- ): void;
742
- public stopAccessLogging(
743
- args: StopAccessLoggingCommandInput,
744
- options: __HttpHandlerOptions,
745
- cb: (err: any, data?: StopAccessLoggingCommandOutput) => void
746
- ): void;
747
- public stopAccessLogging(
748
- args: StopAccessLoggingCommandInput,
749
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopAccessLoggingCommandOutput) => void),
750
- cb?: (err: any, data?: StopAccessLoggingCommandOutput) => void
751
- ): Promise<StopAccessLoggingCommandOutput> | void {
752
- const command = new StopAccessLoggingCommand(args);
753
- if (typeof optionsOrCb === "function") {
754
- this.send(command, optionsOrCb);
755
- } else if (typeof cb === "function") {
756
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
757
- this.send(command, optionsOrCb || {}, cb);
758
- } else {
759
- return this.send(command, optionsOrCb);
760
- }
761
- }
762
-
763
- /**
764
- * <p>Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the
765
- * tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50
766
- * tags to each container. For more information about tagging, including naming and usage conventions, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html">Tagging Resources in MediaStore</a>.</p>
767
- */
768
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
769
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
770
- public tagResource(
771
- args: TagResourceCommandInput,
772
- options: __HttpHandlerOptions,
773
- cb: (err: any, data?: TagResourceCommandOutput) => void
774
- ): void;
775
- public tagResource(
776
- args: TagResourceCommandInput,
777
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
778
- cb?: (err: any, data?: TagResourceCommandOutput) => void
779
- ): Promise<TagResourceCommandOutput> | void {
780
- const command = new TagResourceCommand(args);
781
- if (typeof optionsOrCb === "function") {
782
- this.send(command, optionsOrCb);
783
- } else if (typeof cb === "function") {
784
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
785
- this.send(command, optionsOrCb || {}, cb);
786
- } else {
787
- return this.send(command, optionsOrCb);
788
- }
789
- }
790
-
791
- /**
792
- * <p>Removes tags from the specified container. You can specify one or more tags to remove. </p>
793
- */
794
- public untagResource(
795
- args: UntagResourceCommandInput,
796
- options?: __HttpHandlerOptions
797
- ): Promise<UntagResourceCommandOutput>;
798
- public untagResource(
799
- args: UntagResourceCommandInput,
800
- cb: (err: any, data?: UntagResourceCommandOutput) => void
801
- ): void;
802
- public untagResource(
803
- args: UntagResourceCommandInput,
804
- options: __HttpHandlerOptions,
805
- cb: (err: any, data?: UntagResourceCommandOutput) => void
806
- ): void;
807
- public untagResource(
808
- args: UntagResourceCommandInput,
809
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
810
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
811
- ): Promise<UntagResourceCommandOutput> | void {
812
- const command = new UntagResourceCommand(args);
813
- if (typeof optionsOrCb === "function") {
814
- this.send(command, optionsOrCb);
815
- } else if (typeof cb === "function") {
816
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
817
- this.send(command, optionsOrCb || {}, cb);
818
- } else {
819
- return this.send(command, optionsOrCb);
820
- }
821
- }
822
- }