Class AmazonServiceClient
public abstract class AmazonServiceClient : IDisposable
- Inheritance
-
AmazonServiceClient
- Implements
- Inherited Members
Constructors
AmazonServiceClient(AWSCredentials, ClientConfig)
protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config)
Parameters
credentialsAWSCredentialsconfigClientConfig
AmazonServiceClient(string, string, ClientConfig)
protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, ClientConfig config)
Parameters
awsAccessKeyIdstringawsSecretAccessKeystringconfigClientConfig
AmazonServiceClient(string, string, string, ClientConfig)
protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, ClientConfig config)
Parameters
awsAccessKeyIdstringawsSecretAccessKeystringawsSessionTokenstringconfigClientConfig
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
iRequestIRequestRequest 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
internalRequestIRequestRequest to compute Uri for
skipEncodingValidPathCharsboolIf 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
pipelineRuntimePipeline
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
EndpointOperation(EndpointOperationContextBase)
protected virtual IEnumerable<DiscoveryEndpointBase> EndpointOperation(EndpointOperationContextBase context)
Parameters
contextEndpointOperationContextBase
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
requestAmazonWebServiceRequestoptionsInvokeOptionsBasecancellationTokenCancellationToken
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
requestTRequestmarshallerIMarshaller<IRequest, AmazonWebServiceRequest>unmarshallerResponseUnmarshallercancellationTokenCancellationToken
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
Invoke<TResponse>(AmazonWebServiceRequest, InvokeOptionsBase)
protected TResponse Invoke<TResponse>(AmazonWebServiceRequest request, InvokeOptionsBase options) where TResponse : AmazonWebServiceResponse
Parameters
requestAmazonWebServiceRequestoptionsInvokeOptionsBase
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
requestTRequestmarshallerIMarshaller<IRequest, AmazonWebServiceRequest>unmarshallerResponseUnmarshaller
Returns
- TResponse
Type Parameters
TRequestTResponse
ProcessExceptionHandlers(IExecutionContext, Exception)
protected virtual void ProcessExceptionHandlers(IExecutionContext executionContext, Exception exception)
Parameters
executionContextIExecutionContextexceptionException
ProcessPreRequestHandlers(IExecutionContext)
protected void ProcessPreRequestHandlers(IExecutionContext executionContext)
Parameters
executionContextIExecutionContext
ProcessRequestHandlers(IExecutionContext)
protected void ProcessRequestHandlers(IExecutionContext executionContext)
Parameters
executionContextIExecutionContext
ProcessResponseHandlers(IExecutionContext)
protected void ProcessResponseHandlers(IExecutionContext executionContext)
Parameters
executionContextIExecutionContext
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