Interface IamAuth

interface IamAuth {
    type: "iam";
    region: string;
    credentials:
        | AwsCredentials
        | () => AwsCredentials | Promise<AwsCredentials>;
}

Properties

type: "iam"
region: string

AWS region the AppSync API lives in, e.g. 'us-east-1'.

credentials: AwsCredentials | () => AwsCredentials | Promise<AwsCredentials>

AWS credentials, or a function returning fresh credentials per request.