示例#1
0
func KMS(req Request) *kms.KMS {
	return kms.New(&aws.Config{
		Credentials: Credentials(&req),
		Region:      Region(&req),
	})
}
示例#2
0
func KMS(c *Crypt) *kms.KMS {
	return kms.New(&aws.Config{
		Credentials: credentials.NewCredentials(&Credentials{Crypt: c}),
		Region:      aws.String(c.AwsRegion),
	})
}