aws-sdk-secretsmanager 1.43.0 → 1.47.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.47.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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.43.0'
51
+ GEM_VERSION = '1.47.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -584,7 +584,7 @@ module Aws::SecretsManager
584
584
  #
585
585
  # * If a version with this value already exists and that version's
586
586
  # `SecretString` and `SecretBinary` values are different from those in
587
- # the request then the request fails because you cannot modify an
587
+ # the request, then the request fails because you cannot modify an
588
588
  # existing version. Instead, use PutSecretValue to create a new
589
589
  # version.
590
590
  #
@@ -714,11 +714,21 @@ module Aws::SecretsManager
714
714
  #
715
715
  # [1]: https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json
716
716
  #
717
+ # @option params [Array<Types::ReplicaRegionType>] :add_replica_regions
718
+ # (Optional) Add a list of regions to replicate secrets. Secrets Manager
719
+ # replicates the KMSKeyID objects to the list of regions specified in
720
+ # the parameter.
721
+ #
722
+ # @option params [Boolean] :force_overwrite_replica_secret
723
+ # (Optional) If set, the replication overwrites a secret with the same
724
+ # name in the destination region.
725
+ #
717
726
  # @return [Types::CreateSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
718
727
  #
719
728
  # * {Types::CreateSecretResponse#arn #arn} => String
720
729
  # * {Types::CreateSecretResponse#name #name} => String
721
730
  # * {Types::CreateSecretResponse#version_id #version_id} => String
731
+ # * {Types::CreateSecretResponse#replication_status #replication_status} => Array&lt;Types::ReplicationStatusType&gt;
722
732
  #
723
733
  #
724
734
  # @example Example: To create a basic secret
@@ -755,6 +765,13 @@ module Aws::SecretsManager
755
765
  # value: "TagValueType",
756
766
  # },
757
767
  # ],
768
+ # add_replica_regions: [
769
+ # {
770
+ # region: "RegionType",
771
+ # kms_key_id: "KmsKeyIdType",
772
+ # },
773
+ # ],
774
+ # force_overwrite_replica_secret: false,
758
775
  # })
759
776
  #
760
777
  # @example Response structure
@@ -762,6 +779,12 @@ module Aws::SecretsManager
762
779
  # resp.arn #=> String
763
780
  # resp.name #=> String
764
781
  # resp.version_id #=> String
782
+ # resp.replication_status #=> Array
783
+ # resp.replication_status[0].region #=> String
784
+ # resp.replication_status[0].kms_key_id #=> String
785
+ # resp.replication_status[0].status #=> String, one of "InSync", "Failed", "InProgress"
786
+ # resp.replication_status[0].status_message #=> String
787
+ # resp.replication_status[0].last_accessed_date #=> Time
765
788
  #
766
789
  # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/CreateSecret AWS API Documentation
767
790
  #
@@ -786,8 +809,8 @@ module Aws::SecretsManager
786
809
  #
787
810
  # * To attach a resource policy to a secret, use PutResourcePolicy.
788
811
  #
789
- # * To retrieve the current resource-based policy that's attached to a
790
- # secret, use GetResourcePolicy.
812
+ # * To retrieve the current resource-based policy attached to a secret,
813
+ # use GetResourcePolicy.
791
814
  #
792
815
  # * To list all of the currently available secrets, use ListSecrets.
793
816
  #
@@ -857,7 +880,7 @@ module Aws::SecretsManager
857
880
  req.send_request(options)
858
881
  end
859
882
 
860
- # Deletes an entire secret and all of its versions. You can optionally
883
+ # Deletes an entire secret and all of the versions. You can optionally
861
884
  # include a recovery window during which you can restore the secret. If
862
885
  # you don't specify a recovery window value, the operation defaults to
863
886
  # 30 days. Secrets Manager attaches a `DeletionDate` stamp to the secret
@@ -867,17 +890,17 @@ module Aws::SecretsManager
867
890
  # At any time before recovery window ends, you can use RestoreSecret to
868
891
  # remove the `DeletionDate` and cancel the deletion of the secret.
869
892
  #
870
- # You cannot access the encrypted secret information in any secret that
871
- # is scheduled for deletion. If you need to access that information, you
893
+ # You cannot access the encrypted secret information in any secret
894
+ # scheduled for deletion. If you need to access that information, you
872
895
  # must cancel the deletion with RestoreSecret and then retrieve the
