Class RecordedStsRequest
A request that a StubSts received, read from the socket and decoded the way botocore encodes a form: RFC 3986 percent encoding, and a space as +.
public sealed record RecordedStsRequest : IEquatable<RecordedStsRequest>
- Inheritance
-
RecordedStsRequest
- Implements
- Inherited Members
Constructors
RecordedStsRequest(string, string, string, string, IReadOnlyDictionary<string, string>, IReadOnlyList<string>)
A request that a StubSts received, read from the socket and decoded the way botocore encodes a form: RFC 3986 percent encoding, and a space as +.
public RecordedStsRequest(string Action, string RoleArn, string RoleSessionName, string WebIdentityToken, IReadOnlyDictionary<string, string> Form, IReadOnlyList<string> Headers)
Parameters
ActionstringThe
Actionof the form:AssumeRoleWithWebIdentityfor what WebIdentityCredentialsProvider sends,AssumeRolefor AssumeRoleCredentialsProvider. A field the form lacks is empty, here and in the next three.RoleArnstringThe
RoleArnof the form.RoleSessionNamestringThe
RoleSessionNameof the form.WebIdentityTokenstringThe
WebIdentityTokenof the form, whichAssumeRoledoes not have.FormIReadOnlyDictionary<string, string>Every field of the form by name, decoded, such as
Version.HeadersIReadOnlyList<string>The lines of the headers as they came, such as
Content-Type: application/x-www-form-urlencoded; charset=utf-8.
Properties
Action
The Action of the form: AssumeRoleWithWebIdentity for what WebIdentityCredentialsProvider sends, AssumeRole for AssumeRoleCredentialsProvider. A field the form lacks is empty, here and in the next three.
public string Action { get; init; }
Property Value
DurationSeconds
Gets the DurationSeconds of Form as sent, such as 3600, which AssumeRole has for Duration, or empty if the form lacks it, as it does when STS picks
the duration.
public string DurationSeconds { get; }
Property Value
ExternalId
Gets the ExternalId of Form, which AssumeRole has for ExternalId, or empty if the form lacks it.
public string ExternalId { get; }
Property Value
Form
Every field of the form by name, decoded, such as Version.
public IReadOnlyDictionary<string, string> Form { get; init; }
Property Value
Headers
The lines of the headers as they came, such as Content-Type: application/x-www-form-urlencoded; charset=utf-8.
public IReadOnlyList<string> Headers { get; init; }
Property Value
RoleArn
The RoleArn of the form.
public string RoleArn { get; init; }
Property Value
RoleSessionName
The RoleSessionName of the form.
public string RoleSessionName { get; init; }
Property Value
WebIdentityToken
The WebIdentityToken of the form, which AssumeRole does not have.
public string WebIdentityToken { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out string, out string, out IReadOnlyDictionary<string, string>, out IReadOnlyList<string>)
public void Deconstruct(out string Action, out string RoleArn, out string RoleSessionName, out string WebIdentityToken, out IReadOnlyDictionary<string, string> Form, out IReadOnlyList<string> Headers)
Parameters
ActionstringRoleArnstringRoleSessionNamestringWebIdentityTokenstringFormIReadOnlyDictionary<string, string>HeadersIReadOnlyList<string>
Equals(RecordedStsRequest?)
public bool Equals(RecordedStsRequest? other)
Parameters
otherRecordedStsRequest
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RecordedStsRequest?, RecordedStsRequest?)
public static bool operator ==(RecordedStsRequest? left, RecordedStsRequest? right)
Parameters
leftRecordedStsRequestrightRecordedStsRequest
Returns
operator !=(RecordedStsRequest?, RecordedStsRequest?)
public static bool operator !=(RecordedStsRequest? left, RecordedStsRequest? right)
Parameters
leftRecordedStsRequestrightRecordedStsRequest