Skip to main content

credential_lockers

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

Overview

Namecredential_lockers
TypeResource
Idaws.iot_managed_integrations.credential_lockers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the credential locker. (pattern: <code>arn:aws:iotmanagedintegrations:[0-9a-zA-Z-]+:[0-9]+:credential-locker/[0-9a-zA-Z]+</code>)
created_atstring (date-time)The timestamp value of when the credential locker requset occurred.
idstringThe identifier of the credential locker. (pattern: <code>[a-zA-Z0-9]*</code>)
namestringThe name of the credential locker. (pattern: <code>[A-Za-z0-9-_ ]+</code>)
tagsobjectA set of key/value pairs that are used to manage the credential locker.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_credential_lockerselectidentifier, regionGet information on an existing credential locker
list_credential_lockersselectregionNextToken, MaxResultsList information on an existing credential locker.
create_credential_lockerinsertregionCreate a credential locker. This operation will not trigger the creation of all the manufacturing resources.
delete_credential_lockerdeleteidentifier, regionDelete a credential locker. This operation can't be undone and any existing device won't be able to use IoT managed integrations.

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 identifier of the credential locker.
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 information on an existing credential locker

SELECT
arn,
created_at,
id,
name,
tags
FROM aws.iot_managed_integrations.credential_lockers
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a credential locker. This operation will not trigger the creation of all the manufacturing resources.

INSERT INTO aws.iot_managed_integrations.credential_lockers (
Name,
ClientToken,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ ClientToken }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
created_at,
id
;

DELETE examples

Delete a credential locker. This operation can't be undone and any existing device won't be able to use IoT managed integrations.

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