sonarjs/aws-sqs-unencrypted-queue
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/aws-sqs-unencrypted-queue": "error",
},
},
];The documentation shows no incorrect example for this rule.
import { Queue } from 'aws-cdk-lib/aws-sqs';
new Queue(this, 'example', {
encryption: QueueEncryption.KMS_MANAGED
});import { CfnQueue } from 'aws-cdk-lib/aws-sqs';
const encryptionKey = new Key(this, 'example', {
enableKeyRotation: true,
});
new CfnQueue(this, 'example', {
kmsMasterKeyId: encryptionKey.keyId
});Examples from the ESLint documentation.
sonarjs/aws-sqs-unencrypted-queue
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/aws-sqs-unencrypted-queue": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Amazon SNS topics should be encrypted at rest
Bitwise operators should not be used in boolean contexts
SageMaker notebook instances should be encrypted at rest
Variables should be used in the blocks where they are declared
Amazon S3 buckets should have versioning enabled
Function call arguments should not start on new lines