Versions in this module Expand all Collapse all v1 v1.18.0 Aug 2, 2026 Changes in this version + type API interface + Decrypt func(ctx context.Context, params *awskms.DecryptInput, ...) (*awskms.DecryptOutput, error) + Encrypt func(ctx context.Context, params *awskms.EncryptInput, ...) (*awskms.EncryptOutput, error) + type Client struct + func New(ctx context.Context, arn string, opts ...Option) (*Client, error) + func (d *Client) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error) + func (d *Client) Encrypt(ctx context.Context, plaintext []byte) ([]byte, error) + type Option func(*clientConfig) + func WithConfig(cfg aws.Config) Option + func WithEndpoint(url string) Option + func WithRegion(region string) Option