update_project
async
¶
update_project(
project_identifier: ProjectIdentifier,
*,
config_overrides: Optional[AsyncBedrockClientConfig] = None,
name: Optional[ProjectName] = None,
data_retention: Optional[ProjectDataRetention] = None,
) -> UpdateProjectResponse
Updates one mutable project field per call: exactly one of name or dataRetention must be set. The default project and archived projects cannot be updated.
Parameters:
-
project_identifier(ProjectIdentifier) –The id or ARN of the project to update.
-
name(Optional[ProjectName], default:None) –The project's new display name. Specify this field only when
dataRetentionis omitted. Project names do not have to be unique. -
data_retention(Optional[ProjectDataRetention], default:None) –The project's new data-retention mode. Must be set on its own.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–Error occurred because of a conflict while performing an operation.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/async_bedrock.py
7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 | |