Fugue.Generic.Compliance

Module Members

blacklistResources

(Function)

Blacklist specific kinds of resources.

Example:

import Fugue.Generic.Compliance

validate Fugue.Generic.Compliance.blacklistResources {
  blacklist: ["Fugue.Core.AWS.Lambda.Function"]
}

Type Signature

 fun { blacklist: List<String>,
       references: Optional<List<String>> } -> fun (NodeStream) -> Validation
Argument: blacklist
Type: List<String>
Argument: references
Type: Optional<List<String>>
Returns:
Type: fun ( NodeStream) -> Validation

limitResourceCount

(Function)

Check if the number of a given type of NodeStream resource falls within the provided range (inclusive).

Example:

import Fugue.Generic.Compliance

validate Fugue.Generic.Compliance.limitResourceCount {
  resource: "Fugue.Core.AWS.EC2.Instance",
  from: 5,
  to: 10
}

Type Signature

 fun { resource: String,
       from: Optional<Int>,
       to: Int,
       warnThreshold: Optional<Int>,
       references: Optional<List<String>> } -> fun (NodeStream) -> Validation
Argument: resource

The NodeStream resource to check.

Type: String

Argument: from

The low end of the range (defaults to 0).

Type: Optional<Int>

Argument: to

The high end of the range.

Type: Int

Argument: warnThreshold

At or above this generates a warning

Type: Optional<Int>

Argument: references
Type: Optional<List<String>>
Returns:

Validation indicating if the count of resources is in range (inclusive)

Type: fun ( NodeStream) -> Validation

hipaaBlacklistedResources

(Value)

(List<String>) hipaaBlacklistedResources:
  ["Fugue.Core.AWS.Kinesis.Stream"
  ,"Fugue.Core.AWS.Lambda.Function"
  ,"Fugue.Core.AWS.Elasticache.CacheCluster"
  ,"Fugue.Core.AWS.Elasticache.CacheSubnetGroup"]

Type Signature

 List<String>