1
|
|
|
package kms |
2
|
|
|
|
3
|
|
|
import ( |
4
|
|
|
"context" |
5
|
|
|
|
6
|
|
|
SDK "github.com/aws/aws-sdk-go-v2/service/kms" |
7
|
|
|
) |
8
|
|
|
|
9
|
|
|
// RawCancelKeyDeletion executes `CancelKeyDeletion` raw operation. |
10
|
|
|
func (svc *KMS) RawCancelKeyDeletion(ctx context.Context, in *SDK.CancelKeyDeletionInput) (*SDK.CancelKeyDeletionResponse, error) { |
11
|
|
|
return svc.client.CancelKeyDeletionRequest(in).Send(ctx) |
12
|
|
|
} |
13
|
|
|
|
14
|
|
|
// RawConnectCustomKeyStore executes `ConnectCustomKeyStore` raw operation. |
15
|
|
|
func (svc *KMS) RawConnectCustomKeyStore(ctx context.Context, in *SDK.ConnectCustomKeyStoreInput) (*SDK.ConnectCustomKeyStoreResponse, error) { |
16
|
|
|
return svc.client.ConnectCustomKeyStoreRequest(in).Send(ctx) |
17
|
|
|
} |
18
|
|
|
|
19
|
|
|
// RawCreateAlias executes `CreateAlias` raw operation. |
20
|
|
|
func (svc *KMS) RawCreateAlias(ctx context.Context, in *SDK.CreateAliasInput) (*SDK.CreateAliasResponse, error) { |
21
|
|
|
return svc.client.CreateAliasRequest(in).Send(ctx) |
22
|
|
|
} |
23
|
|
|
|
24
|
|
|
// RawCreateCustomKeyStore executes `CreateCustomKeyStore` raw operation. |
25
|
|
|
func (svc *KMS) RawCreateCustomKeyStore(ctx context.Context, in *SDK.CreateCustomKeyStoreInput) (*SDK.CreateCustomKeyStoreResponse, error) { |
26
|
|
|
return svc.client.CreateCustomKeyStoreRequest(in).Send(ctx) |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
// RawCreateGrant executes `CreateGrant` raw operation. |
30
|
|
|
func (svc *KMS) RawCreateGrant(ctx context.Context, in *SDK.CreateGrantInput) (*SDK.CreateGrantResponse, error) { |
31
|
|
|
return svc.client.CreateGrantRequest(in).Send(ctx) |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
// RawCreateKey executes `CreateKey` raw operation. |
35
|
|
|
func (svc *KMS) RawCreateKey(ctx context.Context, in *SDK.CreateKeyInput) (*SDK.CreateKeyResponse, error) { |
36
|
|
|
return svc.client.CreateKeyRequest(in).Send(ctx) |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
// RawDecrypt executes `Decrypt` raw operation. |
40
|
|
|
func (svc *KMS) RawDecrypt(ctx context.Context, in *SDK.DecryptInput) (*SDK.DecryptResponse, error) { |
41
|
|
|
return svc.client.DecryptRequest(in).Send(ctx) |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
// RawDeleteAlias executes `DeleteAlias` raw operation. |
45
|
|
|
func (svc *KMS) RawDeleteAlias(ctx context.Context, in *SDK.DeleteAliasInput) (*SDK.DeleteAliasResponse, error) { |
46
|
|
|
return svc.client.DeleteAliasRequest(in).Send(ctx) |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
// RawDeleteCustomKeyStore executes `DeleteCustomKeyStore` raw operation. |
50
|
|
|
func (svc *KMS) RawDeleteCustomKeyStore(ctx context.Context, in *SDK.DeleteCustomKeyStoreInput) (*SDK.DeleteCustomKeyStoreResponse, error) { |
51
|
|
|
return svc.client.DeleteCustomKeyStoreRequest(in).Send(ctx) |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
// RawDeleteImportedKeyMaterial executes `DeleteImportedKeyMaterial` raw operation. |
55
|
|
|
func (svc *KMS) RawDeleteImportedKeyMaterial(ctx context.Context, in *SDK.DeleteImportedKeyMaterialInput) (*SDK.DeleteImportedKeyMaterialResponse, error) { |
56
|
|
|
return svc.client.DeleteImportedKeyMaterialRequest(in).Send(ctx) |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
// RawDescribeCustomKeyStores executes `DescribeCustomKeyStores` raw operation. |
60
|
|
|
func (svc *KMS) RawDescribeCustomKeyStores(ctx context.Context, in *SDK.DescribeCustomKeyStoresInput) (*SDK.DescribeCustomKeyStoresResponse, error) { |
61
|
|
|
return svc.client.DescribeCustomKeyStoresRequest(in).Send(ctx) |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
// RawDescribeKey executes `DescribeKey` raw operation. |
65
|
|
|
func (svc *KMS) RawDescribeKey(ctx context.Context, in *SDK.DescribeKeyInput) (*SDK.DescribeKeyResponse, error) { |
66
|
|
|
return svc.client.DescribeKeyRequest(in).Send(ctx) |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
// RawDisableKey executes `DisableKey` raw operation. |
70
|
|
|
func (svc *KMS) RawDisableKey(ctx context.Context, in *SDK.DisableKeyInput) (*SDK.DisableKeyResponse, error) { |
71
|
|
|
return svc.client.DisableKeyRequest(in).Send(ctx) |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
// RawDisableKeyRotation executes `DisableKeyRotation` raw operation. |
75
|
|
|
func (svc *KMS) RawDisableKeyRotation(ctx context.Context, in *SDK.DisableKeyRotationInput) (*SDK.DisableKeyRotationResponse, error) { |
76
|
|
|
return svc.client.DisableKeyRotationRequest(in).Send(ctx) |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
// RawDisconnectCustomKeyStore executes `DisconnectCustomKeyStore` raw operation. |
80
|
|
|
func (svc *KMS) RawDisconnectCustomKeyStore(ctx context.Context, in *SDK.DisconnectCustomKeyStoreInput) (*SDK.DisconnectCustomKeyStoreResponse, error) { |
81
|
|
|
return svc.client.DisconnectCustomKeyStoreRequest(in).Send(ctx) |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
// RawEnableKey executes `EnableKey` raw operation. |
85
|
|
|
func (svc *KMS) RawEnableKey(ctx context.Context, in *SDK.EnableKeyInput) (*SDK.EnableKeyResponse, error) { |
86
|
|
|
return svc.client.EnableKeyRequest(in).Send(ctx) |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
// RawEnableKeyRotation executes `EnableKeyRotation` raw operation. |
90
|
|
|
func (svc *KMS) RawEnableKeyRotation(ctx context.Context, in *SDK.EnableKeyRotationInput) (*SDK.EnableKeyRotationResponse, error) { |
91
|
|
|
return svc.client.EnableKeyRotationRequest(in).Send(ctx) |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
// RawEncrypt executes `Encrypt` raw operation. |
95
|
|
|
func (svc *KMS) RawEncrypt(ctx context.Context, in *SDK.EncryptInput) (*SDK.EncryptResponse, error) { |
96
|
|
|
return svc.client.EncryptRequest(in).Send(ctx) |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
// RawGenerateDataKey executes `GenerateDataKey` raw operation. |
100
|
|
|
func (svc *KMS) RawGenerateDataKey(ctx context.Context, in *SDK.GenerateDataKeyInput) (*SDK.GenerateDataKeyResponse, error) { |
101
|
|
|
return svc.client.GenerateDataKeyRequest(in).Send(ctx) |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
// RawGenerateDataKeyPair executes `GenerateDataKeyPair` raw operation. |
105
|
|
|
func (svc *KMS) RawGenerateDataKeyPair(ctx context.Context, in *SDK.GenerateDataKeyPairInput) (*SDK.GenerateDataKeyPairResponse, error) { |
106
|
|
|
return svc.client.GenerateDataKeyPairRequest(in).Send(ctx) |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
// RawGenerateDataKeyPairWithoutPlaintext executes `GenerateDataKeyPairWithoutPlaintext` raw operation. |
110
|
|
|
func (svc *KMS) RawGenerateDataKeyPairWithoutPlaintext(ctx context.Context, in *SDK.GenerateDataKeyPairWithoutPlaintextInput) (*SDK.GenerateDataKeyPairWithoutPlaintextResponse, error) { |
111
|
|
|
return svc.client.GenerateDataKeyPairWithoutPlaintextRequest(in).Send(ctx) |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
// RawGenerateDataKeyWithoutPlaintext executes `GenerateDataKeyWithoutPlaintext` raw operation. |
115
|
|
|
func (svc *KMS) RawGenerateDataKeyWithoutPlaintext(ctx context.Context, in *SDK.GenerateDataKeyWithoutPlaintextInput) (*SDK.GenerateDataKeyWithoutPlaintextResponse, error) { |
116
|
|
|
return svc.client.GenerateDataKeyWithoutPlaintextRequest(in).Send(ctx) |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
// RawGenerateRandom executes `GenerateRandom` raw operation. |
120
|
|
|
func (svc *KMS) RawGenerateRandom(ctx context.Context, in *SDK.GenerateRandomInput) (*SDK.GenerateRandomResponse, error) { |
121
|
|
|
return svc.client.GenerateRandomRequest(in).Send(ctx) |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
// RawGetKeyPolicy executes `GetKeyPolicy` raw operation. |
125
|
|
|
func (svc *KMS) RawGetKeyPolicy(ctx context.Context, in *SDK.GetKeyPolicyInput) (*SDK.GetKeyPolicyResponse, error) { |
126
|
|
|
return svc.client.GetKeyPolicyRequest(in).Send(ctx) |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
// RawGetKeyRotationStatus executes `GetKeyRotationStatus` raw operation. |
130
|
|
|
func (svc *KMS) RawGetKeyRotationStatus(ctx context.Context, in *SDK.GetKeyRotationStatusInput) (*SDK.GetKeyRotationStatusResponse, error) { |
131
|
|
|
return svc.client.GetKeyRotationStatusRequest(in).Send(ctx) |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
// RawGetParametersForImport executes `GetParametersForImport` raw operation. |
135
|
|
|
func (svc *KMS) RawGetParametersForImport(ctx context.Context, in *SDK.GetParametersForImportInput) (*SDK.GetParametersForImportResponse, error) { |
136
|
|
|
return svc.client.GetParametersForImportRequest(in).Send(ctx) |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
// RawGetPublicKey executes `GetPublicKey` raw operation. |
140
|
|
|
func (svc *KMS) RawGetPublicKey(ctx context.Context, in *SDK.GetPublicKeyInput) (*SDK.GetPublicKeyResponse, error) { |
141
|
|
|
return svc.client.GetPublicKeyRequest(in).Send(ctx) |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
// RawImportKeyMaterial executes `ImportKeyMaterial` raw operation. |
145
|
|
|
func (svc *KMS) RawImportKeyMaterial(ctx context.Context, in *SDK.ImportKeyMaterialInput) (*SDK.ImportKeyMaterialResponse, error) { |
146
|
|
|
return svc.client.ImportKeyMaterialRequest(in).Send(ctx) |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
// RawListAliases executes `ListAliases` raw operation. |
150
|
|
|
func (svc *KMS) RawListAliases(ctx context.Context, in *SDK.ListAliasesInput) (*SDK.ListAliasesResponse, error) { |
151
|
|
|
return svc.client.ListAliasesRequest(in).Send(ctx) |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
// RawListGrants executes `ListGrants` raw operation. |
155
|
|
|
func (svc *KMS) RawListGrants(ctx context.Context, in *SDK.ListGrantsInput) (*SDK.ListGrantsResponse, error) { |
156
|
|
|
return svc.client.ListGrantsRequest(in).Send(ctx) |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
// RawListKeyPolicies executes `ListKeyPolicies` raw operation. |
160
|
|
|
func (svc *KMS) RawListKeyPolicies(ctx context.Context, in *SDK.ListKeyPoliciesInput) (*SDK.ListKeyPoliciesResponse, error) { |
161
|
|
|
return svc.client.ListKeyPoliciesRequest(in).Send(ctx) |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
// RawListKeys executes `ListKeys` raw operation. |
165
|
|
|
func (svc *KMS) RawListKeys(ctx context.Context, in *SDK.ListKeysInput) (*SDK.ListKeysResponse, error) { |
166
|
|
|
return svc.client.ListKeysRequest(in).Send(ctx) |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
// RawListResourceTags executes `ListResourceTags` raw operation. |
170
|
|
|
func (svc *KMS) RawListResourceTags(ctx context.Context, in *SDK.ListResourceTagsInput) (*SDK.ListResourceTagsResponse, error) { |
171
|
|
|
return svc.client.ListResourceTagsRequest(in).Send(ctx) |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
// RawListRetirableGrants executes `ListRetirableGrants` raw operation. |
175
|
|
|
func (svc *KMS) RawListRetirableGrants(ctx context.Context, in *SDK.ListRetirableGrantsInput) (*SDK.ListRetirableGrantsResponse, error) { |
176
|
|
|
return svc.client.ListRetirableGrantsRequest(in).Send(ctx) |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
// RawPutKeyPolicy executes `PutKeyPolicy` raw operation. |
180
|
|
|
func (svc *KMS) RawPutKeyPolicy(ctx context.Context, in *SDK.PutKeyPolicyInput) (*SDK.PutKeyPolicyResponse, error) { |
181
|
|
|
return svc.client.PutKeyPolicyRequest(in).Send(ctx) |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
// RawReEncrypt executes `ReEncrypt` raw operation. |
185
|
|
|
func (svc *KMS) RawReEncrypt(ctx context.Context, in *SDK.ReEncryptInput) (*SDK.ReEncryptResponse, error) { |
186
|
|
|
return svc.client.ReEncryptRequest(in).Send(ctx) |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
// RawRetireGrant executes `RetireGrant` raw operation. |
190
|
|
|
func (svc *KMS) RawRetireGrant(ctx context.Context, in *SDK.RetireGrantInput) (*SDK.RetireGrantResponse, error) { |
191
|
|
|
return svc.client.RetireGrantRequest(in).Send(ctx) |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
// RawRevokeGrant executes `RevokeGrant` raw operation. |
195
|
|
|
func (svc *KMS) RawRevokeGrant(ctx context.Context, in *SDK.RevokeGrantInput) (*SDK.RevokeGrantResponse, error) { |
196
|
|
|
return svc.client.RevokeGrantRequest(in).Send(ctx) |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
// RawScheduleKeyDeletion executes `ScheduleKeyDeletion` raw operation. |
200
|
|
|
func (svc *KMS) RawScheduleKeyDeletion(ctx context.Context, in *SDK.ScheduleKeyDeletionInput) (*SDK.ScheduleKeyDeletionResponse, error) { |
201
|
|
|
return svc.client.ScheduleKeyDeletionRequest(in).Send(ctx) |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
// RawSign executes `Sign` raw operation. |
205
|
|
|
func (svc *KMS) RawSign(ctx context.Context, in *SDK.SignInput) (*SDK.SignResponse, error) { |
206
|
|
|
return svc.client.SignRequest(in).Send(ctx) |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
// RawTagResource executes `TagResource` raw operation. |
210
|
|
|
func (svc *KMS) RawTagResource(ctx context.Context, in *SDK.TagResourceInput) (*SDK.TagResourceResponse, error) { |
211
|
|
|
return svc.client.TagResourceRequest(in).Send(ctx) |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
// RawUntagResource executes `UntagResource` raw operation. |
215
|
|
|
func (svc *KMS) RawUntagResource(ctx context.Context, in *SDK.UntagResourceInput) (*SDK.UntagResourceResponse, error) { |
216
|
|
|
return svc.client.UntagResourceRequest(in).Send(ctx) |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
// RawUpdateAlias executes `UpdateAlias` raw operation. |
220
|
|
|
func (svc *KMS) RawUpdateAlias(ctx context.Context, in *SDK.UpdateAliasInput) (*SDK.UpdateAliasResponse, error) { |
221
|
|
|
return svc.client.UpdateAliasRequest(in).Send(ctx) |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
// RawUpdateCustomKeyStore executes `UpdateCustomKeyStore` raw operation. |
225
|
|
|
func (svc *KMS) RawUpdateCustomKeyStore(ctx context.Context, in *SDK.UpdateCustomKeyStoreInput) (*SDK.UpdateCustomKeyStoreResponse, error) { |
226
|
|
|
return svc.client.UpdateCustomKeyStoreRequest(in).Send(ctx) |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
// RawUpdateKeyDescription executes `UpdateKeyDescription` raw operation. |
230
|
|
|
func (svc *KMS) RawUpdateKeyDescription(ctx context.Context, in *SDK.UpdateKeyDescriptionInput) (*SDK.UpdateKeyDescriptionResponse, error) { |
231
|
|
|
return svc.client.UpdateKeyDescriptionRequest(in).Send(ctx) |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
// RawVerify executes `Verify` raw operation. |
235
|
|
|
func (svc *KMS) RawVerify(ctx context.Context, in *SDK.VerifyInput) (*SDK.VerifyResponse, error) { |
236
|
|
|
return svc.client.VerifyRequest(in).Send(ctx) |
237
|
|
|
} |
238
|
|
|
|