Skip to content

Commit f3c8acc

Browse files
committed
Adds latest IAM updates from AWS
1 parent 0a5bd83 commit f3c8acc

File tree

13 files changed

+374
-6
lines changed

13 files changed

+374
-6
lines changed

CHANGELOG/v0.752.0.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
**New services:**
2+
3+
- inspector2-telemetry
4+
5+
**New actions:**
6+
7+
- bedrock-mantle:CancelFineTuningJob
8+
- bedrock-mantle:CreateFile
9+
- bedrock-mantle:CreateFineTuningJob
10+
- bedrock-mantle:DeleteFile
11+
- bedrock-mantle:GetFile
12+
- bedrock-mantle:GetFineTuningJob
13+
- bedrock-mantle:ListFiles
14+
- bedrock-mantle:ListFineTuningJobs
15+
- bedrock:CopyBlueprintStage
16+
- bedrock:GetBlueprintOptimizationStatus
17+
- bedrock:InvokeBlueprintOptimizationAsync
18+
- connect:AssociateQueueEmailAddresses
19+
- connect:CreateNotification
20+
- connect:DeleteNotification
21+
- connect:DescribeNotification
22+
- connect:DisassociateQueueEmailAddresses
23+
- connect:ListNotifications
24+
- connect:ListQueueEmailAddresses
25+
- connect:ListUserNotifications
26+
- connect:SearchNotifications
27+
- connect:UpdateNotificationContent
28+
- connect:UpdateUserNotificationStatus
29+
- glue:DeleteIntegrationResourceProperty
30+
- glue:ListIntegrationResourceProperties
31+
- inspector2-telemetry:NotifyHeartbeat
32+
- inspector2-telemetry:SendTelemetry
33+
- inspector2-telemetry:StartSession
34+
- inspector2-telemetry:StopSession
35+
- logs:CallWithBearerToken
36+
- logs:PutBearerTokenAuthentication
37+
- payment-cryptography:GenerateAs2805KekValidation
38+
39+
**New resource types:**
40+
41+
- bedrock:blueprint-optimization-invocation
42+
- connect:notification
43+
- glue:integrationResourceProperty
44+
45+
**New condition keys:**
46+
47+
- bedrock-mantle:Files
48+
- bedrock-mantle:FineTuningJob
49+
- workmail:ImpersonationRoleId

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
Support for:
1717

1818
- 442 Services
19-
- 20295 Actions
20-
- 2149 Resource Types
19+
- 20311 Actions
20+
- 2151 Resource Types
2121
- 2273 Condition keys
2222
<!-- /stats -->
2323

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.751.0
1+
0.752.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.751.0'
27+
release = '0.752.0'
2828

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

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ AWS IAM policy statement generator with fluent interface.
3131
Support for:
3232

3333
- 442 Services
34-
- 20295 Actions
35-
- 2149 Resource Types
34+
- 20311 Actions
35+
- 2151 Resource Types
3636
- 2273 Condition keys
3737

3838
..

lib/generated/policy-statements/bedrock.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@ export class Bedrock extends PolicyStatement {
112112
return this.to('CancelAutomatedReasoningPolicyBuildWorkflow');
113113
}
114114