873
896
  # information.
874
897
  #
875
898
  # <note markdown="1"> * There is no explicit operation to delete a version of a secret.
876
899
  # Instead, remove all staging labels from the `VersionStage` field of
877
900
  # a version. That marks the version as deprecated and allows Secrets
878
- # Manager to delete it as needed. Versions that do not have any
879
- # staging labels do not show up in ListSecretVersionIds unless you
880
- # specify `IncludeDeprecated`.
901
+ # Manager to delete it as needed. Versions without any staging labels
902
+ # do not show up in ListSecretVersionIds unless you specify
903
+ # `IncludeDeprecated`.
881
904
  #
882
905
  # * The permanent secret deletion at the end of the waiting period is
883
906
  # performed as a background task with low priority. There is no
@@ -902,8 +925,8 @@ module Aws::SecretsManager
902
925
  # window has expired, use RestoreSecret.
903
926
  #
904
927
  # @option params [required, String] :secret_id
905
- # Specifies the secret that you want to delete. You can specify either
906
- # the Amazon Resource Name (ARN) or the friendly name of the secret.
928
+ # Specifies the secret to delete. You can specify either the Amazon
929
+ # Resource Name (ARN) or the friendly name of the secret.
907
930
  #
908
931
  # <note markdown="1"> If you specify an ARN, we generally recommend that you specify a
909
932
  # complete ARN. You can specify a partial ARN too—for example, if you
@@ -928,10 +951,11 @@ module Aws::SecretsManager
928
951
  #
929
952
  # @option params [Integer] :recovery_window_in_days
930
953
  # (Optional) Specifies the number of days that Secrets Manager waits
931
- # before it can delete the secret. You can't use both this parameter
932
- # and the `ForceDeleteWithoutRecovery` parameter in the same API call.
954
+ # before Secrets Manager can delete the secret. You can't use both this
955
+ # parameter and the `ForceDeleteWithoutRecovery` parameter in the same
956
+ # API call.
933
957
  #
934
- # This value can range from 7 to 30 days. The default value is 30.
958
+ # This value can range from 7 to 30 days with a default value of 30.
935
959
  #
936
960
  # @option params [Boolean] :force_delete_without_recovery
937
961
  # (Optional) Specifies that the secret is to be deleted without any
@@ -948,8 +972,12 @@ module Aws::SecretsManager
948
972
  # to skip the normal waiting period before the permanent deletion that
949
973
  # AWS would normally impose with the `RecoveryWindowInDays` parameter.
950
974
  # If you delete a secret with the `ForceDeleteWithouRecovery` parameter,
951
- # then you have no opportunity to recover the secret. It is permanently
952
- # lost.
975
+ # then you have no opportunity to recover the secret. You lose the
976
+ # secret permanently.
977
+ #
978
+ # If you use this parameter and include a previously deleted or
979
+ # nonexistent secret, the operation does not return the error
980
+ # `ResourceNotFoundException` in order to correctly handle retries.
953
981
  #
954
982
  # @return [Types::DeleteSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
955
983
  #
@@ -1065,6 +1093,8 @@ module Aws::SecretsManager
1065
1093
  # * {Types::DescribeSecretResponse#version_ids_to_stages #version_ids_to_stages} => Hash&lt;String,Array&lt;String&gt;&gt;
1066
1094
  # * {Types::DescribeSecretResponse#owning_service #owning_service} => String
1067
1095
  # * {Types::DescribeSecretResponse#created_date #created_date} => Time
1096
+ # * {Types::DescribeSecretResponse#primary_region #primary_region} => String
1097
+ # * {Types::DescribeSecretResponse#replication_status #replication_status} => Array&lt;Types::ReplicationStatusType&gt;
1068
1098
  #
1069
1099
  #
1070
1100
  # @example Example: To retrieve the details of a secret
@@ -1136,6 +1166,13 @@ module Aws::SecretsManager
1136
1166
  # resp.version_ids_to_stages["SecretVersionIdType"][0] #=> String
1137
1167
  # resp.owning_service #=> String
1138
1168
  # resp.created_date #=> Time
