選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

CreateGeneratedTemplate

焦點模式
CreateGeneratedTemplate - AWS CloudFormation
此頁面尚未翻譯為您的語言。 請求翻譯

Creates a template from existing resources that are not already managed with CloudFormation. You can check the status of the template generation using the DescribeGeneratedTemplate API action.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

GeneratedTemplateName

The name assigned to the generated template.

Type: String

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

Required: Yes

Resources.member.N

An optional list of resources to be included in the generated template.

If no resources are specified,the template will be created without any resources. Resources can be added to the template using the UpdateGeneratedTemplate API action.

Type: Array of ResourceDefinition objects

Array Members: Minimum number of 1 item. Maximum number of 500 items.

Required: No

StackName

An optional name or ARN of a stack to use as the base stack for the generated template.

Type: String

Required: No

TemplateConfiguration

The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.

Type: TemplateConfiguration object

Required: No

Response Elements

The following element is returned by the service.

GeneratedTemplateId

The ID of the generated template.

Type: String

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

Errors

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

AlreadyExists

The resource with the name requested already exists.

HTTP Status Code: 400

ConcurrentResourcesLimitExceeded

No more than 5 generated templates can be in an InProgress or Pending status at one time. This error is also returned if a generated template that is in an InProgress or Pending status is attempted to be updated or deleted.

HTTP Status Code: 429

LimitExceeded

The quota for the resource has already been reached.

For information about resource and stack limitations, see AWS CloudFormation quotas in the AWS CloudFormation User Guide.

HTTP Status Code: 400

See Also

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

下一個主題:

CreateStack

上一個主題:

CreateChangeSet

在本頁面

隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。