115+
/**
116+
* Grants permission to copy a blueprint from one stage to another
117+
*
118+
* Access Level: Write
119+
*
120+
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Data_Automation_for_Amazon_Bedrock.html
121+
*/
122+
public toCopyBlueprintStage() {
123+
return this.to('CopyBlueprintStage');
124+
}
125+
115126
/**
116127
* Grants permission to count the number of tokens in an input prompt
117128
*
@@ -1174,6 +1185,17 @@ export class Bedrock extends PolicyStatement {
11741185
return this.to('GetBlueprint');
11751186
}
11761187

1188+
/**
1189+
* Grants permission to get the status of a blueprint optimization job
1190+
*
1191+
* Access Level: Read
1192+
*
1193+
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Data_Automation_for_Amazon_Bedrock.html
1194+
*/
1195+
public toGetBlueprintOptimizationStatus() {
1196+
return this.to('GetBlueprintOptimizationStatus');
1197+
}
1198+
11771199
/**
11781200
* Grants permission to retrieve blueprint recommendation
11791201
*
@@ -1579,6 +1601,21 @@ export class Bedrock extends PolicyStatement {
15791601
return this.to('InvokeAutomatedReasoningPolicy');
15801602
}
15811603

1604+
/**
1605+
* Grants permission to invoke an async job to perform blueprint optimization
1606+
*
1607+
* Access Level: Write
1608+
*
1609+
* Possible conditions:
1610+
* - .ifAwsRequestTag()
1611+
* - .ifAwsTagKeys()
1612+
*
1613+
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Data_Automation_for_Amazon_Bedrock.html
1614+
*/
1615+
public toInvokeBlueprintOptimizationAsync() {
1616+
return this.to('InvokeBlueprintOptimizationAsync');
1617+
}
1618+
15821619
/**
15831620
* Grants permission to invoke blueprint recommendations asynchronously
15841621
*
@@ -2721,6 +2758,7 @@ export class Bedrock extends PolicyStatement {
27212758
'GetAutomatedReasoningPolicyTestCase',
27222759
'GetAutomatedReasoningPolicyTestResult',
27232760
'GetBlueprint',
2761+
'GetBlueprintOptimizationStatus',
27242762
'GetBlueprintRecommendation',
27252763
'GetCustomModel',
27262764
'GetCustomModelDeployment',
@@ -2775,6 +2813,7 @@ export class Bedrock extends PolicyStatement {
27752813
'AssociateThirdPartyKnowledgeBase',
27762814
'BatchDeleteEvaluationJob',
27772815
'CancelAutomatedReasoningPolicyBuildWorkflow',
2816+
'CopyBlueprintStage',
27782817
'CreateAgent',
27792818
'CreateAgentActionGroup',
27802819
'CreateAgentAlias',
@@ -2844,6 +2883,7 @@ export class Bedrock extends PolicyStatement {
28442883
'DisassociateAgentKnowledgeBase',
28452884
'EndSession',
28462885
'IngestKnowledgeBaseDocuments',
2886+
'InvokeBlueprintOptimizationAsync',
28472887
'InvokeBlueprintRecommendationAsync',
28482888
'InvokeBuilder',
28492889
'InvokeDataAutomation',
@@ -3448,6 +3488,23 @@ export class Bedrock extends PolicyStatement {
34483488
return this.on(`arn:${ partition ?? this.defaultPartition }:bedrock:${ region ?? this.defaultRegion }:${ account ?? this.defaultAccount }:blueprint/${ blueprintId }`);
34493489
}
34503490

3491+
/**
3492+
* Adds a resource of type blueprint-optimization-invocation to the statement
3493+
*
3494+
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Data_Automation_for_Amazon_Bedrock.html
3495+
*
3496+
* @param resourceId - Identifier for the resourceId.
3497+
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
3498+
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
3499+
* @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.
3500+
*
3501+
* Possible conditions:
3502+
* - .ifAwsResourceTag()
3503+
*/
3504+
public onBlueprintOptimizationInvocation(resourceId: string, account?: string, region?: string, partition?: string) {
3505+
return this.on(`arn:${ partition ?? this.defaultPartition }:bedrock:${ region ?? this.defaultRegion }:${ account ?? this.defaultAccount }:blueprint-optimization-invocation/${ resourceId }`);
3506+
}
3507+
34513508
/**
34523509
* Adds a resource of type data-automation-invocation-job to the statement
34533510
*
@@ -3544,6 +3601,7 @@ export class Bedrock extends PolicyStatement {
35443601
* - .toCreatePromptVersion()
35453602
* - .toCreateProvisionedModelThroughput()
35463603
* - .toCreateSession()
3604+
* - .toInvokeBlueprintOptimizationAsync()
35473605
* - .toInvokeDataAutomationAsync()
35483606
* - .toInvokeModel()
35493607
* - .toPutResourcePolicy()
@@ -3587,6 +3645,7 @@ export class Bedrock extends PolicyStatement {
35873645
* - imported-model
35883646
* - data-automation-project
35893647
* - blueprint
3648+
* - blueprint-optimization-invocation
35903649
* - data-automation-invocation-job
35913650
* - session
35923651
* - custom-model-deployment
@@ -3630,6 +3689,7 @@ export class Bedrock extends PolicyStatement {
36303689
* - .toCreatePromptVersion()
36313690
* - .toCreateProvisionedModelThroughput()
36323691
* - .toCreateSession()
3692+
* - .toInvokeBlueprintOptimizationAsync()
36333693
* - .toInvokeDataAutomationAsync()
36343694
* - .toInvokeModel()
36353695
* - .toPutResourcePolicy()

lib/generated/policy-statements/cloudwatchlogs.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ export class Logs extends PolicyStatement {
4040
return this.to('AssociateSourceToS3TableIntegration');
4141
}
4242

43+
/**
44+
* Grants permission to authenticate requests using bearer token
45+
*
46+
* Access Level: Write
47+
*
48+
* https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html
49+
*/
50+
public toCallWithBearerToken() {
51+
return this.to('CallWithBearerToken');
52+
}
53+
4354
/**
4455
* Grants permission to cancel an export task if it is in PENDING or RUNNING state
4556
*
@@ -991,6 +1002,17 @@ export class Logs extends PolicyStatement {
9911002
return this.to('PutAccountPolicy');
9921003
}
9931004

1005+
/**
1006+
* Grants permission to enable or disable bearer token based authentication for the specified log group
1007+
*
1008+
* Access Level: Write
1009+
*
1010+
* https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutBearerTokenAuthentication.html
1011+
*/
1012+
public toPutBearerTokenAuthentication() {
1013+
return this.to('PutBearerTokenAuthentication');
1014+
}
1015+
9941016
/**
9951017
* Grants permission to attach a data protection policy to detect and redact sensitive information from log events
9961018
*
@@ -1396,6 +1418,7 @@ export class Logs extends PolicyStatement {
13961418
Write: [
13971419
'AssociateKmsKey',
13981420
'AssociateSourceToS3TableIntegration',
1421+
'CallWithBearerToken',
13991422
'CancelExportTask',
14001423
'CancelImportTask',
14011424
'CreateDelivery',
@@ -1432,6 +1455,7 @@ export class Logs extends PolicyStatement {
14321455
'Link',
14331456
'ProcessWithPipeline',
14341457
'PutAccountPolicy',
1458+
'PutBearerTokenAuthentication',
14351459
'PutDataProtectionPolicy',
14361460
'PutDeliveryDestination',
14371461
'PutDeliveryDestinationPolicy',

0 commit comments

Comments
 (0)