Skip to content

Import As Provisioned Product

servicecatalog_import_as_provisioned_product R Documentation

Requests the import of a resource as an Service Catalog provisioned product that is associated to an Service Catalog product and provisioning artifact

Description

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 update_provisioned_product 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.

Usage

servicecatalog_import_as_provisioned_product(AcceptLanguage, ProductId,
  ProvisioningArtifactId, ProvisionedProductName, PhysicalId,
  IdempotencyToken)

Arguments

AcceptLanguage

The language code.

  • jp - Japanese

  • zh - Chinese

ProductId

[required] The product identifier.

ProvisioningArtifactId

[required] The identifier of the provisioning artifact.

ProvisionedProductName

[required] 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.

PhysicalId

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

IdempotencyToken

[required] 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.

Value

A list with the following syntax:

list(
  RecordDetail = list(
    RecordId = "string",
    ProvisionedProductName = "string",
    Status = "CREATED"|"IN_PROGRESS"|"IN_PROGRESS_IN_ERROR"|"SUCCEEDED"|"FAILED",
    CreatedTime = as.POSIXct(
      "2015-01-01"
    ),
    UpdatedTime = as.POSIXct(
      "2015-01-01"
    ),
    ProvisionedProductType = "string",
    RecordType = "string",
    ProvisionedProductId = "string",
    ProductId = "string",
    ProvisioningArtifactId = "string",
    PathId = "string",
    RecordErrors = list(
      list(
        Code = "string",
        Description = "string"
      )
    ),
    RecordTags = list(
      list(
        Key = "string",
        Value = "string"
      )
    ),
    LaunchRoleArn = "string"
  )
)

Request syntax

svc$import_as_provisioned_product(
  AcceptLanguage = "string",
  ProductId = "string",
  ProvisioningArtifactId = "string",
  ProvisionedProductName = "string",
  PhysicalId = "string",
  IdempotencyToken = "string"
)