Type Alias AppSyncResolverEvent
AppSyncResolverEvent: {
arguments: Record<string, any>;
identity?:
| {
accountId: string;
cognitoIdentityAuthProvider: null
| string;
cognitoIdentityAuthType: null | string;
cognitoIdentityId: null | string;
cognitoIdentityPoolId: null | string;
sourceIp: string[];
userArn: string;
username: string;
}
| {
claims?: any;
defaultAuthStrategy: string;
groups: null
| string[];
issuer: string;
sourceIp: string[];
sub: string;
username: string;
}
| { claims?: any; issuer: string; sub: string }
| { resolverContext?: any };
info: {
fieldName: string;
parentTypeName: string;
selectionSetGraphQL: string;
selectionSetList: string[];
variables: Record<string, any>;
};
prev: null
| { result: Record<string, any> };
request: { domainName: null | string; headers: Record<string, string> };
source: null | Record<string, any>;
stash: Record<string, any>;
}
Type declaration
arguments: Record<string, any>
Optional
identity?:
| {
accountId: string;
cognitoIdentityAuthProvider: null
| string;
cognitoIdentityAuthType: null | string;
cognitoIdentityId: null | string;
cognitoIdentityPoolId: null | string;
sourceIp: string[];
userArn: string;
username: string;
}
| {
claims?: any;
defaultAuthStrategy: string;
groups: null
| string[];
issuer: string;
sourceIp: string[];
sub: string;
username: string;
}
| { claims?: any; issuer: string; sub: string }
| { resolverContext?: any }
info: {
fieldName: string;
parentTypeName: string;
selectionSetGraphQL: string;
selectionSetList: string[];
variables: Record<string, any>;
}
prev: null | { result: Record<string, any> }
request: { domainName: null | string; headers: Record<string, string> }
source: null | Record<string, any>
stash: Record<string, any>
A zod schema for an AppSync resolver event