-
Notifications
You must be signed in to change notification settings - Fork 10
/
schema.go
668 lines (614 loc) · 15.6 KB
/
schema.go
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
package main
func getdgraphSchema() string {
s := `
name: string @index(exact) .
OwnerId: string @index(term) .
OwnerName: string @index(term) .
Region: string @index(term) .
Service: string @index(term) .
AvailabilityZone: string @index(term) .
State: string @index(term) .
Status: string @index(term) .
PrivateIpAddress: string @index(term) .
PublicIpAddress: string @index(term) .
Arn: string @index(term) .
Description: string @index(term) .
CidrBlock: string @index(term) .
_Vpc: uid @reverse .
_Instance: [uid] @reverse .
_AvailabilityZone: [uid] @reverse .
_TargetGroup: [uid] @reverse .
_LoadBalancer: [uid] @reverse .
_Image: uid @reverse .
_Subnet: [uid] @reverse .
_SecurityGroup: [uid] @reverse .
_Snapshot: [uid] @reverse .
InstanceId: string @index(term) .
InstanceType: string @index(term) .
EbsOptimized: bool .
Hypervisor: string @index(term) .
VirtualizationType: string @index(term) .
_KeyName: uid @reverse .
_InstanceProfile: uid @reverse .
type Instance {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
InstanceId: string
InstanceType: string
State: string
EbsOptimized: bool
Hypervisor: string
VirtualizationType: string
PrivateIpAddress: string
PublicIpAddress: string
_KeyName: KeyPair
_AvailabilityZone: AvailabilityZone
_Vpc: Vpc
_InstanceProfile: InstanceProfile
_Image: Image
_Subnet: Subnet
}
Encrypted: string @index(term) .
VolumeId: string @index(term) .
VolumeType: string @index(term) .
AvailabilityZone: string @index(term) .
Iops: int .
Size: int .
Device: string @index(term) .
DeleteOnTermination: bool .
type Volume {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
VolumeId: string
DeleteOnTermination: bool
Device: string
Encrypted: bool
VolumeType: string
Size: int
Iops: int
State: string
_AvailabilityZone: AvailabilityZone
_Instance: Instance
_Snapshot: Snapshot
}
PublicIp: string @index(term) .
Domain: string @index(term) .
AllocationId: string @index(term) .
_NatGateway: [uid] @reverse .
type Address {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
PrivateIpAddress: string
PublicIp: string
Domain: string
AllocationId: string
_Instance: Instance
_NatGateway: NatGateway
}
ZoneName: string @index(term) .
ZoneId: string @index(term) .
type AvailabilityZone {
name: string
Service: string
Region: string
State: string
ZoneName: string
ZoneId: string
}
KeyName: string @index(term) .
KeyFingerprint: string @index(term) .
type KeyPair {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
State: string
KeyName: string
KeyFingerprint: string
}
VpcId: string @index(term) .
type Vpc {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
VpcId: string
CidrBlock: string
}
InstanceProfileId: string @index(term) .
InstanceProfileName: string @index(term) .
type InstanceProfile {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
InstanceProfileId: string
InstanceProfileName: string
Arn: string
}
AutoScalingGroupArn: string @index(term) .
AutoScalingGroupName: string @index(term) .
MinSize: int .
MaxSize: int .
DesiredCapacity: int .
DefaultCooldown: int .
HealthCheckGracePeriod: int .
HealthCheckType: string @index(term) .
NewInstancesProtectedFromScaleIn: bool .
TerminationPolicy: string @index(term) .
_LaunchConfiguration: uid @reverse .
_LaunchTemplate: uid @reverse .
type AutoScalingGroup {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
AutoScalingGroupArn: string
AutoScalingGroupName: string
TerminationPolicy: string
MinSize: int
MaxSize: int
DesiredCapacity: int
DefaultCooldown: int
HealthCheckGracePeriod: int
HealthCheckType: string
NewInstancesProtectedFromScaleIn: bool
_Instance: Instance
_TargetGroup: TargetGroup
_AvailabilityZone: AvailabilityZone
_LoadBalancer: LoadBalancer
_LaunchConfiguration: LaunchConfiguration
_LaunchTemplate: LaunchTemplate
}
LaunchConfigurationArn: string @index(term) .
LaunchConfigurationName: string @index(term) .
UserData: string @index(term) .
AssociatePublicIpAddress: bool .
type LaunchConfiguration {
name: string
Service: string
Region: string
OwnerId: string
LaunchConfigurationArn: string
LaunchConfigurationName: string
UserData: string
AssociatePublicIpAddress: bool
InstanceType: string
EbsOptimized: bool
_KeyName: KeyPair
_InstanceProfile: InstanceProfile
_Image: Image
_SecurityGroup: SecurityGroup
}
LaunchTemplateId: string @index(term) .
LaunchTemplateName: string @index(term) .
LatestVersionNumber: int .
DefaultVersionNumber: int .
CreatedBy: string @index(term) .
type LaunchTemplate {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
LaunchTemplateId: string
LaunchTemplateName: string
LatestVersionNumber: int
DefaultVersionNumber: int
CreatedBy: string
}
TargetGroupArn: string @index(term) .
TargetGroupName: string @index(term) .
TargetType: string @index(term) .
HealthCheckPath: string @index(term) .
HealthCheckPort: string @index(term) .
HealthyThresholdCount: int .
Port: int .
UnhealthyThresholdCount: int .
Protocol: string @index(term) .
type TargetGroup {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
TargetGroupArn: string
TargetGroupName: string
TargetType: string
HealthCheckPath: string
HealthCheckPort: string
HealthyThresholdCount: int
Port: int
UnhealthyThresholdCount: int
Protocol: string
_Vpc: Vpc
_LoadBalancer: LoadBalancer
}
LoadBalancerName: string @index(term) .
LoadBalancerArn: string @index(term) .
CanonicalHostedZoneNameId: string @index(term) .
CanonicalHostedZoneId: string @index(term) .
CanonicalHostedZoneName: string @index(term) .
DNSName: string @index(term) .
Scheme: string @index(term) .
LoadBalancerType: string @index(term) .
IPAddressType: string @index(term) .
type LoadBalancer {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
LoadBalancerName: string
LoadBalancerArn: string
CanonicalHostedZoneNameId: string
CanonicalHostedZoneId: string
CanonicalHostedZoneName: string
DNSName: string
Scheme: string
LoadBalancerType: string
IPAddressType: string
State: string
_Vpc: Vpc
_Instance: Instance
_AvailabilityZone: AvailabilityZone
}
SnapshotId: string @index(term) .
VolumeSize: int .
Encrypted: bool .
Progress: string @index(term) .
_Volume: uid @reverse .
DeviceName: string @index(term) .
type Snapshot {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
VpcId: string
SnapshotId: string
Description: string
VolumeSize: int
Encrypted: bool
Progress: string
DeviceName: string
_Volume: Volume
}
ImageId: string @index(term) .
VirtualizationType: string @index(term) .
Hypervisor: string @index(term) .
EnaSupport: bool .
SriovNetSupport: string @index(term) .
State: string @index(term) .
Architecture: string @index(term) .
ImageLocation: string @index(term) .
RootDeviceType: string @index(term) .
RootDeviceName: string @index(term) .
Public: bool .
ImageType: string @index(term) .
type Image {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
ImageId: string
VirtualizationType: string
Hypervisor: string
EnaSupport: bool
SriovNetSupport: string
State: string
Architecture: string
ImageLocation: string
RootDeviceType: string
RootDeviceName: string
Public: bool
ImageType: string
_Snapshot: Snapshot
}
SubnetId: string @index(term) .
MapPublicIPOnLaunch: bool .
DefaultForAz: bool .
AssignIPv6AddressOnCreation: bool .
AvailableIPAddressCount: string @index(term) .
PortTcp: string @index(term) .
PortUdp: string @index(term) .
type Subnet {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
SubnetId: string
MapPublicIPOnLaunch: bool
DefaultForAz: bool
AssignIPv6AddressOnCreation: bool
AvailableIPAddressCount: string
State: string
CidrBlock: string
_Vpc: Vpc
_AvailabilityZone: AvailabilityZone
}
GroupId: string @index(term) .
GroupName: string @index(term) .
PortTcp: string .
_Cidr: [uid] @reverse .
type SecurityGroup {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
GroupId: string
GroupName: string
PortTcp: string
_Vpc: Vpc
_SecurityGroup: SecurityGroup
_Cidr: Cidr
}
type Cidr {
name: string
Service: string
PortTcp: string
}
DbInstanceArn: string @index(term) .
DbInstanceIdentifier: string @index(term) .
DBName: string @index(term) .
DbInstanceStatus: string @index(term) .
DbInstanceClass: string @index(term) .
DbiResourceID: string @index(term) .
CACertificateIdentifier: string @index(term) .
PubliclyAccessible: bool .
MasterUsername: string @index(term) .
LicenseModel: string @index(term) .
CopyTagsToSnapshot: bool .
Engine: string @index(term) .
EngineVersion: string @index(term) .
Endpoint: string @index(term) .
Port: int .
MultiAZ: bool .
AutoMinorVersionUpgrade: bool .
IAMDatabaseAuthenticationEnabled: bool .
DeletionProtection: bool .
PreferredBackupWindow: string @index(term) .
PreferredMaintenanceWindow: string @index(term) .
PromotionTier: int .
AllocatedStorage: int .
StorageType: string @index(term) .
StorageEncrypted: bool .
BackupRetentionPeriod: int .
IsClusterWriter: bool .
_DbSubnetGroup: [uid] @reverse .
_DbParameterGroup: uid @reverse .
_OptionGroup: uid @reverse .
_SecondaryAvailabilityZone: uid @reverse .
_DbClusterParameterGroup: uid @reverse .
type DbInstance {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
DbInstanceArn: string
DbInstanceIdentifier: string
DBName: string
DbInstanceStatus: string
DbInstanceClass: string
DbiResourceID: string
CACertificateIdentifier: string
PubliclyAccessible: bool
MasterUsername: string
LicenseModel: string
CopyTagsToSnapshot: bool
Engine: string
EngineVersion: string
Endpoint: string
Port: int
MultiAZ: bool
AutoMinorVersionUpgrade: bool
IAMDatabaseAuthenticationEnabled: bool
DeletionProtection: bool
PreferredBackupWindow: string
PreferredMaintenanceWindow: string
PromotionTier: int
AllocatedStorage: int
StorageType: string
StorageEncrypted: bool
BackupRetentionPeriod: int
_AvailabilityZone: AvailabilityZone
_SecondaryAvailabilityZone: AvailabilityZone
_SecurityGroup: SecurityGroup
_Vpc: Vpc
_DbSubnetGroup: DbSubnetGroup
_DbParameterGroup: DbParameterGroup
_OptionGroup: OptionGroup
_DbClusterParameterGroup: DbClusterParameterGroup
}
DbClusterArn: string @index(term) .
DbClusterIdentifier: string @index(term) .
DbClusterResourceID: string @index(term) .
HostedZoneID: string @index(term) .
HTTPEndpointEnabled: bool .
EngineMode: string @index(term) .
ReaderEndpoint: string @index(term) .
_DbClusterMember: [uid] @reverse .
_ReadReplica: [uid] @reverse .
type DbCluster {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
DbClusterArn: string
DbClusterIdentifier: string
DbClusterResourceID: string
HostedZoneID: string
HTTPEndpointEnabled: bool
DBName: string
DbiResourceID: string
MasterUsername: string
Engine: string
EngineMode: string
EngineVersion: string
Endpoint: string
ReaderEndpoint: string
Port: int
MultiAZ: bool
Status: string
IAMDatabaseAuthenticationEnabled: bool
DeletionProtection: bool
PreferredBackupWindow: string
PreferredMaintenanceWindow: string
AllocatedStorage: int
StorageType: string
StorageEncrypted: bool
BackupRetentionPeriod: int
_AvailabilityZone: AvailabilityZone
_SecurityGroup: SecurityGroup
_DbClusterMember: DbInstance
_ReadReplica: DbInstance
_DbClusterParameterGroup: DbClusterParameterGroup
_DbSubnetGroup: DbSubnetGroup
}
OptionGroupArn: string @index(term) .
OptionGroupName: string @index(term) .
MajorEngineVersion: string @index(term) .
EngineName: string @index(term) .
AllowsVpcAndNonVpcInstanceMemberships: bool .
type OptionGroup {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
OptionGroupArn: string
OptionGroupName: string
MajorEngineVersion: string
EngineName: string
AllowsVpcAndNonVpcInstanceMemberships: bool
}
DbParameterGroupArn: string @index(term) .
DbParameterGroupName: string @index(term) .
DbParameterGroupFamily: string @index(term) .
type DbParameterGroup {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
DbParameterGroupArn: string
DbParameterGroupName: string
DbParameterGroupFamily: string
Description: string
}
DbClusterParameterGroupArn: string @index(term) .
DbClusterParameterGroupName: string @index(term) .
DbClusterscription: string @index(term) .
type DbClusterParameterGroup {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
DbClusterParameterGroupArn: string
DbClusterParameterGroupName: string
DbParameterGroupFamily: string
DbClusterscription: string
}
DbSubnetGroupArn: string @index(term) .
DbSubnetGroupName: string @index(term) .
SubnetGroupStatus: string @index(term) .
type DbSubnetGroup {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
DbSubnetGroupArn: string
DbSubnetGroupName: string
SubnetGroupStatus: string
Description: string
}
CacheClusterId: string @index(term) .
AuthTokenEnabled: bool .
NumCacheNodes: int .
TransitEncryptionEnabled: bool .
CacheNodeType: string @index(term) .
_CacheSubnetGroup: uid @reverse .
type CacheCluster {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
CacheClusterId: string
AuthTokenEnabled: bool
NumCacheNodes: int
TransitEncryptionEnabled: bool
CacheNodeType: string
Engine: string
Endpoint: string
Port: string
EngineVersion: string
AutoMinorVersionUpgrade: bool
Status: string
_AvailabilityZone: AvailabilityZone
_SecurityGroup: SecurityGroup
_Subnet: Subnet
}
CacheSubnetGroupName: string @index(term) .
type CacheSubnetGroup {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
CacheSubnetGroupName: string
Description: string
_Vpc: Vpc
_Subnet: Subnet
}
VpcPeeringConnectionId: string @index(term) .
_AccepterVpc: uid @reverse .
_RequesterVpc: uid @reverse .
type VpcPeeringConnection {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
VpcPeeringConnectionId: string
Status: string
_AccepterVpc: Vpc
_RequesterVpc: Vpc
}
NatGatewayId: string @index(term) .
type NatGateway {
name: string
Service: string
Region: string
OwnerId: string
OwnerName: string
NatGatewayId: string
PublicIpAddress: string
PrivateIpAddress: string
State: string
_Vpc: Vpc
_Subnet: Subnet
}
`
return s
}