Skip to main content

provisioning_artifacts

Creates, updates, deletes, gets or lists a provisioning_artifacts resource.

Overview

Nameprovisioning_artifacts
TypeResource
Idaws.servicecatalog.provisioning_artifacts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_page_tokenstringThe page token to use to retrieve the next set of results. If there are no additional results, this value is null. (pattern: <code>[\u0009\u000a\u000d\u0020-\uD7FF\uE000-\uFFFD]*</code>)
provisioning_artifact_detailsarrayInformation about the provisioning artifacts.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_provisioning_artifactsselectregionLists all provisioning artifacts (also known as versions) for the specified product.
describe_provisioning_artifactselectregionGets information about the specified provisioning artifact (also known as a version) for the specified product.
create_provisioning_artifactinsertregion, ProductId, Parameters, IdempotencyTokenCreates a provisioning artifact (also known as a version) for the specified product. You cannot create a provisioning artifact for a product that was shared with you. The user or role that performs this operation must have the cloudformation:GetTemplate IAM policy permission. This policy permission is required when using the ImportFromPhysicalId template source in the information data section.
associate_service_action_with_provisioning_artifactupdateregion, ProductId, ProvisioningArtifactId, ServiceActionIdAssociates a self-service action with a provisioning artifact.
update_provisioning_artifactupdateregion, ProductId, ProvisioningArtifactIdUpdates the specified provisioning artifact (also known as a version) for the specified product. You cannot update a provisioning artifact for a product that was shared with you.
delete_provisioning_artifactdeleteregionDeletes the specified provisioning artifact (also known as a version) for the specified product. You cannot delete a provisioning artifact associated with a product that was shared with you. You cannot delete the last provisioning artifact for a product, because a product must have at least one provisioning artifact.
disassociate_service_action_from_provisioning_artifactexecregion, ProductId, ProvisioningArtifactId, ServiceActionIdDisassociates the specified self-service action association from the specified provisioning artifact.
import_as_provisioned_productexecregion, ProductId, ProvisioningArtifactId, ProvisionedProductName, PhysicalId, IdempotencyTokenRequests 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists all provisioning artifacts (also known as versions) for the specified product.

SELECT
next_page_token,
provisioning_artifact_details
FROM aws.servicecatalog.provisioning_artifacts
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a provisioning artifact (also known as a version) for the specified product. You cannot create a provisioning artifact for a product that was shared with you. The user or role that performs this operation must have the cloudformation:GetTemplate IAM policy permission. This policy permission is required when using the ImportFromPhysicalId template source in the information data section.

INSERT INTO aws.servicecatalog.provisioning_artifacts (
AcceptLanguage,
ProductId,
Parameters,
IdempotencyToken,
region
)
SELECT
'{{ AcceptLanguage }}',
'{{ ProductId }}' /* required */,
'{{ Parameters }}' /* required */,
'{{ IdempotencyToken }}' /* required */,
'{{ region }}'
RETURNING
info,
provisioning_artifact_detail,
status
;

UPDATE examples

Associates a self-service action with a provisioning artifact.

UPDATE aws.servicecatalog.provisioning_artifacts
SET
ProductId = '{{ ProductId }}',
ProvisioningArtifactId = '{{ ProvisioningArtifactId }}',
ServiceActionId = '{{ ServiceActionId }}',
AcceptLanguage = '{{ AcceptLanguage }}',
IdempotencyToken = '{{ IdempotencyToken }}'
WHERE
region = '{{ region }}' --required
AND ProductId = '{{ ProductId }}' --required
AND ProvisioningArtifactId = '{{ ProvisioningArtifactId }}' --required
AND ServiceActionId = '{{ ServiceActionId }}' --required;

DELETE examples

Deletes the specified provisioning artifact (also known as a version) for the specified product. You cannot delete a provisioning artifact associated with a product that was shared with you. You cannot delete the last provisioning artifact for a product, because a product must have at least one provisioning artifact.

DELETE FROM aws.servicecatalog.provisioning_artifacts
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Disassociates the specified self-service action association from the specified provisioning artifact.

EXEC aws.servicecatalog.provisioning_artifacts.disassociate_service_action_from_provisioning_artifact
@region='{{ region }}' --required
@@json=
'{
"ProductId": "{{ ProductId }}",
"ProvisioningArtifactId": "{{ ProvisioningArtifactId }}",
"ServiceActionId": "{{ ServiceActionId }}",
"AcceptLanguage": "{{ AcceptLanguage }}",
"IdempotencyToken": "{{ IdempotencyToken }}"
}'
;