cartography 0.97.0__py3-none-any.whl → 0.97.1__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/intel/aws/identitycenter.py +3 -20
- {cartography-0.97.0.dist-info → cartography-0.97.1.dist-info}/METADATA +1 -1
- {cartography-0.97.0.dist-info → cartography-0.97.1.dist-info}/RECORD +7 -7
- {cartography-0.97.0.dist-info → cartography-0.97.1.dist-info}/LICENSE +0 -0
- {cartography-0.97.0.dist-info → cartography-0.97.1.dist-info}/WHEEL +0 -0
- {cartography-0.97.0.dist-info → cartography-0.97.1.dist-info}/entry_points.txt +0 -0
- {cartography-0.97.0.dist-info → cartography-0.97.1.dist-info}/top_level.txt +0 -0
|
@@ -82,26 +82,6 @@ def get_permission_sets(boto3_session: boto3.session.Session, instance_arn: str,
|
|
|
82
82
|
return permission_sets
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
@timeit
|
|
86
|
-
def get_permission_set_roles(
|
|
87
|
-
boto3_session: boto3.session.Session,
|
|
88
|
-
instance_arn: str,
|
|
89
|
-
permission_set_arn: str,
|
|
90
|
-
region: str,
|
|
91
|
-
) -> List[Dict]:
|
|
92
|
-
"""
|
|
93
|
-
Get all accounts associated with a given permission set
|
|
94
|
-
"""
|
|
95
|
-
client = boto3_session.client('sso-admin', region_name=region)
|
|
96
|
-
accounts = []
|
|
97
|
-
|
|
98
|
-
paginator = client.get_paginator('list_accounts_for_provisioned_permission_set')
|
|
99
|
-
for page in paginator.paginate(InstanceArn=instance_arn, PermissionSetArn=permission_set_arn):
|
|
100
|
-
accounts.extend(page.get('AccountIds', []))
|
|
101
|
-
|
|
102
|
-
return accounts
|
|
103
|
-
|
|
104
|
-
|
|
105
85
|
@timeit
|
|
106
86
|
def load_permission_sets(
|
|
107
87
|
neo4j_session: neo4j.Session,
|
|
@@ -128,6 +108,7 @@ def load_permission_sets(
|
|
|
128
108
|
|
|
129
109
|
|
|
130
110
|
@timeit
|
|
111
|
+
@aws_handle_regions
|
|
131
112
|
def get_sso_users(
|
|
132
113
|
boto3_session: boto3.session.Session,
|
|
133
114
|
identity_store_id: str,
|
|
@@ -176,6 +157,7 @@ def load_sso_users(
|
|
|
176
157
|
|
|
177
158
|
|
|
178
159
|
@timeit
|
|
160
|
+
@aws_handle_regions
|
|
179
161
|
def get_role_assignments(
|
|
180
162
|
boto3_session: boto3.session.Session,
|
|
181
163
|
users: List[Dict],
|
|
@@ -231,6 +213,7 @@ def load_role_assignments(
|
|
|
231
213
|
)
|
|
232
214
|
|
|
233
215
|
|
|
216
|
+
@timeit
|
|
234
217
|
def cleanup(neo4j_session: neo4j.Session, common_job_parameters: Dict[str, Any]) -> None:
|
|
235
218
|
GraphJob.from_node_schema(AWSIdentityCenterInstanceSchema(), common_job_parameters).run(neo4j_session)
|
|
236
219
|
GraphJob.from_node_schema(AWSPermissionSetSchema(), common_job_parameters).run(neo4j_session)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cartography
|
|
3
|
-
Version: 0.97.
|
|
3
|
+
Version: 0.97.1
|
|
4
4
|
Summary: Explore assets and their relationships across your technical infrastructure.
|
|
5
5
|
Home-page: https://www.github.com/cartography-cncf/cartography
|
|
6
6
|
Maintainer: Cartography Contributors
|
|
@@ -153,7 +153,7 @@ cartography/intel/aws/elasticache.py,sha256=fCI47aDFmIDyE26GiReKYb6XIZUwrzcvsXBQ
|
|
|
153
153
|
cartography/intel/aws/elasticsearch.py,sha256=ZL7MkXF_bXRSoXuDSI1dwGckRLG2zDB8LuAD07vSLnE,8374
|
|
154
154
|
cartography/intel/aws/emr.py,sha256=xhWBVZngxJRFjMEDxwq3G6SgytRGLq0v2a_CeDvByR0,3372
|
|
155
155
|
cartography/intel/aws/iam.py,sha256=zRlF9cKcYm44iL63G6bd-_flNOFHVrjsEfW0jZHpUNg,32387
|
|
156
|
-
cartography/intel/aws/identitycenter.py,sha256=
|
|
156
|
+
cartography/intel/aws/identitycenter.py,sha256=OnyvsSfn6AszB2e9dPAsGmzgne0zq0_7Ta0A6k_l_TE,8956
|
|
157
157
|
cartography/intel/aws/inspector.py,sha256=S22ZgRKEnmnBTJ-u0rodqRPB7_LkSIek47NeBxN4XJw,9336
|
|
158
158
|
cartography/intel/aws/kms.py,sha256=bZUzMxAH_DsAcGTJBs08gg2tLKYu-QWjvMvV9C-6v50,11731
|
|
159
159
|
cartography/intel/aws/lambda_function.py,sha256=KKTyn53xpaMI9WvIqxmsOASFwflHt-2_5ow-zUFc2wg,9890
|
|
@@ -353,9 +353,9 @@ cartography/models/snipeit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
353
353
|
cartography/models/snipeit/asset.py,sha256=FyRAaeXuZjMy0eUQcSDFcgEAF5lbLMlvqp1Tv9d3Lv4,3238
|
|
354
354
|
cartography/models/snipeit/tenant.py,sha256=p4rFnpNNuF1W5ilGBbexDaETWTwavfb38RcQGoImkQI,679
|
|
355
355
|
cartography/models/snipeit/user.py,sha256=MsB4MiCVNTH6JpESime7cOkB89autZOXQpL6Z0l7L6o,2113
|
|
356
|
-
cartography-0.97.
|
|
357
|
-
cartography-0.97.
|
|
358
|
-
cartography-0.97.
|
|
359
|
-
cartography-0.97.
|
|
360
|
-
cartography-0.97.
|
|
361
|
-
cartography-0.97.
|
|
356
|
+
cartography-0.97.1.dist-info/LICENSE,sha256=kvLEBRYaQ1RvUni6y7Ti9uHeooqnjPoo6n_-0JO1ETc,11351
|
|
357
|
+
cartography-0.97.1.dist-info/METADATA,sha256=WgfJ4bSbPI5yTN-x4-yyBghI6wQaaDAJ9waRYchm4ms,1938
|
|
358
|
+
cartography-0.97.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
359
|
+
cartography-0.97.1.dist-info/entry_points.txt,sha256=GVIAWD0o0_K077qMA_k1oZU4v-M0a8GLKGJR8tZ-qH8,112
|
|
360
|
+
cartography-0.97.1.dist-info/top_level.txt,sha256=BHqsNJQiI6Q72DeypC1IINQJE59SLhU4nllbQjgJi9g,12
|
|
361
|
+
cartography-0.97.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|