UNPKG

@softchef/cdk-iot-device-management

Version:

IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.

55 lines (54 loc) 1.53 kB
import { AuthorizationType, IAuthorizer } from 'aws-cdk-lib/aws-apigateway'; import { Construct } from 'constructs'; /** * Thing Group API props. * * @stability stable */ export interface ThingGroupApiProps { /** * Specify API Gateway all resources's authorization type, COGNTIO/IAM/CUSTOM/NONE. * * @default AuthorizationType.NONE * @stability stable */ readonly authorizationType?: AuthorizationType; /** * Specify API Gateway's authorizer, CognitoUserPool/Lambda. * * @default undefined * @stability stable */ readonly authorizer?: IAuthorizer | undefined; } /** * Thing Group API construct. * * @stability stable */ export declare class ThingGroupApi extends Construct { /** * The Thing Group API Gateway */ private readonly _restApi; /** * @stability stable */ constructor(scope: Construct, id: string, props?: ThingGroupApiProps); /** * Thing Group API API ID. * * @stability stable */ get restApiId(): string; private createCreateThingGroupFunction; private createListThingGroupsFunction; private createGetThingGroupFunction; private createUpdateThingGroupFunction; private createDeleteThingGroupFunction; private createAddThingToThingGroupFunction; private createRemoveThingFromThingGroupFunction; private createCreateDynamicThingGroupFunction; private createUpdateDynamicThingGroupFunction; private createDeleteDynamicThingGroupFunction; }