aws-sdk-secretsmanager 1.59.0 → 1.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-secretsmanager/client.rb +226 -90
- data/lib/aws-sdk-secretsmanager/types.rb +77 -18
- data/lib/aws-sdk-secretsmanager.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b1db95d58a296965e3e67e29dda7bddae3029b9828a0bf4016a951825d5fa61
|
4
|
+
data.tar.gz: 4ce3047b908c3134c8ae717ad79790d1877e17a9ebf1ce42414692c2e1869d5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 345690087bb756e8218ead0897f15495268eb02da24ea0e79fd5b7f6ebeab68e3c4af91509c240f12dcd53d4527270fe3bccbef8cc7b7db998cf10ce023a2e58
|
7
|
+
data.tar.gz: f8a195852f3adc1ad281a8143d46cbef53e0da62c21fc8804223964afb7df176d93fd806e23ad380047415ad05c6ea5f845d93c2066db74b3ede0a03566ce913
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.62.0 (2022-05-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Documentation updates for Secrets Manager
|
8
|
+
|
9
|
+
1.61.0 (2022-05-11)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Doc only update for Secrets Manager that fixes several customer-reported issues.
|
13
|
+
|
14
|
+
1.60.0 (2022-04-21)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Documentation updates for Secrets Manager
|
18
|
+
|
4
19
|
1.59.0 (2022-03-11)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.62.0
|
@@ -364,32 +364,37 @@ module Aws::SecretsManager
|
|
364
364
|
# Turns off automatic rotation, and if a rotation is currently in
|
365
365
|
# progress, cancels the rotation.
|
366
366
|
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
367
|
+
# If you cancel a rotation in progress, it can leave the `VersionStage`
|
368
|
+
# labels in an unexpected state. You might need to remove the staging
|
369
|
+
# label `AWSPENDING` from the partially created version. You also need
|
370
|
+
# to determine whether to roll back to the previous version of the
|
371
|
+
# secret by moving the staging label `AWSCURRENT` to the version that
|
372
|
+
# has `AWSPENDING`. To determine which version has a specific staging
|
373
|
+
# label, call ListSecretVersionIds. Then use UpdateSecretVersionStage to
|
374
|
+
# change staging labels. For more information, see [How rotation
|
375
|
+
# works][1].
|
376
376
|
#
|
377
|
-
#
|
377
|
+
# To turn on automatic rotation again, call RotateSecret.
|
378
378
|
#
|
379
379
|
# <b>Required permissions: </b> `secretsmanager:CancelRotateSecret`. For
|
380
|
-
# more information, see [ IAM policy actions for Secrets Manager][
|
381
|
-
# [Authentication and access control in Secrets Manager][
|
380
|
+
# more information, see [ IAM policy actions for Secrets Manager][2] and
|
381
|
+
# [Authentication and access control in Secrets Manager][3].
|
382
382
|
#
|
383
383
|
#
|
384
384
|
#
|
385
|
-
# [1]: https://docs.aws.amazon.com/
|
386
|
-
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/
|
385
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html
|
386
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
387
|
+
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
387
388
|
#
|
388
389
|
# @option params [required, String] :secret_id
|
389
390
|
# The ARN or name of the secret.
|
390
391
|
#
|
391
392
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
392
|
-
# partial ARN.
|
393
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
394
|
+
#
|
395
|
+
#
|
396
|
+
#
|
397
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
393
398
|
#
|
394
399
|
# @return [Types::CancelRotateSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
395
400
|
#
|
@@ -435,8 +440,9 @@ module Aws::SecretsManager
|
|
435
440
|
req.send_request(options)
|
436
441
|
end
|
437
442
|
|
438
|
-
# Creates a new secret. A *secret*
|
439
|
-
# user name and password,
|
443
|
+
# Creates a new secret. A *secret* can be a password, a set of
|
444
|
+
# credentials such as a user name and password, an OAuth token, or other
|
445
|
+
# secret information that you store in an encrypted form in Secrets
|
440
446
|
# Manager. The secret also includes the connection information to access
|
441
447
|
# a database or other service, which Secrets Manager doesn't encrypt. A
|
442
448
|
# secret in Secrets Manager consists of both the protected secret data
|
@@ -451,6 +457,11 @@ module Aws::SecretsManager
|
|
451
457
|
# `SecretBinary` then Secrets Manager creates an initial secret version
|
452
458
|
# and automatically attaches the staging label `AWSCURRENT` to it.
|
453
459
|
#
|
460
|
+
# For database credentials you want to rotate, for Secrets Manager to be
|
461
|
+
# able to rotate the secret, you must make sure the JSON you store in
|
462
|
+
# the `SecretString` matches the [JSON structure of a database
|
463
|
+
# secret][2].
|
464
|
+
#
|
454
465
|
# If you don't specify an KMS encryption key, Secrets Manager uses the
|
455
466
|
# Amazon Web Services managed key `aws/secretsmanager`. If this key
|
456
467
|
# doesn't already exist in your account, then Secrets Manager creates
|
@@ -464,15 +475,22 @@ module Aws::SecretsManager
|
|
464
475
|
# to encrypt the secret, and you must create and use a customer managed
|
465
476
|
# KMS key.
|
466
477
|
#
|
467
|
-
# <b>Required permissions: </b> `secretsmanager:CreateSecret`.
|
468
|
-
#
|
469
|
-
#
|
478
|
+
# <b>Required permissions: </b> `secretsmanager:CreateSecret`. If you
|
479
|
+
# include tags in the secret, you also need
|
480
|
+
# `secretsmanager:TagResource`. For more information, see [ IAM policy
|
481
|
+
# actions for Secrets Manager][3] and [Authentication and access control
|
482
|
+
# in Secrets Manager][4].
|
483
|
+
#
|
484
|
+
# To encrypt the secret with a KMS key other than `aws/secretsmanager`,
|
485
|
+
# you need `kms:GenerateDataKey` and `kms:Decrypt` permission to the
|
486
|
+
# key.
|
470
487
|
#
|
471
488
|
#
|
472
489
|
#
|
473
490
|
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html
|
474
|
-
# [2]: https://docs.aws.amazon.com/
|
475
|
-
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/
|
491
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_secret_json_structure.html
|
492
|
+
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
493
|
+
# [4]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
476
494
|
#
|
477
495
|
# @option params [required, String] :name
|
478
496
|
# The name of the new secret.
|
@@ -712,7 +730,7 @@ module Aws::SecretsManager
|
|
712
730
|
#
|
713
731
|
#
|
714
732
|
#
|
715
|
-
# [1]: https://docs.aws.amazon.com/
|
733
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
716
734
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
717
735
|
#
|
718
736
|
# @option params [required, String] :secret_id
|
@@ -720,7 +738,11 @@ module Aws::SecretsManager
|
|
720
738
|
# policy for.
|
721
739
|
#
|
722
740
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
723
|
-
# partial ARN.
|
741
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
742
|
+
#
|
743
|
+
#
|
744
|
+
#
|
745
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
724
746
|
#
|
725
747
|
# @return [Types::DeleteResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
726
748
|
#
|
@@ -769,8 +791,20 @@ module Aws::SecretsManager
|
|
769
791
|
# the end of the recovery window. At the end of the recovery window,
|
770
792
|
# Secrets Manager deletes the secret permanently.
|
771
793
|
#
|
772
|
-
#
|
773
|
-
#
|
794
|
+
# You can't delete a primary secret that is replicated to other
|
795
|
+
# Regions. You must first delete the replicas using
|
796
|
+
# RemoveRegionsFromReplication, and then delete the primary secret. When
|
797
|
+
# you delete a replica, it is deleted immediately.
|
798
|
+
#
|
799
|
+
# You can't directly delete a version of a secret. Instead, you remove
|
800
|
+
# all staging labels from the version using UpdateSecretVersionStage.
|
801
|
+
# This marks the version as deprecated, and then Secrets Manager can
|
802
|
+
# automatically delete the version in the background.
|
803
|
+
#
|
804
|
+
# To determine whether an application still uses a secret, you can
|
805
|
+
# create an Amazon CloudWatch alarm to alert you to any attempts to
|
806
|
+
# access a secret during the recovery window. For more information, see
|
807
|
+
# [ Monitor secrets scheduled for deletion][1].
|
774
808
|
#
|
775
809
|
# Secrets Manager performs the permanent secret deletion at the end of
|
776
810
|
# the waiting period as a background task with low priority. There is no
|
@@ -780,9 +814,9 @@ module Aws::SecretsManager
|
|
780
814
|
# At any time before recovery window ends, you can use RestoreSecret to
|
781
815
|
# remove the `DeletionDate` and cancel the deletion of the secret.
|
782
816
|
#
|
783
|
-
#
|
784
|
-
# secret value.
|
785
|
-
#
|
817
|
+
# When a secret is scheduled for deletion, you cannot retrieve the
|
818
|
+
# secret value. You must first cancel the deletion with RestoreSecret
|
819
|
+
# and then you can retrieve the secret.
|
786
820
|
#
|
787
821
|
# <b>Required permissions: </b> `secretsmanager:DeleteSecret`. For more
|
788
822
|
# information, see [ IAM policy actions for Secrets Manager][2] and
|
@@ -790,15 +824,19 @@ module Aws::SecretsManager
|
|
790
824
|
#
|
791
825
|
#
|
792
826
|
#
|
793
|
-
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/
|
794
|
-
# [2]: https://docs.aws.amazon.com/
|
827
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring_cloudwatch_deleted-secrets.html
|
828
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
795
829
|
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
796
830
|
#
|
797
831
|
# @option params [required, String] :secret_id
|
798
832
|
# The ARN or name of the secret to delete.
|
799
833
|
#
|
800
834
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
801
|
-
# partial ARN.
|
835
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
836
|
+
#
|
837
|
+
#
|
838
|
+
#
|
839
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
802
840
|
#
|
803
841
|
# @option params [Integer] :recovery_window_in_days
|
804
842
|
# The number of days from 7 to 30 that Secrets Manager waits before
|
@@ -883,14 +921,18 @@ module Aws::SecretsManager
|
|
883
921
|
#
|
884
922
|
#
|
885
923
|
#
|
886
|
-
# [1]: https://docs.aws.amazon.com/
|
924
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
887
925
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
888
926
|
#
|
889
927
|
# @option params [required, String] :secret_id
|
890
928
|
# The ARN or name of the secret.
|
891
929
|
#
|
892
930
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
893
|
-
# partial ARN.
|
931
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
932
|
+
#
|
933
|
+
#
|
934
|
+
#
|
935
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
894
936
|
#
|
895
937
|
# @return [Types::DescribeSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
896
938
|
#
|
@@ -1013,7 +1055,7 @@ module Aws::SecretsManager
|
|
1013
1055
|
#
|
1014
1056
|
#
|
1015
1057
|
#
|
1016
|
-
# [1]: https://docs.aws.amazon.com/
|
1058
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1017
1059
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1018
1060
|
#
|
1019
1061
|
# @option params [Integer] :password_length
|
@@ -1111,7 +1153,7 @@ module Aws::SecretsManager
|
|
1111
1153
|
#
|
1112
1154
|
#
|
1113
1155
|
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-policies.html
|
1114
|
-
# [2]: https://docs.aws.amazon.com/
|
1156
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1115
1157
|
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1116
1158
|
#
|
1117
1159
|
# @option params [required, String] :secret_id
|
@@ -1119,7 +1161,11 @@ module Aws::SecretsManager
|
|
1119
1161
|
# policy for.
|
1120
1162
|
#
|
1121
1163
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
1122
|
-
# partial ARN.
|
1164
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
1165
|
+
#
|
1166
|
+
#
|
1167
|
+
#
|
1168
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1123
1169
|
#
|
1124
1170
|
# @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1125
1171
|
#
|
@@ -1182,14 +1228,18 @@ module Aws::SecretsManager
|
|
1182
1228
|
#
|
1183
1229
|
#
|
1184
1230
|
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets.html
|
1185
|
-
# [2]: https://docs.aws.amazon.com/
|
1231
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1186
1232
|
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1187
1233
|
#
|
1188
1234
|
# @option params [required, String] :secret_id
|
1189
1235
|
# The ARN or name of the secret to retrieve.
|
1190
1236
|
#
|
1191
1237
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
1192
|
-
# partial ARN.
|
1238
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
1239
|
+
#
|
1240
|
+
#
|
1241
|
+
#
|
1242
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1193
1243
|
#
|
1194
1244
|
# @option params [String] :version_id
|
1195
1245
|
# The unique identifier of the version of the secret to retrieve. If you
|
@@ -1273,27 +1323,31 @@ module Aws::SecretsManager
|
|
1273
1323
|
req.send_request(options)
|
1274
1324
|
end
|
1275
1325
|
|
1276
|
-
# Lists the versions
|
1326
|
+
# Lists the versions of a secret. Secrets Manager uses staging labels to
|
1327
|
+
# indicate the different versions of a secret. For more information, see
|
1328
|
+
# [ Secrets Manager concepts: Versions][1].
|
1277
1329
|
#
|
1278
1330
|
# To list the secrets in the account, use ListSecrets.
|
1279
1331
|
#
|
1280
|
-
# To get the secret value from `SecretString` or `SecretBinary`, call
|
1281
|
-
# GetSecretValue.
|
1282
|
-
#
|
1283
1332
|
# <b>Required permissions: </b> `secretsmanager:ListSecretVersionIds`.
|
1284
|
-
# For more information, see [ IAM policy actions for Secrets Manager][
|
1285
|
-
# and [Authentication and access control in Secrets Manager][
|
1333
|
+
# For more information, see [ IAM policy actions for Secrets Manager][2]
|
1334
|
+
# and [Authentication and access control in Secrets Manager][3].
|
1286
1335
|
#
|
1287
1336
|
#
|
1288
1337
|
#
|
1289
|
-
# [1]: https://docs.aws.amazon.com/
|
1290
|
-
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/
|
1338
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version
|
1339
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1340
|
+
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1291
1341
|
#
|
1292
1342
|
# @option params [required, String] :secret_id
|
1293
1343
|
# The ARN or name of the secret whose versions you want to list.
|
1294
1344
|
#
|
1295
1345
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
1296
|
-
# partial ARN.
|
1346
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
1347
|
+
#
|
1348
|
+
#
|
1349
|
+
#
|
1350
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1297
1351
|
#
|
1298
1352
|
# @option params [Integer] :max_results
|
1299
1353
|
# The number of results to include in the response.
|
@@ -1399,8 +1453,8 @@ module Aws::SecretsManager
|
|
1399
1453
|
# To get the secret value from `SecretString` or `SecretBinary`, call
|
1400
1454
|
# GetSecretValue.
|
1401
1455
|
#
|
1402
|
-
# For information about finding secrets in the console, see [
|
1403
|
-
#
|
1456
|
+
# For information about finding secrets in the console, see [Find
|
1457
|
+
# secrets in Secrets Manager][1].
|
1404
1458
|
#
|
1405
1459
|
# <b>Required permissions: </b> `secretsmanager:ListSecrets`. For more
|
1406
1460
|
# information, see [ IAM policy actions for Secrets Manager][2] and
|
@@ -1409,7 +1463,7 @@ module Aws::SecretsManager
|
|
1409
1463
|
#
|
1410
1464
|
#
|
1411
1465
|
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html
|
1412
|
-
# [2]: https://docs.aws.amazon.com/
|
1466
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1413
1467
|
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1414
1468
|
#
|
1415
1469
|
# @option params [Integer] :max_results
|
@@ -1538,13 +1592,17 @@ module Aws::SecretsManager
|
|
1538
1592
|
#
|
1539
1593
|
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1540
1594
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html
|
1541
|
-
# [3]: https://docs.aws.amazon.com/
|
1595
|
+
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1542
1596
|
#
|
1543
1597
|
# @option params [required, String] :secret_id
|
1544
1598
|
# The ARN or name of the secret to attach the resource-based policy.
|
1545
1599
|
#
|
1546
1600
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
1547
|
-
# partial ARN.
|
1601
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
1602
|
+
#
|
1603
|
+
#
|
1604
|
+
#
|
1605
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1548
1606
|
#
|
1549
1607
|
# @option params [required, String] :resource_policy
|
1550
1608
|
# A JSON-formatted string for an Amazon Web Services resource-based
|
@@ -1556,8 +1614,7 @@ module Aws::SecretsManager
|
|
1556
1614
|
#
|
1557
1615
|
# @option params [Boolean] :block_public_policy
|
1558
1616
|
# Specifies whether to block resource-based policies that allow broad
|
1559
|
-
# access to the secret
|
1560
|
-
# allow broad access, for example those that use a wildcard for the
|
1617
|
+
# access to the secret, for example those that use a wildcard for the
|
1561
1618
|
# principal.
|
1562
1619
|
#
|
1563
1620
|
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -1641,17 +1698,21 @@ module Aws::SecretsManager
|
|
1641
1698
|
#
|
1642
1699
|
#
|
1643
1700
|
#
|
1644
|
-
# [1]: https://docs.aws.amazon.com/
|
1701
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1645
1702
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1646
1703
|
#
|
1647
1704
|
# @option params [required, String] :secret_id
|
1648
1705
|
# The ARN or name of the secret to add a new version to.
|
1649
1706
|
#
|
1650
1707
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
1651
|
-
# partial ARN.
|
1708
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
1652
1709
|
#
|
1653
1710
|
# If the secret doesn't already exist, use `CreateSecret` instead.
|
1654
1711
|
#
|
1712
|
+
#
|
1713
|
+
#
|
1714
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1715
|
+
#
|
1655
1716
|
# @option params [String] :client_request_token
|
1656
1717
|
# A unique identifier for the new version of the secret.
|
1657
1718
|
#
|
@@ -1792,7 +1853,7 @@ module Aws::SecretsManager
|
|
1792
1853
|
#
|
1793
1854
|
#
|
1794
1855
|
#
|
1795
|
-
# [1]: https://docs.aws.amazon.com/
|
1856
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1796
1857
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1797
1858
|
#
|
1798
1859
|
# @option params [required, String] :secret_id
|
@@ -1842,7 +1903,7 @@ module Aws::SecretsManager
|
|
1842
1903
|
#
|
1843
1904
|
#
|
1844
1905
|
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/create-manage-multi-region-secrets.html
|
1845
|
-
# [2]: https://docs.aws.amazon.com/
|
1906
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1846
1907
|
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1847
1908
|
#
|
1848
1909
|
# @option params [required, String] :secret_id
|
@@ -1902,14 +1963,18 @@ module Aws::SecretsManager
|
|
1902
1963
|
#
|
1903
1964
|
#
|
1904
1965
|
#
|
1905
|
-
# [1]: https://docs.aws.amazon.com/
|
1966
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
1906
1967
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
1907
1968
|
#
|
1908
1969
|
# @option params [required, String] :secret_id
|
1909
1970
|
# The ARN or name of the secret to restore.
|
1910
1971
|
#
|
1911
1972
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
1912
|
-
# partial ARN.
|
1973
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
1974
|
+
#
|
1975
|
+
#
|
1976
|
+
#
|
1977
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1913
1978
|
#
|
1914
1979
|
# @return [Types::RestoreSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1915
1980
|
#
|
@@ -1952,49 +2017,65 @@ module Aws::SecretsManager
|
|
1952
2017
|
end
|
1953
2018
|
|
1954
2019
|
# Configures and starts the asynchronous process of rotating the secret.
|
2020
|
+
# For more information about rotation, see [Rotate secrets][1].
|
1955
2021
|
#
|
1956
2022
|
# If you include the configuration parameters, the operation sets the
|
1957
2023
|
# values for the secret and then immediately starts a rotation. If you
|
1958
2024
|
# don't include the configuration parameters, the operation starts a
|
1959
|
-
# rotation with the values already stored in the secret.
|
1960
|
-
#
|
2025
|
+
# rotation with the values already stored in the secret.
|
2026
|
+
#
|
2027
|
+
# For database credentials you want to rotate, for Secrets Manager to be
|
2028
|
+
# able to rotate the secret, you must make sure the secret value is in
|
2029
|
+
# the [ JSON structure of a database secret][2]. In particular, if you
|
2030
|
+
# want to use the [ alternating users strategy][3], your secret must
|
2031
|
+
# contain the ARN of a superuser secret.
|
1961
2032
|
#
|
1962
|
-
# To configure rotation, you
|
2033
|
+
# To configure rotation, you also need the ARN of an Amazon Web Services
|
1963
2034
|
# Lambda function and the schedule for the rotation. The Lambda rotation
|
1964
2035
|
# function creates a new version of the secret and creates or updates
|
1965
2036
|
# the credentials on the database or service to match. After testing the
|
1966
2037
|
# new credentials, the function marks the new secret version with the
|
1967
2038
|
# staging label `AWSCURRENT`. Then anyone who retrieves the secret gets
|
1968
|
-
# the new version. For more information, see [How rotation works][
|
2039
|
+
# the new version. For more information, see [How rotation works][4].
|
2040
|
+
#
|
2041
|
+
# You can create the Lambda rotation function based on the [rotation
|
2042
|
+
# function templates][5] that Secrets Manager provides. Choose a
|
2043
|
+
# template that matches your [Rotation strategy][6].
|
1969
2044
|
#
|
1970
2045
|
# When rotation is successful, the `AWSPENDING` staging label might be
|
1971
2046
|
# attached to the same version as the `AWSCURRENT` version, or it might
|
1972
|
-
# not be attached to any version.
|
1973
|
-
#
|
1974
|
-
#
|
1975
|
-
#
|
1976
|
-
# `RotateSecret` assumes that a previous rotation request is still in
|
1977
|
-
# progress and returns an error.
|
2047
|
+
# not be attached to any version. If the `AWSPENDING` staging label is
|
2048
|
+
# present but not attached to the same version as `AWSCURRENT`, then any
|
2049
|
+
# later invocation of `RotateSecret` assumes that a previous rotation
|
2050
|
+
# request is still in progress and returns an error.
|
1978
2051
|
#
|
1979
2052
|
# <b>Required permissions: </b> `secretsmanager:RotateSecret`. For more
|
1980
|
-
# information, see [ IAM policy actions for Secrets Manager][
|
1981
|
-
# [Authentication and access control in Secrets Manager][
|
2053
|
+
# information, see [ IAM policy actions for Secrets Manager][7] and
|
2054
|
+
# [Authentication and access control in Secrets Manager][8]. You also
|
1982
2055
|
# need `lambda:InvokeFunction` permissions on the rotation function. For
|
1983
|
-
# more information, see [ Permissions for rotation][
|
2056
|
+
# more information, see [ Permissions for rotation][9].
|
1984
2057
|
#
|
1985
2058
|
#
|
1986
2059
|
#
|
1987
2060
|
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html
|
1988
|
-
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/
|
1989
|
-
# [3]: https://docs.aws.amazon.com/
|
1990
|
-
# [4]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/
|
1991
|
-
# [5]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/
|
2061
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_secret_json_structure.html
|
2062
|
+
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets_strategies.html#rotating-secrets-two-users
|
2063
|
+
# [4]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html
|
2064
|
+
# [5]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html
|
2065
|
+
# [6]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets_strategies.html
|
2066
|
+
# [7]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
2067
|
+
# [8]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
2068
|
+
# [9]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-required-permissions-function.html
|
1992
2069
|
#
|
1993
2070
|
# @option params [required, String] :secret_id
|
1994
2071
|
# The ARN or name of the secret to rotate.
|
1995
2072
|
#
|
1996
2073
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
1997
|
-
# partial ARN.
|
2074
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
2075
|
+
#
|
2076
|
+
#
|
2077
|
+
#
|
2078
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1998
2079
|
#
|
1999
2080
|
# @option params [String] :client_request_token
|
2000
2081
|
# A unique identifier for the new version of the secret that helps
|
@@ -2052,6 +2133,45 @@ module Aws::SecretsManager
|
|
2052
2133
|
# * {Types::RotateSecretResponse#name #name} => String
|
2053
2134
|
# * {Types::RotateSecretResponse#version_id #version_id} => String
|
2054
2135
|
#
|
2136
|
+
#
|
2137
|
+
# @example Example: To configure rotation for a secret
|
2138
|
+
#
|
2139
|
+
# # The following example configures rotation for a secret using a cron expression. The first rotation happens immediately
|
2140
|
+
# # after the changes are stored in the secret. The rotation schedule is the first and 15th day of every month. The rotation
|
2141
|
+
# # window begins at 4:00 PM UTC and ends at 6:00 PM.
|
2142
|
+
#
|
2143
|
+
# resp = client.rotate_secret({
|
2144
|
+
# rotation_lambda_arn: "arn:aws:lambda:us-west-2:123456789012:function:MyTestDatabaseRotationLambda",
|
2145
|
+
# rotation_rules: {
|
2146
|
+
# duration: "2h",
|
2147
|
+
# schedule_expression: "cron(0 16 1,15 * ? *)",
|
2148
|
+
# },
|
2149
|
+
# secret_id: "MyTestDatabaseSecret",
|
2150
|
+
# })
|
2151
|
+
#
|
2152
|
+
# resp.to_h outputs the following:
|
2153
|
+
# {
|
2154
|
+
# arn: "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3",
|
2155
|
+
# name: "MyTestDatabaseSecret",
|
2156
|
+
# version_id: "EXAMPLE2-90ab-cdef-fedc-ba987SECRET2",
|
2157
|
+
# }
|
2158
|
+
#
|
2159
|
+
# @example Example: To request an immediate rotation for a secret
|
2160
|
+
#
|
2161
|
+
# # The following example requests an immediate invocation of the secret's Lambda rotation function. It assumes that the
|
2162
|
+
# # specified secret already has rotation configured. The rotation function runs asynchronously in the background.
|
2163
|
+
#
|
2164
|
+
# resp = client.rotate_secret({
|
2165
|
+
# secret_id: "MyTestDatabaseSecret",
|
2166
|
+
# })
|
2167
|
+
#
|
2168
|
+
# resp.to_h outputs the following:
|
2169
|
+
# {
|
2170
|
+
# arn: "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3",
|
2171
|
+
# name: "MyTestDatabaseSecret",
|
2172
|
+
# version_id: "EXAMPLE2-90ab-cdef-fedc-ba987SECRET2",
|
2173
|
+
# }
|
2174
|
+
#
|
2055
2175
|
# @example Request syntax with placeholder values
|
2056
2176
|
#
|
2057
2177
|
# resp = client.rotate_secret({
|
@@ -2094,7 +2214,7 @@ module Aws::SecretsManager
|
|
2094
2214
|
#
|
2095
2215
|
#
|
2096
2216
|
#
|
2097
|
-
# [1]: https://docs.aws.amazon.com/
|
2217
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
2098
2218
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
2099
2219
|
#
|
2100
2220
|
# @option params [required, String] :secret_id
|
@@ -2160,7 +2280,7 @@ module Aws::SecretsManager
|
|
2160
2280
|
#
|
2161
2281
|
#
|
2162
2282
|
#
|
2163
|
-
# [1]: https://docs.aws.amazon.com/
|
2283
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
2164
2284
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
2165
2285
|
#
|
2166
2286
|
# @option params [required, String] :secret_id
|
@@ -2169,7 +2289,11 @@ module Aws::SecretsManager
|
|
2169
2289
|
# secret.
|
2170
2290
|
#
|
2171
2291
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
2172
|
-
# partial ARN.
|
2292
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
2293
|
+
#
|
2294
|
+
#
|
2295
|
+
#
|
2296
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
2173
2297
|
#
|
2174
2298
|
# @option params [required, Array<Types::Tag>] :tags
|
2175
2299
|
# The tags to attach to the secret as a JSON text string argument. Each
|
@@ -2243,14 +2367,18 @@ module Aws::SecretsManager
|
|
2243
2367
|
#
|
2244
2368
|
#
|
2245
2369
|
#
|
2246
|
-
# [1]: https://docs.aws.amazon.com/
|
2370
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
2247
2371
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
2248
2372
|
#
|
2249
2373
|
# @option params [required, String] :secret_id
|
2250
2374
|
# The ARN or name of the secret.
|
2251
2375
|
#
|
2252
2376
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
2253
|
-
# partial ARN.
|
2377
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
2378
|
+
#
|
2379
|
+
#
|
2380
|
+
#
|
2381
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
2254
2382
|
#
|
2255
2383
|
# @option params [required, Array<String>] :tag_keys
|
2256
2384
|
# A list of tag key names to remove from the secret. You don't specify
|
@@ -2346,7 +2474,7 @@ module Aws::SecretsManager
|
|
2346
2474
|
#
|
2347
2475
|
#
|
2348
2476
|
#
|
2349
|
-
# [1]: https://docs.aws.amazon.com/
|
2477
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
2350
2478
|
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
2351
2479
|
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html
|
2352
2480
|
#
|
@@ -2354,7 +2482,11 @@ module Aws::SecretsManager
|
|
2354
2482
|
# The ARN or name of the secret.
|
2355
2483
|
#
|
2356
2484
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
2357
|
-
# partial ARN.
|
2485
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
2486
|
+
#
|
2487
|
+
#
|
2488
|
+
#
|
2489
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
2358
2490
|
#
|
2359
2491
|
# @option params [String] :client_request_token
|
2360
2492
|
# If you include `SecretString` or `SecretBinary`, then Secrets Manager
|
@@ -2532,7 +2664,7 @@ module Aws::SecretsManager
|
|
2532
2664
|
#
|
2533
2665
|
#
|
2534
2666
|
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version
|
2535
|
-
# [2]: https://docs.aws.amazon.com/
|
2667
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
2536
2668
|
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
2537
2669
|
#
|
2538
2670
|
# @option params [required, String] :secret_id
|
@@ -2540,7 +2672,11 @@ module Aws::SecretsManager
|
|
2540
2672
|
# labelsto modify.
|
2541
2673
|
#
|
2542
2674
|
# For an ARN, we recommend that you specify a complete ARN rather than a
|
2543
|
-
# partial ARN.
|
2675
|
+
# partial ARN. See [Finding a secret from a partial ARN][1].
|
2676
|
+
#
|
2677
|
+
#
|
2678
|
+
#
|
2679
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
2544
2680
|
#
|
2545
2681
|
# @option params [required, String] :version_stage
|
2546
2682
|
# The staging label to add to this version.
|
@@ -2665,7 +2801,7 @@ module Aws::SecretsManager
|
|
2665
2801
|
#
|
2666
2802
|
#
|
2667
2803
|
# [1]: https://aws.amazon.com/blogs/security/protect-sensitive-data-in-the-cloud-with-automated-reasoning-zelkova/
|
2668
|
-
# [2]: https://docs.aws.amazon.com/
|
2804
|
+
# [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions
|
2669
2805
|
# [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
|
2670
2806
|
#
|
2671
2807
|
# @option params [String] :secret_id
|
@@ -2739,7 +2875,7 @@ module Aws::SecretsManager
|
|
2739
2875
|
params: params,
|
2740
2876
|
config: config)
|
2741
2877
|
context[:gem_name] = 'aws-sdk-secretsmanager'
|
2742
|
-
context[:gem_version] = '1.
|
2878
|
+
context[:gem_version] = '1.62.0'
|
2743
2879
|
Seahorse::Client::Request.new(handlers, context)
|
2744
2880
|
end
|
2745
2881
|
|
@@ -21,7 +21,11 @@ module Aws::SecretsManager
|
|
21
21
|
# The ARN or name of the secret.
|
22
22
|
#
|
23
23
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
24
|
-
# a partial ARN.
|
24
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
25
|
+
#
|
26
|
+
#
|
27
|
+
#
|
28
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
25
29
|
# @return [String]
|
26
30
|
#
|
27
31
|
# @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/CancelRotateSecretRequest AWS API Documentation
|
@@ -330,7 +334,11 @@ module Aws::SecretsManager
|
|
330
334
|
# policy for.
|
331
335
|
#
|
332
336
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
333
|
-
# a partial ARN.
|
337
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
338
|
+
#
|
339
|
+
#
|
340
|
+
#
|
341
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
334
342
|
# @return [String]
|
335
343
|
#
|
336
344
|
# @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/DeleteResourcePolicyRequest AWS API Documentation
|
@@ -373,7 +381,11 @@ module Aws::SecretsManager
|
|
373
381
|
# The ARN or name of the secret to delete.
|
374
382
|
#
|
375
383
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
376
|
-
# a partial ARN.
|
384
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
385
|
+
#
|
386
|
+
#
|
387
|
+
#
|
388
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
377
389
|
# @return [String]
|
378
390
|
#
|
379
391
|
# @!attribute [rw] recovery_window_in_days
|
@@ -449,7 +461,11 @@ module Aws::SecretsManager
|
|
449
461
|
# The ARN or name of the secret.
|
450
462
|
#
|
451
463
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
452
|
-
# a partial ARN.
|
464
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
465
|
+
#
|
466
|
+
#
|
467
|
+
#
|
468
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
453
469
|
# @return [String]
|
454
470
|
#
|
455
471
|
# @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/DescribeSecretRequest AWS API Documentation
|
@@ -775,7 +791,11 @@ module Aws::SecretsManager
|
|
775
791
|
# resource-based policy for.
|
776
792
|
#
|
777
793
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
778
|
-
# a partial ARN.
|
794
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
795
|
+
#
|
796
|
+
#
|
797
|
+
#
|
798
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
779
799
|
# @return [String]
|
780
800
|
#
|
781
801
|
# @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/GetResourcePolicyRequest AWS API Documentation
|
@@ -830,7 +850,11 @@ module Aws::SecretsManager
|
|
830
850
|
# The ARN or name of the secret to retrieve.
|
831
851
|
#
|
832
852
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
833
|
-
# a partial ARN.
|
853
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
854
|
+
#
|
855
|
+
#
|
856
|
+
#
|
857
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
834
858
|
# @return [String]
|
835
859
|
#
|
836
860
|
# @!attribute [rw] version_id
|
@@ -1018,7 +1042,11 @@ module Aws::SecretsManager
|
|
1018
1042
|
# The ARN or name of the secret whose versions you want to list.
|
1019
1043
|
#
|
1020
1044
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
1021
|
-
# a partial ARN.
|
1045
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
1046
|
+
#
|
1047
|
+
#
|
1048
|
+
#
|
1049
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1022
1050
|
# @return [String]
|
1023
1051
|
#
|
1024
1052
|
# @!attribute [rw] max_results
|
@@ -1207,7 +1235,11 @@ module Aws::SecretsManager
|
|
1207
1235
|
# The ARN or name of the secret to attach the resource-based policy.
|
1208
1236
|
#
|
1209
1237
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
1210
|
-
# a partial ARN.
|
1238
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
1239
|
+
#
|
1240
|
+
#
|
1241
|
+
#
|
1242
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1211
1243
|
# @return [String]
|
1212
1244
|
#
|
1213
1245
|
# @!attribute [rw] resource_policy
|
@@ -1221,9 +1253,8 @@ module Aws::SecretsManager
|
|
1221
1253
|
#
|
1222
1254
|
# @!attribute [rw] block_public_policy
|
1223
1255
|
# Specifies whether to block resource-based policies that allow broad
|
1224
|
-
# access to the secret
|
1225
|
-
#
|
1226
|
-
# the principal.
|
1256
|
+
# access to the secret, for example those that use a wildcard for the
|
1257
|
+
# principal.
|
1227
1258
|
# @return [Boolean]
|
1228
1259
|
#
|
1229
1260
|
# @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/PutResourcePolicyRequest AWS API Documentation
|
@@ -1268,9 +1299,13 @@ module Aws::SecretsManager
|
|
1268
1299
|
# The ARN or name of the secret to add a new version to.
|
1269
1300
|
#
|
1270
1301
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
1271
|
-
# a partial ARN.
|
1302
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
1272
1303
|
#
|
1273
1304
|
# If the secret doesn't already exist, use `CreateSecret` instead.
|
1305
|
+
#
|
1306
|
+
#
|
1307
|
+
#
|
1308
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1274
1309
|
# @return [String]
|
1275
1310
|
#
|
1276
1311
|
# @!attribute [rw] client_request_token
|
@@ -1597,7 +1632,11 @@ module Aws::SecretsManager
|
|
1597
1632
|
# The ARN or name of the secret to restore.
|
1598
1633
|
#
|
1599
1634
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
1600
|
-
# a partial ARN.
|
1635
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
1636
|
+
#
|
1637
|
+
#
|
1638
|
+
#
|
1639
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1601
1640
|
# @return [String]
|
1602
1641
|
#
|
1603
1642
|
# @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/RestoreSecretRequest AWS API Documentation
|
@@ -1644,7 +1683,11 @@ module Aws::SecretsManager
|
|
1644
1683
|
# The ARN or name of the secret to rotate.
|
1645
1684
|
#
|
1646
1685
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
1647
|
-
# a partial ARN.
|
1686
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
1687
|
+
#
|
1688
|
+
#
|
1689
|
+
#
|
1690
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
1648
1691
|
# @return [String]
|
1649
1692
|
#
|
1650
1693
|
# @!attribute [rw] client_request_token
|
@@ -2060,7 +2103,11 @@ module Aws::SecretsManager
|
|
2060
2103
|
# secret.
|
2061
2104
|
#
|
2062
2105
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
2063
|
-
# a partial ARN.
|
2106
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
2107
|
+
#
|
2108
|
+
#
|
2109
|
+
#
|
2110
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
2064
2111
|
# @return [String]
|
2065
2112
|
#
|
2066
2113
|
# @!attribute [rw] tags
|
@@ -2098,7 +2145,11 @@ module Aws::SecretsManager
|
|
2098
2145
|
# The ARN or name of the secret.
|
2099
2146
|
#
|
2100
2147
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
2101
|
-
# a partial ARN.
|
2148
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
2149
|
+
#
|
2150
|
+
#
|
2151
|
+
#
|
2152
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
2102
2153
|
# @return [String]
|
2103
2154
|
#
|
2104
2155
|
# @!attribute [rw] tag_keys
|
@@ -2143,7 +2194,11 @@ module Aws::SecretsManager
|
|
2143
2194
|
# The ARN or name of the secret.
|
2144
2195
|
#
|
2145
2196
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
2146
|
-
# a partial ARN.
|
2197
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
2198
|
+
#
|
2199
|
+
#
|
2200
|
+
#
|
2201
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
2147
2202
|
# @return [String]
|
2148
2203
|
#
|
2149
2204
|
# @!attribute [rw] client_request_token
|
@@ -2264,7 +2319,11 @@ module Aws::SecretsManager
|
|
2264
2319
|
# labelsto modify.
|
2265
2320
|
#
|
2266
2321
|
# For an ARN, we recommend that you specify a complete ARN rather than
|
2267
|
-
# a partial ARN.
|
2322
|
+
# a partial ARN. See [Finding a secret from a partial ARN][1].
|
2323
|
+
#
|
2324
|
+
#
|
2325
|
+
#
|
2326
|
+
# [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
|
2268
2327
|
# @return [String]
|
2269
2328
|
#
|
2270
2329
|
# @!attribute [rw] version_stage
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-secretsmanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.62.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|