Skip to content

Commit 0d1de6d

Browse files
Adding the ExpirationTime attribute to the delegation request resource.
1 parent 0b9469c commit 0d1de6d

File tree

5 files changed

+40
-3
lines changed

5 files changed

+40
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3327,6 +3327,7 @@
33273327
"OwnerId":{"shape":"ownerIdType"},
33283328
"ApproverId":{"shape":"arnType"},
33293329
"State":{"shape":"stateType"},
3330+
"ExpirationTime":{"shape":"dateType"},
33303331
"RequestorId":{"shape":"accountIdType"},
33313332
"RequestorName":{"shape":"requestorNameType"},
33323333
"CreateDate":{"shape":"dateType"},

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,6 +2466,7 @@
24662466
"AccessKey$CreateDate": "<p>The date when the access key was created.</p>",
24672467
"AccessKeyLastUsed$LastUsedDate": "<p>The date and time, in <a href=\"http://www.iso.org/iso/iso8601\">ISO 8601 date-time format</a>, when the access key was most recently used. This field is null in the following situations:</p> <ul> <li> <p>The user does not have an access key.</p> </li> <li> <p>An access key exists but has not been used since IAM began tracking this information.</p> </li> <li> <p>There is no sign-in data associated with the user.</p> </li> </ul>",
24682468
"AccessKeyMetadata$CreateDate": "<p>The date when the access key was created.</p>",
2469+
"DelegationRequest$ExpirationTime": "<p>The expiry time of this delegation request</p> <p>See the <a href=\"IAM/latest/UserGuide/temporary-delegation-building-integration.html#temporary-delegation-request-lifecycle\">Understanding the Request Lifecycle</a> for details on the life time of a delegation request at each state.</p>",
24692470
"DelegationRequest$CreateDate": "<p>Creation date (timestamp) of this delegation request.</p>",
24702471
"DelegationRequest$UpdatedTime": "<p>Last updated timestamp of the request.</p>",
24712472
"EntityDetails$LastAuthenticated": "<p>The date and time, in <a href=\"http://www.iso.org/iso/iso8601\">ISO 8601 date-time format</a>, when the authenticated entity last attempted to access Amazon Web Services. Amazon Web Services does not report unauthenticated requests.</p> <p>This field is null if no IAM entities attempted to access the service within the <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period\">tracking period</a>.</p>",
@@ -3528,7 +3529,7 @@
35283529
"stateType": {
35293530
"base": null,
35303531
"refs": {
3531-
"DelegationRequest$State": "<p>The state of this delegation request.</p> <p>See the <a href=\"IAM/latest/UserGuide/temporary-delegation-building-integration.html\">Understanding the Request Lifecycle</a> for an explanation of how these states are transitioned.</p>"
3532+
"DelegationRequest$State": "<p>The state of this delegation request.</p> <p>See the <a href=\"IAM/latest/UserGuide/temporary-delegation-building-integration.html#temporary-delegation-request-lifecycle\">Understanding the Request Lifecycle</a> for an explanation of how these states are transitioned.</p>"
35323533
}
35333534
},
35343535
"statusType": {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3901,7 +3901,11 @@
39013901
"ApproverId":{"shape":"arnType"},
39023902
"State":{
39033903
"shape":"stateType",
3904-
"documentation":"<p>The state of this delegation request.</p> <p>See the <a href=\"IAM/latest/UserGuide/temporary-delegation-building-integration.html\">Understanding the Request Lifecycle</a> for an explanation of how these states are transitioned.</p>"
3904+
"documentation":"<p>The state of this delegation request.</p> <p>See the <a href=\"IAM/latest/UserGuide/temporary-delegation-building-integration.html#temporary-delegation-request-lifecycle\">Understanding the Request Lifecycle</a> for an explanation of how these states are transitioned.</p>"
3905+
},
3906+
"ExpirationTime":{
3907+
"shape":"dateType",
3908+
"documentation":"<p>The expiry time of this delegation request</p> <p>See the <a href=\"IAM/latest/UserGuide/temporary-delegation-building-integration.html#temporary-delegation-request-lifecycle\">Understanding the Request Lifecycle</a> for details on the life time of a delegation request at each state.</p>"
39053909
},
39063910
"RequestorId":{
39073911
"shape":"accountIdType",

sdk/src/Services/IdentityManagement/Generated/Model/DelegationRequest.cs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public partial class DelegationRequest
3939
private DateTime? _createDate;
4040
private string _delegationRequestId;
4141
private string _description;
42+
private DateTime? _expirationTime;
4243
private string _notes;
4344
private bool? _onlySendByOwner;
4445
private string _ownerAccountId;
@@ -128,6 +129,30 @@ internal bool IsSetDescription()
128129
return this._description != null;
129130
}
130131

132+
/// <summary>
133+
/// Gets and sets the property ExpirationTime.
134+
/// <para>
135+
/// The expiry time of this delegation request
136+
/// </para>
137+
///
138+
/// <para>
139+
/// See the <a href="IAM/latest/UserGuide/temporary-delegation-building-integration.html#temporary-delegation-request-lifecycle">Understanding
140+
/// the Request Lifecycle</a> for details on the life time of a delegation request at
141+
/// each state.
142+
/// </para>
143+
/// </summary>
144+
public DateTime ExpirationTime
145+
{
146+
get { return this._expirationTime.GetValueOrDefault(); }
147+
set { this._expirationTime = value; }
148+
}
149+
150+
// Check to see if ExpirationTime property is set
151+
internal bool IsSetExpirationTime()
152+
{
153+
return this._expirationTime.HasValue;
154+
}
155+
131156
/// <summary>
132157
/// Gets and sets the property Notes.
133158
/// <para>
@@ -389,7 +414,7 @@ internal bool IsSetSessionDuration()
389414
/// </para>
390415
///
391416
/// <para>
392-
/// See the <a href="IAM/latest/UserGuide/temporary-delegation-building-integration.html">Understanding
417+
/// See the <a href="IAM/latest/UserGuide/temporary-delegation-building-integration.html#temporary-delegation-request-lifecycle">Understanding
393418
/// the Request Lifecycle</a> for an explanation of how these states are transitioned.
394419
/// </para>
395420
/// </summary>

sdk/src/Services/IdentityManagement/Generated/Model/Internal/MarshallTransformations/DelegationRequestUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public DelegationRequest Unmarshall(XmlUnmarshallerContext context)
7979
unmarshalledObject.Description = unmarshaller.Unmarshall(context);
8080
continue;
8181
}
82+
if (context.TestExpression("ExpirationTime", targetDepth))
83+
{
84+
var unmarshaller = DateTimeUnmarshaller.Instance;
85+
unmarshalledObject.ExpirationTime = unmarshaller.Unmarshall(context);
86+
continue;
87+
}
8288
if (context.TestExpression("Notes", targetDepth))
8389
{
8490
var unmarshaller = StringUnmarshaller.Instance;

0 commit comments

Comments
 (0)