putBucketInventory.d.ts 945 B

123456789101112131415161718192021222324252627282930313233343536
  1. declare type Field = 'Size | LastModifiedDate | ETag | StorageClass | IsMultipartUploaded | EncryptionStatus';
  2. interface Inventory {
  3. id: string;
  4. isEnabled: true | false;
  5. prefix?: string;
  6. OSSBucketDestination: {
  7. format: 'CSV';
  8. accountId: string;
  9. rolename: string;
  10. bucket: string;
  11. prefix?: string;
  12. encryption?: {
  13. 'SSE-OSS': '';
  14. } | {
  15. 'SSE-KMS': {
  16. keyId: string;
  17. };
  18. };
  19. };
  20. frequency: 'Daily' | 'Weekly';
  21. includedObjectVersions: 'Current' | 'All';
  22. optionalFields?: {
  23. field?: Field[];
  24. };
  25. }
  26. /**
  27. * putBucketInventory
  28. * @param {String} bucketName - bucket name
  29. * @param {Inventory} inventory
  30. * @param {Object} options
  31. */
  32. export declare function putBucketInventory(this: any, bucketName: string, inventory: Inventory, options?: any): Promise<{
  33. status: any;
  34. res: any;
  35. }>;
  36. export {};