AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Factory method for creating the default implementation of the AWS service interface. This method is intended to be used by AWSSDK.Extensions.NETCore.Setup for creating AWS service clients registered in the dependency injection container.

Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public abstract IAmazonService CreateDefaultServiceClient(
         AWSCredentials awsCredentials,
         ClientConfig clientConfig
)

Parameters

awsCredentials
Type: Amazon.Runtime.AWSCredentials

The AWS credentials used for the service client.

clientConfig
Type: Amazon.Runtime.ClientConfig

The service client config for the service client. The base class ClientConfig will be cast to the sub type expected by the service client.

Return Value


Version Information

.NET:
Supported in: 8.0 and newer