應用程式 applicationId 原 - AWS Serverless Application Repository

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

應用程式 applicationId 原

URI

/applications/applicationId/policy

HTTP方法

GET

操作 ID:GetApplicationPolicy

擷取應用程式的原則。

路徑參數
名稱Type必要描述
applicationId字串True

應用程式的 Amazon 資源名稱 (ARN)。

回應
狀態碼回應模型描述
200ApplicationPolicy

Success (成功)

400BadRequestException

請求中的其中一個參數無效。

403ForbiddenException

用戶端未驗證。

404NotFoundException

請求中指定的資源(例如,訪問策略語句)不存在。

429TooManyRequestsException

用戶端傳送超過每單位時間允許的要求數目。

500InternalServerErrorException

服 AWS Serverless Application Repository 務遇到內部錯誤。

PUT

操作 ID:PutApplicationPolicy

設定應用程式的權限原則。如需此作業支援的動作清單,請參閱應用程式權限

路徑參數
名稱Type必要描述
applicationId字串True

應用程式的 Amazon 資源名稱 (ARN)。

回應
狀態碼回應模型描述
200ApplicationPolicy

Success (成功)

400BadRequestException

請求中的其中一個參數無效。

403ForbiddenException

用戶端未驗證。

404NotFoundException

請求中指定的資源(例如,訪問策略語句)不存在。

429TooManyRequestsException

用戶端傳送超過每單位時間允許的要求數目。

500InternalServerErrorException

服 AWS Serverless Application Repository 務遇到內部錯誤。

OPTIONS

路徑參數
名稱Type必要描述
applicationId字串True

應用程式的 Amazon 資源名稱 (ARN)。

回應
狀態碼回應模型描述
200

二百個回應

結構描述

請求內文

{ "statements": [ { "statementId": "string", "principals": [ "string" ], "actions": [ "string" ], "principalOrgIDs": [ "string" ] } ] }

回應內文

{ "statements": [ { "statementId": "string", "principals": [ "string" ], "actions": [ "string" ], "principalOrgIDs": [ "string" ] } ] }
{ "message": "string", "errorCode": "string" }
{ "message": "string", "errorCode": "string" }
{ "message": "string", "errorCode": "string" }
{ "message": "string", "errorCode": "string" }
{ "message": "string", "errorCode": "string" }

屬性

ApplicationPolicy

套用至應用程式的原則陳述式。

屬性Type必要描述
statements

類型 ApplicationPolicyStatement 的陣列

True

套用至應用程式的原則陳述式陣列。

ApplicationPolicyStatement

適用於應用程式的政策聲明。

屬性Type必要描述
actions

類型 string 的陣列

True

如需此作業支援的動作清單,請參閱應用程式權限

principalOrgIDs

類型 string 的陣列

False

與之共用應用程式的 AWS Organizations ID。

principals

類型 string 的陣列

True

IDs要與之共用應用程式的 AWS 帳戶陣列,或 * 公開應用程式。

statementId

string

False

陳述式的唯一識別碼。

BadRequestException

請求中的其中一個參數無效。

屬性Type必要描述
errorCode

string

False

400

message

string

False

請求中的其中一個參數無效。

ForbiddenException

用戶端未驗證。

屬性Type必要描述
errorCode

string

False

403

message

string

False

用戶端未驗證。

InternalServerErrorException

服 AWS Serverless Application Repository 務遇到內部錯誤。

屬性Type必要描述
errorCode

string

False

500

message

string

False

服 AWS Serverless Application Repository 務遇到內部錯誤。

NotFoundException

請求中指定的資源(例如,訪問策略語句)不存在。

屬性Type必要描述
errorCode

string

False

404

message

string

False

請求中指定的資源(例如,訪問策略語句)不存在。

TooManyRequestsException

用戶端傳送超過每單位時間允許的要求數目。

屬性Type必要描述
errorCode

string

False

429

message

string

False

用戶端傳送超過每單位時間允許的要求數目。

另請參閱

如需有關API在其中一種特定語言 AWS SDKs和參照中使用此功能的詳細資訊,請參閱下列內容:

GetApplicationPolicy

PutApplicationPolicy