types-boto3-secretsmanager 1.35.71__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ """
2
+ Main interface for secretsmanager service.
3
+
4
+ Usage::
5
+
6
+ ```python
7
+ from boto3.session import Session
8
+ from types_boto3_secretsmanager import (
9
+ Client,
10
+ ListSecretsPaginator,
11
+ SecretsManagerClient,
12
+ )
13
+
14
+ session = Session()
15
+ client: SecretsManagerClient = session.client("secretsmanager")
16
+
17
+ list_secrets_paginator: ListSecretsPaginator = client.get_paginator("list_secrets")
18
+ ```
19
+
20
+ Copyright 2024 Vlad Emelianov
21
+ """
22
+
23
+ from .client import SecretsManagerClient
24
+ from .paginator import ListSecretsPaginator
25
+
26
+ Client = SecretsManagerClient
27
+
28
+
29
+ __all__ = ("Client", "ListSecretsPaginator", "SecretsManagerClient")
@@ -0,0 +1,28 @@
1
+ """
2
+ Main interface for secretsmanager service.
3
+
4
+ Usage::
5
+
6
+ ```python
7
+ from boto3.session import Session
8
+ from types_boto3_secretsmanager import (
9
+ Client,
10
+ ListSecretsPaginator,
11
+ SecretsManagerClient,
12
+ )
13
+
14
+ session = Session()
15
+ client: SecretsManagerClient = session.client("secretsmanager")
16
+
17
+ list_secrets_paginator: ListSecretsPaginator = client.get_paginator("list_secrets")
18
+ ```
19
+
20
+ Copyright 2024 Vlad Emelianov
21
+ """
22
+
23
+ from .client import SecretsManagerClient
24
+ from .paginator import ListSecretsPaginator
25
+
26
+ Client = SecretsManagerClient
27
+
28
+ __all__ = ("Client", "ListSecretsPaginator", "SecretsManagerClient")
@@ -0,0 +1,42 @@
1
+ """
2
+ Main CLI entrypoint.
3
+
4
+ Copyright 2024 Vlad Emelianov
5
+ """
6
+
7
+ import sys
8
+
9
+
10
+ def print_info() -> None:
11
+ """
12
+ Print package info to stdout.
13
+ """
14
+ print(
15
+ "Type annotations for boto3 SecretsManager 1.35.71\n"
16
+ "Version: 1.35.71\n"
17
+ "Builder version: 8.4.1\n"
18
+ "Docs: https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager//\n"
19
+ "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager.html#secretsmanager\n"
20
+ "Other services: https://pypi.org/project/boto3-stubs/\n"
21
+ "Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
22
+ )
23
+
24
+
25
+ def print_version() -> None:
26
+ """
27
+ Print package version to stdout.
28
+ """
29
+ print("1.35.71")
30
+
31
+
32
+ def main() -> None:
33
+ """
34
+ Main CLI entrypoint.
35
+ """
36
+ if "--version" in sys.argv:
37
+ return print_version()
38
+ print_info()
39
+
40
+
41
+ if __name__ == "__main__":
42
+ main()
@@ -0,0 +1,394 @@
1
+ """
2
+ Type annotations for secretsmanager service client.
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+ from types_boto3_secretsmanager.client import SecretsManagerClient
11
+
12
+ session = Session()
13
+ client: SecretsManagerClient = session.client("secretsmanager")
14
+ ```
15
+
16
+ Copyright 2024 Vlad Emelianov
17
+ """
18
+
19
+ import sys
20
+ from typing import Any, Dict, Mapping, Type
21
+
22
+ from botocore.client import BaseClient, ClientMeta
23
+
24
+ from .paginator import ListSecretsPaginator
25
+ from .type_defs import (
26
+ BatchGetSecretValueRequestRequestTypeDef,
27
+ BatchGetSecretValueResponseTypeDef,
28
+ CancelRotateSecretRequestRequestTypeDef,
29
+ CancelRotateSecretResponseTypeDef,
30
+ CreateSecretRequestRequestTypeDef,
31
+ CreateSecretResponseTypeDef,
32
+ DeleteResourcePolicyRequestRequestTypeDef,
33
+ DeleteResourcePolicyResponseTypeDef,
34
+ DeleteSecretRequestRequestTypeDef,
35
+ DeleteSecretResponseTypeDef,
36
+ DescribeSecretRequestRequestTypeDef,
37
+ DescribeSecretResponseTypeDef,
38
+ EmptyResponseMetadataTypeDef,
39
+ GetRandomPasswordRequestRequestTypeDef,
40
+ GetRandomPasswordResponseTypeDef,
41
+ GetResourcePolicyRequestRequestTypeDef,
42
+ GetResourcePolicyResponseTypeDef,
43
+ GetSecretValueRequestRequestTypeDef,
44
+ GetSecretValueResponseTypeDef,
45
+ ListSecretsRequestRequestTypeDef,
46
+ ListSecretsResponseTypeDef,
47
+ ListSecretVersionIdsRequestRequestTypeDef,
48
+ ListSecretVersionIdsResponseTypeDef,
49
+ PutResourcePolicyRequestRequestTypeDef,
50
+ PutResourcePolicyResponseTypeDef,
51
+ PutSecretValueRequestRequestTypeDef,
52
+ PutSecretValueResponseTypeDef,
53
+ RemoveRegionsFromReplicationRequestRequestTypeDef,
54
+ RemoveRegionsFromReplicationResponseTypeDef,
55
+ ReplicateSecretToRegionsRequestRequestTypeDef,
56
+ ReplicateSecretToRegionsResponseTypeDef,
57
+ RestoreSecretRequestRequestTypeDef,
58
+ RestoreSecretResponseTypeDef,
59
+ RotateSecretRequestRequestTypeDef,
60
+ RotateSecretResponseTypeDef,
61
+ StopReplicationToReplicaRequestRequestTypeDef,
62
+ StopReplicationToReplicaResponseTypeDef,
63
+ TagResourceRequestRequestTypeDef,
64
+ UntagResourceRequestRequestTypeDef,
65
+ UpdateSecretRequestRequestTypeDef,
66
+ UpdateSecretResponseTypeDef,
67
+ UpdateSecretVersionStageRequestRequestTypeDef,
68
+ UpdateSecretVersionStageResponseTypeDef,
69
+ ValidateResourcePolicyRequestRequestTypeDef,
70
+ ValidateResourcePolicyResponseTypeDef,
71
+ )
72
+
73
+ if sys.version_info >= (3, 12):
74
+ from typing import Literal, Unpack
75
+ else:
76
+ from typing_extensions import Literal, Unpack
77
+
78
+
79
+ __all__ = ("SecretsManagerClient",)
80
+
81
+
82
+ class BotocoreClientError(Exception):
83
+ MSG_TEMPLATE: str
84
+
85
+ def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
86
+ self.response: Dict[str, Any]
87
+ self.operation_name: str
88
+
89
+
90
+ class Exceptions:
91
+ ClientError: Type[BotocoreClientError]
92
+ DecryptionFailure: Type[BotocoreClientError]
93
+ EncryptionFailure: Type[BotocoreClientError]
94
+ InternalServiceError: Type[BotocoreClientError]
95
+ InvalidNextTokenException: Type[BotocoreClientError]
96
+ InvalidParameterException: Type[BotocoreClientError]
97
+ InvalidRequestException: Type[BotocoreClientError]
98
+ LimitExceededException: Type[BotocoreClientError]
99
+ MalformedPolicyDocumentException: Type[BotocoreClientError]
100
+ PreconditionNotMetException: Type[BotocoreClientError]
101
+ PublicPolicyException: Type[BotocoreClientError]
102
+ ResourceExistsException: Type[BotocoreClientError]
103
+ ResourceNotFoundException: Type[BotocoreClientError]
104
+
105
+
106
+ class SecretsManagerClient(BaseClient):
107
+ """
108
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager.html#SecretsManager.Client)
109
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/)
110
+ """
111
+
112
+ meta: ClientMeta
113
+
114
+ @property
115
+ def exceptions(self) -> Exceptions:
116
+ """
117
+ SecretsManagerClient exceptions.
118
+
119
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager.html#SecretsManager.Client)
120
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#exceptions)
121
+ """
122
+
123
+ def can_paginate(self, operation_name: str) -> bool:
124
+ """
125
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/can_paginate.html)
126
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#can_paginate)
127
+ """
128
+
129
+ def generate_presigned_url(
130
+ self,
131
+ ClientMethod: str,
132
+ Params: Mapping[str, Any] = ...,
133
+ ExpiresIn: int = 3600,
134
+ HttpMethod: str = ...,
135
+ ) -> str:
136
+ """
137
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/generate_presigned_url.html)
138
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#generate_presigned_url)
139
+ """
140
+
141
+ def close(self) -> None:
142
+ """
143
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/close.html)
144
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#close)
145
+ """
146
+
147
+ def batch_get_secret_value(
148
+ self, **kwargs: Unpack[BatchGetSecretValueRequestRequestTypeDef]
149
+ ) -> BatchGetSecretValueResponseTypeDef:
150
+ """
151
+ Retrieves the contents of the encrypted fields <code>SecretString</code> or
152
+ <code>SecretBinary</code> for up to 20 secrets.
153
+
154
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/batch_get_secret_value.html)
155
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#batch_get_secret_value)
156
+ """
157
+
158
+ def cancel_rotate_secret(
159
+ self, **kwargs: Unpack[CancelRotateSecretRequestRequestTypeDef]
160
+ ) -> CancelRotateSecretResponseTypeDef:
161
+ """
162
+ Turns off automatic rotation, and if a rotation is currently in progress,
163
+ cancels the rotation.
164
+
165
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/cancel_rotate_secret.html)
166
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#cancel_rotate_secret)
167
+ """
168
+
169
+ def create_secret(
170
+ self, **kwargs: Unpack[CreateSecretRequestRequestTypeDef]
171
+ ) -> CreateSecretResponseTypeDef:
172
+ """
173
+ Creates a new secret.
174
+
175
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/create_secret.html)
176
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#create_secret)
177
+ """
178
+
179
+ def delete_resource_policy(
180
+ self, **kwargs: Unpack[DeleteResourcePolicyRequestRequestTypeDef]
181
+ ) -> DeleteResourcePolicyResponseTypeDef:
182
+ """
183
+ Deletes the resource-based permission policy attached to the secret.
184
+
185
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/delete_resource_policy.html)
186
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#delete_resource_policy)
187
+ """
188
+
189
+ def delete_secret(
190
+ self, **kwargs: Unpack[DeleteSecretRequestRequestTypeDef]
191
+ ) -> DeleteSecretResponseTypeDef:
192
+ """
193
+ Deletes a secret and all of its versions.
194
+
195
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/delete_secret.html)
196
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#delete_secret)
197
+ """
198
+
199
+ def describe_secret(
200
+ self, **kwargs: Unpack[DescribeSecretRequestRequestTypeDef]
201
+ ) -> DescribeSecretResponseTypeDef:
202
+ """
203
+ Retrieves the details of a secret.
204
+
205
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/describe_secret.html)
206
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#describe_secret)
207
+ """
208
+
209
+ def get_random_password(
210
+ self, **kwargs: Unpack[GetRandomPasswordRequestRequestTypeDef]
211
+ ) -> GetRandomPasswordResponseTypeDef:
212
+ """
213
+ Generates a random password.
214
+
215
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/get_random_password.html)
216
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#get_random_password)
217
+ """
218
+
219
+ def get_resource_policy(
220
+ self, **kwargs: Unpack[GetResourcePolicyRequestRequestTypeDef]
221
+ ) -> GetResourcePolicyResponseTypeDef:
222
+ """
223
+ Retrieves the JSON text of the resource-based policy document attached to the
224
+ secret.
225
+
226
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/get_resource_policy.html)
227
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#get_resource_policy)
228
+ """
229
+
230
+ def get_secret_value(
231
+ self, **kwargs: Unpack[GetSecretValueRequestRequestTypeDef]
232
+ ) -> GetSecretValueResponseTypeDef:
233
+ """
234
+ Retrieves the contents of the encrypted fields <code>SecretString</code> or
235
+ <code>SecretBinary</code> from the specified version of a secret, whichever
236
+ contains content.
237
+
238
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/get_secret_value.html)
239
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#get_secret_value)
240
+ """
241
+
242
+ def list_secret_version_ids(
243
+ self, **kwargs: Unpack[ListSecretVersionIdsRequestRequestTypeDef]
244
+ ) -> ListSecretVersionIdsResponseTypeDef:
245
+ """
246
+ Lists the versions of a secret.
247
+
248
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/list_secret_version_ids.html)
249
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#list_secret_version_ids)
250
+ """
251
+
252
+ def list_secrets(
253
+ self, **kwargs: Unpack[ListSecretsRequestRequestTypeDef]
254
+ ) -> ListSecretsResponseTypeDef:
255
+ """
256
+ Lists the secrets that are stored by Secrets Manager in the Amazon Web Services
257
+ account, not including secrets that are marked for deletion.
258
+
259
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/list_secrets.html)
260
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#list_secrets)
261
+ """
262
+
263
+ def put_resource_policy(
264
+ self, **kwargs: Unpack[PutResourcePolicyRequestRequestTypeDef]
265
+ ) -> PutResourcePolicyResponseTypeDef:
266
+ """
267
+ Attaches a resource-based permission policy to a secret.
268
+
269
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/put_resource_policy.html)
270
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#put_resource_policy)
271
+ """
272
+
273
+ def put_secret_value(
274
+ self, **kwargs: Unpack[PutSecretValueRequestRequestTypeDef]
275
+ ) -> PutSecretValueResponseTypeDef:
276
+ """
277
+ Creates a new version with a new encrypted secret value and attaches it to the
278
+ secret.
279
+
280
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/put_secret_value.html)
281
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#put_secret_value)
282
+ """
283
+
284
+ def remove_regions_from_replication(
285
+ self, **kwargs: Unpack[RemoveRegionsFromReplicationRequestRequestTypeDef]
286
+ ) -> RemoveRegionsFromReplicationResponseTypeDef:
287
+ """
288
+ For a secret that is replicated to other Regions, deletes the secret replicas
289
+ from the Regions you specify.
290
+
291
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/remove_regions_from_replication.html)
292
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#remove_regions_from_replication)
293
+ """
294
+
295
+ def replicate_secret_to_regions(
296
+ self, **kwargs: Unpack[ReplicateSecretToRegionsRequestRequestTypeDef]
297
+ ) -> ReplicateSecretToRegionsResponseTypeDef:
298
+ """
299
+ Replicates the secret to a new Regions.
300
+
301
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/replicate_secret_to_regions.html)
302
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#replicate_secret_to_regions)
303
+ """
304
+
305
+ def restore_secret(
306
+ self, **kwargs: Unpack[RestoreSecretRequestRequestTypeDef]
307
+ ) -> RestoreSecretResponseTypeDef:
308
+ """
309
+ Cancels the scheduled deletion of a secret by removing the
310
+ <code>DeletedDate</code> time stamp.
311
+
312
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/restore_secret.html)
313
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#restore_secret)
314
+ """
315
+
316
+ def rotate_secret(
317
+ self, **kwargs: Unpack[RotateSecretRequestRequestTypeDef]
318
+ ) -> RotateSecretResponseTypeDef:
319
+ """
320
+ Configures and starts the asynchronous process of rotating the secret.
321
+
322
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/rotate_secret.html)
323
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#rotate_secret)
324
+ """
325
+
326
+ def stop_replication_to_replica(
327
+ self, **kwargs: Unpack[StopReplicationToReplicaRequestRequestTypeDef]
328
+ ) -> StopReplicationToReplicaResponseTypeDef:
329
+ """
330
+ Removes the link between the replica secret and the primary secret and promotes
331
+ the replica to a primary secret in the replica Region.
332
+
333
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/stop_replication_to_replica.html)
334
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#stop_replication_to_replica)
335
+ """
336
+
337
+ def tag_resource(
338
+ self, **kwargs: Unpack[TagResourceRequestRequestTypeDef]
339
+ ) -> EmptyResponseMetadataTypeDef:
340
+ """
341
+ Attaches tags to a secret.
342
+
343
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/tag_resource.html)
344
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#tag_resource)
345
+ """
346
+
347
+ def untag_resource(
348
+ self, **kwargs: Unpack[UntagResourceRequestRequestTypeDef]
349
+ ) -> EmptyResponseMetadataTypeDef:
350
+ """
351
+ Removes specific tags from a secret.
352
+
353
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/untag_resource.html)
354
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#untag_resource)
355
+ """
356
+
357
+ def update_secret(
358
+ self, **kwargs: Unpack[UpdateSecretRequestRequestTypeDef]
359
+ ) -> UpdateSecretResponseTypeDef:
360
+ """
361
+ Modifies the details of a secret, including metadata and the secret value.
362
+
363
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/update_secret.html)
364
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#update_secret)
365
+ """
366
+
367
+ def update_secret_version_stage(
368
+ self, **kwargs: Unpack[UpdateSecretVersionStageRequestRequestTypeDef]
369
+ ) -> UpdateSecretVersionStageResponseTypeDef:
370
+ """
371
+ Modifies the staging labels attached to a version of a secret.
372
+
373
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/update_secret_version_stage.html)
374
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#update_secret_version_stage)
375
+ """
376
+
377
+ def validate_resource_policy(
378
+ self, **kwargs: Unpack[ValidateResourcePolicyRequestRequestTypeDef]
379
+ ) -> ValidateResourcePolicyResponseTypeDef:
380
+ """
381
+ Validates that a resource policy does not grant a wide range of principals
382
+ access to your secret.
383
+
384
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/validate_resource_policy.html)
385
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#validate_resource_policy)
386
+ """
387
+
388
+ def get_paginator(self, operation_name: Literal["list_secrets"]) -> ListSecretsPaginator:
389
+ """
390
+ Create a paginator for an operation.
391
+
392
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager/client/get_paginator.html)
393
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_secretsmanager/client/#get_paginator)
394
+ """