Amazon.KinesisTap.AWS/AWSUtilities.cs
/// <summary>
/// Create AWS Client from plug-in context
/// </summary>
/// <typeparam name="TAWSClient">The type of AWS Client</typeparam>
/// <param name="context">Plug-in context</param>
/// <returns>AWS Client</returns>
Create AWS Client from plug-in context
Create AWS Client from plug - in context
public static TAWSClient CreateAWSClient<TAWSClient>(IPlugInContext context) where TAWSClient : AmazonServiceClient
        {
            (AWSCredentials credential, RegionEndpoint region) = GetAWSCredentialsRegion(context);
            TAWSClient awsClient;
            awsClient = CreateAWSClient<TAWSClient>(credential, region);
            awsClient.BeforeRequestEvent += AwsClient_BeforeRequestEvent;
            return awsClient;
        }
public static TAWSClient CreateAWSClient < TAWSClient > ( IPlugInContext context ) where TAWSClient : AmazonServiceClient { ( AWSCredentials credential , RegionEndpoint region ) = GetAWSCredentialsRegion ( context ) ; TAWSClient awsClient ; awsClient = CreateAWSClient < TAWSClient > ( credential , region ) ; awsClient . BeforeRequestEvent += AwsClient_BeforeRequestEvent ; return awsClient ; }
Create AWS Client from plug-in context
Create AWS Client from plug - in context
None
context
IPlugInContext
None
typeparam
The type of AWS Client
The type of AWS Client