Table of Contents

Class AmazonServiceClient

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll
public abstract class AmazonServiceClient : IDisposable
Inheritance
AmazonServiceClient
Implements
Inherited Members

Constructors

AmazonServiceClient(AWSCredentials, ClientConfig)

protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config)

Parameters

credentials AWSCredentials
config ClientConfig

AmazonServiceClient(string, string, ClientConfig)

protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, ClientConfig config)

Parameters

awsAccessKeyId string
awsSecretAccessKey string
config ClientConfig

AmazonServiceClient(string, string, string, ClientConfig)

protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, ClientConfig config)

Parameters

awsAccessKeyId string
awsSecretAccessKey string
awsSessionToken string
config ClientConfig

Properties

Config

public IClientConfig Config { get; }

Property Value

IClientConfig

Credentials

protected AWSCredentials Credentials { get; }

Property Value

AWSCredentials

EndpointDiscoveryResolver

protected EndpointDiscoveryResolverBase EndpointDiscoveryResolver { get; }

Property Value

EndpointDiscoveryResolverBase

RuntimePipeline

protected RuntimePipeline RuntimePipeline { get; set; }

Property Value

RuntimePipeline

ServiceMetadata

protected virtual IServiceMetadata ServiceMetadata { get; }

Property Value

IServiceMetadata

Signer

protected AbstractAWSSigner Signer { get; }

Property Value

AbstractAWSSigner

SupportResponseLogging

protected virtual bool SupportResponseLogging { get; }

Property Value

bool

Methods

BeginInvoke(AmazonWebServiceRequest, InvokeOptionsBase, AsyncCallback, object)

protected IAsyncResult BeginInvoke(AmazonWebServiceRequest request, InvokeOptionsBase options, AsyncCallback callback, object state)

Parameters

request AmazonWebServiceRequest
options InvokeOptionsBase
callback AsyncCallback
state object

Returns

IAsyncResult

BeginInvoke<TRequest>(TRequest, IMarshaller<IRequest, AmazonWebServiceRequest>, ResponseUnmarshaller, AsyncCallback, object)

[Obsolete("BeginInvoke taking marshallers is obsolete. Use BeginInvoke taking InvokeOptionsBase instead.")]
protected IAsyncResult BeginInvoke<TRequest>(TRequest request, IMarshaller<IRequest, AmazonWebServiceRequest> marshaller, ResponseUnmarshaller unmarshaller, AsyncCallback callback, object state) where TRequest : AmazonWebServiceRequest

Parameters

request TRequest
marshaller IMarshaller<IRequest, AmazonWebServiceRequest>
unmarshaller ResponseUnmarshaller
callback AsyncCallback
state object

Returns

IAsyncResult

Type Parameters

TRequest

ComposeUrl(IRequest)

public static Uri ComposeUrl(IRequest iRequest)

Parameters

iRequest IRequest

Returns

Uri

CreateSigner()

protected abstract AbstractAWSSigner CreateSigner()

Returns

AbstractAWSSigner

CustomizeRuntimePipeline(RuntimePipeline)

protected virtual void CustomizeRuntimePipeline(RuntimePipeline pipeline)

Parameters

pipeline RuntimePipeline

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

EndInvoke<TResponse>(IAsyncResult)

protected static TResponse EndInvoke<TResponse>(IAsyncResult result) where TResponse : AmazonWebServiceResponse

Parameters

result IAsyncResult

Returns

TResponse

Type Parameters

TResponse

EndpointOperation(EndpointOperationContextBase)

protected virtual IEnumerable<DiscoveryEndpointBase> EndpointOperation(EndpointOperationContextBase context)

Parameters

context EndpointOperationContextBase

Returns

IEnumerable<DiscoveryEndpointBase>

Initialize()

protected virtual void Initialize()

Invoke<TResponse>(AmazonWebServiceRequest, InvokeOptionsBase)

protected TResponse Invoke<TResponse>(AmazonWebServiceRequest request, InvokeOptionsBase options) where TResponse : AmazonWebServiceResponse

Parameters

request AmazonWebServiceRequest
options InvokeOptionsBase

Returns

TResponse

Type Parameters

TResponse

Invoke<TRequest, TResponse>(TRequest, IMarshaller<IRequest, AmazonWebServiceRequest>, ResponseUnmarshaller)

[Obsolete("Invoke taking marshallers is obsolete. Use Invoke taking InvokeOptionsBase instead.")]
protected TResponse Invoke<TRequest, TResponse>(TRequest request, IMarshaller<IRequest, AmazonWebServiceRequest> marshaller, ResponseUnmarshaller unmarshaller) where TRequest : AmazonWebServiceRequest where TResponse : AmazonWebServiceResponse

Parameters

request TRequest
marshaller IMarshaller<IRequest, AmazonWebServiceRequest>
unmarshaller ResponseUnmarshaller

Returns

TResponse

Type Parameters

TRequest
TResponse

ProcessExceptionHandlers(IExecutionContext, Exception)

protected virtual void ProcessExceptionHandlers(IExecutionContext executionContext, Exception exception)

Parameters

executionContext IExecutionContext
exception Exception

ProcessPreRequestHandlers(IExecutionContext)

protected void ProcessPreRequestHandlers(IExecutionContext executionContext)

Parameters

executionContext IExecutionContext

ProcessRequestHandlers(IExecutionContext)

protected void ProcessRequestHandlers(IExecutionContext executionContext)

Parameters

executionContext IExecutionContext

ProcessResponseHandlers(IExecutionContext)

protected void ProcessResponseHandlers(IExecutionContext executionContext)

Parameters

executionContext IExecutionContext

Events

AfterResponseEvent

Occurs after a response is received from the service.

public event ResponseEventHandler AfterResponseEvent

Event Type

ResponseEventHandler

BeforeRequestEvent

Occurs before a request is issued against the service.

public event RequestEventHandler BeforeRequestEvent

Event Type

RequestEventHandler

ExceptionEvent

Occurs after an exception is encountered.

public event ExceptionEventHandler ExceptionEvent

Event Type

ExceptionEventHandler