Skip to main content

authorizers

Creates, updates, deletes or gets an authorizer resource or lists authorizers in a region

Overview

Nameauthorizers
TypeResource
DescriptionCreates an authorizer.
Idaws.iot.authorizers

Fields

NameDatatypeDescription
authorizer_function_arnstring
arnstring
authorizer_namestring
signing_disabledboolean
statusstring
token_key_namestring
token_signing_public_keysobject
enable_caching_for_httpboolean
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAuthorizerFunctionArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all authorizers in a region.

SELECT
region,
authorizer_function_arn,
arn,
authorizer_name,
signing_disabled,
status,
token_key_name,
token_signing_public_keys,
enable_caching_for_http,
tags
FROM aws.iot.authorizers
WHERE region = 'us-east-1';

Gets all properties from an individual authorizer.

SELECT
region,
authorizer_function_arn,
arn,
authorizer_name,
signing_disabled,
status,
token_key_name,
token_signing_public_keys,
enable_caching_for_http,
tags
FROM aws.iot.authorizers
WHERE region = 'us-east-1' AND data__Identifier = '<AuthorizerName>';

INSERT example

Use the following StackQL query and manifest file to create a new authorizer resource, using stack-deploy.

/*+ create */
INSERT INTO aws.iot.authorizers (
AuthorizerFunctionArn,
region
)
SELECT
'{{ AuthorizerFunctionArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iot.authorizers
WHERE data__Identifier = '<AuthorizerName>'
AND region = 'us-east-1';

Permissions

To operate on the authorizers resource, the following permissions are required:

Create

iot:CreateAuthorizer,
iot:DescribeAuthorizer,
iot:TagResource,
iot:ListTagsForResource

Read

iot:DescribeAuthorizer,
iot:ListTagsForResource

Update

iot:UpdateAuthorizer,
iot:DescribeAuthorizer,
iot:TagResource,
iot:UntagResource,
iot:ListTagsForResource

Delete

iot:UpdateAuthorizer,
iot:DeleteAuthorizer,
iot:DescribeAuthorizer

List

iot:ListAuthorizers