Skip to content

Instantly share code, notes, and snippets.

View YasharHND's full-sized avatar
🐢
Neutral

Yashar Heidarnezhad YasharHND

🐢
Neutral
View GitHub Profile
@YasharHND
YasharHND / quick-sight.stack.ts
Last active February 18, 2025 15:33
CDK QuickSight Construct With Permissions (for QS Group) & CfnAnalysis
import { NestedStack, type NestedStackProps } from 'aws-cdk-lib';
import {
CfnFolder,
CfnDataSet,
CfnDataSource,
CfnTemplate,
CfnDashboard,
CfnAnalysis,
} from 'aws-cdk-lib/aws-quicksight';
import type { Construct } from 'constructs';
import javax.crypto.Cipher;
import java.io.FileOutputStream;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.spec.EncodedKeySpec;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;