aws-sdk-secretsmanager 1.55.0 → 1.58.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99fc2c2363aa6d21002711d003ee38e38a7ae19a76241052cffacd2a52b75c44
4
- data.tar.gz: 18652eb739c40dfb70e1fde31df707ee00c0240de29a463887aa98ebe50b8f96
3
+ metadata.gz: f09659a24e0631b1aaaa0f7100cfbbf33abf64736e66c68277a10fd458213668
4
+ data.tar.gz: 9185e9fea293199255512f4ccc289063207f96af16903adfb4d3a68d8ea8c3d6
5
5
  SHA512:
6
- metadata.gz: a994a9da89e78e6dbeda365153f0395a26da133f96f1139cf615a2b12b61a78e93cbb8643bd86bac0ae2aa071e01afb8e1c99336213bdd4448f0774bd5c9bf29
7
- data.tar.gz: 27d3a83d680e4d05ed663ef1b30b530f0ee62a4f90a475f1d99c8937c5ab8b950d2a8cf5a7a36503a46b80baa987d530c876137e155ffc31cf3284c4971da97d
6
+ metadata.gz: d650b64de401e99dbef7f94e7200b768932ae05757b42b252304733a689f6bd7b12de097aa144c129f17d143e199dd5d2458a6e838b34248692b6e65837836e3
7
+ data.tar.gz: 343e78a03f8c96b304d460c015d1651a7ee5f1eff152db46bb479f96ba331ab45e18236de50e326170845d61726d651b354c280657f0b29d79adaefc1472135e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.58.0 (2022-02-24)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.57.0 (2022-02-03)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.56.0 (2022-01-28)
15
+ ------------------
16
+
17
+ * Feature - Feature are ready to release on Jan 28th
18
+
4
19
  1.55.0 (2021-12-21)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.55.0
1
+ 1.58.0
@@ -27,7 +27,9 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
31
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
32
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
33
35
 
@@ -74,7 +76,9 @@ module Aws::SecretsManager
74
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
75
77
  add_plugin(Aws::Plugins::TransferEncoding)
76
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
77
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
+ add_plugin(Aws::Plugins::RecursionDetection)
78
82
  add_plugin(Aws::Plugins::SignatureV4)
79
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
80
84
 
@@ -372,6 +376,15 @@ module Aws::SecretsManager
372
376
  #
373
377
  # </note>
374
378
  #
379
+ # <b>Required permissions: </b> `secretsmanager:CancelRotateSecret`. For
380
+ # more information, see [ IAM policy actions for Secrets Manager][1] and
381
+ # [Authentication and access control in Secrets Manager][2].
382
+ #
383
+ #
384
+ #
385
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
386
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
387
+ #
375
388
  # @option params [required, String] :secret_id
376
389
  # The ARN or name of the secret.
377
390
  #
@@ -451,9 +464,15 @@ module Aws::SecretsManager
451
464
  # to encrypt the secret, and you must create and use a customer managed
452
465
  # KMS key.
453
466
  #
467
+ # <b>Required permissions: </b> `secretsmanager:CreateSecret`. For more
468
+ # information, see [ IAM policy actions for Secrets Manager][2] and
469
+ # [Authentication and access control in Secrets Manager][3].
470
+ #
454
471
  #
455
472
  #
456
473
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html
474
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
475
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
457
476
  #
458
477
  # @option params [required, String] :name
459
478
  # The name of the new secret.
@@ -687,6 +706,15 @@ module Aws::SecretsManager
687
706
  # Deletes the resource-based permission policy attached to the secret.
688
707
  # To attach a policy to a secret, use PutResourcePolicy.
689
708
  #
709
+ # <b>Required permissions: </b> `secretsmanager:DeleteResourcePolicy`.
710
+ # For more information, see [ IAM policy actions for Secrets Manager][1]
711
+ # and [Authentication and access control in Secrets Manager][2].
712
+ #
713
+ #
714
+ #
715
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
716
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
717
+ #
690
718
  # @option params [required, String] :secret_id
691
719
  # The ARN or name of the secret to delete the attached resource-based
692
720
  # policy for.
@@ -756,9 +784,15 @@ module Aws::SecretsManager
756
784
  # secret value. To access that information, first cancel the deletion
757
785
  # with RestoreSecret and then retrieve the information.
758
786
  #
787
+ # <b>Required permissions: </b> `secretsmanager:DeleteSecret`. For more
788
+ # information, see [ IAM policy actions for Secrets Manager][2] and
789
+ # [Authentication and access control in Secrets Manager][3].
790
+ #
759
791
  #
760
792
  #
761
793
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_delete-secret.html
794
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
795
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
762
796
  #
763
797
  # @option params [required, String] :secret_id
764
798
  # The ARN or name of the secret to delete.
@@ -843,6 +877,15 @@ module Aws::SecretsManager
843
877
  # secret value. Secrets Manager only returns fields that have a value in
844
878
  # the response.
845
879
  #
880
+ # <b>Required permissions: </b> `secretsmanager:DescribeSecret`. For
881
+ # more information, see [ IAM policy actions for Secrets Manager][1] and
882
+ # [Authentication and access control in Secrets Manager][2].
883
+ #
884
+ #
885
+ #
886
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
887
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
888
+ #
846
889
  # @option params [required, String] :secret_id
847
890
  # The ARN or name of the secret.
848
891
  #
@@ -927,6 +970,8 @@ module Aws::SecretsManager
927
970
  # resp.rotation_enabled #=> Boolean
928
971
  # resp.rotation_lambda_arn #=> String
929
972
  # resp.rotation_rules.automatically_after_days #=> Integer
973
+ # resp.rotation_rules.duration #=> String
974
+ # resp.rotation_rules.schedule_expression #=> String
930
975
  # resp.last_rotated_date #=> Time
931
976
  # resp.last_changed_date #=> Time
932
977
  # resp.last_accessed_date #=> Time
@@ -960,6 +1005,15 @@ module Aws::SecretsManager
960
1005
  # length and include every character type that the system you are
961
1006
  # generating a password for can support.
962
1007
  #
1008
+ # <b>Required permissions: </b> `secretsmanager:GetRandomPassword`. For
1009
+ # more information, see [ IAM policy actions for Secrets Manager][1] and
1010
+ # [Authentication and access control in Secrets Manager][2].
1011
+ #
1012
+ #
1013
+ #
1014
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1015
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1016
+ #
963
1017
  # @option params [Integer] :password_length
964
1018
  # The length of the password. If you don't include this parameter, the
965
1019
  # default length is 32 characters.
@@ -1048,9 +1102,15 @@ module Aws::SecretsManager
1048
1102
  # attached to a secret, see [Permissions policies attached to a
1049
1103
  # secret][1].
1050
1104
  #
1105
+ # <b>Required permissions: </b> `secretsmanager:GetResourcePolicy`. For
1106
+ # more information, see [ IAM policy actions for Secrets Manager][2] and
1107
+ # [Authentication and access control in Secrets Manager][3].
1108
+ #
1051
1109
  #
1052
1110
  #
1053
1111
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-policies.html
1112
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1113
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1054
1114
  #
1055
1115
  # @option params [required, String] :secret_id
1056
1116
  # The ARN or name of the secret to retrieve the attached resource-based
@@ -1106,17 +1166,22 @@ module Aws::SecretsManager
1106
1166
  # `SecretBinary` from the specified version of a secret, whichever
1107
1167
  # contains content.
1108
1168
  #
1109
- # For information about retrieving the secret value in the console, see
1110
- # [Retrieve secrets][1].
1169
+ # We recommend that you cache your secret values by using client-side
1170
+ # caching. Caching secrets improves speed and reduces your costs. For
1171
+ # more information, see [Cache secrets for your applications][1].
1111
1172
  #
1112
- # To run this command, you must have `secretsmanager:GetSecretValue`
1113
- # permissions. If the secret is encrypted using a customer-managed key
1114
- # instead of the Amazon Web Services managed key `aws/secretsmanager`,
1115
- # then you also need `kms:Decrypt` permissions for that key.
1173
+ # <b>Required permissions: </b> `secretsmanager:GetSecretValue`. If the
1174
+ # secret is encrypted using a customer-managed key instead of the Amazon
1175
+ # Web Services managed key `aws/secretsmanager`, then you also need
1176
+ # `kms:Decrypt` permissions for that key. For more information, see [
1177
+ # IAM policy actions for Secrets Manager][2] and [Authentication and
1178
+ # access control in Secrets Manager][3].
1116
1179
  #
1117
1180
  #
1118
1181
  #
1119
1182
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets.html
1183
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1184
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1120
1185
  #
1121
1186
  # @option params [required, String] :secret_id
1122
1187
  # The ARN or name of the secret to retrieve.
@@ -1216,10 +1281,14 @@ module Aws::SecretsManager
1216
1281
  # To get the secret value from `SecretString` or `SecretBinary`, call
1217
1282
  # GetSecretValue.
1218
1283
  #
1219
- # **Minimum permissions**
1284
+ # <b>Required permissions: </b> `secretsmanager:ListSecretVersionIds`.
1285
+ # For more information, see [ IAM policy actions for Secrets Manager][1]
1286
+ # and [Authentication and access control in Secrets Manager][2].
1220
1287
  #
1221
- # To run this command, you must have
1222
- # `secretsmanager:ListSecretVersionIds` permissions.
1288
+ #
1289
+ #
1290
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1291
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1223
1292
  #
1224
1293
  # @option params [required, String] :secret_id
1225
1294
  # The ARN or name of the secret whose versions you want to list.
@@ -1333,14 +1402,15 @@ module Aws::SecretsManager
1333
1402
  # For information about finding secrets in the console, see [Enhanced
1334
1403
  # search capabilities for secrets in Secrets Manager][1].
1335
1404
  #
1336
- # **Minimum permissions**
1337
- #
1338
- # To run this command, you must have `secretsmanager:ListSecrets`
1339
- # permissions.
1405
+ # <b>Required permissions: </b> `secretsmanager:ListSecrets`. For more
1406
+ # information, see [ IAM policy actions for Secrets Manager][2] and
1407
+ # [Authentication and access control in Secrets Manager][3].
1340
1408
  #
1341
1409
  #
1342
1410
  #
1343
1411
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html
1412
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1413
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1344
1414
  #
1345
1415
  # @option params [Integer] :max_results
1346
1416
  # The number of results to include in the response.
@@ -1427,6 +1497,8 @@ module Aws::SecretsManager
1427
1497
  # resp.secret_list[0].rotation_enabled #=> Boolean
1428
1498
  # resp.secret_list[0].rotation_lambda_arn #=> String
1429
1499
  # resp.secret_list[0].rotation_rules.automatically_after_days #=> Integer
1500
+ # resp.secret_list[0].rotation_rules.duration #=> String
1501
+ # resp.secret_list[0].rotation_rules.schedule_expression #=> String
1430
1502
  # resp.secret_list[0].last_rotated_date #=> Time
1431
1503
  # resp.secret_list[0].last_changed_date #=> Time
1432
1504
  # resp.secret_list[0].last_accessed_date #=> Time
@@ -1458,10 +1530,15 @@ module Aws::SecretsManager
1458
1530
  # For information about attaching a policy in the console, see [Attach a
1459
1531
  # permissions policy to a secret][2].
1460
1532
  #
1533
+ # <b>Required permissions: </b> `secretsmanager:PutResourcePolicy`. For
1534
+ # more information, see [ IAM policy actions for Secrets Manager][3] and
1535
+ # [Authentication and access control in Secrets Manager][1].
1536
+ #
1461
1537
  #
1462
1538
  #
1463
1539
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1464
1540
  # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html
1541
+ # [3]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1465
1542
  #
1466
1543
  # @option params [required, String] :secret_id
1467
1544
  # The ARN or name of the secret to attach the resource-based policy.
@@ -1558,6 +1635,15 @@ module Aws::SecretsManager
1558
1635
  # fails because you can't modify an existing version; you can only
1559
1636
  # create new ones.
1560
1637
  #
1638
+ # <b>Required permissions: </b> `secretsmanager:PutSecretValue`. For
1639
+ # more information, see [ IAM policy actions for Secrets Manager][1] and
1640
+ # [Authentication and access control in Secrets Manager][2].
1641
+ #
1642
+ #
1643
+ #
1644
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1645
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1646
+ #
1561
1647
  # @option params [required, String] :secret_id
1562
1648
  # The ARN or name of the secret to add a new version to.
1563
1649
  #
@@ -1699,6 +1785,16 @@ module Aws::SecretsManager
1699
1785
  # For a secret that is replicated to other Regions, deletes the secret
1700
1786
  # replicas from the Regions you specify.
1701
1787
  #
1788
+ # <b>Required permissions: </b>
1789
+ # `secretsmanager:RemoveRegionsFromReplication`. For more information,
1790
+ # see [ IAM policy actions for Secrets Manager][1] and [Authentication
1791
+ # and access control in Secrets Manager][2].
1792
+ #
1793
+ #
1794
+ #
1795
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1796
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1797
+ #
1702
1798
  # @option params [required, String] :secret_id
1703
1799
  # The ARN or name of the secret.
1704
1800
  #
@@ -1738,9 +1834,16 @@ module Aws::SecretsManager
1738
1834
 
1739
1835
  # Replicates the secret to a new Regions. See [Multi-Region secrets][1].
1740
1836
  #
1837
+ # <b>Required permissions: </b>
1838
+ # `secretsmanager:ReplicateSecretToRegions`. For more information, see [
1839
+ # IAM policy actions for Secrets Manager][2] and [Authentication and
1840
+ # access control in Secrets Manager][3].
1841
+ #
1741
1842
  #
1742
1843
  #
1743
1844
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/create-manage-multi-region-secrets.html
1845
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1846
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1744
1847
  #
1745
1848
  # @option params [required, String] :secret_id
1746
1849
  # The ARN or name of the secret to replicate.
@@ -1793,6 +1896,15 @@ module Aws::SecretsManager
1793
1896
  # `DeletedDate` time stamp. You can access a secret again after it has
1794
1897
  # been restored.
1795
1898
  #
1899
+ # <b>Required permissions: </b> `secretsmanager:RestoreSecret`. For more
1900
+ # information, see [ IAM policy actions for Secrets Manager][1] and
1901
+ # [Authentication and access control in Secrets Manager][2].
1902
+ #
1903
+ #
1904
+ #
1905
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1906
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1907
+ #
1796
1908
  # @option params [required, String] :secret_id
1797
1909
  # The ARN or name of the secret to restore.
1798
1910
  #
@@ -1864,14 +1976,19 @@ module Aws::SecretsManager
1864
1976
  # `RotateSecret` assumes that a previous rotation request is still in
1865
1977
  # progress and returns an error.
1866
1978
  #
1867
- # To run this command, you must have `secretsmanager:RotateSecret`
1868
- # permissions and `lambda:InvokeFunction` permissions on the function
1869
- # specified in the secret's metadata.
1979
+ # <b>Required permissions: </b> `secretsmanager:RotateSecret`. For more
1980
+ # information, see [ IAM policy actions for Secrets Manager][3] and
1981
+ # [Authentication and access control in Secrets Manager][4]. You also
1982
+ # need `lambda:InvokeFunction` permissions on the rotation function. For
1983
+ # more information, see [ Permissions for rotation][5].
1870
1984
  #
1871
1985
  #
1872
1986
  #
1873
1987
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html
1874
1988
  # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html
1989
+ # [3]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
1990
+ # [4]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
1991
+ # [5]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-required-permissions-function.html
1875
1992
  #
1876
1993
  # @option params [required, String] :secret_id
1877
1994
  # The ARN or name of the secret to rotate.
@@ -1912,6 +2029,23 @@ module Aws::SecretsManager
1912
2029
  # @option params [Types::RotationRulesType] :rotation_rules
1913
2030
  # A structure that defines the rotation configuration for this secret.
1914
2031
  #
2032
+ # @option params [Boolean] :rotate_immediately
2033
+ # Specifies whether to rotate the secret immediately or wait until the
2034
+ # next scheduled rotation window. The rotation schedule is defined in
2035
+ # RotateSecretRequest$RotationRules.
2036
+ #
2037
+ # If you don't immediately rotate the secret, Secrets Manager tests the
2038
+ # rotation configuration by running the [ `testSecret` step][1] of the
2039
+ # Lambda rotation function. The test creates an `AWSPENDING` version of
2040
+ # the secret and then removes it.
2041
+ #
2042
+ # If you don't specify this value, then by default, Secrets Manager
2043
+ # rotates the secret immediately.
2044
+ #
2045
+ #
2046
+ #
2047
+ # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html
2048
+ #
1915
2049
  # @return [Types::RotateSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1916
2050
  #
1917
2051
  # * {Types::RotateSecretResponse#arn #arn} => String
@@ -1926,7 +2060,10 @@ module Aws::SecretsManager
1926
2060
  # rotation_lambda_arn: "RotationLambdaARNType",
1927
2061
  # rotation_rules: {
1928
2062
  # automatically_after_days: 1,
2063
+ # duration: "DurationType",
2064
+ # schedule_expression: "ScheduleExpressionType",
1929
2065
  # },
2066
+ # rotate_immediately: false,
1930
2067
  # })
1931
2068
  #
1932
2069
  # @example Response structure
@@ -1950,6 +2087,16 @@ module Aws::SecretsManager
1950
2087
  # You must call this operation from the Region in which you want to
1951
2088
  # promote the replica to a primary secret.
1952
2089
  #
2090
+ # <b>Required permissions: </b>
2091
+ # `secretsmanager:StopReplicationToReplica`. For more information, see [
2092
+ # IAM policy actions for Secrets Manager][1] and [Authentication and
2093
+ # access control in Secrets Manager][2].
2094
+ #
2095
+ #
2096
+ #
2097
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
2098
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
2099
+ #
1953
2100
  # @option params [required, String] :secret_id
1954
2101
  # The ARN of the primary secret.
1955
2102
  #
@@ -2007,6 +2154,15 @@ module Aws::SecretsManager
2007
2154
  # operation would result in you losing your permissions for this secret,
2008
2155
  # then the operation is blocked and returns an Access Denied error.
2009
2156
  #
2157
+ # <b>Required permissions: </b> `secretsmanager:TagResource`. For more
2158
+ # information, see [ IAM policy actions for Secrets Manager][1] and
2159
+ # [Authentication and access control in Secrets Manager][2].
2160
+ #
2161
+ #
2162
+ #
2163
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
2164
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
2165
+ #
2010
2166
  # @option params [required, String] :secret_id
2011
2167
  # The identifier for the secret to attach tags to. You can specify
2012
2168
  # either the Amazon Resource Name (ARN) or the friendly name of the
@@ -2081,6 +2237,15 @@ module Aws::SecretsManager
2081
2237
  # would result in you losing your permissions for this secret, then the
2082
2238
  # operation is blocked and returns an Access Denied error.
2083
2239
  #
2240
+ # <b>Required permissions: </b> `secretsmanager:UntagResource`. For more
2241
+ # information, see [ IAM policy actions for Secrets Manager][1] and
2242
+ # [Authentication and access control in Secrets Manager][2].
2243
+ #
2244
+ #
2245
+ #
2246
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
2247
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
2248
+ #
2084
2249
  # @option params [required, String] :secret_id
2085
2250
  # The ARN or name of the secret.
2086
2251
  #
@@ -2172,9 +2337,18 @@ module Aws::SecretsManager
2172
2337
  # to encrypt the secret, and you must create and use a customer managed
2173
2338
  # key.
2174
2339
  #
2175
- # To run this command, you must have `secretsmanager:UpdateSecret`
2176
- # permissions. If you use a customer managed key, you must also have
2177
- # `kms:GenerateDataKey` and `kms:Decrypt` permissions .
2340
+ # <b>Required permissions: </b> `secretsmanager:UpdateSecret`. For more
2341
+ # information, see [ IAM policy actions for Secrets Manager][1] and
2342
+ # [Authentication and access control in Secrets Manager][2]. If you use
2343
+ # a customer managed key, you must also have `kms:GenerateDataKey` and
2344
+ # `kms:Decrypt` permissions on the key. For more information, see [
2345
+ # Secret encryption and decryption][3].
2346
+ #
2347
+ #
2348
+ #
2349
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
2350
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
2351
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html
2178
2352
  #
2179
2353
  # @option params [required, String] :secret_id
2180
2354
  # The ARN or name of the secret.
@@ -2350,9 +2524,16 @@ module Aws::SecretsManager
2350
2524
  # then the version is considered to be 'deprecated' and can be deleted
2351
2525
  # by Secrets Manager.
2352
2526
  #
2527
+ # <b>Required permissions: </b>
2528
+ # `secretsmanager:UpdateSecretVersionStage`. For more information, see [
2529
+ # IAM policy actions for Secrets Manager][2] and [Authentication and
2530
+ # access control in Secrets Manager][3].
2531
+ #
2353
2532
  #
2354
2533
  #
2355
2534
  # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version
2535
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
2536
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
2356
2537
  #
2357
2538
  # @option params [required, String] :secret_id
2358
2539
  # The ARN or the name of the secret with the version and staging
@@ -2477,9 +2658,15 @@ module Aws::SecretsManager
2477
2658
  #
2478
2659
  # * Verifies the policy does not lock out a caller.
2479
2660
  #
2661
+ # <b>Required permissions: </b> `secretsmanager:ValidateResourcePolicy`.
2662
+ # For more information, see [ IAM policy actions for Secrets Manager][2]
2663
+ # and [Authentication and access control in Secrets Manager][3].
2664
+ #
2480
2665
  #
2481
2666
  #
2482
2667
  # [1]: https://aws.amazon.com/blogs/security/protect-sensitive-data-in-the-cloud-with-automated-reasoning-zelkova/
2668
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions
2669
+ # [3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html
2483
2670
  #
2484
2671
  # @option params [String] :secret_id
2485
2672
  # This field is reserved for internal use.
@@ -2552,7 +2739,7 @@ module Aws::SecretsManager
2552
2739
  params: params,
2553
2740
  config: config)
2554
2741
  context[:gem_name] = 'aws-sdk-secretsmanager'
2555
- context[:gem_version] = '1.55.0'
2742
+ context[:gem_version] = '1.58.0'
2556
2743
  Seahorse::Client::Request.new(handlers, context)
2557
2744
  end
2558
2745
 
@@ -32,6 +32,7 @@ module Aws::SecretsManager
32
32
  DescribeSecretRequest = Shapes::StructureShape.new(name: 'DescribeSecretRequest')
33
33
  DescribeSecretResponse = Shapes::StructureShape.new(name: 'DescribeSecretResponse')
34
34
  DescriptionType = Shapes::StringShape.new(name: 'DescriptionType')
35
+ DurationType = Shapes::StringShape.new(name: 'DurationType')
35
36
  EncryptionFailure = Shapes::StructureShape.new(name: 'EncryptionFailure')
36
37
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
37
38
  ExcludeCharactersType = Shapes::StringShape.new(name: 'ExcludeCharactersType')
@@ -99,6 +100,7 @@ module Aws::SecretsManager
99
100
  RotationEnabledType = Shapes::BooleanShape.new(name: 'RotationEnabledType')
100
101
  RotationLambdaARNType = Shapes::StringShape.new(name: 'RotationLambdaARNType')
101
102
  RotationRulesType = Shapes::StructureShape.new(name: 'RotationRulesType')
103
+ ScheduleExpressionType = Shapes::StringShape.new(name: 'ScheduleExpressionType')
102
104
  SecretARNType = Shapes::StringShape.new(name: 'SecretARNType')
103
105
  SecretBinaryType = Shapes::BlobShape.new(name: 'SecretBinaryType')
104
106
  SecretIdType = Shapes::StringShape.new(name: 'SecretIdType')
@@ -368,6 +370,7 @@ module Aws::SecretsManager
368
370
  RotateSecretRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenType, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
369
371
  RotateSecretRequest.add_member(:rotation_lambda_arn, Shapes::ShapeRef.new(shape: RotationLambdaARNType, location_name: "RotationLambdaARN"))
370
372
  RotateSecretRequest.add_member(:rotation_rules, Shapes::ShapeRef.new(shape: RotationRulesType, location_name: "RotationRules"))
373
+ RotateSecretRequest.add_member(:rotate_immediately, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RotateImmediately", metadata: {"box"=>true}))
371
374
  RotateSecretRequest.struct_class = Types::RotateSecretRequest
372
375
 
373
376
  RotateSecretResponse.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
@@ -376,6 +379,8 @@ module Aws::SecretsManager
376
379
  RotateSecretResponse.struct_class = Types::RotateSecretResponse
377
380
 
378
381
  RotationRulesType.add_member(:automatically_after_days, Shapes::ShapeRef.new(shape: AutomaticallyRotateAfterDaysType, location_name: "AutomaticallyAfterDays", metadata: {"box"=>true}))
382
+ RotationRulesType.add_member(:duration, Shapes::ShapeRef.new(shape: DurationType, location_name: "Duration"))
383
+ RotationRulesType.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpressionType, location_name: "ScheduleExpression"))
379
384
  RotationRulesType.struct_class = Types::RotationRulesType
380
385
 
381
386
  SecretListEntry.add_member(:arn, Shapes::ShapeRef.new(shape: SecretARNType, location_name: "ARN"))
@@ -517,6 +522,7 @@ module Aws::SecretsManager
517
522
  o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
518
523
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
519
524
  o.errors << Shapes::ShapeRef.new(shape: PreconditionNotMetException)
525
+ o.errors << Shapes::ShapeRef.new(shape: DecryptionFailure)
520
526
  end)
521
527
 
522
528
  api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -652,6 +658,7 @@ module Aws::SecretsManager
652
658
  o.errors << Shapes::ShapeRef.new(shape: ResourceExistsException)
653
659
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
654
660
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
661
+ o.errors << Shapes::ShapeRef.new(shape: DecryptionFailure)
655
662
  end)
656
663
 
657
664
  api.add_operation(:remove_regions_from_replication, Seahorse::Model::Operation.new.tap do |o|
@@ -753,6 +760,7 @@ module Aws::SecretsManager
753
760
  o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
754
761
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
755
762
  o.errors << Shapes::ShapeRef.new(shape: PreconditionNotMetException)
763
+ o.errors << Shapes::ShapeRef.new(shape: DecryptionFailure)
756
764
  end)
757
765
 
758
766
  api.add_operation(:update_secret_version_stage, Seahorse::Model::Operation.new.tap do |o|
@@ -956,7 +956,7 @@ module Aws::SecretsManager
956
956
  include Aws::Structure
957
957
  end
958
958
 
959
- # The parameter name is invalid value.
959
+ # The parameter name or value is invalid.
960
960
  #
961
961
  # @!attribute [rw] message
962
962
  # @return [String]
@@ -1634,7 +1634,10 @@ module Aws::SecretsManager
1634
1634
  # rotation_lambda_arn: "RotationLambdaARNType",
1635
1635
  # rotation_rules: {
1636
1636
  # automatically_after_days: 1,
1637
+ # duration: "DurationType",
1638
+ # schedule_expression: "ScheduleExpressionType",
1637
1639
  # },
1640
+ # rotate_immediately: false,
1638
1641
  # }
1639
1642
  #
1640
1643
  # @!attribute [rw] secret_id
@@ -1682,13 +1685,32 @@ module Aws::SecretsManager
1682
1685
  # A structure that defines the rotation configuration for this secret.
1683
1686
  # @return [Types::RotationRulesType]
1684
1687
  #
1688
+ # @!attribute [rw] rotate_immediately
1689
+ # Specifies whether to rotate the secret immediately or wait until the
1690
+ # next scheduled rotation window. The rotation schedule is defined in
1691
+ # RotateSecretRequest$RotationRules.
1692
+ #
1693
+ # If you don't immediately rotate the secret, Secrets Manager tests
1694
+ # the rotation configuration by running the [ `testSecret` step][1] of
1695
+ # the Lambda rotation function. The test creates an `AWSPENDING`
1696
+ # version of the secret and then removes it.
1697
+ #
1698
+ # If you don't specify this value, then by default, Secrets Manager
1699
+ # rotates the secret immediately.
1700
+ #
1701
+ #
1702
+ #
1703
+ # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html
1704
+ # @return [Boolean]
1705
+ #
1685
1706
  # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/RotateSecretRequest AWS API Documentation
1686
1707
  #
1687
1708
  class RotateSecretRequest < Struct.new(
1688
1709
  :secret_id,
1689
1710
  :client_request_token,
1690
1711
  :rotation_lambda_arn,
1691
- :rotation_rules)
1712
+ :rotation_rules,
1713
+ :rotate_immediately)
1692
1714
  SENSITIVE = []
1693
1715
  include Aws::Structure
1694
1716
  end
@@ -1722,32 +1744,79 @@ module Aws::SecretsManager
1722
1744
  #
1723
1745
  # {
1724
1746
  # automatically_after_days: 1,
1747
+ # duration: "DurationType",
1748
+ # schedule_expression: "ScheduleExpressionType",
1725
1749
  # }
1726
1750
  #
1727
1751
  # @!attribute [rw] automatically_after_days
1728
- # Specifies the number of days between automatic scheduled rotations
1729
- # of the secret.
1730
- #
1731
- # Secrets Manager schedules the next rotation when the previous one is
1732
- # complete. Secrets Manager schedules the date by adding the rotation
1733
- # interval (number of days) to the actual date of the last rotation.
1734
- # The service chooses the hour within that 24-hour date window
1735
- # randomly. The minute is also chosen somewhat randomly, but weighted
1736
- # towards the top of the hour and influenced by a variety of factors
1737
- # that help distribute load.
1752
+ # The number of days between automatic scheduled rotations of the
1753
+ # secret. You can use this value to check that your secret meets your
1754
+ # compliance guidelines for how often secrets must be rotated.
1755
+ #
1756
+ # In `DescribeSecret` and `ListSecrets`, this value is calculated from
1757
+ # the rotation schedule after every successful rotation. In
1758
+ # `RotateSecret`, you can set the rotation schedule in `RotationRules`
1759
+ # with `AutomaticallyAfterDays` or `ScheduleExpression`, but not both.
1738
1760
  # @return [Integer]
1739
1761
  #
1762
+ # @!attribute [rw] duration
1763
+ # The length of the rotation window in hours, for example `3h` for a
1764
+ # three hour window. Secrets Manager rotates your secret at any time
1765
+ # during this window. The window must not go into the next UTC day. If
1766
+ # you don't specify this value, the window automatically ends at the
1767
+ # end of the UTC day. The window begins according to the
1768
+ # `ScheduleExpression`. For more information, including examples, see
1769
+ # [Schedule expressions in Secrets Manager rotation][1].
1770
+ #
1771
+ #
1772
+ #
1773
+ # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html
1774
+ # @return [String]
1775
+ #
1776
+ # @!attribute [rw] schedule_expression
1777
+ # A `cron()` or `rate()` expression that defines the schedule for
1778
+ # rotating your secret. Secrets Manager rotation schedules use UTC
1779
+ # time zone.
1780
+ #
1781
+ # Secrets Manager `rate()` expressions represent the interval in days
1782
+ # that you want to rotate your secret, for example `rate(10 days)`. If
1783
+ # you use a `rate()` expression, the rotation window opens at
1784
+ # midnight, and Secrets Manager rotates your secret any time that day
1785
+ # after midnight. You can set a `Duration` to shorten the rotation
1786
+ # window.
1787
+ #
1788
+ # You can use a `cron()` expression to create rotation schedules that
1789
+ # are more detailed than a rotation interval. For more information,
1790
+ # including examples, see [Schedule expressions in Secrets Manager
1791
+ # rotation][1]. If you use a `cron()` expression, Secrets Manager
1792
+ # rotates your secret any time during that day after the window opens.
1793
+ # For example, `cron(0 8 1 * ? *)` represents a rotation window that
1794
+ # occurs on the first day of every month beginning at 8:00 AM UTC.
1795
+ # Secrets Manager rotates the secret any time that day after 8:00 AM.
1796
+ # You can set a `Duration` to shorten the rotation window.
1797
+ #
1798
+ #
1799
+ #
1800
+ # [1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html
1801
+ # @return [String]
1802
+ #
1740
1803
  # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/RotationRulesType AWS API Documentation
1741
1804
  #
1742
1805
  class RotationRulesType < Struct.new(
1743
- :automatically_after_days)
1806
+ :automatically_after_days,
1807
+ :duration,
1808
+ :schedule_expression)
1744
1809
  SENSITIVE = []
1745
1810
  include Aws::Structure
1746
1811
  end
1747
1812
 
1748
1813
  # A structure that contains the details about a secret. It does not
1749
1814
  # include the encrypted `SecretString` and `SecretBinary` values. To get
1750
- # those values, use the GetSecretValue operation.
1815
+ # those values, use [GetSecretValue][1] .
1816
+ #
1817
+ #
1818
+ #
1819
+ # [1]: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
1751
1820
  #
1752
1821
  # @!attribute [rw] arn
1753
1822
  # The Amazon Resource Name (ARN) of the secret.
@@ -1778,7 +1847,11 @@ module Aws::SecretsManager
1778
1847
  # @!attribute [rw] rotation_lambda_arn
1779
1848
  # The ARN of an Amazon Web Services Lambda function invoked by Secrets
1780
1849
  # Manager to rotate and expire the secret either automatically per the
1781
- # schedule or manually by a call to RotateSecret.
1850
+ # schedule or manually by a call to [ `RotateSecret` ][1].
1851
+ #
1852
+ #
1853
+ #
1854
+ # [1]: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_RotateSecret.html
1782
1855
  # @return [String]
1783
1856
  #
1784
1857
  # @!attribute [rw] rotation_rules
@@ -1805,13 +1878,23 @@ module Aws::SecretsManager
1805
1878
  # The date and time the deletion of the secret occurred. Not present
1806
1879
  # on active secrets. The secret can be recovered until the number of
1807
1880
  # days in the recovery window has passed, as specified in the
1808
- # `RecoveryWindowInDays` parameter of the DeleteSecret operation.
1881
+ # `RecoveryWindowInDays` parameter of the [ `DeleteSecret` ][1]
1882
+ # operation.
1883
+ #
1884
+ #
1885
+ #
1886
+ # [1]: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html
1809
1887
  # @return [Time]
1810
1888
  #
1811
1889
  # @!attribute [rw] tags
1812
1890
  # The list of user-defined tags associated with the secret. To add
1813
- # tags to a secret, use TagResource. To remove tags, use
1814
- # UntagResource.
1891
+ # tags to a secret, use [ `TagResource` ][1]. To remove tags, use [
1892
+ # `UntagResource` ][2].
1893
+ #
1894
+ #
1895
+ #
1896
+ # [1]: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_TagResource.html
1897
+ # [2]: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_UntagResource.html
1815
1898
  # @return [Array<Types::Tag>]
1816
1899
  #
1817
1900
  # @!attribute [rw] secret_versions_to_stages
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-secretsmanager/customizations'
48
48
  # @!group service
49
49
  module Aws::SecretsManager
50
50
 
51
- GEM_VERSION = '1.55.0'
51
+ GEM_VERSION = '1.58.0'
52
52
 
53
53
  end
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.55.0
4
+ version: 1.58.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: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.125.0
22
+ version: 3.127.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.125.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement