Conditions | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package kms |
||
37 | func (r EncryptRequest) ToInput() *SDK.EncryptInput { |
||
38 | in := &SDK.EncryptInput{} |
||
39 | |||
40 | if r.KeyID != "" { |
||
41 | in.KeyId = pointers.String(r.KeyID) |
||
42 | } |
||
43 | in.Plaintext = r.Plaintext |
||
44 | |||
45 | in.EncryptionAlgorithm = SDK.EncryptionAlgorithmSpec(r.EncryptionAlgorithm) |
||
46 | in.EncryptionContext = r.EncryptionContext |
||
47 | in.GrantTokens = r.GrantTokens |
||
48 | return in |
||
49 | } |
||
70 |