For example, lambda:InvokeFunction or lambda:GetFunction . Principal (string) -- [REQUIRED] The AWS service or account that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service. SourceArn (string) -- For ...
* api-change:``bedrock-agent-runtime``: [``botocore``] Releasing SDK for multi agent collaboration * api-change:``bedrock-runtime``: [``botocore``] Added support for Async Invoke Operations Start, List and Get. Support for invocation logs with `requestMetadata` field in Converse, ...
() # Create the agent's Lambda function self.lambda_function = self._create_lambda_function() # Configure permissions for the agent to invoke the Lambda function self._allow_agent_to_invoke_function() self._let_function_accept_invocations_from_agent() # Create an action group to connec...
put_function_event_invoke_config put_function_recursion_config put_provisioned_concurrency_config put_runtime_management_config remove_layer_version_permission remove_permission tag_resource untag_resource update_alias update_code_signing_config update_event_source_mapping ...
[ "bedrock:GetFlow", "bedrock:InvokeModel", "bedrock:Retrieve", "bedrock:RetrieveAndGenerate" ], "Resource": resource_arns } ] } try: client.put_role_policy( RoleName=role_name, PolicyName=f"{role_name}-policy", PolicyDocument=json.dumps(updated_policy) ) logging.info("Updated policy ...