aws-sdk-secretsmanager 1.26.0 → 1.27.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
  SHA1:
3
- metadata.gz: 395a8ec99af18aa2c83d23d546e6e48f03c10ed6
4
- data.tar.gz: 2ef175be40d12eaefdd82a37daddd4bbc2863c73
3
+ metadata.gz: 91ed6ff88810a51c756287c81b651845d3948ce9
4
+ data.tar.gz: a38f0f4a22f019bff5b51b346f1bb79892a25e27
5
5
  SHA512:
6
- metadata.gz: 82b1ea58762cd991fa4e17124365fdde648274dfd54cd55217ab628ac723d0603623e3dd9f0d2e0d5b388dd9f772dd34a88ba08449dce20ef30be9ff25f9110e
7
- data.tar.gz: 9c1fc6234eb446787e107fbe28a5ffc0ffc0e6c94e69e57ee89dee0614e3abf1c5cc6c746c197bf64d92af55ca567281d6eb2303f8c6c95581efc514604beb30
6
+ metadata.gz: 9da90af98593ccf2dcc0871023b6d6362f2b924706f07a74fb5ad7cbd2469e827e30f47351db784a3f0ebbdce62aa192035bf9d8a63d1c46442b68ec03358d06
7
+ data.tar.gz: f959289ebbd40abe6ee1d120d0f8660829b04d5a927a19271d96719b303f9d3cb5840c07a00f4dee53cb84fb0c113a40cf3232c4c343d81a4dbe83230d5bc355
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-secretsmanager/customizations'
42
42
  # @service
43
43
  module Aws::SecretsManager
44
44
 
45
- GEM_VERSION = '1.26.0'
45
+ GEM_VERSION = '1.27.0'
46
46
 
47
47
  end
@@ -2910,7 +2910,7 @@ module Aws::SecretsManager
2910
2910
  params: params,
2911
2911
  config: config)
2912
2912
  context[:gem_name] = 'aws-sdk-secretsmanager'
2913
- context[:gem_version] = '1.26.0'
2913
+ context[:gem_version] = '1.27.0'
2914
2914
  Seahorse::Client::Request.new(handlers, context)
2915
2915
  end
2916
2916
 
@@ -126,6 +126,9 @@ module Aws::SecretsManager
126
126
  CreateSecretResponse.add_member(:version_id, Shapes::ShapeRef.new(shape: SecretVersionIdType, location_name: "VersionId"))
127
127
  CreateSecretResponse.struct_class = Types::CreateSecretResponse
128
128
 
129
+ DecryptionFailure.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
130
+ DecryptionFailure.struct_class = Types::DecryptionFailure
131
+
129
132
  DeleteResourcePolicyRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
130
133
  DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
131
134
 
@@ -161,6 +164,9 @@ module Aws::SecretsManager
161
164
  DescribeSecretResponse.add_member(:version_ids_to_stages, Shapes::ShapeRef.new(shape: SecretVersionsToStagesMapType, location_name: "VersionIdsToStages"))
162
165
  DescribeSecretResponse.struct_class = Types::DescribeSecretResponse
163
166
 
167
+ EncryptionFailure.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
168
+ EncryptionFailure.struct_class = Types::EncryptionFailure
169
+
164
170
  GetRandomPasswordRequest.add_member(:password_length, Shapes::ShapeRef.new(shape: PasswordLengthType, location_name: "PasswordLength", metadata: {"box"=>true}))
165
171
  GetRandomPasswordRequest.add_member(:exclude_characters, Shapes::ShapeRef.new(shape: ExcludeCharactersType, location_name: "ExcludeCharacters"))
166
172
  GetRandomPasswordRequest.add_member(:exclude_numbers, Shapes::ShapeRef.new(shape: ExcludeNumbersType, location_name: "ExcludeNumbers", metadata: {"box"=>true}))
@@ -196,6 +202,21 @@ module Aws::SecretsManager
196
202
  GetSecretValueResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: CreatedDateType, location_name: "CreatedDate", metadata: {"box"=>true}))
197
203
  GetSecretValueResponse.struct_class = Types::GetSecretValueResponse
198
204
 
