本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
Applications
URI
/applications
HTTP 方法
GET
操作 ID:ListApplications
列出請求者擁有的應用程式。
查詢參數 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
名稱 | Type | 必要 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxItems | 字串 | False | 要傳回的項目總數。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nextToken | 字串 | False | 用以指定分頁開始位置的字符。 |
回應 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
狀態碼 | 回應模型 | 描述 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
200 | ApplicationPage | Success (成功) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 | BadRequestException | 請求中的其中一個參數無效。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
403 | ForbiddenException | 用戶端未驗證。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 | NotFoundException | 請求中指定的資源(例如,訪問策略語句)不存在。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
500 | InternalServerErrorException | 服 AWS Serverless Application Repository 務遇到內部錯誤。 |
POST
操作 ID:CreateApplication
建立應用程式,選擇性地包含 S AWS AM 檔案,以在同一個呼叫中建立第一個應用程式版本。
回應 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
狀態碼 | 回應模型 | 描述 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
201 | Application | Success (成功) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 | BadRequestException | 請求中的其中一個參數無效。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
403 | ForbiddenException | 用戶端未驗證。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
409 | ConflictException | 此資源已存在。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
429 | TooManyRequestsException | 用戶端傳送超過每單位時間允許的要求數目。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
500 | InternalServerErrorException | 服 AWS Serverless Application Repository 務遇到內部錯誤。 |
OPTIONS
回應 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
狀態碼 | 回應模型 | 描述 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
200 | 無 | 二百個回應 |
結構描述
請求內文
{ "name": "string", "description": "string", "author": "string", "spdxLicenseId": "string", "licenseBody": "string", "licenseUrl": "string", "readmeBody": "string", "readmeUrl": "string", "labels": [ "string" ], "homePageUrl": "string", "semanticVersion": "string", "templateBody": "string", "templateUrl": "string", "sourceCodeUrl": "string", "sourceCodeArchiveUrl": "string" }
回應內文
{ "applications": [ { "applicationId": "string", "name": "string", "description": "string", "author": "string", "spdxLicenseId": "string", "labels": [ "string" ], "creationTime": "string", "homePageUrl": "string" } ], "nextToken": "string" }
{ "applicationId": "string", "name": "string", "description": "string", "author": "string", "isVerifiedAuthor": boolean, "verifiedAuthorUrl": "string", "spdxLicenseId": "string", "licenseUrl": "string", "readmeUrl": "string", "labels": [ "string" ], "creationTime": "string", "homePageUrl": "string", "version": { "applicationId": "string", "semanticVersion": "string", "sourceCodeUrl": "string", "sourceCodeArchiveUrl": "string", "templateUrl": "string", "creationTime": "string", "parameterDefinitions": [ { "name": "string", "defaultValue": "string", "description": "string", "type": "string", "noEcho": boolean, "allowedPattern": "string", "constraintDescription": "string", "minValue": integer, "maxValue": integer, "minLength": integer, "maxLength": integer, "allowedValues": [ "string" ], "referencedByResources": [ "string" ] } ], "requiredCapabilities": [ enum ], "resourcesSupported": boolean } }
屬性
Application
有關應用程序的詳細信息
屬性 | Type | 必要 | 描述 |
---|---|---|---|
applicationId | string | True | 應用程序 Amazon 資源名稱(ARN)。 |
author | string | True | 發佈應用程式的作者姓名。 最小長度 = 1。最大長度 = 127。 模式「^ [a-z0-9] (([a-z0-9] |-(?! -))* [一個 Z0-9])? $」; |
creationTime | string | False | 建立此資源的日期和時間。 |
description | string | True | 應用程式的描述。 最小長度 = 1。最大長度為 256 |
homePageUrl | string | False | 一個 URL,其中包含有關應用程式的詳細資訊,例如應用程式的 GitHub 存放庫位置。 |
isVerifiedAuthor | boolean | False | 指定是否已驗證此應用程式的作者。這意味著,作為一個合理和審慎的服務提供商, AWS 已對請求者提供的信息進行了善意審查,並確認請求者的身份是如所聲稱的。 |
labels | 類型 string 的陣列 | False | 標籤可改善搜尋結果中應用程式的探索。 最小長度 = 1。最大長度 = 127。最大標籤數量:10 模式:"^[a-zA-Z0-9+\\-_:\\/@]+$"; |
licenseUrl | string | False | 應用程式授權檔案的連結,該檔案符合您應用程式的 SPDxLicenseID 值。 最大尺寸 5 MB |
name | string | True | 應用程式名稱。 最小長度 = 1。最大長度為 140 個 模式:"[a-zA-Z0-9\\-]+"; |
readmeUrl | string | False | Markdown 語言的 Readme 檔案連結,其中包含應用程式及其運作方式的更詳細描述。 最大尺寸 5 MB |
spdxLicenseId | string | False | 一個有效的標識符來自 https://spdx.org/licenses/。 |
verifiedAuthorUrl | string | False | 已驗證作者的公開設定檔的 URL。此網址由作者提交。 |
version | False | 關於應用程式的版本資訊。 |
ApplicationPage
應用程序詳細信息列表。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
applications | 類型 ApplicationSummary 的陣列 | True | 應用程式摘要的陣列。 |
nextToken | string | False | 要求下一頁結果的權杖。 |
ApplicationSummary
有關應用程序的詳細信息摘要。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
applicationId | string | True | 應用程序 Amazon 資源名稱(ARN)。 |
author | string | True | 發佈應用程式的作者姓名。 最小長度 = 1。最大長度 = 127。 模式「^ [a-z0-9] (([a-z0-9] |-(?! -))* [一個 Z0-9])? $」; |
creationTime | string | False | 建立此資源的日期和時間。 |
description | string | True | 應用程式的描述。 最小長度 = 1。最大長度為 256 |
homePageUrl | string | False | 一個 URL,其中包含有關應用程式的詳細資訊,例如應用程式的 GitHub 存放庫位置。 |
labels | 類型 string 的陣列 | False | 標籤可改善搜尋結果中應用程式的探索。 最小長度 = 1。最大長度 = 127。最大標籤數量:10 模式:"^[a-zA-Z0-9+\\-_:\\/@]+$"; |
name | string | True | 應用程式名稱。 最小長度 = 1。最大長度為 140 個 模式:"[a-zA-Z0-9\\-]+"; |
spdxLicenseId | string | False | 來自 https://spdx.org/licenses/ |
BadRequestException
請求中的其中一個參數無效。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 400 |
message | string | False | 請求中的其中一個參數無效。 |
Capability
部署某些應用程式時必須指定的值。
CAPABILITY_IAM
CAPABILITY_NAMED_IAM
CAPABILITY_AUTO_EXPAND
CAPABILITY_RESOURCE_POLICY
ConflictException
此資源已存在。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 409 |
message | string | False | 此資源已存在。 |
CreateApplicationInput
建立應用程式要求。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
author | string | True | 發佈應用程式的作者姓名。 最小長度 = 1。最大長度 = 127。 模式「^ [a-z0-9] (([a-z0-9] |-(?! -))* [一個 Z0-9])? $」; |
description | string | True | 應用程式的描述。 最小長度 = 1。最大長度為 256 |
homePageUrl | string | False | 一個 URL,其中包含有關應用程式的詳細資訊,例如應用程式的 GitHub 存放庫位置。 |
labels | 類型 string 的陣列 | False | 標籤可改善搜尋結果中應用程式的探索。 最小長度 = 1。最大長度 = 127。最大標籤數量:10 模式:"^[a-zA-Z0-9+\\-_:\\/@]+$"; |
licenseBody | string | False | 包含應用程式授權的本機文字檔案,該檔案符合應用程式的 SPDxLicenseID 值。該文件具有格式 最大尺寸 5 MB 您只能指定其中一個 |
licenseUrl | string | False | S3 物件的連結,其中包含與應用程式的 SPDxLicenseID 值相符的應用程式授權。 最大尺寸 5 MB 您只能指定其中一個 |
name | string | True | 您要發佈的應用程式名稱。 最小長度 = 1。最大長度為 140 個 模式:"[a-zA-Z0-9\\-]+"; |
readmeBody | string | False | Markdown 語言的本機文字讀我檔案,其中包含應用程式及其運作方式的更詳細描述。該文件具有格式 最大尺寸 5 MB 您只能指定其中一個 |
readmeUrl | string | False | Markdown 語言中 S3 物件的連結,其中包含應用程式及其運作方式的更詳細描述。 最大尺寸 5 MB 您只能指定其中一個 |
semanticVersion | string | False | 應用程序的語義版本: |
sourceCodeArchiveUrl | string | False | S3 物件的連結,其中包含此版本應用程式之原始程式碼的 ZIP 存檔。 最大尺寸為 50 MB |
sourceCodeUrl | string | False | 指向應用程序源代碼的公共存儲庫的鏈接,例如特定 GitHub 提交的 URL。 |
spdxLicenseId | string | False | 來自 https://spdx.org/licenses/ |
templateBody | string | False | 應用程式的本機原始封裝 AWS SAM 範本檔案。該文件具有格式 您只能指定其中一個 |
templateUrl | string | False | S3 物件的連結,其中包含應用程式的已封裝 AWS SAM 範本。 您只能指定其中一個 |
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 | 請求中指定的資源(例如,訪問策略語句)不存在。 |
ParameterDefinition
應用程式支援的參數。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
allowedPattern | string | False | 規則表達式,代表 |
allowedValues | 類型 string 的陣列 | False | 陣列,包含參數的允許值清單。 |
constraintDescription | string | False | 字串,說明違反限制時的限制。例如,具有允許模式
透過新增條件約束描述,例如「必須只包含大小寫字母和數字」,您可以顯示下列自訂錯誤訊息:
|
defaultValue | string | False | 建立堆疊時,範本要在未指定值時使用的適當類型值。如果您定義參數的限制,則必須指定遵循這些限制的值。 |
description | string | False | 描述參數的字串,最多 4,000 個字元。 |
maxLength | integer | False | 一個整數值,決定您要允許的 |
maxValue | integer | False | 決定您要允許 |
minLength | integer | False | 一個整數值,用於確定要允許的 |
minValue | integer | False | 一個數值,用於確定要允許的 |
name | string | True | 參數名稱。 |
noEcho | boolean | False | 是否掩蓋參數值,每當任何人進行描述堆棧的調用。如果將值設定為 true,則參數值會以星號 (*****) 遮罩。 |
referencedByResources | 類型 string 的陣列 | True | 使用此參數的 AWS SAM 資源清單。 |
type | string | False | 參數的類型。 有效值: 例如,使用者可以指定 例如,使用者可能會指定 例如,使用者可能會指定「80,20」,然後 例如,使用者可能會指定「測試、開發、prod」,然後 |
TooManyRequestsException
用戶端傳送超過每單位時間允許的要求數目。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 429 |
message | string | False | 用戶端傳送超過每單位時間允許的要求數目。 |
Version
應用程式版本詳情。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
applicationId | string | True | 應用程序 Amazon 資源名稱(ARN)。 |
creationTime | string | True | 建立此資源的日期和時間。 |
parameterDefinitions | 類型 ParameterDefinition 的陣列 | True | 應用程式支援的參數類型陣列。 |
requiredCapabilities | 類型 Capability 的陣列 | True | 您必須在部署特定應用程式之前指定的值清單。某些應用程式可能包含會影響您 AWS 帳戶權限的資源,例如建立新的 AWS Identity and Access Management (IAM) 使用者。對於這些應用程式,您必須透過指定此參數來明確認其功能。 唯一有效的值為 下列資源需要您指定 下列資源需要您指定 包含一個或多個巢狀應用程式的應用程式需要由您指定 如果您的應用程式範本包含上述任何資源,建議您在部署之前檢閱與應用程式相關聯的所有權限。如果您沒有為需要功能的應用程式指定此參數,則呼叫將會失敗。 |
resourcesSupported | 布林值 | True | 此應用程式中包含的所有 AWS 資源是否在擷取該應用程式的區域中受到支援。 |
semanticVersion | string | True | 應用程序的語義版本: |
sourceCodeArchiveUrl | string | False | S3 物件的連結,其中包含此版本應用程式之原始程式碼的 ZIP 存檔。 最大尺寸為 50 MB |
sourceCodeUrl | string | False | 指向應用程序源代碼的公共存儲庫的鏈接,例如特定 GitHub 提交的 URL。 |
templateUrl | string | True | 應用程式封裝 AWS SAM 範本的連結。 |
另請參閱
如需在其中一個特定語言 AWS SDK 和參考資料中使用此 API 的詳細資訊,請參閱下列內容: