Class AmazonServiceClient
public abstract class AmazonServiceClient : IDisposable
- Inheritance
-
AmazonServiceClient
- Implements
- Inherited Members
Constructors
AmazonServiceClient(AWSCredentials, ClientConfig)
protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config)
Parameters
credentials
AWSCredentialsconfig
ClientConfig
AmazonServiceClient(string, string, ClientConfig)
protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, ClientConfig config)
Parameters
awsAccessKeyId
stringawsSecretAccessKey
stringconfig
ClientConfig
AmazonServiceClient(string, string, string, ClientConfig)
protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, ClientConfig config)
Parameters
awsAccessKeyId
stringawsSecretAccessKey
stringawsSessionToken
stringconfig
ClientConfig
Properties
Config
public IClientConfig Config { get; }
Property Value
Credentials
protected AWSCredentials Credentials { get; }
Property Value
EndpointDiscoveryResolver
protected EndpointDiscoveryResolverBase EndpointDiscoveryResolver { get; }
Property Value
RuntimePipeline
protected RuntimePipeline RuntimePipeline { get; set; }
Property Value
ServiceMetadata
protected virtual IServiceMetadata ServiceMetadata { get; }
Property Value
Signer
protected AbstractAWSSigner Signer { get; }
Property Value
SupportResponseLogging
protected virtual bool SupportResponseLogging { get; }
Property Value
Methods
ComposeUrl(IRequest)
Assembles the Uri for a given SDK request
public static Uri ComposeUrl(IRequest iRequest)
Parameters
iRequest
IRequestRequest to compute Uri for
Returns
- Uri
Uri for the given SDK request
ComposeUrl(IRequest, bool)
Assembles the Uri for a given SDK request
public static Uri ComposeUrl(IRequest internalRequest, bool skipEncodingValidPathChars)
Parameters
internalRequest
IRequestRequest to compute Uri for
skipEncodingValidPathChars
boolIf true the accepted path characters {/+:} are not encoded.
Returns
- Uri
Uri for the given SDK request
CreateSigner()
protected abstract AbstractAWSSigner CreateSigner()
Returns
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
EndpointOperation(EndpointOperationContextBase)
protected virtual IEnumerable<DiscoveryEndpointBase> EndpointOperation(EndpointOperationContextBase context)
Parameters
context
EndpointOperationContextBase
Returns
Initialize()
protected virtual void Initialize()
InvokeAsync<TResponse>(AmazonWebServiceRequest, InvokeOptionsBase, CancellationToken)
protected Task<TResponse> InvokeAsync<TResponse>(AmazonWebServiceRequest request, InvokeOptionsBase options, CancellationToken cancellationToken) where TResponse : AmazonWebServiceResponse, new()
Parameters
request
AmazonWebServiceRequestoptions
InvokeOptionsBasecancellationToken
CancellationToken
Returns
- Task<TResponse>
Type Parameters
TResponse
InvokeAsync<TRequest, TResponse>(TRequest, IMarshaller<IRequest, AmazonWebServiceRequest>, ResponseUnmarshaller, CancellationToken)
[Obsolete("InvokeAsync taking marshallers is obsolete. Use InvokeAsync taking InvokeOptionsBase instead.")]
protected Task<TResponse> InvokeAsync<TRequest, TResponse>(TRequest request, IMarshaller<IRequest, AmazonWebServiceRequest> marshaller, ResponseUnmarshaller unmarshaller, CancellationToken cancellationToken) where TRequest : AmazonWebServiceRequest where TResponse : AmazonWebServiceResponse, new()
Parameters
request
TRequestmarshaller
IMarshaller<IRequest, AmazonWebServiceRequest>unmarshaller
ResponseUnmarshallercancellationToken
CancellationToken
Returns
- Task<TResponse>
Type Parameters
TRequest
TResponse
Invoke<TResponse>(AmazonWebServiceRequest, InvokeOptionsBase)
protected TResponse Invoke<TResponse>(AmazonWebServiceRequest request, InvokeOptionsBase options) where TResponse : AmazonWebServiceResponse
Parameters
request
AmazonWebServiceRequestoptions
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
TRequestmarshaller
IMarshaller<IRequest, AmazonWebServiceRequest>unmarshaller
ResponseUnmarshaller
Returns
- TResponse
Type Parameters
TRequest
TResponse
ProcessExceptionHandlers(IExecutionContext, Exception)
protected virtual void ProcessExceptionHandlers(IExecutionContext executionContext, Exception exception)
Parameters
executionContext
IExecutionContextexception
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
BeforeRequestEvent
Occurs before a request is issued against the service.
public event RequestEventHandler BeforeRequestEvent
Event Type
ExceptionEvent
Occurs after an exception is encountered.
public event ExceptionEventHandler ExceptionEvent