View a markdown version of this page

GetTrustedAccessProgram - Amazon Bedrock

GetTrustedAccessProgram

Gets trusted access program details and resolves participation for your account and its current organization. If you specify a project, Amazon Bedrock resolves participation for the project, including inheritance from the account and organization. Archived projects remain readable until they expire. Returns the same flat summary as a ListTrustedAccessPrograms item. An absent or invisible program returns ResourceNotFoundException.

Request Syntax

GET /trusted-access-programs/programIdentifier?projectIdentifier=projectIdentifier HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

programIdentifier

Identifier of the trusted access program.

Length Constraints: Minimum length of 3. Maximum length of 115.

Pattern: ([a-z0-9]+-[a-z0-9-]+|arn:aws(-[^:]+)?:bedrock::aws:trusted-access-program/[a-z0-9]+-[a-z0-9-]+)

Required: Yes

projectIdentifier

The ID or ARN of a named Bedrock project owned by the calling account in this Region. When omitted, resolves participation for the calling account, including participation inherited from its current organization. When specified, resolves participation for the project, including participation inherited from the account and its current organization. You cannot specify the default project. Omit this field to resolve its inherited participation. An ARN from another account, Region, or partition returns ValidationException. A project that does not exist in the calling account returns ResourceNotFoundException.

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: ([a-zA-Z0-9_-]+|arn:aws(-[^:]+)?:bedrock:[0-9a-z-]{1,20}:[0-9]{12}:project/[a-zA-Z0-9_-]+)

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "description": "string", "detailsUrl": "string", "eligibilityScope": "string", "enrollmentUrl": "string", "name": "string", "optIn": "string", "programId": "string", "providerName": "string", "resolvedFor": { "accountId": "string", "projectArn": "string" }, "source": "string", "status": "string", "statusReason": "string", "updatedAt": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

description

Description of the program and its effects on model access or data handling.

Type: String

detailsUrl

URL with program details, terms, and instructions for obtaining access.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 4096.

Pattern: https://[^\s]+

eligibilityScope

Scope supplying the applicable approval or most-specific revocation. Omitted when no approval or revocation applies.

Type: String

Valid Values: organization | account | project | program_default

enrollmentUrl

Provider application intake URL. Omitted when the program has no customer-facing intake URL.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 4096.

Pattern: https://[^\s]+

name

Display name of the program.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

optIn

Resolved customer preference, preserved independently of eligibility, including while revoked.

Type: String

Valid Values: inherit | enabled | disabled

programId

Identifier of the trusted access program.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 64.

Pattern: [a-z0-9]+-[a-z0-9-]+

providerName

Name of the model provider offering the program.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 20.

Pattern: .*

resolvedFor

Account and optional project context for which participation was resolved.

Type: TrustedAccessResolutionContext object

source

Scope deciding the status. This can differ from the scope supplying the resolved opt-in preference and enrollment timestamps.

Type: String

Valid Values: organization | account | project | program_default

status

Participation status resolved for the account and optional project context.

Type: String

Valid Values: requestable | eligible | enabled | disabled | revoked

statusReason

Nonempty explanation for requestable or revoked status. Omitted for other statuses.

Type: String

updatedAt

Last change to the enrollment supplying the resolved opt-in. Present for enabled or disabled, including while revoked; omitted for inherit.

Type: Timestamp

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

The request is denied because of missing access permissions.

HTTP Status Code: 403

InternalServerException

An internal server error occurred. Retry your request.

HTTP Status Code: 500

ResourceNotFoundException

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

HTTP Status Code: 404

ThrottlingException

The number of requests exceeds the limit. Resubmit your request later.

HTTP Status Code: 429

ValidationException

Input validation failed. Check your request parameters and retry the request.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: