feat: add metadata json
This commit is contained in:
@ -1,6 +1,17 @@
|
|||||||
import { Client } from '@smithy/smithy-client'
|
import { Client } from '@smithy/smithy-client'
|
||||||
import shajs from 'sha.js'
|
import shajs from 'sha.js'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Memorize AWS SDK operation results.
|
||||||
|
* This util class tend to be always re-use AWS SDK Client
|
||||||
|
* which makes operation more faster and optimize memory usage.
|
||||||
|
*
|
||||||
|
* All results will be store as Key-Value hash map.
|
||||||
|
* * Key: sha256(serialize([OPERATION_NAME, OPERATION_INPUT_PARAMETER]))
|
||||||
|
* * Value: OPERATION_OUTPUT
|
||||||
|
*
|
||||||
|
* @author Minhyeok Park <pmh_only@pmh.codes>
|
||||||
|
*/
|
||||||
export class Memorizer {
|
export class Memorizer {
|
||||||
private static memorized = new Map<string, Memorizer>()
|
private static memorized = new Map<string, Memorizer>()
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* This interface defines required structure for all bpsets.
|
||||||
|
*
|
||||||
|
* Modifying this interface causes VERY large blast impact.
|
||||||
|
* SO PLEASE DO NOT MODIFY.
|
||||||
|
*
|
||||||
|
* @author Minhyeok Park <pmh_only@pmh.codes>
|
||||||
|
*/
|
||||||
export interface BPSet {
|
export interface BPSet {
|
||||||
check: () => Promise<{
|
check: () => Promise<{
|
||||||
compliantResources: string[]
|
compliantResources: string[]
|
||||||
|
2464
src/bpsets/bpset_metadata.json
Normal file
2464
src/bpsets/bpset_metadata.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user