Skip to content

/AWS1/CL_SCG=>IMPORTASPROVISIONEDPRODUCT()

About ImportAsProvisionedProduct

Requests the import of a resource as an Service Catalog provisioned product that is associated to an Service Catalog product and provisioning artifact. Once imported, all supported governance actions are supported on the provisioned product.

Resource import only supports CloudFormation stack ARNs. CloudFormation StackSets, and non-root nested stacks, are not supported.

The CloudFormation stack must have one of the following statuses to be imported: CREATE_COMPLETE, UPDATE_COMPLETE, UPDATE_ROLLBACK_COMPLETE, IMPORT_COMPLETE, and IMPORT_ROLLBACK_COMPLETE.

Import of the resource requires that the CloudFormation stack template matches the associated Service Catalog product provisioning artifact.

When you import an existing CloudFormation stack into a portfolio, Service Catalog does not apply the product's associated constraints during the import process. Service Catalog applies the constraints after you call UpdateProvisionedProduct for the provisioned product.

The user or role that performs this operation must have the cloudformation:GetTemplate and cloudformation:DescribeStacks IAM policy permissions.

You can only import one provisioned product at a time. The product's CloudFormation stack must have the IMPORT_COMPLETE status before you import another.

Method Signature

IMPORTING

Required arguments:

IV_PRODUCTID TYPE /AWS1/SCGID /AWS1/SCGID

The product identifier.

IV_PROVISIONINGARTIFACTID TYPE /AWS1/SCGID /AWS1/SCGID

The identifier of the provisioning artifact.

IV_PROVISIONEDPRODUCTNAME TYPE /AWS1/SCGPROVPRODUCTNAME /AWS1/SCGPROVPRODUCTNAME

The user-friendly name of the provisioned product. The value must be unique for the Amazon Web Services account. The name cannot be updated after the product is provisioned.

IV_PHYSICALID TYPE /AWS1/SCGPHYSICALID /AWS1/SCGPHYSICALID

The unique identifier of the resource to be imported. It only currently supports CloudFormation stack IDs.

IV_IDEMPOTENCYTOKEN TYPE /AWS1/SCGIDEMPOTENCYTOKEN /AWS1/SCGIDEMPOTENCYTOKEN

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

Optional arguments:

IV_ACCEPTLANGUAGE TYPE /AWS1/SCGACCEPTLANGUAGE /AWS1/SCGACCEPTLANGUAGE

The language code.

  • jp - Japanese

  • zh - Chinese

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SCGIMPASPROVPRODUCT01 /AWS1/CL_SCGIMPASPROVPRODUCT01