@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.
45 lines (44 loc) • 1.21 kB
TypeScript
import { AuthorizationType, IAuthorizer } from 'aws-cdk-lib/aws-apigateway';
import { Construct } from 'constructs';
/**
* @stability stable
*/
export interface ThingTypeApiProps {
/**
* 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;
}
/**
* @stability stable
*/
export declare class ThingTypeApi extends Construct {
/**
* The ThingType API Gateway
*/
private readonly _restApi;
/**
* @stability stable
*/
constructor(scope: Construct, id: string, props?: ThingTypeApiProps);
/**
* @stability stable
*/
get restApiId(): string;
private createCreateThingTypeFunction;
private createListThingTypesFunction;
private createGetThingTypeFunction;
private createDeprecateThingTypeFunction;
private createUndeprecateThingTypeFunction;
private createDeleteThingTypeFunction;
}