Fugue.AWS.RDS.Validation.Util

Module Members

getStorageType

(Function)

Type Signature

 fun (DBInstance) -> VolumeType
Argument: dbInstance
Type: DBInstance
Returns:
Type: VolumeType

parseBackupWindow

(Function)

Type Signature

 fun (String) -> Optional<ParseBackupWindow>
Argument: backupWindow
Type: String
Returns:
Type: Optional<ParseBackupWindow>

parseHalfOfBackupWindow

(Function)

Type Signature

 fun (String) -> Optional<HalfParsedBackupWindow>
Argument: backupWindow
Type: String
Returns:
Type: Optional<HalfParsedBackupWindow>

parseHalfOfMaintenanceWindow

(Function)

Type Signature

 fun (String) -> Optional<HalfParsedMaintenanceWindow>
Argument: maintenanceWindow
Type: String
Returns:
Type: Optional<HalfParsedMaintenanceWindow>

parseMaintenanceWindow

(Function)

Type Signature

 fun (String) -> Optional<ParsedMaintenanceWindow>
Argument: maintenanceWindow
Type: String
Returns:
Type: Optional<ParsedMaintenanceWindow>

sc1StorageTypeNotAllowedError

(Function)

Type Signature

 fun (String) -> Validation
Argument: engine
Type: String
Returns:
Type: Validation

st1StorageTypeNotAllowedError

(Function)

Type Signature

 fun (String) -> Validation
Argument: engine
Type: String
Returns:
Type: Validation

validAllocatedStorage

(Function)

Type Signature

 fun (Int, String, String, Int, Int) -> Validation
Argument: allocatedStorage
Type: Int
Argument: engine
Type: String
Argument: storageType
Type: String
Argument: low
Type: Int
Argument: high
Type: Int
Returns:
Type: Validation

validBackupRetentionPeriod

(Function)

Type Signature

 fun (Optional<Int>) -> Validation
Argument: maybeBackupRetentionPeriod
Type: Optional<Int>
Returns:
Type: Validation

validDatabaseName

(Function)

Type Signature

 fun (Optional<String>, Regex, List<String>, String, String) -> Validation
Argument: maybeDatabaseName
Type: Optional<String>
Argument: regex
Type: Regex
Argument: reservedWords
Type: List<String>
Argument: conditions
Type: String
Argument: engine
Type: String
Returns:
Type: Validation

validIdentifier

(Function)

Type Signature

 fun (String, Optional<String>) -> Validation
Argument: field
Type: String
Argument: maybeIdentifier
Type: Optional<String>
Returns:
Type: Validation

validInstanceClass

(Function)

Type Signature

 fun (DBInstanceClass, List<DBInstanceClass>, String) -> Validation
Argument: instanceClass
Type: DBInstanceClass
Argument: allowedClasses
Type: List<DBInstanceClass>
Argument: engine
Type: String
Returns:
Type: Validation

validMasterUsername

(Function)

Type Signature

 fun (Optional<String>, Regex, List<String>, String, String, Bool) -> Validation
Argument: maybeMasterUsername
Type: Optional<String>
Argument: regex
Type: Regex
Argument: reservedWords
Type: List<String>
Argument: conditions
Type: String
Argument: engine
Type: String
Argument: required
Type: Bool
Returns:
Type: Validation

validPort

(Function)

Type Signature

 fun (Optional<Int>, PortBounds, List<Int>, List<PortBounds>, String, String) -> Validation
Argument: maybePort
Type: Optional<Int>
Argument: bounds
Type: PortBounds
Argument: excluded
Type: List<Int>
Argument: excludedRange
Type: List<PortBounds>
Argument: conditions
Type: String
Argument: engine
Type: String
Returns:
Type: Validation

validPreferredBackupWindow

(Function)

Type Signature

 fun (Optional<String>) -> Validation
Argument: maybePreferredBackupWindow
Type: Optional<String>
Returns:
Type: Validation

validPreferredMaintenanceWindow

(Function)

Type Signature

 fun (Optional<String>) -> Validation
Argument: maybePreferredMaintenanceWindow
Type: Optional<String>
Returns:
Type: Validation

validSecurityGroups

(Function)

Type Signature

 fun (Optional<List<SecurityGroup>>) -> Validation
Argument: maybeSecurityGroups
Type: Optional<List<SecurityGroup>>
Returns:
Type: Validation

validTags

(Function)

Type Signature

 fun (Optional<List<Tag>>) -> Validation
Argument: maybeTags
Type: Optional<List<Tag>>
Returns:
Type: Validation

HalfParsedBackupWindow

(Type)

type HalfParsedBackupWindow:
  hour: Int
  min: Int

Record {

Field: hour
Type: Int
Field: min
Type: Int

}

HalfParsedMaintenanceWindow

(Type)

type HalfParsedMaintenanceWindow:
  day: String
  hour: Int
  min: Int

Record {

Field: day
Type: String
Field: hour
Type: Int
Field: min
Type: Int

}

ParseBackupWindow

(Type)

type ParseBackupWindow:
  start: HalfParsedBackupWindow
  end: HalfParsedBackupWindow

Record {

Field: start
Type: HalfParsedBackupWindow
Field: end
Type: HalfParsedBackupWindow

}

ParsedMaintenanceWindow

(Type)

type ParsedMaintenanceWindow:
  start: HalfParsedMaintenanceWindow
  end: HalfParsedMaintenanceWindow

Record {

Field: start
Type: HalfParsedMaintenanceWindow
Field: end
Type: HalfParsedMaintenanceWindow

}

PortBounds

(Type)

type PortBounds:
  min: Int
  max: Int

Record {

Field: min
Type: Int
Field: max
Type: Int

}

identifierRegex

(Value)

identifierRegex:
  new(pattern: "^(?!.*--)[A-Za-z][A-Za-z0-9-]{0,62}(?<!-)$")