Skip to content

Commit

Permalink
add cancel batch job action (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas authored Mar 18, 2023
1 parent 7388f61 commit 39b6e90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iam/policy/admin-action.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ const (
// StartBatchJobAction allow submitting a batch job
StartBatchJobAction = "admin:StartBatchJob"

// CancelBatchJobAction allow canceling a batch job
CancelBatchJobAction = "admin:CancelBatchJob"

// AllAdminActions - provides all admin permissions
AllAdminActions = "admin:*"
)
Expand Down Expand Up @@ -269,6 +272,7 @@ var supportedAdminActions = map[AdminAction]struct{}{
ListBatchJobsAction: {},
DescribeBatchJobAction: {},
StartBatchJobAction: {},
CancelBatchJobAction: {},

AllAdminActions: {},
}
Expand Down Expand Up @@ -349,6 +353,7 @@ func createAdminActionConditionKeyMap() map[Action]condition.KeySet {
ListBatchJobsAction: condition.NewKeySet(allSupportedAdminKeys...),
DescribeBatchJobAction: condition.NewKeySet(allSupportedAdminKeys...),
StartBatchJobAction: condition.NewKeySet(allSupportedAdminKeys...),
CancelBatchJobAction: condition.NewKeySet(allSupportedAdminKeys...),
}
}

Expand Down

0 comments on commit 39b6e90

Please sign in to comment.