-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathentities.ts
More file actions
64 lines (58 loc) · 1.59 KB
/
Copy pathentities.ts
File metadata and controls
64 lines (58 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import type { Entity } from "@emulators/core";
export interface S3Bucket extends Entity {
bucket_name: string;
region: string;
creation_date: string;
acl: "private" | "public-read" | "public-read-write";
versioning_enabled: boolean;
}
export interface S3Object extends Entity {
bucket_name: string;
key: string;
/** Object bytes, base64-encoded (binary-safe — see s3.ts handlePutObject). */
body: string;
content_type: string;
content_length: number;
etag: string;
last_modified: string;
metadata: Record<string, string>;
version_id?: string;
}
export interface SqsQueue extends Entity {
queue_name: string;
queue_url: string;
arn: string;
visibility_timeout: number;
delay_seconds: number;
max_message_size: number;
message_retention_period: number;
receive_message_wait_time: number;
fifo: boolean;
}
export interface SqsMessage extends Entity {
queue_name: string;
message_id: string;
receipt_handle: string;
body: string;
md5_of_body: string;
attributes: Record<string, string>;
message_attributes: Record<string, { DataType: string; StringValue?: string; BinaryValue?: string }>;
visible_after: number;
sent_timestamp: number;
receive_count: number;
}
export interface IamUser extends Entity {
user_name: string;
user_id: string;
arn: string;
path: string;
access_keys: Array<{ access_key_id: string; secret_access_key: string; status: "Active" | "Inactive" }>;
}
export interface IamRole extends Entity {
role_name: string;
role_id: string;
arn: string;
path: string;
assume_role_policy_document: string;
description: string;
}