205
+ InternalServiceError.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
206
+ InternalServiceError.struct_class = Types::InternalServiceError
207
+
208
+ InvalidNextTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
209
+ InvalidNextTokenException.struct_class = Types::InvalidNextTokenException
210
+
211
+ InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
212
+ InvalidParameterException.struct_class = Types::InvalidParameterException
213
+
214
+ InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
215
+ InvalidRequestException.struct_class = Types::InvalidRequestException
216
+
217
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
218
+ LimitExceededException.struct_class = Types::LimitExceededException
219
+
199
220
  ListSecretVersionIdsRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
200
221
  ListSecretVersionIdsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsType, location_name: "MaxResults", metadata: {"box"=>true}))
201
222
  ListSecretVersionIdsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
@@ -216,6 +237,12 @@ module Aws::SecretsManager
216
237
  ListSecretsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenType, location_name: "NextToken"))
217
238
  ListSecretsResponse.struct_class = Types::ListSecretsResponse
218
239
 
240
+ MalformedPolicyDocumentException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
241
+ MalformedPolicyDocumentException.struct_class = Types::MalformedPolicyDocumentException
242
+
243
+ PreconditionNotMetException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
244
+ PreconditionNotMetException.struct_class = Types::PreconditionNotMetException
245
+
219
246
  PutResourcePolicyRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
220
247
  PutResourcePolicyRequest.add_member(:resource_policy, Shapes::ShapeRef.new(shape: NonEmptyResourcePolicyType, required: true, location_name: "ResourcePolicy"))
221
248
  PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
@@ -237,6 +264,12 @@ module Aws::SecretsManager
237
264
  PutSecretValueResponse.add_member(:version_stages, Shapes::ShapeRef.new(shape: SecretVersionStagesType, location_name: "VersionStages"))
238
265
  PutSecretValueResponse.struct_class = Types::PutSecretValueResponse
239
266
 
267
+ ResourceExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
268
+ ResourceExistsException.struct_class = Types::ResourceExistsException
269
+
270
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
271
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
272
+
240
273
  RestoreSecretRequest.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretIdType, required: true, location_name: "SecretId"))
241
274
  RestoreSecretRequest.struct_class = Types::RestoreSecretRequest
242
275
 
@@ -10,5 +10,181 @@ module Aws::SecretsManager
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class DecryptionFailure < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::SecretsManager::Types::DecryptionFailure] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
29
+ class EncryptionFailure < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::SecretsManager::Types::EncryptionFailure] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
45
+ class InternalServiceError < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::SecretsManager::Types::InternalServiceError] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def message
56
+ @message || @data[:message]
57
+ end
58
+
59
+ end
60
+
61
+ class InvalidNextTokenException < ServiceError
62
+
63
+ # @param [Seahorse::Client::RequestContext] context
64
+ # @param [String] message
65
+ # @param [Aws::SecretsManager::Types::InvalidNextTokenException] data
66
+ def initialize(context, message, data = Aws::EmptyStructure.new)
67
+ super(context, message, data)
68
+ end
69
+
70
+ # @return [String]
71
+ def message
72
+ @message || @data[:message]
73
+ end
74
+
75
+ end
76
+
77
+ class InvalidParameterException < ServiceError
78
+
79
+ # @param [Seahorse::Client::RequestContext] context
80
+ # @param [String] message
81
+ # @param [Aws::SecretsManager::Types::InvalidParameterException] data
82
+ def initialize(context, message, data = Aws::EmptyStructure.new)
83
+ super(context, message, data)
84
+ end
85
+
86
+ # @return [String]
87
+ def message
88
+ @message || @data[:message]
89
+ end
90
+
91
+ end
92
+
93
+ class InvalidRequestException < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::SecretsManager::Types::InvalidRequestException] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+
102
+ # @return [String]
103
+ def message
104
+ @message || @data[:message]
105
+ end
106
+
107
+ end
108
+
109
+ class LimitExceededException < ServiceError
110
+
111
+ # @param [Seahorse::Client::RequestContext] context
112
+ # @param [String] message
113
+ # @param [Aws::SecretsManager::Types::LimitExceededException] data
114
+ def initialize(context, message, data = Aws::EmptyStructure.new)
115
+ super(context, message, data)
116
+ end
117
+
118
+ # @return [String]
119
+ def message
120
+ @message || @data[:message]
121
+ end
122
+
123
+ end
124
+
125
+ class MalformedPolicyDocumentException < ServiceError
126
+
127
+ # @param [Seahorse::Client::RequestContext] context
128
+ # @param [String] message
129
+ # @param [Aws::SecretsManager::Types::MalformedPolicyDocumentException] data
130
+ def initialize(context, message, data = Aws::EmptyStructure.new)
131
+ super(context, message, data)
132
+ end
133
+
134
+ # @return [String]
135
+ def message
136
+ @message || @data[:message]
137
+ end
138
+
139
+ end
140
+
141
+ class PreconditionNotMetException < ServiceError
142
+
143
+ # @param [Seahorse::Client::RequestContext] context
144
+ # @param [String] message
145
+ # @param [Aws::SecretsManager::Types::PreconditionNotMetException] data
146
+ def initialize(context, message, data = Aws::EmptyStructure.new)
147
+ super(context, message, data)
148
+ end
149
+
150
+ # @return [String]
151
+ def message
152
+ @message || @data[:message]
153
+ end
154
+
155
+ end
156
+
157
+ class ResourceExistsException < ServiceError
158
+
159
+ # @param [Seahorse::Client::RequestContext] context
160
+ # @param [String] message
161
+ # @param [Aws::SecretsManager::Types::ResourceExistsException] data
162
+ def initialize(context, message, data = Aws::EmptyStructure.new)
163
+ super(context, message, data)
164
+ end
165
+
166
+ # @return [String]
167
+ def message
168
+ @message || @data[:message]
169
+ end
170
+
171
+ end
172
+
173
+ class ResourceNotFoundException < ServiceError
174
+
175
+ # @param [Seahorse::Client::RequestContext] context
176
+ # @param [String] message
177
+ # @param [Aws::SecretsManager::Types::ResourceNotFoundException] data
178
+ def initialize(context, message, data = Aws::EmptyStructure.new)
179
+ super(context, message, data)
180
+ end
181
+
182
+ # @return [String]
183
+ def message
184
+ @message || @data[:message]
185
+ end
186
+
187
+ end
188
+
13
189
  end
