Search Results for

    Show / Hide Table of Contents

    Class AwsSigV4HttpConnection

    An IConnection implementation that performs AWS SigV4 request signing, for performing authentication with Amazon Managed OpenSearch.

    Inheritance
    object
    HttpConnection
    AwsSigV4HttpConnection
    Implements
    IConnection
    IDisposable
    Inherited Members
    HttpConnection.InUseHandlers
    HttpConnection.RemovedHandlers
    HttpConnection.Request<TResponse>(RequestData)
    HttpConnection.RequestAsync<TResponse>(RequestData, CancellationToken)
    HttpConnection.CreateHttpRequestMessage(RequestData)
    HttpConnection.SetAuthenticationIfNeeded(HttpRequestMessage, RequestData)
    HttpConnection.SetApiKeyAuthenticationIfNeeded(HttpRequestMessage, RequestData)
    HttpConnection.SetBasicAuthenticationIfNeeded(HttpRequestMessage, RequestData)
    HttpConnection.CreateRequestMessage(RequestData)
    HttpConnection.DisposeManagedResources()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Net.Auth.AwsSigV4
    Assembly: OpenSearch.Net.Auth.AwsSigV4.dll
    Syntax
    public class AwsSigV4HttpConnection : HttpConnection, IConnection, IDisposable

    Constructors

    | Edit this page View Source

    AwsSigV4HttpConnection(RegionEndpoint, string, IDateTimeProvider)

    Construct a new connection configured with a specified region and using credentials discovered from the environment.

    Declaration
    public AwsSigV4HttpConnection(RegionEndpoint region, string service = "es", IDateTimeProvider dateTimeProvider = null)
    Parameters
    Type Name Description
    RegionEndpoint region

    The region to use when signing.

    string service

    The service code to use when signing, defaults to the service code for the Amazon OpenSearch Service ("es").

    IDateTimeProvider dateTimeProvider

    The date time proved to use, safe to pass null to use the default

    See Also
    AwsSigV4HttpConnection(AWSCredentials, RegionEndpoint, string, IDateTimeProvider)
    | Edit this page View Source

    AwsSigV4HttpConnection(AWSCredentials, RegionEndpoint, string, IDateTimeProvider)

    Construct a new connection configured with the given credentials and region.

    Declaration
    public AwsSigV4HttpConnection(AWSCredentials credentials, RegionEndpoint region, string service = "es", IDateTimeProvider dateTimeProvider = null)
    Parameters
    Type Name Description
    AWSCredentials credentials

    The credentials to use when signing, or null to have them discovered automatically by the AWS SDK.

    RegionEndpoint region

    The region to use when signing, or null to have it discovered automatically by the AWS SDK.

    string service

    The service code to use when signing, defaults to the service code for the Amazon OpenSearch Service ("es").

    IDateTimeProvider dateTimeProvider

    The date time proved to use, safe to pass null to use the default

    Remarks

    The same logic as the AWS SDK for .NET is used to automatically discover the credentials and region to use if not provided explicitly.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if region is null and is unable to be automatically discovered by the AWS SDK.

    | Edit this page View Source

    AwsSigV4HttpConnection(AWSCredentials, string, IDateTimeProvider)

    Construct a new connection configured with the specified credentials and using the region discovered from the environment.

    Declaration
    public AwsSigV4HttpConnection(AWSCredentials credentials, string service = "es", IDateTimeProvider dateTimeProvider = null)
    Parameters
    Type Name Description
    AWSCredentials credentials

    The credentials to use when signing.

    string service

    The service code to use when signing, defaults to the service code for the Amazon OpenSearch Service ("es").

    IDateTimeProvider dateTimeProvider

    The date time proved to use, safe to pass null to use the default

    See Also
    AwsSigV4HttpConnection(AWSCredentials, RegionEndpoint, string, IDateTimeProvider)
    | Edit this page View Source

    AwsSigV4HttpConnection(string, IDateTimeProvider)

    Construct a new connection discovering both the credentials and region from the environment.

    Declaration
    public AwsSigV4HttpConnection(string service = "es", IDateTimeProvider dateTimeProvider = null)
    Parameters
    Type Name Description
    string service

    The service code to use when signing, defaults to the service code for the Amazon OpenSearch Service ("es").

    IDateTimeProvider dateTimeProvider

    The date time proved to use, safe to pass null to use the default

    See Also
    AwsSigV4HttpConnection(AWSCredentials, RegionEndpoint, string, IDateTimeProvider)

    Fields

    | Edit this page View Source

    OpenSearchServerlessService

    Declaration
    public const string OpenSearchServerlessService = "aoss"
    Field Value
    Type Description
    string
    | Edit this page View Source

    OpenSearchService

    Declaration
    public const string OpenSearchService = "es"
    Field Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CreateHttpClientHandler(RequestData)

    Declaration
    protected override HttpMessageHandler CreateHttpClientHandler(RequestData requestData)
    Parameters
    Type Name Description
    RequestData requestData
    Returns
    Type Description
    HttpMessageHandler
    Overrides
    HttpConnection.CreateHttpClientHandler(RequestData)
    | Edit this page View Source

    InnerCreateHttpClientHandler(RequestData)

    Declaration
    protected virtual HttpMessageHandler InnerCreateHttpClientHandler(RequestData requestData)
    Parameters
    Type Name Description
    RequestData requestData
    Returns
    Type Description
    HttpMessageHandler

    Implements

    IConnection
    IDisposable

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • AwsSigV4HttpConnection(RegionEndpoint, string, IDateTimeProvider)
      • AwsSigV4HttpConnection(AWSCredentials, RegionEndpoint, string, IDateTimeProvider)
      • AwsSigV4HttpConnection(AWSCredentials, string, IDateTimeProvider)
      • AwsSigV4HttpConnection(string, IDateTimeProvider)
    • Fields
      • OpenSearchServerlessService
      • OpenSearchService
    • Methods
      • CreateHttpClientHandler(RequestData)
      • InnerCreateHttpClientHandler(RequestData)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX