runway.cfngin.lookups.handlers.kms module

AWS KMS lookup.

class runway.cfngin.lookups.handlers.kms.KmsLookup[source]

Bases: LookupHandler[CfnginContext]

AWS KMS lookup.

TYPE_NAME: ClassVar[str] = 'kms'

Name that the Lookup is registered as.

classmethod handle(value: str, context: runway.context.CfnginContext, **_: Any) str[source]

Decrypt the specified value with a master key in KMS.

Parameters:
  • value – Parameter(s) given to this lookup.

  • context – Context instance.

classmethod legacy_parse(value: str) tuple[str, ParsedArgsTypeDef][source]

Retain support for legacy lookup syntax.

Format of value:

<region>@<encrypted-blob>