Skip to main content

channel_namespaces

Creates, updates, deletes or gets a channel_namespace resource or lists channel_namespaces in a region

Overview

Namechannel_namespaces
TypeResource
DescriptionResource schema for AppSync ChannelNamespace
Idaws.appsync.channel_namespaces

Fields

NameDatatypeDescription
api_idstringAppSync Api Id that this Channel Namespace belongs to.
namestringNamespace indentifier.
subscribe_auth_modesarrayList of AuthModes supported for Subscribe operations.
publish_auth_modesarrayList of AuthModes supported for Publish operations.
code_handlersstringString of APPSYNC_JS code to be used by the handlers.
code_s3_locationstringThe Amazon S3 endpoint where the code is located.
channel_namespace_arnstringThe Amazon Resource Name (ARN) for the Channel Namespace.
tagsarrayAn arbitrary set of tags (key-value pairs) for this AppSync API.
regionstringAWS region.

For more information, see AWS::AppSync::ChannelNamespace.

Methods

NameAccessible byRequired Params
create_resourceINSERTApiId, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all channel_namespaces in a region.

SELECT
region,
api_id,
name,
subscribe_auth_modes,
publish_auth_modes,
code_handlers,
code_s3_location,
channel_namespace_arn,
tags
FROM aws.appsync.channel_namespaces
WHERE region = 'us-east-1';

Gets all properties from an individual channel_namespace.

SELECT
region,
api_id,
name,
subscribe_auth_modes,
publish_auth_modes,
code_handlers,
code_s3_location,
channel_namespace_arn,
tags
FROM aws.appsync.channel_namespaces
WHERE region = 'us-east-1' AND data__Identifier = '<ChannelNamespaceArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.appsync.channel_namespaces (
ApiId,
Name,
region
)
SELECT
'{{ ApiId }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.appsync.channel_namespaces
WHERE data__Identifier = '<ChannelNamespaceArn>'
AND region = 'us-east-1';

Permissions

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

Create

appsync:CreateChannelNamespace,
appsync:TagResource,
appsync:GetChannelNamespace,
s3:GetObject

Read

appsync:GetChannelNamespace,
appsync:ListTagsForResource

Update

appsync:UpdateChannelNamespace,
appsync:TagResource,
appsync:UntagResource,
appsync:GetChannelNamespace,
s3:GetObject

Delete

appsync:DeleteChannelNamespace,
appsync:UntagResource

List

appsync:ListChannelNamespaces