Skip to content

Commit 3917951

Browse files
Updated IAM ServiceSpecificCredential support to include expiration, API Key output format instead of username and password for services that will support API keys, and the ability to list credentials for all users in the account for a given service configuration.
1 parent 7c7ed2d commit 3917951

File tree

196 files changed

+2448
-1560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+2448
-1560
lines changed

docgenerator/AWSSDKDocSamples/IdentityManagement.GeneratedSamples.extra.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@
10361036
<value>
10371037
<example>
10381038
<para>
1039-
The following command adds a policy named AllPerms to the IAM group named Admins.
1039+
The following command adds a policy named IAMReadAccess to the IAM group named PowerUsers.
10401040
</para>
10411041
<code
10421042
title="To add a policy to a group"

docgenerator/AWSSDKDocSamples/IdentityManagement/IdentityManagement.GeneratedSamples.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,9 @@ public void IdentityManagementServicePutGroupPolicy()
845845
var client = new AmazonIdentityManagementServiceClient();
846846
var response = client.PutGroupPolicy(new PutGroupPolicyRequest
847847
{
848-
GroupName = "Admins",
849-
PolicyDocument = "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"*\",\"Resource\":\"*\"}}",
850-
PolicyName = "AllPerms"
848+
GroupName = "PowerUsers",
849+
PolicyDocument = "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":[\"iam:Get*\",\"iam:List*\",\"iam:Generate*\"],\"Resource\":\"*\"}}",
850+
PolicyName = "IAMReadAccess"
851851
});
852852

853853

generator/ServiceModels/iam/iam-2010-05-08.api.json

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,8 @@
22982298
"errors":[
22992299
{"shape":"NoSuchEntityException"},
23002300
{"shape":"LimitExceededException"},
2301-
{"shape":"ServiceFailureException"}
2301+
{"shape":"ServiceFailureException"},
2302+
{"shape":"InvalidInputException"}
23022303
]
23032304
},
23042305
"UpdateAccountPasswordPolicy":{
@@ -2432,7 +2433,8 @@
24322433
},
24332434
"input":{"shape":"UpdateSSHPublicKeyRequest"},
24342435
"errors":[
2435-
{"shape":"NoSuchEntityException"}
2436+
{"shape":"NoSuchEntityException"},
2437+
{"shape":"InvalidInputException"}
24362438
]
24372439
},
24382440
"UpdateServerCertificate":{
@@ -2470,7 +2472,8 @@
24702472
"errors":[
24712473
{"shape":"NoSuchEntityException"},
24722474
{"shape":"LimitExceededException"},
2473-
{"shape":"ServiceFailureException"}
2475+
{"shape":"ServiceFailureException"},
2476+
{"shape":"InvalidInputException"}
24742477
]
24752478
},
24762479
"UpdateUser":{
@@ -2996,7 +2999,8 @@
29962999
],
29973000
"members":{
29983001
"UserName":{"shape":"userNameType"},
2999-
"ServiceName":{"shape":"serviceName"}
3002+
"ServiceName":{"shape":"serviceName"},
3003+
"CredentialAgeDays":{"shape":"credentialAgeDays"}
30003004
}
30013005
},
30023006
"CreateServiceSpecificCredentialResponse":{
@@ -4643,13 +4647,18 @@
46434647
"type":"structure",
46444648
"members":{
46454649
"UserName":{"shape":"userNameType"},
4646-
"ServiceName":{"shape":"serviceName"}
4650+
"ServiceName":{"shape":"serviceName"},
4651+
"AllUsers":{"shape":"allUsers"},
4652+
"Marker":{"shape":"markerType"},
4653+
"MaxItems":{"shape":"maxItemsType"}
46474654
}
46484655
},
46494656
"ListServiceSpecificCredentialsResponse":{
46504657
"type":"structure",
46514658
"members":{
4652-
"ServiceSpecificCredentials":{"shape":"ServiceSpecificCredentialsListType"}
4659+
"ServiceSpecificCredentials":{"shape":"ServiceSpecificCredentialsListType"},
4660+
"Marker":{"shape":"responseMarkerType"},
4661+
"IsTruncated":{"shape":"booleanType"}
46534662
}
46544663
},
46554664
"ListSigningCertificatesRequest":{
@@ -5439,17 +5448,18 @@
54395448
"required":[
54405449
"CreateDate",
54415450
"ServiceName",
5442-
"ServiceUserName",
5443-
"ServicePassword",
54445451
"ServiceSpecificCredentialId",
54455452
"UserName",
54465453
"Status"
54475454
],
54485455
"members":{
54495456
"CreateDate":{"shape":"dateType"},
5457+
"ExpirationDate":{"shape":"dateType"},
54505458
"ServiceName":{"shape":"serviceName"},
54515459
"ServiceUserName":{"shape":"serviceUserName"},
54525460
"ServicePassword":{"shape":"servicePassword"},
5461+
"ServiceCredentialAlias":{"shape":"serviceCredentialAlias"},
5462+
"ServiceCredentialSecret":{"shape":"serviceCredentialSecret"},
54535463
"ServiceSpecificCredentialId":{"shape":"serviceSpecificCredentialId"},
54545464
"UserName":{"shape":"userNameType"},
54555465
"Status":{"shape":"statusType"}
@@ -5460,7 +5470,6 @@
54605470
"required":[
54615471
"UserName",
54625472
"Status",
5463-
"ServiceUserName",
54645473
"CreateDate",
54655474
"ServiceSpecificCredentialId",
54665475
"ServiceName"
@@ -5469,7 +5478,9 @@
54695478
"UserName":{"shape":"userNameType"},
54705479
"Status":{"shape":"statusType"},
54715480
"ServiceUserName":{"shape":"serviceUserName"},
5481+
"ServiceCredentialAlias":{"shape":"serviceCredentialAlias"},
54725482
"CreateDate":{"shape":"dateType"},
5483+
"ExpirationDate":{"shape":"dateType"},
54735484
"ServiceSpecificCredentialId":{"shape":"serviceSpecificCredentialId"},
54745485
"ServiceName":{"shape":"serviceName"}
54755486
}
@@ -6100,6 +6111,10 @@
61006111
"min":3,
61016112
"pattern":"^[a-z0-9]([a-z0-9]|-(?!-)){1,61}[a-z0-9]$"
61026113
},
6114+
"allUsers":{
6115+
"type":"boolean",
6116+
"box":true
6117+
},
61036118
"arnType":{
61046119
"type":"string",
61056120
"max":2048,
@@ -6167,6 +6182,11 @@
61676182
"max":255,
61686183
"min":1
61696184
},
6185+
"credentialAgeDays":{
6186+
"type":"integer",
6187+
"max":36600,
6188+
"min":1
6189+
},
61706190
"credentialReportExpiredExceptionMessage":{"type":"string"},
61716191
"credentialReportNotPresentExceptionMessage":{"type":"string"},
61726192
"credentialReportNotReadyExceptionMessage":{"type":"string"},
@@ -6490,6 +6510,16 @@
64906510
"min":1,
64916511
"pattern":"[\\w+=,.@-]+"
64926512
},
6513+
"serviceCredentialAlias":{
6514+
"type":"string",
6515+
"max":200,
6516+
"min":0,
6517+
"pattern":"[\\w+=,.@-]+"
6518+
},
6519+
"serviceCredentialSecret":{
6520+
"type":"string",
6521+
"sensitive":true
6522+
},
64936523
"serviceFailureExceptionMessage":{"type":"string"},
64946524
"serviceName":{"type":"string"},
64956525
"serviceNameType":{"type":"string"},
@@ -6519,8 +6549,8 @@
65196549
"serviceUserName":{
65206550
"type":"string",
65216551
"max":200,
6522-
"min":17,
6523-
"pattern":"[\\w+=,.@-]+"
6552+
"min":0,
6553+
"pattern":"[\\w+=,.@-]*"
65246554
},
65256555
"sortKeyType":{
65266556
"type":"string",
@@ -6535,7 +6565,8 @@
65356565
"type":"string",
65366566
"enum":[
65376567
"Active",
6538-
"Inactive"
6568+
"Inactive",
6569+
"Expired"
65396570
]
65406571
},
65416572
"stringType":{"type":"string"},

0 commit comments

Comments
 (0)