1169
+ # resp.primary_region #=> String
1170
+ # resp.replication_status #=> Array
1171
+ # resp.replication_status[0].region #=> String
1172
+ # resp.replication_status[0].kms_key_id #=> String
1173
+ # resp.replication_status[0].status #=> String, one of "InSync", "Failed", "InProgress"
1174
+ # resp.replication_status[0].status_message #=> String
1175
+ # resp.replication_status[0].last_accessed_date #=> Time
1139
1176
  #
1140
1177
  # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/DescribeSecret AWS API Documentation
1141
1178
  #
@@ -1395,10 +1432,11 @@ module Aws::SecretsManager
1395
1432
  #
1396
1433
  # @option params [String] :version_id
1397
1434
  # Specifies the unique identifier of the version of the secret that you
1398
- # want to retrieve. If you specify this parameter then don't specify
1399
- # `VersionStage`. If you don't specify either a `VersionStage` or
1400
- # `VersionId` then the default is to perform the operation on the
1401
- # version with the `VersionStage` value of `AWSCURRENT`.
1435
+ # want to retrieve. If you specify both this parameter and
1436
+ # `VersionStage`, the two parameters must refer to the same secret
1437
+ # version. If you don't specify either a `VersionStage` or `VersionId`
1438
+ # then the default is to perform the operation on the version with the
1439
+ # `VersionStage` value of `AWSCURRENT`.
1402
1440
  #
1403
1441
  # This value is typically a [UUID-type][1] value with 32 hexadecimal
1404
1442
  # digits.
@@ -1412,10 +1450,11 @@ module Aws::SecretsManager
1412
1450
  # label attached to the version.
1413
1451
  #
1414
1452
  # Staging labels are used to keep track of different versions during the
1415
- # rotation process. If you use this parameter then don't specify
1416
- # `VersionId`. If you don't specify either a `VersionStage` or
1417
- # `VersionId`, then the default is to perform the operation on the
1418
- # version with the `VersionStage` value of `AWSCURRENT`.
1453
+ # rotation process. If you specify both this parameter and `VersionId`,
1454
+ # the two parameters must refer to the same secret version . If you
1455
+ # don't specify either a `VersionStage` or `VersionId`, then the
1456
+ # default is to perform the operation on the version with the
1457
+ # `VersionStage` value of `AWSCURRENT`.
1419
1458
  #
1420
1459
  # @return [Types::GetSecretValueResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1421
1460
  #
@@ -1738,7 +1777,7 @@ module Aws::SecretsManager
1738
1777
  # next_token: "NextTokenType",
1739
1778
  # filters: [
1740
1779
  # {
1741
- # key: "description", # accepts description, name, tag-key, tag-value, all
1780
+ # key: "description", # accepts description, name, tag-key, tag-value, primary-region, all
1742
1781
  # values: ["FilterValueStringType"],
1743
1782
  # },
1744
1783
  # ],
@@ -1767,6 +1806,7 @@ module Aws::SecretsManager
1767
1806
  # resp.secret_list[0].secret_versions_to_stages["SecretVersionIdType"][0] #=> String
1768
1807
  # resp.secret_list[0].owning_service #=> String
1769
1808
  # resp.secret_list[0].created_date #=> Time
1809
+ # resp.secret_list[0].primary_region #=> String
1770
1810
  # resp.next_token #=> String
1771
1811
  #
1772
1812
  # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/ListSecrets AWS API Documentation
@@ -1803,8 +1843,8 @@ module Aws::SecretsManager
1803
1843
  # * To retrieve the resource policy attached to a secret, use
1804
1844
  # GetResourcePolicy.
1805
1845
  #
1806
- # * To delete the resource-based policy that's attached to a secret,
1807
- # use DeleteResourcePolicy.
1846
+ # * To delete the resource-based policy attached to a secret, use
1847
+ # DeleteResourcePolicy.
1808
1848
  #
1809
1849
  # * To list all of the currently available secrets, use ListSecrets.
1810
1850
  #
@@ -1814,8 +1854,9 @@ module Aws::SecretsManager
1814
1854
  # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
1815
1855
  #
1816
1856
  # @option params [required, String] :secret_id
1817
- # Specifies the secret that you want to attach the resource-based policy
1818
- # to. You can specify either the ARN or the friendly name of the secret.
1857
+ # Specifies the secret that you want to attach the resource-based
1858
+ # policy. You can specify either the ARN or the friendly name of the
1859
+ # secret.
1819
1860
  #
