本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
UpdateCodeSigningConfig
更新程式碼簽署組態。下次使用者嘗試將程式碼套件部署至函數時,程式碼簽署組態的變更會生效。
請求語法
PUT /2020-04-22/code-signing-configs/CodeSigningConfigArn HTTP/1.1
Content-type: application/json
{
   "AllowedPublishers": { 
      "SigningProfileVersionArns": [ "string" ]
   },
   "CodeSigningPolicies": { 
      "UntrustedArtifactOnDeployment": "string"
   },
   "Description": "string"
}
    
      URI 請求參數
請求會使用下列 URI 參數。
- CodeSigningConfigArn
 - 
               
程式碼簽署組態的 Amazon Resource Name (ARN)。
長度限制:長度上限為 200。
模式:
arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:\d{12}:code-signing-config:csc-[a-z0-9]{17}必要:是
 
請求主體
請求接受採用 JSON 格式的下列資料。
- AllowedPublishers
 - 
               
此程式碼簽署組態的簽署設定檔。
類型:AllowedPublishers 物件
必要:否
 - CodeSigningPolicies
 - 
               
程式碼簽署政策。
類型:CodeSigningPolicies 物件
必要:否
 - Description
 - 
               
此程式碼簽署組態的描述性名稱。
類型:字串
長度限制:長度下限為 0。長度上限為 256。
必要:否
 
回應語法
HTTP/1.1 200
Content-type: application/json
{
   "CodeSigningConfig": { 
      "AllowedPublishers": { 
         "SigningProfileVersionArns": [ "string" ]
      },
      "CodeSigningConfigArn": "string",
      "CodeSigningConfigId": "string",
      "CodeSigningPolicies": { 
         "UntrustedArtifactOnDeployment": "string"
      },
      "Description": "string",
      "LastModified": "string"
   }
}
    
      回應元素
如果動作成功,則服務傳回 HTTP 200 回應。
服務會傳回下列 JSON 格式的資料。
- CodeSigningConfig
 - 
               
程式碼簽署組態
類型:CodeSigningConfig 物件
 
錯誤
如需所有動作常見錯誤的資訊,請參閱常見錯誤。
- InvalidParameterValueException
 - 
               
請求中的其中一個參數無效。
HTTP 狀態碼:400
 - ResourceNotFoundException
 - 
               
請求中指定的資源不存在。
HTTP 狀態碼:404
 - ServiceException
 - 
               
AWS Lambda 服務發生內部錯誤。
HTTP 狀態碼:500
 
另請參閱
如需在語言特定的 AWS 開發套件之一中使用此 API 的詳細資訊,請參閱下列說明: