@@ -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()
0 commit comments