Files
floci-ui/packages/api/src/cloud-spi/notificationsSchema.ts
T
2026-09-25 18:18:33 -04:00

34 lines
1.3 KiB
TypeScript

import type {ServiceSchema} from './types'
export function awsNotificationsSchema(): ServiceSchema {
return {
cloud: 'aws',
service: 'notifications',
displayName: 'Amazon SNS',
fields: [
{
name: 'name',
label: 'Topic Name',
type: 'text',
required: true,
description: 'Up to 256 letters, numbers, hyphens, and underscores.',
},
],
actions: ['list', 'create', 'inspect', 'delete'],
filters: [{name: 'search', label: 'Search', type: 'text', required: false}],
columns: [
{name: 'name', label: 'Name'},
{name: 'arn', label: 'Topic ARN', path: 'metadata.arn', format: 'code'},
{name: 'type', label: 'Type'},
],
capabilities: {
resourceActions: [
{name: 'list', label: 'List topics', enabled: true, status: 'available', runtimeRequired: true},
{name: 'create', label: 'Create topic', enabled: true, status: 'available', runtimeRequired: true},
{name: 'delete', label: 'Delete topic', enabled: true, status: 'available', runtimeRequired: true},
{name: 'inspect', label: 'Inspect topic', enabled: true, status: 'available', runtimeRequired: false},
],
},
}
}