Table of Contents

Class RecordedStsRequest

Namespace
DynaSharp.Testing
Assembly
DynaSharp.Testing.dll

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

Action string

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.

RoleArn string

The RoleArn of the form.

RoleSessionName string

The RoleSessionName of the form.

WebIdentityToken string

The WebIdentityToken of the form, which AssumeRole does not have.

Form IReadOnlyDictionary<string, string>

Every field of the form by name, decoded, such as Version.

Headers IReadOnlyList<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

string

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

string

ExternalId

Gets the ExternalId of Form, which AssumeRole has for ExternalId, or empty if the form lacks it.

public string ExternalId { get; }

Property Value

string

Form

Every field of the form by name, decoded, such as Version.

public IReadOnlyDictionary<string, string> Form { get; init; }

Property Value

IReadOnlyDictionary<string, string>

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

IReadOnlyList<string>

RoleArn

The RoleArn of the form.

public string RoleArn { get; init; }

Property Value

string

RoleSessionName

The RoleSessionName of the form.

public string RoleSessionName { get; init; }

Property Value

string

WebIdentityToken

The WebIdentityToken of the form, which AssumeRole does not have.

public string WebIdentityToken { get; init; }

Property Value

string

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

Action string
RoleArn string
RoleSessionName string
WebIdentityToken string
Form IReadOnlyDictionary<string, string>
Headers IReadOnlyList<string>

Equals(RecordedStsRequest?)

public bool Equals(RecordedStsRequest? other)

Parameters

other RecordedStsRequest

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RecordedStsRequest?, RecordedStsRequest?)

public static bool operator ==(RecordedStsRequest? left, RecordedStsRequest? right)

Parameters

left RecordedStsRequest
right RecordedStsRequest

Returns

bool

operator !=(RecordedStsRequest?, RecordedStsRequest?)

public static bool operator !=(RecordedStsRequest? left, RecordedStsRequest? right)

Parameters

left RecordedStsRequest
right RecordedStsRequest

Returns

bool