14
190
  end
@@ -315,6 +315,19 @@ module Aws::SecretsManager
315
315
  include Aws::Structure
316
316
  end
317
317
 
318
+ # Secrets Manager can't decrypt the protected secret text using the
319
+ # provided KMS key.
320
+ #
321
+ # @!attribute [rw] message
322
+ # @return [String]
323
+ #
324
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/DecryptionFailure AWS API Documentation
325
+ #
326
+ class DecryptionFailure < Struct.new(
327
+ :message)
328
+ include Aws::Structure
329
+ end
330
+
318
331
  # @note When making an API call, you may pass DeleteResourcePolicyRequest
319
332
  # data as a hash:
320
333
  #
@@ -598,6 +611,25 @@ module Aws::SecretsManager
598
611
  include Aws::Structure
599
612
  end
600
613
 
614
+ # Secrets Manager can't encrypt the protected secret text using the
615
+ # provided KMS key. Check that the customer master key (CMK) is
616
+ # available, enabled, and not in an invalid state. For more information,
617
+ # see [How Key State Affects Use of a Customer Master Key][1].
618
+ #
619
+ #
620
+ #
621
+ # [1]: http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
622
+ #
623
+ # @!attribute [rw] message
624
+ # @return [String]
625
+ #
626
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/EncryptionFailure AWS API Documentation
627
+ #
628
+ class EncryptionFailure < Struct.new(
629
+ :message)
630
+ include Aws::Structure
631
+ end
632
+
601
633
  # @note When making an API call, you may pass GetRandomPasswordRequest
602
634
  # data as a hash:
603
635
  #
@@ -896,6 +928,77 @@ module Aws::SecretsManager
896
928
  include Aws::Structure
897
929
  end
898
930
 