1820
1861
  # <note markdown="1"> If you specify an ARN, we generally recommend that you specify a
1821
1862
  # complete ARN. You can specify a partial ARN too—for example, if you
@@ -1839,8 +1880,8 @@ module Aws::SecretsManager
1839
1880
  # </note>
1840
1881
  #
1841
1882
  # @option params [required, String] :resource_policy
1842
- # A JSON-formatted string that's constructed according to the grammar
1843
- # and syntax for an AWS resource-based policy. The policy in the string
1883
+ # A JSON-formatted string constructed according to the grammar and
1884
+ # syntax for an AWS resource-based policy. The policy in the string
1844
1885
  # identifies who can access or manage this secret and its versions. For
1845
1886
  # information on how to format a JSON parameter for the various command
1846
1887
  # line tool environments, see [Using JSON for Parameters][1] in the *AWS
@@ -1851,8 +1892,9 @@ module Aws::SecretsManager
1851
1892
  # [1]: http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json
1852
1893
  #
1853
1894
  # @option params [Boolean] :block_public_policy
1854
- # Makes an optional API call to Zelkova to validate the Resource Policy
1855
- # to prevent broad access to your secret.
1895
+ # (Optional) If you set the parameter, `BlockPublicPolicy` to true, then
1896
+ # you block resource-based policies that allow broad access to the
1897
+ # secret.
1856
1898
  #
1857
1899
  # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1858
1900
  #
@@ -1913,13 +1955,12 @@ module Aws::SecretsManager
1913
1955
  # Secrets Manager automatically attaches the staging label
1914
1956
  # `AWSCURRENT` to the new version.
1915
1957
  #
1916
- # * If another version of this secret already exists, then this
1917
- # operation does not automatically move any staging labels other than
1918
- # those that you explicitly specify in the `VersionStages` parameter.
1958
+ # * If you do not specify a value for VersionStages then Secrets Manager
1959
+ # automatically moves the staging label `AWSCURRENT` to this new
1960
+ # version.
1919
1961
  #
1920
1962
  # * If this operation moves the staging label `AWSCURRENT` from another
1921
- # version to this version (because you included it in the
1922
- # `StagingLabels` parameter) then Secrets Manager also automatically
1963
+ # version to this version, then Secrets Manager also automatically
1923
1964
  # moves the staging label `AWSPREVIOUS` to the version that
1924
1965
  # `AWSCURRENT` was removed from.
1925
1966
  #
@@ -2158,6 +2199,95 @@ module Aws::SecretsManager
2158
2199
  req.send_request(options)
2159
2200
  end
2160
2201
 
