File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ import cuid from 'cuid'
12import { AwsIamRole } from '../../types/generated'
23import { formatTagsFromMap , formatIamJsonPolicy } from '../../utils/format'
34
@@ -45,6 +46,7 @@ export default ({
4546 maxSessionDuration,
4647 inlinePolicies : inlinePolicies . map (
4748 ( { name : inlinePolicyName , document : inlinePolicyDocument } ) => ( {
49+ id : cuid ( ) ,
4850 name : inlinePolicyName ,
4951 document : formatIamJsonPolicy ( inlinePolicyDocument ) ,
5052 } )
Original file line number Diff line number Diff line change 1- type awsIamRoleInlinePolicy {
1+ type awsIamRoleInlinePolicy
2+ @generate (
3+ query : { get : false , query : true , aggregate : false }
4+ mutation : { add : false , delete : false }
5+ subscription : false
6+ ) {
7+ id : String ! @id @search (by : [hash ])
28 name : String @search (by : [hash , regexp ])
39 document : awsIamJSONPolicy
410}
@@ -25,7 +31,8 @@ type awsIamRole implements awsBaseService @key(fields: "id") {
2531 glueJobs : [awsGlueJob ] @hasInverse (field : iamRole )
2632 guardDutyDetectors : [awsGuardDutyDetector ] @hasInverse (field : iamRole )
2733 iamAttachedPolicies : [awsIamPolicy ] @hasInverse (field : iamRoles )
28- iamPermissionBoundaryPolicy : [awsIamPolicy ] @hasInverse (field : permissionBoundaryOf )
34+ iamPermissionBoundaryPolicy : [awsIamPolicy ]
35+ @hasInverse (field : permissionBoundaryOf )
2936 iamInstanceProfiles : [awsIamInstanceProfile ] @hasInverse (field : iamRole )
3037 managedAirflows : [awsManagedAirflow ] @hasInverse (field : iamRoles )
3138 sageMakerNotebookInstances : [awsSageMakerNotebookInstance ]
You can’t perform that action at this time.
0 commit comments