From e3d196dcb3bdb817e2bc167db9ee81e3aa58c9c1 Mon Sep 17 00:00:00 2001
From: Larissa Teixeira <larissateixeira@royalfloraholland.com>
Date: Tue, 10 Dec 2024 11:45:17 +0100
Subject: [PATCH] fix typo service principal

---
 typescript/src/resources/permissions/cluster-permissions.ts   | 4 ++--
 .../src/resources/permissions/cluster-policy-permissions.ts   | 4 ++--
 typescript/src/resources/permissions/job-permissions.ts       | 4 ++--
 typescript/src/resources/permissions/models.ts                | 2 +-
 .../src/resources/permissions/sql-warehouse-permissions.ts    | 4 ++--
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/typescript/src/resources/permissions/cluster-permissions.ts b/typescript/src/resources/permissions/cluster-permissions.ts
index 7fc176d3..905ca471 100644
--- a/typescript/src/resources/permissions/cluster-permissions.ts
+++ b/typescript/src/resources/permissions/cluster-permissions.ts
@@ -1,12 +1,12 @@
 import {CustomResource} from "aws-cdk-lib";
 import {Construct} from "constructs";
-import {UserPermission, GroupPermission, ServicePrinicpalPermission} from "./models";
+import {UserPermission, GroupPermission, ServicePrincipalPermission} from "./models";
 
 
 export interface ClusterPermissionsProperties {
     workspaceUrl: string
     clusterId: string
-    accessControlList: Array<UserPermission | GroupPermission | ServicePrinicpalPermission>
+    accessControlList: Array<UserPermission | GroupPermission | ServicePrincipalPermission>
 }
 
 export interface ClusterPermissionsProps extends ClusterPermissionsProperties {
diff --git a/typescript/src/resources/permissions/cluster-policy-permissions.ts b/typescript/src/resources/permissions/cluster-policy-permissions.ts
index 6f62aea4..5651bcb7 100644
--- a/typescript/src/resources/permissions/cluster-policy-permissions.ts
+++ b/typescript/src/resources/permissions/cluster-policy-permissions.ts
@@ -1,12 +1,12 @@
 import {CustomResource} from "aws-cdk-lib";
 import {Construct} from "constructs";
-import {UserPermission, GroupPermission, ServicePrinicpalPermission} from "./models";
+import {UserPermission, GroupPermission, ServicePrincipalPermission} from "./models";
 
 
 export interface ClusterPolicyPermissionsProperties {
     workspaceUrl: string
     clusterPolicyId: string
-    accessControlList: Array<UserPermission | GroupPermission | ServicePrinicpalPermission>
+    accessControlList: Array<UserPermission | GroupPermission | ServicePrincipalPermission>
 }
 
 export interface ClusterPolicyPermissionsProps extends ClusterPolicyPermissionsProperties {
diff --git a/typescript/src/resources/permissions/job-permissions.ts b/typescript/src/resources/permissions/job-permissions.ts
index fc8a900b..fc8f5a81 100644
--- a/typescript/src/resources/permissions/job-permissions.ts
+++ b/typescript/src/resources/permissions/job-permissions.ts
@@ -1,12 +1,12 @@
 import {CustomResource} from "aws-cdk-lib";
 import {Construct} from "constructs";
-import {User, ServicePrincipal, UserPermission, GroupPermission, ServicePrinicpalPermission} from "./models";
+import {User, ServicePrincipal, UserPermission, GroupPermission, ServicePrincipalPermission} from "./models";
 
 
 export interface JobPermissionsProperties {
     workspaceUrl: string
     jobId: string
-    accessControlList: Array<UserPermission | GroupPermission | ServicePrinicpalPermission>
+    accessControlList: Array<UserPermission | GroupPermission | ServicePrincipalPermission>
     owner: User | ServicePrincipal
 }
 
diff --git a/typescript/src/resources/permissions/models.ts b/typescript/src/resources/permissions/models.ts
index f9f93025..10121c68 100644
--- a/typescript/src/resources/permissions/models.ts
+++ b/typescript/src/resources/permissions/models.ts
@@ -18,7 +18,7 @@ export interface GroupPermission extends Group {
     permission_level: string
 }
 
-export interface ServicePrinicpalPermission extends ServicePrincipal {
+export interface ServicePrincipalPermission extends ServicePrincipal {
     permission_level: string
 }
 
diff --git a/typescript/src/resources/permissions/sql-warehouse-permissions.ts b/typescript/src/resources/permissions/sql-warehouse-permissions.ts
index 8e1f3df3..0cca7f14 100644
--- a/typescript/src/resources/permissions/sql-warehouse-permissions.ts
+++ b/typescript/src/resources/permissions/sql-warehouse-permissions.ts
@@ -1,11 +1,11 @@
 import {CustomResource} from "aws-cdk-lib";
 import {Construct} from "constructs";
-import {UserPermission, GroupPermission, ServicePrinicpalPermission} from "./models";
+import {UserPermission, GroupPermission, ServicePrincipalPermission} from "./models";
 
 export interface WarehousePermissionsProperties {
     workspaceUrl: string
     endpointId: string
-    accessControlList: Array<UserPermission | GroupPermission | ServicePrinicpalPermission>
+    accessControlList: Array<UserPermission | GroupPermission | ServicePrincipalPermission>
 }
 
 export interface WarehousePermissionsProps extends WarehousePermissionsProperties {