2202
+ # Remove regions from replication.
2203
+ #
2204
+ # @option params [required, String] :secret_id
2205
+ # Remove a secret by `SecretId` from replica Regions.
2206
+ #
2207
+ # @option params [required, Array<String>] :remove_replica_regions
2208
+ # Remove replication from specific Regions.
2209
+ #
2210
+ # @return [Types::RemoveRegionsFromReplicationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2211
+ #
2212
+ # * {Types::RemoveRegionsFromReplicationResponse#arn #arn} => String
2213
+ # * {Types::RemoveRegionsFromReplicationResponse#replication_status #replication_status} => Array&lt;Types::ReplicationStatusType&gt;
2214
+ #
2215
+ # @example Request syntax with placeholder values
2216
+ #
2217
+ # resp = client.remove_regions_from_replication({
2218
+ # secret_id: "SecretIdType", # required
2219
+ # remove_replica_regions: ["RegionType"], # required
2220
+ # })
2221
+ #
2222
+ # @example Response structure
2223
+ #
2224
+ # resp.arn #=> String
2225
+ # resp.replication_status #=> Array
2226
+ # resp.replication_status[0].region #=> String
2227
+ # resp.replication_status[0].kms_key_id #=> String
2228
+ # resp.replication_status[0].status #=> String, one of "InSync", "Failed", "InProgress"
2229
+ # resp.replication_status[0].status_message #=> String
2230
+ # resp.replication_status[0].last_accessed_date #=> Time
2231
+ #
2232
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/RemoveRegionsFromReplication AWS API Documentation
2233
+ #
2234
+ # @overload remove_regions_from_replication(params = {})
2235
+ # @param [Hash] params ({})
2236
+ def remove_regions_from_replication(params = {}, options = {})
2237
+ req = build_request(:remove_regions_from_replication, params)
2238
+ req.send_request(options)
2239
+ end
2240
+
2241
+ # Converts an existing secret to a multi-Region secret and begins
2242
+ # replication the secret to a list of new regions.
2243
+ #
2244
+ # @option params [required, String] :secret_id
2245
+ # Use the `Secret Id` to replicate a secret to regions.
2246
+ #
2247
+ # @option params [required, Array<Types::ReplicaRegionType>] :add_replica_regions
2248
+ # Add Regions to replicate the secret.
2249
+ #
2250
+ # @option params [Boolean] :force_overwrite_replica_secret
2251
+ # (Optional) If set, Secrets Manager replication overwrites a secret
2252
+ # with the same name in the destination region.
2253
+ #
2254
+ # @return [Types::ReplicateSecretToRegionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2255
+ #
2256
+ # * {Types::ReplicateSecretToRegionsResponse#arn #arn} => String
2257
+ # * {Types::ReplicateSecretToRegionsResponse#replication_status #replication_status} => Array&lt;Types::ReplicationStatusType&gt;
2258
+ #
2259
+ # @example Request syntax with placeholder values
2260
+ #
2261
+ # resp = client.replicate_secret_to_regions({
2262
+ # secret_id: "SecretIdType", # required
2263
+ # add_replica_regions: [ # required
2264
+ # {
2265
+ # region: "RegionType",
2266
+ # kms_key_id: "KmsKeyIdType",
2267
+ # },
2268
+ # ],
2269
+ # force_overwrite_replica_secret: false,
2270
+ # })
2271
+ #
2272
+ # @example Response structure
2273
+ #
2274
+ # resp.arn #=> String
2275
+ # resp.replication_status #=> Array
2276
+ # resp.replication_status[0].region #=> String
2277
+ # resp.replication_status[0].kms_key_id #=> String
2278
+ # resp.replication_status[0].status #=> String, one of "InSync", "Failed", "InProgress"
2279
+ # resp.replication_status[0].status_message #=> String
2280
+ # resp.replication_status[0].last_accessed_date #=> Time
2281
+ #
2282
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/ReplicateSecretToRegions AWS API Documentation
2283
+ #
2284
+ # @overload replicate_secret_to_regions(params = {})
2285
+ # @param [Hash] params ({})
2286
+ def replicate_secret_to_regions(params = {}, options = {})
2287
+ req = build_request(:replicate_secret_to_regions, params)
2288
+ req.send_request(options)
2289
+ end
2290
+
2161
2291
  # Cancels the scheduled deletion of a secret by removing the
2162
2292
  # `DeletedDate` time stamp. This makes the secret accessible to query
2163
2293
  # once again.
@@ -2400,6 +2530,36 @@ module Aws::SecretsManager
2400
2530
  req.send_request(options)
2401
2531
  end
2402
2532
 
2533
+ # Removes the secret from replication and promotes the secret to a
2534
+ # regional secret in the replica Region.
2535
+ #
2536
+ # @option params [required, String] :secret_id
2537
+ # Response to `StopReplicationToReplica` of a secret, based on the
2538
+ # `SecretId`.
2539
+ #
2540
+ # @return [Types::StopReplicationToReplicaResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2541
+ #
2542
+ # * {Types::StopReplicationToReplicaResponse#arn #arn} => String
2543
+ #
2544
+ # @example Request syntax with placeholder values
2545
+ #
2546
+ # resp = client.stop_replication_to_replica({
2547
+ # secret_id: "SecretIdType", # required
2548
+ # })
2549
+ #
2550
+ # @example Response structure
2551
+ #
2552
+ # resp.arn #=> String
2553
+ #
2554
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/StopReplicationToReplica AWS API Documentation
2555
+ #
2556
+ # @overload stop_replication_to_replica(params = {})
2557
+ # @param [Hash] params ({})
2558
+ def stop_replication_to_replica(params = {}, options = {})
2559
+ req = build_request(:stop_replication_to_replica, params)
2560
+ req.send_request(options)
2561
+ end
2562
+
2403
2563
  # Attaches one or more tags, each consisting of a key name and a value,
