Skip to content

Commit e699685

Browse files
authored
Merge pull request #1870 from udondan/iam-updates
2 parents 9e64c86 + 065d177 commit e699685

File tree

6 files changed

+39
-21
lines changed

6 files changed

+39
-21
lines changed

CHANGELOG/v0.747.0.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**Updated action access level:**
2+
3+
- deadline:ListTagsForResource: List -> Read
4+
- deadline:SearchJobs: List -> Read
5+
- deadline:SearchSteps: List -> Read
6+
- deadline:SearchTasks: List -> Read
7+
- deadline:SearchWorkers: List -> Read

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.746.0
1+
0.747.0

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = 'Daniel Schroeder'
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = '0.746.0'
27+
release = '0.747.0'
2828

2929
# -- General configuration ---------------------------------------------------
3030

lib/generated/policy-statements/bedrockagentcore.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,14 +1998,15 @@ export class BedrockAgentcore extends PolicyStatement {
19981998
* https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/browserProfile.html
19991999
*
20002000
* @param browserProfileId - Identifier for the browserProfileId.
2001+
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
20012002
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
20022003
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
20032004
*
20042005
* Possible conditions:
20052006
* - .ifAwsResourceTag()
20062007
*/
2007-
public onBrowserProfile(browserProfileId: string, region?: string, partition?: string) {
2008-
return this.on(`arn:${ partition ?? this.defaultPartition }:bedrock-agentcore:${ region ?? this.defaultRegion }:aws:browser-profile/${ browserProfileId }`);
2008+
public onBrowserProfile(browserProfileId: string, account?: string, region?: string, partition?: string) {
2009+
return this.on(`arn:${ partition ?? this.defaultPartition }:bedrock-agentcore:${ region ?? this.defaultRegion }:${ account ?? this.defaultAccount }:browser-profile/${ browserProfileId }`);
20092010
}
20102011

20112012
/**

lib/generated/policy-statements/deadlinecloud.ts

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ export class Deadline extends PolicyStatement {
254254
*
255255
* Access Level: Write
256256
*
257+
* Possible conditions:
258+
* - .ifAwsRequestTag()
259+
* - .ifAwsTagKeys()
260+
*
257261
* Dependent actions:
258262
* - deadline:GetJobTemplate
259263
* - identitystore:ListGroupMembershipsForMember
@@ -670,7 +674,7 @@ export class Deadline extends PolicyStatement {
670674
*
671675
* Access Level: Read
672676
*
673-
* https://docs.aws.amazon.com/deadline-cloud/latest/APIReference/API_GetApplicationVersion.html
677+
* https://docs.aws.amazon.com/deadline-cloud/latest/userguide/deadline-cloud-jobs.html
674678
*/
675679
public toGetApplicationVersion() {
676680
return this.to('GetApplicationVersion');
@@ -736,6 +740,8 @@ export class Deadline extends PolicyStatement {
736740
* Grants permission to read job template
737741
*
738742
* Access Level: Read
743+
*
744+
* https://docs.aws.amazon.com/deadline-cloud/latest/userguide/working-with-deadline-monitor.html
739745
*/
740746
public toGetJobTemplate() {
741747
return this.to('GetJobTemplate');
@@ -1324,7 +1330,7 @@ export class Deadline extends PolicyStatement {
13241330
/**
13251331
* Grants permission to list all tags on specified Deadline Cloud resources
13261332
*
1327-
* Access Level: List
1333+
* Access Level: Read
13281334
*
13291335
* Possible conditions:
13301336
* - .ifCalledAction()
@@ -1377,7 +1383,7 @@ export class Deadline extends PolicyStatement {
13771383
/**
13781384
* Grants permission to search for jobs in multiple queues
13791385
*
1380-
* Access Level: List
1386+
* Access Level: Read
13811387
*
13821388
* Dependent actions:
13831389
* - identitystore:ListGroupMembershipsForMember
@@ -1391,7 +1397,7 @@ export class Deadline extends PolicyStatement {
13911397
/**
13921398
* Grants permission to search the steps within a single job or to search the steps for multiple queues
13931399
*
1394-
* Access Level: List
1400+
* Access Level: Read
13951401
*
13961402
* Dependent actions:
13971403
* - identitystore:ListGroupMembershipsForMember
@@ -1405,7 +1411,7 @@ export class Deadline extends PolicyStatement {
14051411
/**
14061412
* Grants permission to search the tasks within a single job or to search the tasks for multiple queues
14071413
*
1408-
* Access Level: List
1414+
* Access Level: Read
14091415
*
14101416
* Dependent actions:
14111417
* - identitystore:ListGroupMembershipsForMember
@@ -1419,7 +1425,7 @@ export class Deadline extends PolicyStatement {
14191425
/**
14201426
* Grants permission to search for workers in multiple fleets
14211427
*
1422-
* Access Level: List
1428+
* Access Level: Read
14231429
*
14241430
* Dependent actions:
14251431
* - identitystore:ListGroupMembershipsForMember
@@ -1790,6 +1796,11 @@ export class Deadline extends PolicyStatement {
17901796
'GetStorageProfileForQueue',
17911797
'GetTask',
17921798
'GetWorker',
1799+
'ListTagsForResource',
1800+
'SearchJobs',
1801+
'SearchSteps',
1802+
'SearchTasks',
1803+
'SearchWorkers',
17931804
'StartSessionsStatisticsAggregation'
17941805
],
17951806
List: [
@@ -1819,13 +1830,8 @@ export class Deadline extends PolicyStatement {
18191830
'ListSteps',
18201831
'ListStorageProfiles',
18211832
'ListStorageProfilesForQueue',
1822-
'ListTagsForResource',
18231833
'ListTasks',
1824-
'ListWorkers',
1825-
'SearchJobs',
1826-
'SearchSteps',
1827-
'SearchTasks',
1828-
'SearchWorkers'
1834+
'ListWorkers'
18291835
],
18301836
Tagging: [
18311837
'TagResource',
@@ -1903,6 +1909,7 @@ export class Deadline extends PolicyStatement {
19031909
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
19041910
*
19051911
* Possible conditions:
1912+
* - .ifAwsResourceTag()
19061913
* - .ifFarmMembershipLevels()
19071914
* - .ifJobMembershipLevels()
19081915
* - .ifQueueMembershipLevels()
@@ -1995,6 +2002,7 @@ export class Deadline extends PolicyStatement {
19952002
* - .toCreateBudget()
19962003
* - .toCreateFarm()
19972004
* - .toCreateFleet()
2005+
* - .toCreateJob()
19982006
* - .toCreateLicenseEndpoint()
19992007
* - .toCreateMonitor()
20002008
* - .toCreateQueue()
@@ -2018,6 +2026,7 @@ export class Deadline extends PolicyStatement {
20182026
* - budget
20192027
* - farm
20202028
* - fleet
2029+
* - job
20212030
* - license-endpoint
20222031
* - monitor
20232032
* - queue
@@ -2040,6 +2049,7 @@ export class Deadline extends PolicyStatement {
20402049
* - .toCreateBudget()
20412050
* - .toCreateFarm()
20422051
* - .toCreateFleet()
2052+
* - .toCreateJob()
20432053
* - .toCreateLicenseEndpoint()
20442054
* - .toCreateMonitor()
20452055
* - .toCreateQueue()

stats/actions/deadline

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ deadline:ListStepDependencies;List
8686
deadline:ListSteps;List
8787
deadline:ListStorageProfiles;List
8888
deadline:ListStorageProfilesForQueue;List
89-
deadline:ListTagsForResource;List
89+
deadline:ListTagsForResource;Read
9090
deadline:ListTasks;List
9191
deadline:ListWorkers;List
9292
deadline:PutMeteredProduct;Write
93-
deadline:SearchJobs;List
94-
deadline:SearchSteps;List
95-
deadline:SearchTasks;List
96-
deadline:SearchWorkers;List
93+
deadline:SearchJobs;Read
94+
deadline:SearchSteps;Read
95+
deadline:SearchTasks;Read
96+
deadline:SearchWorkers;Read
9797
deadline:StartSessionsStatisticsAggregation;Read
9898
deadline:TagResource;Tagging
9999
deadline:UntagResource;Tagging

0 commit comments

Comments
 (0)