put_trusted_access_program_project_enrollment
async
¶
put_trusted_access_program_project_enrollment(
program_identifier: TrustedAccessProgramIdentifier,
project_identifier: ProjectIdentifier,
opt_in: TrustedAccessProgramOptIn,
*,
config_overrides: Optional[AsyncBedrockClientConfig] = None,
) -> PutTrustedAccessProgramProjectEnrollmentResponse
Sets a named project's enrollment preference for a trusted access program. The project must be active in this Region and owned by the calling account. Enabling requires applicable project, account, or organization approval and no applicable revocation, including when repeating an enabled setting; otherwise returns ConflictException and preserves the stored setting. Authorized disable and inherit writes are allowed while ineligible or revoked. Archived projects reject all writes with ValidationException.
Parameters:
-
program_identifier(TrustedAccessProgramIdentifier) –The identifier of the trusted access program.
-
project_identifier(ProjectIdentifier) –The id or ARN of the named Bedrock project. The default project is not supported; use PutTrustedAccessProgramAccountEnrollment for account-level enrollment. An ARN from another account, Region, or partition returns ValidationException. A project that does not exist in the calling account returns ResourceNotFoundException.
-
opt_in(TrustedAccessProgramOptIn) –The enrollment preference to store. A transition to enabled accepts the program's terms. Changing the preference records a new updatedAt. Repeating the same stored preference preserves updatedAt.
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.