2404
2564
  # to the specified secret. Tags are part of the secret's overall
2405
2565
  # metadata, and are not associated with any specific version of the
@@ -2481,7 +2641,7 @@ module Aws::SecretsManager
2481
2641
  # information on how to format a JSON parameter for the various command
2482
2642
  # line tool environments, see [Using JSON for Parameters][1] in the *AWS
2483
2643
  # CLI User Guide*. For the AWS CLI, you can also use the syntax: `--Tags
2484
- # Key="Key1",Value="Value1",Key="Key2",Value="Value2"[,…]`
2644
+ # Key="Key1",Value="Value1" Key="Key2",Value="Value2"[,…]`
2485
2645
  #
2486
2646
  #
2487
2647
  #
@@ -3088,16 +3248,38 @@ module Aws::SecretsManager
3088
3248
  req.send_request(options)
3089
3249
  end
3090
3250
 
3091
- # Validates the JSON text of the resource-based policy document attached
3092
- # to the specified secret. The JSON request string input and response
3093
- # output displays formatted code with white space and line breaks for
3094
- # better readability. Submit your input as a single line JSON string. A
3095
- # resource-based policy is optional.
3251
+ # Validates that the resource policy does not grant a wide range of IAM
3252
+ # principals access to your secret. The JSON request string input and
3253
+ # response output displays formatted code with white space and line
3254
+ # breaks for better readability. Submit your input as a single line JSON
3255
+ # string. A resource-based policy is optional for secrets.
3256
+ #
3257
+ # The API performs three checks when validating the secret:
3258
+ #
3259
+ # * Sends a call to [Zelkova][1], an automated reasoning engine, to
3260
+ # ensure your Resource Policy does not allow broad access to your
3261
+ # secret.
3262
+ #
3263
+ # * Checks for correct syntax in a policy.
3264
+ #
3265
+ # * Verifies the policy does not lock out a caller.
3266
+ #
3267
+ # **Minimum Permissions**
3268
+ #
3269
+ # You must have the permissions required to access the following APIs:
3270
+ #
3271
+ # * `secretsmanager:PutResourcePolicy`
3272
+ #
3273
+ # * `secretsmanager:ValidateResourcePolicy`
3274
+ #
3275
+ #
3276
+ #
3277
+ # [1]: https://aws.amazon.com/blogs/security/protect-sensitive-data-in-the-cloud-with-automated-reasoning-zelkova/
3096
3278
  #
3097
3279
  # @option params [String] :secret_id
3098
- # The identifier for the secret that you want to validate a resource
3099
- # policy. You can specify either the Amazon Resource Name (ARN) or the
3100
- # friendly name of the secret.
3280
+ # (Optional) The identifier of the secret with the resource-based policy
3281
+ # you want to validate. You can specify either the Amazon Resource Name
3282
+ # (ARN) or the friendly name of the secret.
3101
3283
  #
3102
3284
  # <note markdown="1"> If you specify an ARN, we generally recommend that you specify a
3103
3285
  # complete ARN. You can specify a partial ARN too—for example, if you
@@ -3121,7 +3303,16 @@ module Aws::SecretsManager
3121
3303
  # </note>
3122
3304
  #
3123
3305
  # @option params [required, String] :resource_policy
3124
- # Identifies the Resource Policy attached to the secret.
3306
+ # A JSON-formatted string constructed according to the grammar and
3307
+ # syntax for an AWS resource-based policy. The policy in the string
3308
+ # identifies who can access or manage this secret and its versions. For
3309
+ # information on how to format a JSON parameter for the various command
3310
+ # line tool environments, see [Using JSON for Parameters][1] in the *AWS
3311
+ # CLI User Guide*.publi
3312
+ #
3313
+ #
3314
+ #
3315
+ # [1]: http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json
3125
3316
  #
3126
3317
  # @return [Types::ValidateResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3127
3318
  #
@@ -3181,7 +3372,7 @@ module Aws::SecretsManager
3181
3372
  params: params,
3182
3373
  config: config)
3183
3374
  context[:gem_name] = 'aws-sdk-secretsmanager'
3184
- context[:gem_version] = '1.43.0'
3375
+ context[:gem_version] = '1.47.0'
3185
3376
  Seahorse::Client::Request.new(handlers, context)
3186
3377
  end
3187
3378