@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.43 kB
TypeScript
import { AuthorizationType, IAuthorizer } from 'aws-cdk-lib/aws-apigateway';
import { Construct } from 'constructs';
/**
* Thing API props.
*
* @stability stable
*/
export interface ThingApiProps {
/**
* 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 API construct.
*
* @stability stable
*/
export declare class ThingApi extends Construct {
/**
* The Thing API Gateway
*/
private readonly _restApi;
/**
* @stability stable
*/
constructor(scope: Construct, id: string, props?: ThingApiProps);
/**
* Thing API API ID.
*
* @stability stable
*/
get restApiId(): string;
private createCreateThingFunction;
private createListThingsFunction;
private createGetThingFunction;
private createUpdateThingFunction;
private createDeleteThingFunction;
private createListThingShadowsFunction;
private createGetThingShadowFunction;
private createUpdateThingShadowFunction;
private createDeleteThingShadowFunction;
private createSearchThingsFunction;
}