Documentation
¶
Index ¶
- Constants
- Variables
- func FilterKeyIDs(f FilterFunc, keyIDs []string) ([]string, error)
- func IsMrkArnEqual(key1, key2 string) bool
- func IsValidMrkArn(str string) (bool, error)
- func IsValidMrkIdentifier(str string) (bool, error)
- func KeyResourceEqual(key1, key2 string) (bool, error)
- func ValidateKeyArn(keyID string) error
- type FilterFunc
- type KeyArn
Constants ¶
View Source
const (
KeyResourceType = "key"
)
Variables ¶
View Source
var ErrMalformedArn = errors.New("malformed Key ARN")
Functions ¶
func FilterKeyIDs ¶ added in v0.1.0
func FilterKeyIDs(f FilterFunc, keyIDs []string) ([]string, error)
func IsMrkArnEqual ¶ added in v0.1.0
IsMrkArnEqual compares two MRK ARNs
Spec: aws-kms-mrk-match-for-decrypt
Given two KMS key arns, determines whether they refer to related KMS MRKs.
func IsValidMrkArn ¶ added in v0.1.0
IsValidMrkArn checks if the given string can be a valid MRK ARN
Spec: aws-kms-key-arn
func IsValidMrkIdentifier ¶ added in v0.1.0
IsValidMrkIdentifier checks if the given string can be a valid MRK identifier
Spec: aws-kms-key-arn
func KeyResourceEqual ¶ added in v0.1.0
func ValidateKeyArn ¶
Types ¶
type FilterFunc ¶ added in v0.1.0
type KeyArn ¶
type KeyArn struct {
Partition string // AWS partition, e.g. aws, aws-cn, aws-us-gov
Service string // AWS service, kms
Region string // AWS region, us-east-1, eu-west-1
Account string // AWS account ID, 12 digits
ResourceType string // AWS resource type, either "key" or "alias"
ResourceID string // AWS resource ID, resource ID or alias name
}
Click to show internal directories.
Click to hide internal directories.