cartography 0.104.0rc3__py3-none-any.whl → 0.106.0__py3-none-any.whl
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.
Potentially problematic release.
This version of cartography might be problematic. Click here for more details.
- cartography/_version.py +2 -2
- cartography/cli.py +104 -3
- cartography/client/aws/__init__.py +19 -0
- cartography/client/aws/ecr.py +51 -0
- cartography/client/core/tx.py +62 -0
- cartography/config.py +32 -0
- cartography/data/indexes.cypher +0 -37
- cartography/data/jobs/cleanup/aws_import_lambda_cleanup.json +1 -1
- cartography/driftdetect/cli.py +3 -2
- cartography/graph/cleanupbuilder.py +198 -41
- cartography/graph/job.py +42 -0
- cartography/graph/querybuilder.py +136 -2
- cartography/graph/statement.py +1 -1
- cartography/intel/airbyte/__init__.py +105 -0
- cartography/intel/airbyte/connections.py +120 -0
- cartography/intel/airbyte/destinations.py +81 -0
- cartography/intel/airbyte/organizations.py +59 -0
- cartography/intel/airbyte/sources.py +78 -0
- cartography/intel/airbyte/tags.py +64 -0
- cartography/intel/airbyte/users.py +106 -0
- cartography/intel/airbyte/util.py +122 -0
- cartography/intel/airbyte/workspaces.py +63 -0
- cartography/intel/aws/acm.py +124 -0
- cartography/intel/aws/cloudtrail.py +3 -38
- cartography/intel/aws/codebuild.py +132 -0
- cartography/intel/aws/ecr.py +8 -2
- cartography/intel/aws/ecs.py +228 -380
- cartography/intel/aws/efs.py +179 -11
- cartography/intel/aws/iam.py +1 -1
- cartography/intel/aws/identitycenter.py +14 -3
- cartography/intel/aws/inspector.py +96 -53
- cartography/intel/aws/lambda_function.py +1 -1
- cartography/intel/aws/rds.py +2 -1
- cartography/intel/aws/resources.py +4 -0
- cartography/intel/aws/s3.py +195 -4
- cartography/intel/aws/sqs.py +36 -90
- cartography/intel/entra/__init__.py +22 -0
- cartography/intel/entra/applications.py +366 -0
- cartography/intel/entra/groups.py +151 -0
- cartography/intel/entra/ou.py +21 -5
- cartography/intel/entra/users.py +84 -42
- cartography/intel/kubernetes/__init__.py +30 -14
- cartography/intel/kubernetes/clusters.py +86 -0
- cartography/intel/kubernetes/namespaces.py +59 -57
- cartography/intel/kubernetes/pods.py +140 -77
- cartography/intel/kubernetes/secrets.py +95 -45
- cartography/intel/kubernetes/services.py +131 -67
- cartography/intel/kubernetes/util.py +125 -14
- cartography/intel/scaleway/__init__.py +127 -0
- cartography/intel/scaleway/iam/__init__.py +0 -0
- cartography/intel/scaleway/iam/apikeys.py +71 -0
- cartography/intel/scaleway/iam/applications.py +71 -0
- cartography/intel/scaleway/iam/groups.py +71 -0
- cartography/intel/scaleway/iam/users.py +71 -0
- cartography/intel/scaleway/instances/__init__.py +0 -0
- cartography/intel/scaleway/instances/flexibleips.py +86 -0
- cartography/intel/scaleway/instances/instances.py +92 -0
- cartography/intel/scaleway/projects.py +79 -0
- cartography/intel/scaleway/storage/__init__.py +0 -0
- cartography/intel/scaleway/storage/snapshots.py +86 -0
- cartography/intel/scaleway/storage/volumes.py +84 -0
- cartography/intel/scaleway/utils.py +37 -0
- cartography/intel/trivy/__init__.py +161 -0
- cartography/intel/trivy/scanner.py +363 -0
- cartography/models/airbyte/__init__.py +0 -0
- cartography/models/airbyte/connection.py +138 -0
- cartography/models/airbyte/destination.py +75 -0
- cartography/models/airbyte/organization.py +19 -0
- cartography/models/airbyte/source.py +75 -0
- cartography/models/airbyte/stream.py +74 -0
- cartography/models/airbyte/tag.py +69 -0
- cartography/models/airbyte/user.py +111 -0
- cartography/models/airbyte/workspace.py +46 -0
- cartography/models/aws/acm/__init__.py +0 -0
- cartography/models/aws/acm/certificate.py +75 -0
- cartography/models/aws/cloudtrail/trail.py +24 -0
- cartography/models/aws/codebuild/__init__.py +0 -0
- cartography/models/aws/codebuild/project.py +49 -0
- cartography/models/aws/ecs/__init__.py +0 -0
- cartography/models/aws/ecs/clusters.py +64 -0
- cartography/models/aws/ecs/container_definitions.py +93 -0
- cartography/models/aws/ecs/container_instances.py +84 -0
- cartography/models/aws/ecs/containers.py +99 -0
- cartography/models/aws/ecs/services.py +117 -0
- cartography/models/aws/ecs/task_definitions.py +135 -0
- cartography/models/aws/ecs/tasks.py +110 -0
- cartography/models/aws/efs/access_point.py +77 -0
- cartography/models/aws/efs/file_system.py +60 -0
- cartography/models/aws/efs/mount_target.py +29 -2
- cartography/models/aws/s3/notification.py +24 -0
- cartography/models/aws/secretsmanager/secret_version.py +0 -2
- cartography/models/aws/sqs/__init__.py +0 -0
- cartography/models/aws/sqs/queue.py +89 -0
- cartography/models/core/common.py +1 -0
- cartography/models/core/nodes.py +15 -2
- cartography/models/core/relationships.py +44 -0
- cartography/models/entra/app_role_assignment.py +115 -0
- cartography/models/entra/application.py +47 -0
- cartography/models/entra/group.py +91 -0
- cartography/models/entra/user.py +17 -51
- cartography/models/kubernetes/__init__.py +0 -0
- cartography/models/kubernetes/clusters.py +26 -0
- cartography/models/kubernetes/containers.py +108 -0
- cartography/models/kubernetes/namespaces.py +51 -0
- cartography/models/kubernetes/pods.py +80 -0
- cartography/models/kubernetes/secrets.py +79 -0
- cartography/models/kubernetes/services.py +108 -0
- cartography/models/scaleway/__init__.py +0 -0
- cartography/models/scaleway/iam/__init__.py +0 -0
- cartography/models/scaleway/iam/apikey.py +96 -0
- cartography/models/scaleway/iam/application.py +52 -0
- cartography/models/scaleway/iam/group.py +95 -0
- cartography/models/scaleway/iam/user.py +60 -0
- cartography/models/scaleway/instance/__init__.py +0 -0
- cartography/models/scaleway/instance/flexibleip.py +52 -0
- cartography/models/scaleway/instance/instance.py +118 -0
- cartography/models/scaleway/organization.py +19 -0
- cartography/models/scaleway/project.py +48 -0
- cartography/models/scaleway/storage/__init__.py +0 -0
- cartography/models/scaleway/storage/snapshot.py +78 -0
- cartography/models/scaleway/storage/volume.py +51 -0
- cartography/models/trivy/__init__.py +0 -0
- cartography/models/trivy/findings.py +66 -0
- cartography/models/trivy/fix.py +66 -0
- cartography/models/trivy/package.py +71 -0
- cartography/sync.py +10 -4
- cartography/util.py +15 -10
- {cartography-0.104.0rc3.dist-info → cartography-0.106.0.dist-info}/METADATA +6 -2
- {cartography-0.104.0rc3.dist-info → cartography-0.106.0.dist-info}/RECORD +133 -49
- cartography/data/jobs/cleanup/kubernetes_import_cleanup.json +0 -70
- {cartography-0.104.0rc3.dist-info → cartography-0.106.0.dist-info}/WHEEL +0 -0
- {cartography-0.104.0rc3.dist-info → cartography-0.106.0.dist-info}/entry_points.txt +0 -0
- {cartography-0.104.0rc3.dist-info → cartography-0.106.0.dist-info}/licenses/LICENSE +0 -0
- {cartography-0.104.0rc3.dist-info → cartography-0.106.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from cartography.models.core.common import PropertyRef
|
|
4
|
+
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
+
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
+
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
+
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
+
from cartography.models.core.relationships import LinkDirection
|
|
9
|
+
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import OtherRelationships
|
|
11
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class AirbyteStreamNodeProperties(CartographyNodeProperties):
|
|
16
|
+
id: PropertyRef = PropertyRef("streamId")
|
|
17
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
18
|
+
name: PropertyRef = PropertyRef("name")
|
|
19
|
+
sync_mode: PropertyRef = PropertyRef("syncMode")
|
|
20
|
+
cursor_field: PropertyRef = PropertyRef("cursorField")
|
|
21
|
+
primary_key: PropertyRef = PropertyRef("primaryKey")
|
|
22
|
+
include_files: PropertyRef = PropertyRef("includeFiles")
|
|
23
|
+
selected_fields: PropertyRef = PropertyRef("selectedFields")
|
|
24
|
+
mappers: PropertyRef = PropertyRef("mappers")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@dataclass(frozen=True)
|
|
28
|
+
class AirbyteStreamToOrganizationRelProperties(CartographyRelProperties):
|
|
29
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@dataclass(frozen=True)
|
|
33
|
+
# (:AirbyteOrganization)-[:RESOURCE]->(:AirbyteStream)
|
|
34
|
+
class AirbyteStreamToOrganizationRel(CartographyRelSchema):
|
|
35
|
+
target_node_label: str = "AirbyteOrganization"
|
|
36
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
37
|
+
{"id": PropertyRef("ORG_ID", set_in_kwargs=True)},
|
|
38
|
+
)
|
|
39
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
40
|
+
rel_label: str = "RESOURCE"
|
|
41
|
+
properties: AirbyteStreamToOrganizationRelProperties = (
|
|
42
|
+
AirbyteStreamToOrganizationRelProperties()
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@dataclass(frozen=True)
|
|
47
|
+
class AirbyteStreamToConnectionRelProperties(CartographyRelProperties):
|
|
48
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@dataclass(frozen=True)
|
|
52
|
+
# (:AirbyteConnection)-[:HAS]->(:AirbyteStream)
|
|
53
|
+
class AirbyteStreamToConnectionRel(CartographyRelSchema):
|
|
54
|
+
target_node_label: str = "AirbyteConnection"
|
|
55
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
56
|
+
{"id": PropertyRef("connectionId")},
|
|
57
|
+
)
|
|
58
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
59
|
+
rel_label: str = "HAS"
|
|
60
|
+
properties: AirbyteStreamToOrganizationRelProperties = (
|
|
61
|
+
AirbyteStreamToOrganizationRelProperties()
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@dataclass(frozen=True)
|
|
66
|
+
class AirbyteStreamSchema(CartographyNodeSchema):
|
|
67
|
+
label: str = "AirbyteStream"
|
|
68
|
+
properties: AirbyteStreamNodeProperties = AirbyteStreamNodeProperties()
|
|
69
|
+
sub_resource_relationship: AirbyteStreamToOrganizationRel = (
|
|
70
|
+
AirbyteStreamToOrganizationRel()
|
|
71
|
+
)
|
|
72
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
73
|
+
[AirbyteStreamToConnectionRel()]
|
|
74
|
+
)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from cartography.models.core.common import PropertyRef
|
|
4
|
+
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
+
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
+
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
+
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
+
from cartography.models.core.relationships import LinkDirection
|
|
9
|
+
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import OtherRelationships
|
|
11
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class AirbyteTagNodeProperties(CartographyNodeProperties):
|
|
16
|
+
id: PropertyRef = PropertyRef("tagId")
|
|
17
|
+
name: PropertyRef = PropertyRef("name")
|
|
18
|
+
color: PropertyRef = PropertyRef("color")
|
|
19
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass(frozen=True)
|
|
23
|
+
class AirbyteTagToOrganizationRelProperties(CartographyRelProperties):
|
|
24
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@dataclass(frozen=True)
|
|
28
|
+
# (:AirbyteOrganization)-[:RESOURCE]->(:AirbyteTag)
|
|
29
|
+
class AirbyteTagToOrganizationRel(CartographyRelSchema):
|
|
30
|
+
target_node_label: str = "AirbyteOrganization"
|
|
31
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
32
|
+
{"id": PropertyRef("ORG_ID", set_in_kwargs=True)},
|
|
33
|
+
)
|
|
34
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
35
|
+
rel_label: str = "RESOURCE"
|
|
36
|
+
properties: AirbyteTagToOrganizationRelProperties = (
|
|
37
|
+
AirbyteTagToOrganizationRelProperties()
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@dataclass(frozen=True)
|
|
42
|
+
class AirbyteTagToWorkspaceRelProperties(CartographyRelProperties):
|
|
43
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@dataclass(frozen=True)
|
|
47
|
+
# (:AirbyteWorkspace)-[:CONTAINS]->(:AirbyteTag)
|
|
48
|
+
class AirbyteTagToWorkspaceRel(CartographyRelSchema):
|
|
49
|
+
target_node_label: str = "AirbyteWorkspace"
|
|
50
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
51
|
+
{"id": PropertyRef("workspaceId")},
|
|
52
|
+
)
|
|
53
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
54
|
+
rel_label: str = "CONTAINS"
|
|
55
|
+
properties: AirbyteTagToWorkspaceRelProperties = (
|
|
56
|
+
AirbyteTagToWorkspaceRelProperties()
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@dataclass(frozen=True)
|
|
61
|
+
class AirbyteTagSchema(CartographyNodeSchema):
|
|
62
|
+
label: str = "AirbyteTag"
|
|
63
|
+
properties: AirbyteTagNodeProperties = AirbyteTagNodeProperties()
|
|
64
|
+
sub_resource_relationship: AirbyteTagToOrganizationRel = (
|
|
65
|
+
AirbyteTagToOrganizationRel()
|
|
66
|
+
)
|
|
67
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
68
|
+
[AirbyteTagToWorkspaceRel()]
|
|
69
|
+
)
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from cartography.models.core.common import PropertyRef
|
|
4
|
+
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
+
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
+
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
+
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
+
from cartography.models.core.relationships import LinkDirection
|
|
9
|
+
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import OtherRelationships
|
|
11
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class AirbyteUserNodeProperties(CartographyNodeProperties):
|
|
16
|
+
id: PropertyRef = PropertyRef("id")
|
|
17
|
+
name: PropertyRef = PropertyRef("name")
|
|
18
|
+
email: PropertyRef = PropertyRef("email", extra_index=True)
|
|
19
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass(frozen=True)
|
|
23
|
+
class AirbyteUserToOrganizationRelProperties(CartographyRelProperties):
|
|
24
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@dataclass(frozen=True)
|
|
28
|
+
# (:AirbyteOrganization)-[:RESOURCE]->(:AirbyteUser)
|
|
29
|
+
class AirbyteUserToOrganizationRel(CartographyRelSchema):
|
|
30
|
+
target_node_label: str = "AirbyteOrganization"
|
|
31
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
32
|
+
{"id": PropertyRef("ORG_ID", set_in_kwargs=True)},
|
|
33
|
+
)
|
|
34
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
35
|
+
rel_label: str = "RESOURCE"
|
|
36
|
+
properties: AirbyteUserToOrganizationRelProperties = (
|
|
37
|
+
AirbyteUserToOrganizationRelProperties()
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@dataclass(frozen=True)
|
|
42
|
+
class AirbyteUserToOrganizationAdminRelProperties(CartographyRelProperties):
|
|
43
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@dataclass(frozen=True)
|
|
47
|
+
# (:AirbyteOrganization)<-[:ADMIN_OF]-(:AirbyteUser)
|
|
48
|
+
class AirbyteUserToOrganizationAdminRel(CartographyRelSchema):
|
|
49
|
+
target_node_label: str = "AirbyteOrganization"
|
|
50
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
51
|
+
{"id": PropertyRef("adminOfOrganization", one_to_many=True)},
|
|
52
|
+
)
|
|
53
|
+
direction: LinkDirection = LinkDirection.OUTWARD
|
|
54
|
+
rel_label: str = "ADMIN_OF"
|
|
55
|
+
properties: AirbyteUserToOrganizationAdminRelProperties = (
|
|
56
|
+
AirbyteUserToOrganizationAdminRelProperties()
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@dataclass(frozen=True)
|
|
61
|
+
class AirbyteUserToWorkspaceAdminRelProperties(CartographyRelProperties):
|
|
62
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@dataclass(frozen=True)
|
|
66
|
+
# (:AirbyteWorkspace)<-[:ADMIN_OF]-(:AirbyteUser)
|
|
67
|
+
class AirbyteUserToWorkspaceAdminRel(CartographyRelSchema):
|
|
68
|
+
target_node_label: str = "AirbyteWorkspace"
|
|
69
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
70
|
+
{"id": PropertyRef("adminOfWorkspace", one_to_many=True)},
|
|
71
|
+
)
|
|
72
|
+
direction: LinkDirection = LinkDirection.OUTWARD
|
|
73
|
+
rel_label: str = "ADMIN_OF"
|
|
74
|
+
properties: AirbyteUserToWorkspaceAdminRelProperties = (
|
|
75
|
+
AirbyteUserToWorkspaceAdminRelProperties()
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
@dataclass(frozen=True)
|
|
80
|
+
class AirbyteUserToWorkspaceMemberRelProperties(CartographyRelProperties):
|
|
81
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@dataclass(frozen=True)
|
|
85
|
+
# (:AirbyteWorkspace)<-[:MEMBER_OF]-(:AirbyteUser)
|
|
86
|
+
class AirbyteUserToWorkspaceMemberRel(CartographyRelSchema):
|
|
87
|
+
target_node_label: str = "AirbyteWorkspace"
|
|
88
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
89
|
+
{"id": PropertyRef("memberOfWorkspace", one_to_many=True)},
|
|
90
|
+
)
|
|
91
|
+
direction: LinkDirection = LinkDirection.OUTWARD
|
|
92
|
+
rel_label: str = "MEMBER_OF"
|
|
93
|
+
properties: AirbyteUserToWorkspaceMemberRelProperties = (
|
|
94
|
+
AirbyteUserToWorkspaceMemberRelProperties()
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
@dataclass(frozen=True)
|
|
99
|
+
class AirbyteUserSchema(CartographyNodeSchema):
|
|
100
|
+
label: str = "AirbyteUser"
|
|
101
|
+
properties: AirbyteUserNodeProperties = AirbyteUserNodeProperties()
|
|
102
|
+
sub_resource_relationship: AirbyteUserToOrganizationRel = (
|
|
103
|
+
AirbyteUserToOrganizationRel()
|
|
104
|
+
)
|
|
105
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
106
|
+
[
|
|
107
|
+
AirbyteUserToOrganizationAdminRel(),
|
|
108
|
+
AirbyteUserToWorkspaceAdminRel(),
|
|
109
|
+
AirbyteUserToWorkspaceMemberRel(),
|
|
110
|
+
]
|
|
111
|
+
)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from cartography.models.core.common import PropertyRef
|
|
4
|
+
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
+
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
+
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
+
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
+
from cartography.models.core.relationships import LinkDirection
|
|
9
|
+
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@dataclass(frozen=True)
|
|
14
|
+
class AirbyteWorkspaceNodeProperties(CartographyNodeProperties):
|
|
15
|
+
id: PropertyRef = PropertyRef("workspaceId")
|
|
16
|
+
name: PropertyRef = PropertyRef("name")
|
|
17
|
+
data_residency: PropertyRef = PropertyRef("dataResidency")
|
|
18
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@dataclass(frozen=True)
|
|
22
|
+
class AirbyteWorkspaceToOrganizationRelProperties(CartographyRelProperties):
|
|
23
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@dataclass(frozen=True)
|
|
27
|
+
# (:AirbyteOrganization)-[:RESOURCE]->(:AirbyteWorkspace)
|
|
28
|
+
class AirbyteWorkspaceToOrganizationRel(CartographyRelSchema):
|
|
29
|
+
target_node_label: str = "AirbyteOrganization"
|
|
30
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
31
|
+
{"id": PropertyRef("ORG_ID", set_in_kwargs=True)},
|
|
32
|
+
)
|
|
33
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
34
|
+
rel_label: str = "RESOURCE"
|
|
35
|
+
properties: AirbyteWorkspaceToOrganizationRelProperties = (
|
|
36
|
+
AirbyteWorkspaceToOrganizationRelProperties()
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@dataclass(frozen=True)
|
|
41
|
+
class AirbyteWorkspaceSchema(CartographyNodeSchema):
|
|
42
|
+
label: str = "AirbyteWorkspace"
|
|
43
|
+
properties: AirbyteWorkspaceNodeProperties = AirbyteWorkspaceNodeProperties()
|
|
44
|
+
sub_resource_relationship: AirbyteWorkspaceToOrganizationRel = (
|
|
45
|
+
AirbyteWorkspaceToOrganizationRel()
|
|
46
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from cartography.models.core.common import PropertyRef
|
|
4
|
+
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
+
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
+
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
+
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
+
from cartography.models.core.relationships import LinkDirection
|
|
9
|
+
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import OtherRelationships
|
|
11
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class ACMCertificateNodeProperties(CartographyNodeProperties):
|
|
16
|
+
id: PropertyRef = PropertyRef("Arn")
|
|
17
|
+
arn: PropertyRef = PropertyRef("Arn", extra_index=True)
|
|
18
|
+
domainname: PropertyRef = PropertyRef("DomainName")
|
|
19
|
+
type: PropertyRef = PropertyRef("Type")
|
|
20
|
+
status: PropertyRef = PropertyRef("Status")
|
|
21
|
+
key_algorithm: PropertyRef = PropertyRef("KeyAlgorithm")
|
|
22
|
+
signature_algorithm: PropertyRef = PropertyRef("SignatureAlgorithm")
|
|
23
|
+
not_before: PropertyRef = PropertyRef("NotBefore")
|
|
24
|
+
not_after: PropertyRef = PropertyRef("NotAfter")
|
|
25
|
+
in_use_by: PropertyRef = PropertyRef("InUseBy")
|
|
26
|
+
region: PropertyRef = PropertyRef("Region", set_in_kwargs=True)
|
|
27
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@dataclass(frozen=True)
|
|
31
|
+
class ACMCertificateToAWSAccountRelProperties(CartographyRelProperties):
|
|
32
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@dataclass(frozen=True)
|
|
36
|
+
class ACMCertificateToAWSAccountRel(CartographyRelSchema):
|
|
37
|
+
target_node_label: str = "AWSAccount"
|
|
38
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
39
|
+
{"id": PropertyRef("AWS_ID", set_in_kwargs=True)}
|
|
40
|
+
)
|
|
41
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
42
|
+
rel_label: str = "RESOURCE"
|
|
43
|
+
properties: ACMCertificateToAWSAccountRelProperties = (
|
|
44
|
+
ACMCertificateToAWSAccountRelProperties()
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@dataclass(frozen=True)
|
|
49
|
+
class ACMCertificateToELBV2ListenerRelProperties(CartographyRelProperties):
|
|
50
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@dataclass(frozen=True)
|
|
54
|
+
class ACMCertificateToELBV2ListenerRel(CartographyRelSchema):
|
|
55
|
+
target_node_label: str = "ELBV2Listener"
|
|
56
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
57
|
+
{"id": PropertyRef("ELBV2ListenerArns", one_to_many=True)}
|
|
58
|
+
)
|
|
59
|
+
direction: LinkDirection = LinkDirection.OUTWARD
|
|
60
|
+
rel_label: str = "USED_BY"
|
|
61
|
+
properties: ACMCertificateToELBV2ListenerRelProperties = (
|
|
62
|
+
ACMCertificateToELBV2ListenerRelProperties()
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@dataclass(frozen=True)
|
|
67
|
+
class ACMCertificateSchema(CartographyNodeSchema):
|
|
68
|
+
label: str = "ACMCertificate"
|
|
69
|
+
properties: ACMCertificateNodeProperties = ACMCertificateNodeProperties()
|
|
70
|
+
sub_resource_relationship: ACMCertificateToAWSAccountRel = (
|
|
71
|
+
ACMCertificateToAWSAccountRel()
|
|
72
|
+
)
|
|
73
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
74
|
+
[ACMCertificateToELBV2ListenerRel()]
|
|
75
|
+
)
|
|
@@ -7,6 +7,7 @@ from cartography.models.core.relationships import CartographyRelProperties
|
|
|
7
7
|
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
8
|
from cartography.models.core.relationships import LinkDirection
|
|
9
9
|
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import OtherRelationships
|
|
10
11
|
from cartography.models.core.relationships import TargetNodeMatcher
|
|
11
12
|
|
|
12
13
|
|
|
@@ -54,8 +55,31 @@ class CloudTrailToAWSAccountRel(CartographyRelSchema):
|
|
|
54
55
|
)
|
|
55
56
|
|
|
56
57
|
|
|
58
|
+
@dataclass(frozen=True)
|
|
59
|
+
class CloudTrailTrailToS3BucketRelProperties(CartographyRelProperties):
|
|
60
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@dataclass(frozen=True)
|
|
64
|
+
class CloudTrailTrailToS3BucketRel(CartographyRelSchema):
|
|
65
|
+
target_node_label: str = "S3Bucket"
|
|
66
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
67
|
+
{"name": PropertyRef("S3BucketName")},
|
|
68
|
+
)
|
|
69
|
+
direction: LinkDirection = LinkDirection.OUTWARD
|
|
70
|
+
rel_label: str = "LOGS_TO"
|
|
71
|
+
properties: CloudTrailTrailToS3BucketRelProperties = (
|
|
72
|
+
CloudTrailTrailToS3BucketRelProperties()
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
|
|
57
76
|
@dataclass(frozen=True)
|
|
58
77
|
class CloudTrailTrailSchema(CartographyNodeSchema):
|
|
59
78
|
label: str = "CloudTrailTrail"
|
|
60
79
|
properties: CloudTrailTrailNodeProperties = CloudTrailTrailNodeProperties()
|
|
61
80
|
sub_resource_relationship: CloudTrailToAWSAccountRel = CloudTrailToAWSAccountRel()
|
|
81
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
82
|
+
[
|
|
83
|
+
CloudTrailTrailToS3BucketRel(),
|
|
84
|
+
]
|
|
85
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from cartography.models.core.common import PropertyRef
|
|
4
|
+
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
+
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
+
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
+
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
+
from cartography.models.core.relationships import LinkDirection
|
|
9
|
+
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@dataclass(frozen=True)
|
|
14
|
+
class CodeBuildProjectNodeProperties(CartographyNodeProperties):
|
|
15
|
+
id: PropertyRef = PropertyRef("arn")
|
|
16
|
+
arn: PropertyRef = PropertyRef("arn", extra_index=True)
|
|
17
|
+
region: PropertyRef = PropertyRef("Region", set_in_kwargs=True)
|
|
18
|
+
created: PropertyRef = PropertyRef("created")
|
|
19
|
+
environment_variables: PropertyRef = PropertyRef("environmentVariables")
|
|
20
|
+
source_type: PropertyRef = PropertyRef("sourceType")
|
|
21
|
+
source_location: PropertyRef = PropertyRef("sourceLocation")
|
|
22
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@dataclass(frozen=True)
|
|
26
|
+
class CodeBuildProjectToAwsAccountRelProperties(CartographyRelProperties):
|
|
27
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@dataclass(frozen=True)
|
|
31
|
+
class CodeBuildProjectToAWSAccountRel(CartographyRelSchema):
|
|
32
|
+
target_node_label: str = "AWSAccount"
|
|
33
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
34
|
+
{"id": PropertyRef("AWS_ID", set_in_kwargs=True)},
|
|
35
|
+
)
|
|
36
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
37
|
+
rel_label: str = "RESOURCE"
|
|
38
|
+
properties: CodeBuildProjectToAwsAccountRelProperties = (
|
|
39
|
+
CodeBuildProjectToAwsAccountRelProperties()
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@dataclass(frozen=True)
|
|
44
|
+
class CodeBuildProjectSchema(CartographyNodeSchema):
|
|
45
|
+
label: str = "CodeBuildProject"
|
|
46
|
+
properties: CodeBuildProjectNodeProperties = CodeBuildProjectNodeProperties()
|
|
47
|
+
sub_resource_relationship: CodeBuildProjectToAWSAccountRel = (
|
|
48
|
+
CodeBuildProjectToAWSAccountRel()
|
|
49
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from cartography.models.core.common import PropertyRef
|
|
4
|
+
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
+
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
+
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
+
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
+
from cartography.models.core.relationships import LinkDirection
|
|
9
|
+
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@dataclass(frozen=True)
|
|
14
|
+
class ECSClusterNodeProperties(CartographyNodeProperties):
|
|
15
|
+
id: PropertyRef = PropertyRef("clusterArn")
|
|
16
|
+
arn: PropertyRef = PropertyRef("clusterArn", extra_index=True)
|
|
17
|
+
name: PropertyRef = PropertyRef("clusterName")
|
|
18
|
+
region: PropertyRef = PropertyRef("Region", set_in_kwargs=True)
|
|
19
|
+
status: PropertyRef = PropertyRef("status")
|
|
20
|
+
ecc_kms_key_id: PropertyRef = PropertyRef("ecc_kms_key_id")
|
|
21
|
+
ecc_logging: PropertyRef = PropertyRef("ecc_logging")
|
|
22
|
+
ecc_log_configuration_cloud_watch_log_group_name: PropertyRef = PropertyRef(
|
|
23
|
+
"ecc_log_configuration_cloud_watch_log_group_name"
|
|
24
|
+
)
|
|
25
|
+
ecc_log_configuration_cloud_watch_encryption_enabled: PropertyRef = PropertyRef(
|
|
26
|
+
"ecc_log_configuration_cloud_watch_encryption_enabled"
|
|
27
|
+
)
|
|
28
|
+
ecc_log_configuration_s3_bucket_name: PropertyRef = PropertyRef(
|
|
29
|
+
"ecc_log_configuration_s3_bucket_name"
|
|
30
|
+
)
|
|
31
|
+
ecc_log_configuration_s3_encryption_enabled: PropertyRef = PropertyRef(
|
|
32
|
+
"ecc_log_configuration_s3_encryption_enabled"
|
|
33
|
+
)
|
|
34
|
+
ecc_log_configuration_s3_key_prefix: PropertyRef = PropertyRef(
|
|
35
|
+
"ecc_log_configuration_s3_key_prefix"
|
|
36
|
+
)
|
|
37
|
+
capacity_providers: PropertyRef = PropertyRef("capacityProviders")
|
|
38
|
+
attachments_status: PropertyRef = PropertyRef("attachmentsStatus")
|
|
39
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@dataclass(frozen=True)
|
|
43
|
+
class ECSClusterToAWSAccountRelProperties(CartographyRelProperties):
|
|
44
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@dataclass(frozen=True)
|
|
48
|
+
class ECSClusterToAWSAccountRel(CartographyRelSchema):
|
|
49
|
+
target_node_label: str = "AWSAccount"
|
|
50
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
51
|
+
{"id": PropertyRef("AWS_ID", set_in_kwargs=True)}
|
|
52
|
+
)
|
|
53
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
54
|
+
rel_label: str = "RESOURCE"
|
|
55
|
+
properties: ECSClusterToAWSAccountRelProperties = (
|
|
56
|
+
ECSClusterToAWSAccountRelProperties()
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@dataclass(frozen=True)
|
|
61
|
+
class ECSClusterSchema(CartographyNodeSchema):
|
|
62
|
+
label: str = "ECSCluster"
|
|
63
|
+
properties: ECSClusterNodeProperties = ECSClusterNodeProperties()
|
|
64
|
+
sub_resource_relationship: ECSClusterToAWSAccountRel = ECSClusterToAWSAccountRel()
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from cartography.models.core.common import PropertyRef
|
|
4
|
+
from cartography.models.core.nodes import CartographyNodeProperties
|
|
5
|
+
from cartography.models.core.nodes import CartographyNodeSchema
|
|
6
|
+
from cartography.models.core.relationships import CartographyRelProperties
|
|
7
|
+
from cartography.models.core.relationships import CartographyRelSchema
|
|
8
|
+
from cartography.models.core.relationships import LinkDirection
|
|
9
|
+
from cartography.models.core.relationships import make_target_node_matcher
|
|
10
|
+
from cartography.models.core.relationships import OtherRelationships
|
|
11
|
+
from cartography.models.core.relationships import TargetNodeMatcher
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class ECSContainerDefinitionNodeProperties(CartographyNodeProperties):
|
|
16
|
+
id: PropertyRef = PropertyRef("id")
|
|
17
|
+
task_definition_arn: PropertyRef = PropertyRef("_taskDefinitionArn")
|
|
18
|
+
name: PropertyRef = PropertyRef("name")
|
|
19
|
+
image: PropertyRef = PropertyRef("image")
|
|
20
|
+
cpu: PropertyRef = PropertyRef("cpu")
|
|
21
|
+
memory: PropertyRef = PropertyRef("memory")
|
|
22
|
+
memory_reservation: PropertyRef = PropertyRef("memoryReservation")
|
|
23
|
+
links: PropertyRef = PropertyRef("links")
|
|
24
|
+
essential: PropertyRef = PropertyRef("essential")
|
|
25
|
+
entry_point: PropertyRef = PropertyRef("entryPoint")
|
|
26
|
+
command: PropertyRef = PropertyRef("command")
|
|
27
|
+
start_timeout: PropertyRef = PropertyRef("startTimeout")
|
|
28
|
+
stop_timeout: PropertyRef = PropertyRef("stop_timeout")
|
|
29
|
+
hostname: PropertyRef = PropertyRef("hostname")
|
|
30
|
+
user: PropertyRef = PropertyRef("user")
|
|
31
|
+
working_directory: PropertyRef = PropertyRef("workingDirectory")
|
|
32
|
+
disable_networking: PropertyRef = PropertyRef("disableNetworking")
|
|
33
|
+
privileged: PropertyRef = PropertyRef("privileged")
|
|
34
|
+
readonly_root_filesystem: PropertyRef = PropertyRef("readonlyRootFilesystem")
|
|
35
|
+
dns_servers: PropertyRef = PropertyRef("dnsServers")
|
|
36
|
+
dns_search_domains: PropertyRef = PropertyRef("dnsSearchDomains")
|
|
37
|
+
docker_security_options: PropertyRef = PropertyRef("dockerSecurityOptions")
|
|
38
|
+
interactive: PropertyRef = PropertyRef("interactive")
|
|
39
|
+
pseudo_terminal: PropertyRef = PropertyRef("pseudoTerminal")
|
|
40
|
+
region: PropertyRef = PropertyRef("Region", set_in_kwargs=True)
|
|
41
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@dataclass(frozen=True)
|
|
45
|
+
class ECSContainerDefinitionToAWSAccountRelProperties(CartographyRelProperties):
|
|
46
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@dataclass(frozen=True)
|
|
50
|
+
class ECSContainerDefinitionToAWSAccountRel(CartographyRelSchema):
|
|
51
|
+
target_node_label: str = "AWSAccount"
|
|
52
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
53
|
+
{"id": PropertyRef("AWS_ID", set_in_kwargs=True)}
|
|
54
|
+
)
|
|
55
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
56
|
+
rel_label: str = "RESOURCE"
|
|
57
|
+
properties: ECSContainerDefinitionToAWSAccountRelProperties = (
|
|
58
|
+
ECSContainerDefinitionToAWSAccountRelProperties()
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
@dataclass(frozen=True)
|
|
63
|
+
class ECSContainerDefinitionToTaskDefinitionRelProperties(CartographyRelProperties):
|
|
64
|
+
lastupdated: PropertyRef = PropertyRef("lastupdated", set_in_kwargs=True)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@dataclass(frozen=True)
|
|
68
|
+
class ECSContainerDefinitionToTaskDefinitionRel(CartographyRelSchema):
|
|
69
|
+
target_node_label: str = "ECSTaskDefinition"
|
|
70
|
+
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
|
|
71
|
+
{"id": PropertyRef("_taskDefinitionArn")}
|
|
72
|
+
)
|
|
73
|
+
direction: LinkDirection = LinkDirection.INWARD
|
|
74
|
+
rel_label: str = "HAS_CONTAINER_DEFINITION"
|
|
75
|
+
properties: ECSContainerDefinitionToTaskDefinitionRelProperties = (
|
|
76
|
+
ECSContainerDefinitionToTaskDefinitionRelProperties()
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
@dataclass(frozen=True)
|
|
81
|
+
class ECSContainerDefinitionSchema(CartographyNodeSchema):
|
|
82
|
+
label: str = "ECSContainerDefinition"
|
|
83
|
+
properties: ECSContainerDefinitionNodeProperties = (
|
|
84
|
+
ECSContainerDefinitionNodeProperties()
|
|
85
|
+
)
|
|
86
|
+
sub_resource_relationship: ECSContainerDefinitionToAWSAccountRel = (
|
|
87
|
+
ECSContainerDefinitionToAWSAccountRel()
|
|
88
|
+
)
|
|
89
|
+
other_relationships: OtherRelationships = OtherRelationships(
|
|
90
|
+
[
|
|
91
|
+
ECSContainerDefinitionToTaskDefinitionRel(),
|
|
92
|
+
]
|
|
93
|
+
)
|