aws-sdk-iam 1.123.0 → 1.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iam/client.rb +435 -242
- data/lib/aws-sdk-iam/client_api.rb +21 -3
- data/lib/aws-sdk-iam/current_user.rb +4 -1
- data/lib/aws-sdk-iam/login_profile.rb +2 -1
- data/lib/aws-sdk-iam/policy.rb +8 -2
- data/lib/aws-sdk-iam/policy_version.rb +9 -5
- data/lib/aws-sdk-iam/types.rb +806 -206
- data/lib/aws-sdk-iam/user.rb +4 -1
- data/lib/aws-sdk-iam.rb +1 -1
- data/sig/access_key.rbs +1 -1
- data/sig/access_key_pair.rbs +1 -1
- data/sig/client.rbs +12 -6
- data/sig/signing_certificate.rbs +1 -1
- data/sig/types.rbs +23 -12
- metadata +1 -1
@@ -410,6 +410,7 @@ module Aws::IAM
|
|
410
410
|
accessKeySecretType = Shapes::StringShape.new(name: 'accessKeySecretType')
|
411
411
|
accountAliasListType = Shapes::ListShape.new(name: 'accountAliasListType')
|
412
412
|
accountAliasType = Shapes::StringShape.new(name: 'accountAliasType')
|
413
|
+
allUsers = Shapes::BooleanShape.new(name: 'allUsers')
|
413
414
|
arnType = Shapes::StringShape.new(name: 'arnType')
|
414
415
|
assertionEncryptionModeType = Shapes::StringShape.new(name: 'assertionEncryptionModeType')
|
415
416
|
assignmentStatusType = Shapes::StringShape.new(name: 'assignmentStatusType')
|
@@ -424,6 +425,7 @@ module Aws::IAM
|
|
424
425
|
certificateListType = Shapes::ListShape.new(name: 'certificateListType')
|
425
426
|
clientIDListType = Shapes::ListShape.new(name: 'clientIDListType')
|
426
427
|
clientIDType = Shapes::StringShape.new(name: 'clientIDType')
|
428
|
+
credentialAgeDays = Shapes::IntegerShape.new(name: 'credentialAgeDays')
|
427
429
|
credentialReportExpiredExceptionMessage = Shapes::StringShape.new(name: 'credentialReportExpiredExceptionMessage')
|
428
430
|
credentialReportNotPresentExceptionMessage = Shapes::StringShape.new(name: 'credentialReportNotPresentExceptionMessage')
|
429
431
|
credentialReportNotReadyExceptionMessage = Shapes::StringShape.new(name: 'credentialReportNotReadyExceptionMessage')
|
@@ -505,6 +507,8 @@ module Aws::IAM
|
|
505
507
|
serialNumberType = Shapes::StringShape.new(name: 'serialNumberType')
|
506
508
|
serverCertificateMetadataListType = Shapes::ListShape.new(name: 'serverCertificateMetadataListType')
|
507
509
|
serverCertificateNameType = Shapes::StringShape.new(name: 'serverCertificateNameType')
|
510
|
+
serviceCredentialAlias = Shapes::StringShape.new(name: 'serviceCredentialAlias')
|
511
|
+
serviceCredentialSecret = Shapes::StringShape.new(name: 'serviceCredentialSecret')
|
508
512
|
serviceFailureExceptionMessage = Shapes::StringShape.new(name: 'serviceFailureExceptionMessage')
|
509
513
|
serviceName = Shapes::StringShape.new(name: 'serviceName')
|
510
514
|
serviceNameType = Shapes::StringShape.new(name: 'serviceNameType')
|
@@ -716,6 +720,7 @@ module Aws::IAM
|
|
716
720
|
|
717
721
|
CreateServiceSpecificCredentialRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: userNameType, required: true, location_name: "UserName"))
|
718
722
|
CreateServiceSpecificCredentialRequest.add_member(:service_name, Shapes::ShapeRef.new(shape: serviceName, required: true, location_name: "ServiceName"))
|
723
|
+
CreateServiceSpecificCredentialRequest.add_member(:credential_age_days, Shapes::ShapeRef.new(shape: credentialAgeDays, location_name: "CredentialAgeDays"))
|
719
724
|
CreateServiceSpecificCredentialRequest.struct_class = Types::CreateServiceSpecificCredentialRequest
|
720
725
|
|
721
726
|
CreateServiceSpecificCredentialResponse.add_member(:service_specific_credential, Shapes::ShapeRef.new(shape: ServiceSpecificCredential, location_name: "ServiceSpecificCredential"))
|
@@ -1494,9 +1499,14 @@ module Aws::IAM
|
|
1494
1499
|
|
1495
1500
|
ListServiceSpecificCredentialsRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: userNameType, location_name: "UserName"))
|
1496
1501
|
ListServiceSpecificCredentialsRequest.add_member(:service_name, Shapes::ShapeRef.new(shape: serviceName, location_name: "ServiceName"))
|
1502
|
+
ListServiceSpecificCredentialsRequest.add_member(:all_users, Shapes::ShapeRef.new(shape: allUsers, location_name: "AllUsers"))
|
1503
|
+
ListServiceSpecificCredentialsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: markerType, location_name: "Marker"))
|
1504
|
+
ListServiceSpecificCredentialsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: maxItemsType, location_name: "MaxItems"))
|
1497
1505
|
ListServiceSpecificCredentialsRequest.struct_class = Types::ListServiceSpecificCredentialsRequest
|
1498
1506
|
|
1499
1507
|
ListServiceSpecificCredentialsResponse.add_member(:service_specific_credentials, Shapes::ShapeRef.new(shape: ServiceSpecificCredentialsListType, location_name: "ServiceSpecificCredentials"))
|
1508
|
+
ListServiceSpecificCredentialsResponse.add_member(:marker, Shapes::ShapeRef.new(shape: responseMarkerType, location_name: "Marker"))
|
1509
|
+
ListServiceSpecificCredentialsResponse.add_member(:is_truncated, Shapes::ShapeRef.new(shape: booleanType, location_name: "IsTruncated"))
|
1500
1510
|
ListServiceSpecificCredentialsResponse.struct_class = Types::ListServiceSpecificCredentialsResponse
|
1501
1511
|
|
1502
1512
|
ListSigningCertificatesRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: existingUserNameType, location_name: "UserName"))
|
@@ -1835,9 +1845,12 @@ module Aws::IAM
|
|
1835
1845
|
ServiceNotSupportedException.struct_class = Types::ServiceNotSupportedException
|
1836
1846
|
|
1837
1847
|
ServiceSpecificCredential.add_member(:create_date, Shapes::ShapeRef.new(shape: dateType, required: true, location_name: "CreateDate"))
|
1848
|
+
ServiceSpecificCredential.add_member(:expiration_date, Shapes::ShapeRef.new(shape: dateType, location_name: "ExpirationDate"))
|
1838
1849
|
ServiceSpecificCredential.add_member(:service_name, Shapes::ShapeRef.new(shape: serviceName, required: true, location_name: "ServiceName"))
|
1839
|
-
ServiceSpecificCredential.add_member(:service_user_name, Shapes::ShapeRef.new(shape: serviceUserName,
|
1840
|
-
ServiceSpecificCredential.add_member(:service_password, Shapes::ShapeRef.new(shape: servicePassword,
|
1850
|
+
ServiceSpecificCredential.add_member(:service_user_name, Shapes::ShapeRef.new(shape: serviceUserName, location_name: "ServiceUserName"))
|
1851
|
+
ServiceSpecificCredential.add_member(:service_password, Shapes::ShapeRef.new(shape: servicePassword, location_name: "ServicePassword"))
|
1852
|
+
ServiceSpecificCredential.add_member(:service_credential_alias, Shapes::ShapeRef.new(shape: serviceCredentialAlias, location_name: "ServiceCredentialAlias"))
|
1853
|
+
ServiceSpecificCredential.add_member(:service_credential_secret, Shapes::ShapeRef.new(shape: serviceCredentialSecret, location_name: "ServiceCredentialSecret"))
|
1841
1854
|
ServiceSpecificCredential.add_member(:service_specific_credential_id, Shapes::ShapeRef.new(shape: serviceSpecificCredentialId, required: true, location_name: "ServiceSpecificCredentialId"))
|
1842
1855
|
ServiceSpecificCredential.add_member(:user_name, Shapes::ShapeRef.new(shape: userNameType, required: true, location_name: "UserName"))
|
1843
1856
|
ServiceSpecificCredential.add_member(:status, Shapes::ShapeRef.new(shape: statusType, required: true, location_name: "Status"))
|
@@ -1845,8 +1858,10 @@ module Aws::IAM
|
|
1845
1858
|
|
1846
1859
|
ServiceSpecificCredentialMetadata.add_member(:user_name, Shapes::ShapeRef.new(shape: userNameType, required: true, location_name: "UserName"))
|
1847
1860
|
ServiceSpecificCredentialMetadata.add_member(:status, Shapes::ShapeRef.new(shape: statusType, required: true, location_name: "Status"))
|
1848
|
-
ServiceSpecificCredentialMetadata.add_member(:service_user_name, Shapes::ShapeRef.new(shape: serviceUserName,
|
1861
|
+
ServiceSpecificCredentialMetadata.add_member(:service_user_name, Shapes::ShapeRef.new(shape: serviceUserName, location_name: "ServiceUserName"))
|
1862
|
+
ServiceSpecificCredentialMetadata.add_member(:service_credential_alias, Shapes::ShapeRef.new(shape: serviceCredentialAlias, location_name: "ServiceCredentialAlias"))
|
1849
1863
|
ServiceSpecificCredentialMetadata.add_member(:create_date, Shapes::ShapeRef.new(shape: dateType, required: true, location_name: "CreateDate"))
|
1864
|
+
ServiceSpecificCredentialMetadata.add_member(:expiration_date, Shapes::ShapeRef.new(shape: dateType, location_name: "ExpirationDate"))
|
1850
1865
|
ServiceSpecificCredentialMetadata.add_member(:service_specific_credential_id, Shapes::ShapeRef.new(shape: serviceSpecificCredentialId, required: true, location_name: "ServiceSpecificCredentialId"))
|
1851
1866
|
ServiceSpecificCredentialMetadata.add_member(:service_name, Shapes::ShapeRef.new(shape: serviceName, required: true, location_name: "ServiceName"))
|
1852
1867
|
ServiceSpecificCredentialMetadata.struct_class = Types::ServiceSpecificCredentialMetadata
|
@@ -4109,6 +4124,7 @@ module Aws::IAM
|
|
4109
4124
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
4110
4125
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
4111
4126
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
4127
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
4112
4128
|
end)
|
4113
4129
|
|
4114
4130
|
api.add_operation(:update_account_password_policy, Seahorse::Model::Operation.new.tap do |o|
|
@@ -4213,6 +4229,7 @@ module Aws::IAM
|
|
4213
4229
|
o.input = Shapes::ShapeRef.new(shape: UpdateSSHPublicKeyRequest)
|
4214
4230
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
4215
4231
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
4232
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
4216
4233
|
end)
|
4217
4234
|
|
4218
4235
|
api.add_operation(:update_server_certificate, Seahorse::Model::Operation.new.tap do |o|
|
@@ -4245,6 +4262,7 @@ module Aws::IAM
|
|
4245
4262
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
4246
4263
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
4247
4264
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
4265
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
4248
4266
|
end)
|
4249
4267
|
|
4250
4268
|
api.add_operation(:update_user, Seahorse::Model::Operation.new.tap do |o|
|
@@ -98,12 +98,15 @@ module Aws::IAM
|
|
98
98
|
# past, then this field contains the date and time the most recent
|
99
99
|
# password was used.
|
100
100
|
#
|
101
|
-
# This value is returned only in the GetUser and ListUsers
|
101
|
+
# This value is returned only in the [GetUser][3] and [ListUsers][4]
|
102
|
+
# operations.
|
102
103
|
#
|
103
104
|
#
|
104
105
|
#
|
105
106
|
# [1]: http://www.iso.org/iso/iso8601
|
106
107
|
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html
|
108
|
+
# [3]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetUser.html
|
109
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListUsers.html
|
107
110
|
# @return [Time]
|
108
111
|
def password_last_used
|
109
112
|
data[:password_last_used]
|
@@ -265,11 +265,12 @@ module Aws::IAM
|
|
265
265
|
#
|
266
266
|
# However, the format can be further restricted by the account
|
267
267
|
# administrator by setting a password policy on the Amazon Web Services
|
268
|
-
# account. For more information, see UpdateAccountPasswordPolicy.
|
268
|
+
# account. For more information, see [UpdateAccountPasswordPolicy][2].
|
269
269
|
#
|
270
270
|
#
|
271
271
|
#
|
272
272
|
# [1]: http://wikipedia.org/wiki/regex
|
273
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAccountPasswordPolicy.html
|
273
274
|
# @option options [Boolean] :password_reset_required
|
274
275
|
# Allows this new password to be used only once by requiring the
|
275
276
|
# specified IAM user to set a new password on next sign-in.
|
data/lib/aws-sdk-iam/policy.rb
CHANGED
@@ -103,8 +103,14 @@ module Aws::IAM
|
|
103
103
|
|
104
104
|
# A friendly description of the policy.
|
105
105
|
#
|
106
|
-
# This element is included in the response to the GetPolicy
|
107
|
-
# It is not included in the response to the ListPolicies
|
106
|
+
# This element is included in the response to the [GetPolicy][1]
|
107
|
+
# operation. It is not included in the response to the [ListPolicies][2]
|
108
|
+
# operation.
|
109
|
+
#
|
110
|
+
#
|
111
|
+
#
|
112
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetPolicy.html
|
113
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListPolicies.html
|
108
114
|
# @return [String]
|
109
115
|
def description
|
110
116
|
data[:description]
|
@@ -45,12 +45,12 @@ module Aws::IAM
|
|
45
45
|
# The policy document.
|
46
46
|
#
|
47
47
|
# The policy document is returned in the response to the
|
48
|
-
# GetPolicyVersion and GetAccountAuthorizationDetails
|
49
|
-
# not returned in the response to the
|
50
|
-
# ListPolicyVersions operations.
|
48
|
+
# [GetPolicyVersion][1] and [GetAccountAuthorizationDetails][2]
|
49
|
+
# operations. It is not returned in the response to the
|
50
|
+
# [CreatePolicyVersion][3] or [ListPolicyVersions][4] operations.
|
51
51
|
#
|
52
52
|
# The policy document returned in this structure is URL-encoded
|
53
|
-
# compliant with [RFC 3986][
|
53
|
+
# compliant with [RFC 3986][5]. You can use a URL decoding method to
|
54
54
|
# convert the policy back to plain JSON text. For example, if you use
|
55
55
|
# Java, you can use the `decode` method of the `java.net.URLDecoder`
|
56
56
|
# utility class in the Java SDK. Other languages and SDKs provide
|
@@ -58,7 +58,11 @@ module Aws::IAM
|
|
58
58
|
#
|
59
59
|
#
|
60
60
|
#
|
61
|
-
# [1]: https://
|
61
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetPolicyVersion.html
|
62
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetAccountAuthorizationDetails.html
|
63
|
+
# [3]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicyVersion.html
|
64
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListPolicyVersions.html
|
65
|
+
# [5]: https://tools.ietf.org/html/rfc3986
|
62
66
|
# @return [String]
|
63
67
|
def document
|
64
68
|
data[:document]
|