Skip to main content

provisioning_profiles

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

Overview

Nameprovisioning_profiles
TypeResource
Idaws.iot_managed_integrations.provisioning_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the provisioning profile. (pattern: <code>arn:aws:iotmanagedintegrations:[0-9a-zA-Z-]+:[0-9]+:provisioning-profile/[0-9a-zA-Z]+</code>)
claim_certificatestringThe body of the PEM-encoded claim certificate.
idstringThe provisioning profile id. (pattern: <code>[A-Za-z0-9-_]+</code>)
namestringThe name of the provisioning profile. (pattern: <code>[0-9A-Za-z_-]+</code>)
provisioning_typestringThe type of provisioning workflow the device uses for onboarding to IoT managed integrations. (FLEET_PROVISIONING, JITR)
statusstringThe status of a provisioning profile. (CREATE_IN_PROGRESS, CREATE_FAILED, CREATED, DELETE_IN_PROGRESS, DELETE_FAILED)
tagsobjectA set of key/value pairs that are used to manage the provisioning profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_provisioning_profileselectidentifier, regionGet details of a provisioning profile.
list_provisioning_profilesselectregionNextToken, MaxResultsList the provisioning profiles within the Amazon Web Services account.
create_provisioning_profileinsertregion, ProvisioningTypeCreate a provisioning profile for executing device provisioning flows. The provisioning profile is a document that defines the set of resources and policies applied to a device during the provisioning process.
delete_provisioning_profiledeleteidentifier, regionDelete a provisioning profile.

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
identifierstringThe id of the provisioning profile.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of results to return at one time.
NextTokenstringA token that can be used to retrieve the next set of results.

SELECT examples

Get details of a provisioning profile.

SELECT
arn,
claim_certificate,
id,
name,
provisioning_type,
status,
tags
FROM aws.iot_managed_integrations.provisioning_profiles
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a provisioning profile for executing device provisioning flows. The provisioning profile is a document that defines the set of resources and policies applied to a device during the provisioning process.

INSERT INTO aws.iot_managed_integrations.provisioning_profiles (
ProvisioningType,
CaCertificate,
ClaimCertificate,
Name,
ClientToken,
Tags,
region
)
SELECT
'{{ ProvisioningType }}' /* required */,
'{{ CaCertificate }}',
'{{ ClaimCertificate }}',
'{{ Name }}',
'{{ ClientToken }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
claim_certificate,
claim_certificate_private_key,
id,
name,
provisioning_type,
status
;

DELETE examples

Delete a provisioning profile.

DELETE FROM aws.iot_managed_integrations.provisioning_profiles
WHERE identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;