

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

# `AWS-CreateServiceNowIncident`
<a name="automation-aws-createservicenowincident"></a>

 **Description** 

在 ServiceNow 事件表格中建立事件。

 [執行此自動化 （主控台）](https://console.aws.amazon.com/systems-manager/automation/execute/AWS-CreateServiceNowIncident) 

**文件類型**

 自動化

**擁有者**

Amazon

**平台**

Linux、macOS、 Windows

**參數**
+ AutomationAssumeRole

  類型：字串

  描述：（選用） 允許 Systems Manager Automation 代表您執行動作的 (IAM) 角色的 AWS Identity and Access Management Amazon Resource Name (ARN)。如果未指定角色，Systems Manager Automation 會使用啟動此 Runbook 之使用者的許可。
+ Category 

  類型：字串

  描述：(選用) 事件的類別。

  有效值：無 \$1 查詢/說明 \$1 軟體 \$1 硬體 \$1 網路 \$1 資料庫

  預設值：無
+ Description

  類型：字串

  描述：(必要) 有關事件的詳細說明。
+ 影響

  類型：字串

  摘要：(選用) 事件對業務造成的影響。

  有效值：高 \$1 中 \$1 低

  預設值：低
+ ServiceNowInstanceUsername

  類型：字串

  描述：(必要) 要建立事件的使用者名稱。
+ ServiceNowInstancePassword

  類型：字串

  描述：(必要) 包含 ServiceNow 使用者密碼之加密 SSM 參數的名稱。
+ ServiceNowInstanceURL

  類型：字串

  描述：(必要) ServiceNow 執行個體的 URL
+ ShortDescription

  類型：字串

  描述：(必要) 事件的簡短描述。
+ Subcategory

  類型：字串

  描述：(選用) 事件的子類別。

  有效值：無 \$1 防毒 \$1 電子郵件 \$1 內部應用程式 \$1 作業系統 \$1 CPU \$1 磁碟 \$1 鍵盤 \$1 硬體 \$1 記憶體 \$1 監視器 \$1 滑鼠 \$1 DHCP \$1 DNS \$1 IP 地址 \$1 VPN \$1 無線 \$1 DB2 \$1 MS SQL Server \$1 Oracle 

  預設值：無

 **文件步驟** 

Push\$1incident – 將事件資訊推送至 ServiceNow。

 **輸出** 

Push\$1incident.incidentID – 建立的事件 ID。