931
+ # An error occurred on the server side.
932
+ #
933
+ # @!attribute [rw] message
934
+ # @return [String]
935
+ #
936
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/InternalServiceError AWS API Documentation
937
+ #
938
+ class InternalServiceError < Struct.new(
939
+ :message)
940
+ include Aws::Structure
941
+ end
942
+
943
+ # You provided an invalid `NextToken` value.
944
+ #
945
+ # @!attribute [rw] message
946
+ # @return [String]
947
+ #
948
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/InvalidNextTokenException AWS API Documentation
949
+ #
950
+ class InvalidNextTokenException < Struct.new(
951
+ :message)
952
+ include Aws::Structure
953
+ end
954
+
955
+ # You provided an invalid value for a parameter.
956
+ #
957
+ # @!attribute [rw] message
958
+ # @return [String]
959
+ #
960
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/InvalidParameterException AWS API Documentation
961
+ #
962
+ class InvalidParameterException < Struct.new(
963
+ :message)
964
+ include Aws::Structure
965
+ end
966
+
967
+ # You provided a parameter value that is not valid for the current state
968
+ # of the resource.
969
+ #
970
+ # Possible causes:
971
+ #
972
+ # * You tried to perform the operation on a secret that's currently
973
+ # marked deleted.
974
+ #
975
+ # * You tried to enable rotation on a secret that doesn't already have
976
+ # a Lambda function ARN configured and you didn't include such an ARN
977
+ # as a parameter in this call.
978
+ #
979
+ # @!attribute [rw] message
980
+ # @return [String]
981
+ #
982
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/InvalidRequestException AWS API Documentation
983
+ #
984
+ class InvalidRequestException < Struct.new(
985
+ :message)
986
+ include Aws::Structure
987
+ end
988
+
989
+ # The request failed because it would exceed one of the Secrets Manager
990
+ # internal limits.
991
+ #
992
+ # @!attribute [rw] message
993
+ # @return [String]
994
+ #
995
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/LimitExceededException AWS API Documentation
996
+ #
997
+ class LimitExceededException < Struct.new(
998
+ :message)
999
+ include Aws::Structure
1000
+ end
1001
+
899
1002
  # @note When making an API call, you may pass ListSecretVersionIdsRequest
900
1003
  # data as a hash:
901
1004
  #
@@ -1070,6 +1173,31 @@ module Aws::SecretsManager
1070
1173
  include Aws::Structure
1071
1174
  end
1072
1175
 
1176
+ # The policy document that you provided isn't valid.
1177
+ #
1178
+ # @!attribute [rw] message
1179
+ # @return [String]
1180
+ #
1181
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/MalformedPolicyDocumentException AWS API Documentation
1182
+ #
1183
+ class MalformedPolicyDocumentException < Struct.new(
1184
+ :message)
1185
+ include Aws::Structure
1186
+ end
1187
+
1188
+ # The request failed because you did not complete all the prerequisite
1189
+ # steps.
1190
+ #
1191
+ # @!attribute [rw] message
1192
+ # @return [String]
1193
+ #
1194
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/PreconditionNotMetException AWS API Documentation
1195
+ #
1196
+ class PreconditionNotMetException < Struct.new(
1197
+ :message)
1198
+ include Aws::Structure
1199
+ end
1200
+
1073
1201
  # @note When making an API call, you may pass PutResourcePolicyRequest
1074
1202
  # data as a hash:
1075
1203
  #
@@ -1319,6 +1447,30 @@ module Aws::SecretsManager
1319
1447
  include Aws::Structure
1320
1448
  end
1321
1449
 
1450
+ # A resource with the ID you requested already exists.
1451
+ #
1452
+ # @!attribute [rw] message
1453
+ # @return [String]
1454
+ #
1455
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/ResourceExistsException AWS API Documentation
1456
+ #
1457
+ class ResourceExistsException < Struct.new(
1458
+ :message)
1459
+ include Aws::Structure
1460
+ end
1461
+
1462
+ # We can't find the resource that you asked for.
1463
+ #
1464
+ # @!attribute [rw] message
1465
+ # @return [String]
1466
+ #
1467
+ # @see http://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/ResourceNotFoundException AWS API Documentation
1468
+ #
1469
+ class ResourceNotFoundException < Struct.new(
1470
+ :message)
1471
+ include Aws::Structure
1472
+ end
1473
+
1322
1474
  # @note When making an API call, you may pass RestoreSecretRequest
1323
1475
  # data as a hash:
1324
1476
  #
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.26.0
4
+ version: 1.27.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: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-05-21 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.52.1
22
+ version: 3.53.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.52.1
32
+ version: 3.53.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement