UNPKG

30.8 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 MediaStore extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: MediaStore.Types.ClientConfiguration)
13 config: Config & MediaStore.Types.ClientConfiguration;
14 /**
15 * Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
16 */
17 createContainer(params: MediaStore.Types.CreateContainerInput, callback?: (err: AWSError, data: MediaStore.Types.CreateContainerOutput) => void): Request<MediaStore.Types.CreateContainerOutput, AWSError>;
18 /**
19 * Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
20 */
21 createContainer(callback?: (err: AWSError, data: MediaStore.Types.CreateContainerOutput) => void): Request<MediaStore.Types.CreateContainerOutput, AWSError>;
22 /**
23 * Deletes the specified container. Before you make a DeleteContainer request, delete any objects in the container or in any folders in the container. You can delete only empty containers.
24 */
25 deleteContainer(params: MediaStore.Types.DeleteContainerInput, callback?: (err: AWSError, data: MediaStore.Types.DeleteContainerOutput) => void): Request<MediaStore.Types.DeleteContainerOutput, AWSError>;
26 /**
27 * Deletes the specified container. Before you make a DeleteContainer request, delete any objects in the container or in any folders in the container. You can delete only empty containers.
28 */
29 deleteContainer(callback?: (err: AWSError, data: MediaStore.Types.DeleteContainerOutput) => void): Request<MediaStore.Types.DeleteContainerOutput, AWSError>;
30 /**
31 * Deletes the access policy that is associated with the specified container.
32 */
33 deleteContainerPolicy(params: MediaStore.Types.DeleteContainerPolicyInput, callback?: (err: AWSError, data: MediaStore.Types.DeleteContainerPolicyOutput) => void): Request<MediaStore.Types.DeleteContainerPolicyOutput, AWSError>;
34 /**
35 * Deletes the access policy that is associated with the specified container.
36 */
37 deleteContainerPolicy(callback?: (err: AWSError, data: MediaStore.Types.DeleteContainerPolicyOutput) => void): Request<MediaStore.Types.DeleteContainerPolicyOutput, AWSError>;
38 /**
39 * Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container. To use this operation, you must have permission to perform the MediaStore:DeleteCorsPolicy action. The container owner has this permission by default and can grant this permission to others.
40 */
41 deleteCorsPolicy(params: MediaStore.Types.DeleteCorsPolicyInput, callback?: (err: AWSError, data: MediaStore.Types.DeleteCorsPolicyOutput) => void): Request<MediaStore.Types.DeleteCorsPolicyOutput, AWSError>;
42 /**
43 * Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container. To use this operation, you must have permission to perform the MediaStore:DeleteCorsPolicy action. The container owner has this permission by default and can grant this permission to others.
44 */
45 deleteCorsPolicy(callback?: (err: AWSError, data: MediaStore.Types.DeleteCorsPolicyOutput) => void): Request<MediaStore.Types.DeleteCorsPolicyOutput, AWSError>;
46 /**
47 * Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.
48 */
49 deleteLifecyclePolicy(params: MediaStore.Types.DeleteLifecyclePolicyInput, callback?: (err: AWSError, data: MediaStore.Types.DeleteLifecyclePolicyOutput) => void): Request<MediaStore.Types.DeleteLifecyclePolicyOutput, AWSError>;
50 /**
51 * Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.
52 */
53 deleteLifecyclePolicy(callback?: (err: AWSError, data: MediaStore.Types.DeleteLifecyclePolicyOutput) => void): Request<MediaStore.Types.DeleteLifecyclePolicyOutput, AWSError>;
54 /**
55 * Retrieves the properties of the requested container. This request is commonly used to retrieve the endpoint of a container. An endpoint is a value assigned by the service when a new container is created. A container's endpoint does not change after it has been assigned. The DescribeContainer request returns a single Container object based on ContainerName. To return all Container objects that are associated with a specified AWS account, use ListContainers.
56 */
57 describeContainer(params: MediaStore.Types.DescribeContainerInput, callback?: (err: AWSError, data: MediaStore.Types.DescribeContainerOutput) => void): Request<MediaStore.Types.DescribeContainerOutput, AWSError>;
58 /**
59 * Retrieves the properties of the requested container. This request is commonly used to retrieve the endpoint of a container. An endpoint is a value assigned by the service when a new container is created. A container's endpoint does not change after it has been assigned. The DescribeContainer request returns a single Container object based on ContainerName. To return all Container objects that are associated with a specified AWS account, use ListContainers.
60 */
61 describeContainer(callback?: (err: AWSError, data: MediaStore.Types.DescribeContainerOutput) => void): Request<MediaStore.Types.DescribeContainerOutput, AWSError>;
62 /**
63 * Retrieves the access policy for the specified container. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.
64 */
65 getContainerPolicy(params: MediaStore.Types.GetContainerPolicyInput, callback?: (err: AWSError, data: MediaStore.Types.GetContainerPolicyOutput) => void): Request<MediaStore.Types.GetContainerPolicyOutput, AWSError>;
66 /**
67 * Retrieves the access policy for the specified container. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.
68 */
69 getContainerPolicy(callback?: (err: AWSError, data: MediaStore.Types.GetContainerPolicyOutput) => void): Request<MediaStore.Types.GetContainerPolicyOutput, AWSError>;
70 /**
71 * Returns the cross-origin resource sharing (CORS) configuration information that is set for the container. To use this operation, you must have permission to perform the MediaStore:GetCorsPolicy action. By default, the container owner has this permission and can grant it to others.
72 */
73 getCorsPolicy(params: MediaStore.Types.GetCorsPolicyInput, callback?: (err: AWSError, data: MediaStore.Types.GetCorsPolicyOutput) => void): Request<MediaStore.Types.GetCorsPolicyOutput, AWSError>;
74 /**
75 * Returns the cross-origin resource sharing (CORS) configuration information that is set for the container. To use this operation, you must have permission to perform the MediaStore:GetCorsPolicy action. By default, the container owner has this permission and can grant it to others.
76 */
77 getCorsPolicy(callback?: (err: AWSError, data: MediaStore.Types.GetCorsPolicyOutput) => void): Request<MediaStore.Types.GetCorsPolicyOutput, AWSError>;
78 /**
79 * Retrieves the object lifecycle policy that is assigned to a container.
80 */
81 getLifecyclePolicy(params: MediaStore.Types.GetLifecyclePolicyInput, callback?: (err: AWSError, data: MediaStore.Types.GetLifecyclePolicyOutput) => void): Request<MediaStore.Types.GetLifecyclePolicyOutput, AWSError>;
82 /**
83 * Retrieves the object lifecycle policy that is assigned to a container.
84 */
85 getLifecyclePolicy(callback?: (err: AWSError, data: MediaStore.Types.GetLifecyclePolicyOutput) => void): Request<MediaStore.Types.GetLifecyclePolicyOutput, AWSError>;
86 /**
87 * Lists the properties of all containers in AWS Elemental MediaStore. You can query to receive all the containers in one response. Or you can include the MaxResults parameter to receive a limited number of containers in each response. In this case, the response includes a token. To get the next set of containers, send the command again, this time with the NextToken parameter (with the returned token as its value). The next set of responses appears, with a token if there are still more containers to receive. See also DescribeContainer, which gets the properties of one container.
88 */
89 listContainers(params: MediaStore.Types.ListContainersInput, callback?: (err: AWSError, data: MediaStore.Types.ListContainersOutput) => void): Request<MediaStore.Types.ListContainersOutput, AWSError>;
90 /**
91 * Lists the properties of all containers in AWS Elemental MediaStore. You can query to receive all the containers in one response. Or you can include the MaxResults parameter to receive a limited number of containers in each response. In this case, the response includes a token. To get the next set of containers, send the command again, this time with the NextToken parameter (with the returned token as its value). The next set of responses appears, with a token if there are still more containers to receive. See also DescribeContainer, which gets the properties of one container.
92 */
93 listContainers(callback?: (err: AWSError, data: MediaStore.Types.ListContainersOutput) => void): Request<MediaStore.Types.ListContainersOutput, AWSError>;
94 /**
95 * Returns a list of the tags assigned to the specified container.
96 */
97 listTagsForResource(params: MediaStore.Types.ListTagsForResourceInput, callback?: (err: AWSError, data: MediaStore.Types.ListTagsForResourceOutput) => void): Request<MediaStore.Types.ListTagsForResourceOutput, AWSError>;
98 /**
99 * Returns a list of the tags assigned to the specified container.
100 */
101 listTagsForResource(callback?: (err: AWSError, data: MediaStore.Types.ListTagsForResourceOutput) => void): Request<MediaStore.Types.ListTagsForResourceOutput, AWSError>;
102 /**
103 * Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide. For this release of the REST API, you can create only one policy for a container. If you enter PutContainerPolicy twice, the second command modifies the existing policy.
104 */
105 putContainerPolicy(params: MediaStore.Types.PutContainerPolicyInput, callback?: (err: AWSError, data: MediaStore.Types.PutContainerPolicyOutput) => void): Request<MediaStore.Types.PutContainerPolicyOutput, AWSError>;
106 /**
107 * Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide. For this release of the REST API, you can create only one policy for a container. If you enter PutContainerPolicy twice, the second command modifies the existing policy.
108 */
109 putContainerPolicy(callback?: (err: AWSError, data: MediaStore.Types.PutContainerPolicyOutput) => void): Request<MediaStore.Types.PutContainerPolicyOutput, AWSError>;
110 /**
111 * Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service cross-origin requests. For example, you might want to enable a request whose origin is http://www.example.com to access your AWS Elemental MediaStore container at my.example.container.com by using the browser's XMLHttpRequest capability. To enable CORS on a container, you attach a CORS policy to the container. In the CORS policy, you configure rules that identify origins and the HTTP methods that can be executed on your container. The policy can contain up to 398,000 characters. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed. To learn more about CORS, see Cross-Origin Resource Sharing (CORS) in AWS Elemental MediaStore.
112 */
113 putCorsPolicy(params: MediaStore.Types.PutCorsPolicyInput, callback?: (err: AWSError, data: MediaStore.Types.PutCorsPolicyOutput) => void): Request<MediaStore.Types.PutCorsPolicyOutput, AWSError>;
114 /**
115 * Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service cross-origin requests. For example, you might want to enable a request whose origin is http://www.example.com to access your AWS Elemental MediaStore container at my.example.container.com by using the browser's XMLHttpRequest capability. To enable CORS on a container, you attach a CORS policy to the container. In the CORS policy, you configure rules that identify origins and the HTTP methods that can be executed on your container. The policy can contain up to 398,000 characters. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed. To learn more about CORS, see Cross-Origin Resource Sharing (CORS) in AWS Elemental MediaStore.
116 */
117 putCorsPolicy(callback?: (err: AWSError, data: MediaStore.Types.PutCorsPolicyOutput) => void): Request<MediaStore.Types.PutCorsPolicyOutput, AWSError>;
118 /**
119 * 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. For information about how to construct an object lifecycle policy, see Components of an Object Lifecycle Policy.
120 */
121 putLifecyclePolicy(params: MediaStore.Types.PutLifecyclePolicyInput, callback?: (err: AWSError, data: MediaStore.Types.PutLifecyclePolicyOutput) => void): Request<MediaStore.Types.PutLifecyclePolicyOutput, AWSError>;
122 /**
123 * 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. For information about how to construct an object lifecycle policy, see Components of an Object Lifecycle Policy.
124 */
125 putLifecyclePolicy(callback?: (err: AWSError, data: MediaStore.Types.PutLifecyclePolicyOutput) => void): Request<MediaStore.Types.PutLifecyclePolicyOutput, AWSError>;
126 /**
127 * 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.
128 */
129 startAccessLogging(params: MediaStore.Types.StartAccessLoggingInput, callback?: (err: AWSError, data: MediaStore.Types.StartAccessLoggingOutput) => void): Request<MediaStore.Types.StartAccessLoggingOutput, AWSError>;
130 /**
131 * 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.
132 */
133 startAccessLogging(callback?: (err: AWSError, data: MediaStore.Types.StartAccessLoggingOutput) => void): Request<MediaStore.Types.StartAccessLoggingOutput, AWSError>;
134 /**
135 * 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.
136 */
137 stopAccessLogging(params: MediaStore.Types.StopAccessLoggingInput, callback?: (err: AWSError, data: MediaStore.Types.StopAccessLoggingOutput) => void): Request<MediaStore.Types.StopAccessLoggingOutput, AWSError>;
138 /**
139 * 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.
140 */
141 stopAccessLogging(callback?: (err: AWSError, data: MediaStore.Types.StopAccessLoggingOutput) => void): Request<MediaStore.Types.StopAccessLoggingOutput, AWSError>;
142 /**
143 * Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the 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 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
144 */
145 tagResource(params: MediaStore.Types.TagResourceInput, callback?: (err: AWSError, data: MediaStore.Types.TagResourceOutput) => void): Request<MediaStore.Types.TagResourceOutput, AWSError>;
146 /**
147 * Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the 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 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
148 */
149 tagResource(callback?: (err: AWSError, data: MediaStore.Types.TagResourceOutput) => void): Request<MediaStore.Types.TagResourceOutput, AWSError>;
150 /**
151 * Removes tags from the specified container. You can specify one or more tags to remove.
152 */
153 untagResource(params: MediaStore.Types.UntagResourceInput, callback?: (err: AWSError, data: MediaStore.Types.UntagResourceOutput) => void): Request<MediaStore.Types.UntagResourceOutput, AWSError>;
154 /**
155 * Removes tags from the specified container. You can specify one or more tags to remove.
156 */
157 untagResource(callback?: (err: AWSError, data: MediaStore.Types.UntagResourceOutput) => void): Request<MediaStore.Types.UntagResourceOutput, AWSError>;
158}
159declare namespace MediaStore {
160 export type AllowedHeaders = Header[];
161 export type AllowedMethods = MethodName[];
162 export type AllowedOrigins = Origin[];
163 export interface Container {
164 /**
165 * The DNS endpoint of the container. Use the endpoint to identify the specific container when sending requests to the data plane. The service assigns this value when the container is created. Once the value has been assigned, it does not change.
166 */
167 Endpoint?: Endpoint;
168 /**
169 * Unix timestamp.
170 */
171 CreationTime?: TimeStamp;
172 /**
173 * The Amazon Resource Name (ARN) of the container. The ARN has the following format: arn:aws:&lt;region&gt;:&lt;account that owns this container&gt;:container/&lt;name of container&gt; For example: arn:aws:mediastore:us-west-2:111122223333:container/movies
174 */
175 ARN?: ContainerARN;
176 /**
177 * The name of the container.
178 */
179 Name?: ContainerName;
180 /**
181 * The status of container creation or deletion. The status is one of the following: CREATING, ACTIVE, or DELETING. While the service is creating the container, the status is CREATING. When the endpoint is available, the status changes to ACTIVE.
182 */
183 Status?: ContainerStatus;
184 /**
185 * The state of access logging on the container. This value is false by default, indicating that AWS Elemental MediaStore does not send access logs to Amazon CloudWatch Logs. When you enable access logging on the container, MediaStore changes this value to true, indicating that the service delivers access logs for objects stored in that container to CloudWatch Logs.
186 */
187 AccessLoggingEnabled?: ContainerAccessLoggingEnabled;
188 }
189 export type ContainerARN = string;
190 export type ContainerAccessLoggingEnabled = boolean;
191 export type ContainerList = Container[];
192 export type ContainerListLimit = number;
193 export type ContainerName = string;
194 export type ContainerPolicy = string;
195 export type ContainerStatus = "ACTIVE"|"CREATING"|"DELETING"|string;
196 export type CorsPolicy = CorsRule[];
197 export interface CorsRule {
198 /**
199 * One or more response headers that you want users to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). Each CORS rule must have at least one AllowedOrigins element. The string value can include only one wildcard character (*), for example, http://*.example.com. Additionally, you can specify only one wildcard character to allow cross-origin access for all origins.
200 */
201 AllowedOrigins: AllowedOrigins;
202 /**
203 * Identifies an HTTP method that the origin that is specified in the rule is allowed to execute. Each CORS rule must contain at least one AllowedMethods and one AllowedOrigins element.
204 */
205 AllowedMethods?: AllowedMethods;
206 /**
207 * Specifies which headers are allowed in a preflight OPTIONS request through the Access-Control-Request-Headers header. Each header name that is specified in Access-Control-Request-Headers must have a corresponding entry in the rule. Only the headers that were requested are sent back. This element can contain only one wildcard character (*).
208 */
209 AllowedHeaders: AllowedHeaders;
210 /**
211 * The time in seconds that your browser caches the preflight response for the specified resource. A CORS rule can have only one MaxAgeSeconds element.
212 */
213 MaxAgeSeconds?: MaxAgeSeconds;
214 /**
215 * One or more headers in the response that you want users to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). This element is optional for each rule.
216 */
217 ExposeHeaders?: ExposeHeaders;
218 }
219 export interface CreateContainerInput {
220 /**
221 * The name for the container. The name must be from 1 to 255 characters. Container names must be unique to your AWS account within a specific region. As an example, you could create a container named movies in every region, as long as you don’t have an existing container with that name.
222 */
223 ContainerName: ContainerName;
224 /**
225 * An array of key:value pairs that you define. These values can be anything that you want. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
226 */
227 Tags?: TagList;
228 }
229 export interface CreateContainerOutput {
230 /**
231 * ContainerARN: The Amazon Resource Name (ARN) of the newly created container. The ARN has the following format: arn:aws:&lt;region&gt;:&lt;account that owns this container&gt;:container/&lt;name of container&gt;. For example: arn:aws:mediastore:us-west-2:111122223333:container/movies ContainerName: The container name as specified in the request. CreationTime: Unix time stamp. Status: The status of container creation or deletion. The status is one of the following: CREATING, ACTIVE, or DELETING. While the service is creating the container, the status is CREATING. When an endpoint is available, the status changes to ACTIVE. The return value does not include the container's endpoint. To make downstream requests, you must obtain this value by using DescribeContainer or ListContainers.
232 */
233 Container: Container;
234 }
235 export interface DeleteContainerInput {
236 /**
237 * The name of the container to delete.
238 */
239 ContainerName: ContainerName;
240 }
241 export interface DeleteContainerOutput {
242 }
243 export interface DeleteContainerPolicyInput {
244 /**
245 * The name of the container that holds the policy.
246 */
247 ContainerName: ContainerName;
248 }
249 export interface DeleteContainerPolicyOutput {
250 }
251 export interface DeleteCorsPolicyInput {
252 /**
253 * The name of the container to remove the policy from.
254 */
255 ContainerName: ContainerName;
256 }
257 export interface DeleteCorsPolicyOutput {
258 }
259 export interface DeleteLifecyclePolicyInput {
260 /**
261 * The name of the container that holds the object lifecycle policy.
262 */
263 ContainerName: ContainerName;
264 }
265 export interface DeleteLifecyclePolicyOutput {
266 }
267 export interface DescribeContainerInput {
268 /**
269 * The name of the container to query.
270 */
271 ContainerName?: ContainerName;
272 }
273 export interface DescribeContainerOutput {
274 /**
275 * The name of the queried container.
276 */
277 Container?: Container;
278 }
279 export type Endpoint = string;
280 export type ExposeHeaders = Header[];
281 export interface GetContainerPolicyInput {
282 /**
283 * The name of the container.
284 */
285 ContainerName: ContainerName;
286 }
287 export interface GetContainerPolicyOutput {
288 /**
289 * The contents of the access policy.
290 */
291 Policy: ContainerPolicy;
292 }
293 export interface GetCorsPolicyInput {
294 /**
295 * The name of the container that the policy is assigned to.
296 */
297 ContainerName: ContainerName;
298 }
299 export interface GetCorsPolicyOutput {
300 /**
301 * The CORS policy assigned to the container.
302 */
303 CorsPolicy: CorsPolicy;
304 }
305 export interface GetLifecyclePolicyInput {
306 /**
307 * The name of the container that the object lifecycle policy is assigned to.
308 */
309 ContainerName: ContainerName;
310 }
311 export interface GetLifecyclePolicyOutput {
312 /**
313 * The object lifecycle policy that is assigned to the container.
314 */
315 LifecyclePolicy: LifecyclePolicy;
316 }
317 export type Header = string;
318 export type LifecyclePolicy = string;
319 export interface ListContainersInput {
320 /**
321 * Only if you used MaxResults in the first command, enter the token (which was included in the previous response) to obtain the next set of containers. This token is included in a response only if there actually are more containers to list.
322 */
323 NextToken?: PaginationToken;
324 /**
325 * Enter the maximum number of containers in the response. Use from 1 to 255 characters.
326 */
327 MaxResults?: ContainerListLimit;
328 }
329 export interface ListContainersOutput {
330 /**
331 * The names of the containers.
332 */
333 Containers: ContainerList;
334 /**
335 * NextToken is the token to use in the next call to ListContainers. This token is returned only if you included the MaxResults tag in the original command, and only if there are still containers to return.
336 */
337 NextToken?: PaginationToken;
338 }
339 export interface ListTagsForResourceInput {
340 /**
341 * The Amazon Resource Name (ARN) for the container.
342 */
343 Resource: ContainerARN;
344 }
345 export interface ListTagsForResourceOutput {
346 /**
347 * An array of key:value pairs that are assigned to the container.
348 */
349 Tags?: TagList;
350 }
351 export type MaxAgeSeconds = number;
352 export type MethodName = "PUT"|"GET"|"DELETE"|"HEAD"|string;
353 export type Origin = string;
354 export type PaginationToken = string;
355 export interface PutContainerPolicyInput {
356 /**
357 * The name of the container.
358 */
359 ContainerName: ContainerName;
360 /**
361 * The contents of the policy, which includes the following: One Version tag One Statement tag that contains the standard tags for the policy.
362 */
363 Policy: ContainerPolicy;
364 }
365 export interface PutContainerPolicyOutput {
366 }
367 export interface PutCorsPolicyInput {
368 /**
369 * The name of the container that you want to assign the CORS policy to.
370 */
371 ContainerName: ContainerName;
372 /**
373 * The CORS policy to apply to the container.
374 */
375 CorsPolicy: CorsPolicy;
376 }
377 export interface PutCorsPolicyOutput {
378 }
379 export interface PutLifecyclePolicyInput {
380 /**
381 * The name of the container that you want to assign the object lifecycle policy to.
382 */
383 ContainerName: ContainerName;
384 /**
385 * The object lifecycle policy to apply to the container.
386 */
387 LifecyclePolicy: LifecyclePolicy;
388 }
389 export interface PutLifecyclePolicyOutput {
390 }
391 export interface StartAccessLoggingInput {
392 /**
393 * The name of the container that you want to start access logging on.
394 */
395 ContainerName: ContainerName;
396 }
397 export interface StartAccessLoggingOutput {
398 }
399 export interface StopAccessLoggingInput {
400 /**
401 * The name of the container that you want to stop access logging on.
402 */
403 ContainerName: ContainerName;
404 }
405 export interface StopAccessLoggingOutput {
406 }
407 export interface Tag {
408 /**
409 * Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.
410 */
411 Key?: TagKey;
412 /**
413 * Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.
414 */
415 Value?: TagValue;
416 }
417 export type TagKey = string;
418 export type TagKeyList = TagKey[];
419 export type TagList = Tag[];
420 export interface TagResourceInput {
421 /**
422 * The Amazon Resource Name (ARN) for the container.
423 */
424 Resource: ContainerARN;
425 /**
426 * An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.
427 */
428 Tags: TagList;
429 }
430 export interface TagResourceOutput {
431 }
432 export type TagValue = string;
433 export type TimeStamp = Date;
434 export interface UntagResourceInput {
435 /**
436 * The Amazon Resource Name (ARN) for the container.
437 */
438 Resource: ContainerARN;
439 /**
440 * A comma-separated list of keys for tags that you want to remove from the container. For example, if your container has two tags (customer:CompanyA and priority:High) and you want to remove one of the tags (priority:High), you specify the key for the tag that you want to remove (priority).
441 */
442 TagKeys: TagKeyList;
443 }
444 export interface UntagResourceOutput {
445 }
446 /**
447 * 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.
448 */
449 export type apiVersion = "2017-09-01"|"latest"|string;
450 export interface ClientApiVersions {
451 /**
452 * 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.
453 */
454 apiVersion?: apiVersion;
455 }
456 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
457 /**
458 * Contains interfaces for use with the MediaStore client.
459 */
460 export import Types = MediaStore;
461}
462export = MediaStore;