From 026a1d66d3798e559210cb9a33db5d9cf5677b33 Mon Sep 17 00:00:00 2001 From: Pete Townsend Date: Fri, 19 Nov 2021 11:17:45 +0000 Subject: [PATCH 01/11] adding EventBridge support --- .../Enums/AwsServiceEndpointMetadata.cs | 7 ++++--- src/LocalStack.Client/Enums/AwsServiceEnum.cs | 3 ++- .../CreateClientByImplementationTests.cs | 9 +++++++++ .../CreateClientByInterfaceTests.cs | 9 +++++++++ .../LocalStack.Client.Integration.Tests/GlobalUsings.cs | 1 + .../LocalStack.Client.Integration.Tests.csproj | 1 + 6 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs index 7d6c4c7..a4fcf34 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs @@ -96,8 +96,9 @@ public class AwsServiceEndpointMetadata public static readonly AwsServiceEndpointMetadata Waf = new("WAF", "waf", CommonEndpointPattern, 4640, AwsServiceEnum.Waf); public static readonly AwsServiceEndpointMetadata WafV2 = new("WAFV2", "wafv2", CommonEndpointPattern, 4640, AwsServiceEnum.WafV2); public static readonly AwsServiceEndpointMetadata ConfigService = new("Config Service", "config", CommonEndpointPattern, 4641, AwsServiceEnum.ConfigService); - - + public static readonly AwsServiceEndpointMetadata EventBridge = new("EventBridge", "events", CommonEndpointPattern, 4587, AwsServiceEnum.Events); + + public static readonly AwsServiceEndpointMetadata[] All = { ApiGateway, ApiGatewayV2, Kinesis, DynamoDb, DynamoDbStreams, ElasticSearch, S3, Firehose, Lambda, Sns, Sqs, Redshift, RedshiftData, Es, Ses, Route53, CloudFormation, CloudWatch, @@ -105,7 +106,7 @@ public class AwsServiceEndpointMetadata Iam, Rds, RdsData, CloudSearch, Swf, Ec2, ElastiCache, Kms, Emr, Ecs, Eks, XRay, ElasticBeanstalk, AppSync, CloudFront, Athena, Glue, SageMaker, SageMakerRuntime, Ecr, Qldb, QldbSession, CloudTrail, Glacier, Batch, Organizations, AutoScaling, MediaStore, MediaStoreData, Transfer, Acm, CodeCommit, KinesisAnalytics, Amplify, ApplicationAutoscaling, Kafka, ApiGatewayManagementApi, TimeStreamQuery, TimeStreamWrite, S3Control, ElbV2, Support, Neptune, DocDb, ServiceDiscovery, ServerlessApplicationRepository, AppConfig, CostExplorer, MediaConvert, ResourceGroupsTaggingApi, - ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService + ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService, EventBridge }; private AwsServiceEndpointMetadata() diff --git a/src/LocalStack.Client/Enums/AwsServiceEnum.cs b/src/LocalStack.Client/Enums/AwsServiceEnum.cs index 2984c7d..cc60eec 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEnum.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEnum.cs @@ -92,5 +92,6 @@ public enum AwsServiceEnum LakeFormation, Waf, WafV2, - ConfigService + ConfigService, + EventBridge } \ No newline at end of file diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs index 9126c79..f12e126 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs @@ -54,6 +54,15 @@ public void Should_Able_To_Create_AmazonElasticsearchClient() AssertAmazonClient.AssertClientConfiguration(amazonElasticsearchClient); } + [Fact] + public void Should_Able_To_Create_AmazonEventBridgeClient() + { + var amazonEventBridgeClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonEventBridgeClient); + AssertAmazonClient.AssertClientConfiguration(amazonEventBridgeClient); + } + [Fact] public void Should_Able_To_Create_AmazonKinesisFirehoseClient() { diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs index 1fa5213..c911d94 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs @@ -782,4 +782,13 @@ public void Should_Able_To_Create_AmazonConfigServiceClient() Assert.NotNull(amazonConfigServiceClient); AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient); } + + [Fact] + public void Should_Able_To_Create_AmazonEventBridgeClient() + { + AmazonServiceClient amazonEventBridgeClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonEventBridgeClient); + AssertAmazonClient.AssertClientConfiguration(amazonEventBridgeClient); + } } diff --git a/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs b/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs index 030a9a4..1bb2440 100644 --- a/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs +++ b/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs @@ -37,6 +37,7 @@ global using Amazon.ElasticLoadBalancingV2; global using Amazon.ElasticMapReduce; global using Amazon.Elasticsearch; +global using Amazon.EventBridge; global using Amazon.Glue; global using Amazon.IdentityManagement; global using Amazon.IoT; diff --git a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj index 09a0b96..8e5f61f 100644 --- a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj +++ b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj @@ -44,6 +44,7 @@ + From 709caf825b845ff4326f2c92bd9a17f73d1702ec Mon Sep 17 00:00:00 2001 From: Pete Townsend Date: Fri, 19 Nov 2021 12:56:36 +0000 Subject: [PATCH 02/11] fix metadata --- src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs index a4fcf34..2a3c39e 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs @@ -96,7 +96,7 @@ public class AwsServiceEndpointMetadata public static readonly AwsServiceEndpointMetadata Waf = new("WAF", "waf", CommonEndpointPattern, 4640, AwsServiceEnum.Waf); public static readonly AwsServiceEndpointMetadata WafV2 = new("WAFV2", "wafv2", CommonEndpointPattern, 4640, AwsServiceEnum.WafV2); public static readonly AwsServiceEndpointMetadata ConfigService = new("Config Service", "config", CommonEndpointPattern, 4641, AwsServiceEnum.ConfigService); - public static readonly AwsServiceEndpointMetadata EventBridge = new("EventBridge", "events", CommonEndpointPattern, 4587, AwsServiceEnum.Events); + public static readonly AwsServiceEndpointMetadata EventBridge = new("EventBridge", "eventbridge", CommonEndpointPattern, 4587, AwsServiceEnum.EventBridge); public static readonly AwsServiceEndpointMetadata[] All = From 5d5162b302b518339e31d078b8a1e08badaaa155 Mon Sep 17 00:00:00 2001 From: Blind-Striker Date: Mon, 29 Nov 2021 01:23:00 +0300 Subject: [PATCH 03/11] tabify classes --- src/LocalStack.Client/Enums/AwsServiceEnum.cs | 184 +- .../CreateClientByImplementationTests.cs | 1750 ++++++++--------- .../CreateClientByInterfaceTests.cs | 1746 ++++++++-------- ...LocalStack.Client.Integration.Tests.csproj | 2 +- 4 files changed, 1841 insertions(+), 1841 deletions(-) diff --git a/src/LocalStack.Client/Enums/AwsServiceEnum.cs b/src/LocalStack.Client/Enums/AwsServiceEnum.cs index 3c6c684..e4c5375 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEnum.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEnum.cs @@ -2,97 +2,97 @@ public enum AwsServiceEnum { - ApiGateway, - ApiGatewayV2, - Kinesis, - DynamoDb, - DynamoDbStreams, - ElasticSearch, - S3, - Firehose, - Lambda, - Sns, - Sqs, - Redshift, - RedshiftData, - Es, - Ses, - Sesv2, - Route53, - CloudFormation, - CloudWatch, - Ssm, - SecretsManager, - StepFunctions, - Logs, - Events, - Elb, - Iot, - IoTAnalytics, - IoTEvents, - IoTEventsData, - IoTWireless, - IoTDataPlane, - IoTJobsDataPlane, - CognitoIdp, - CognitoIdentity, - Sts, - Iam, - Rds, - RdsData, - CloudSearch, - Swf, - Ec2, - ElastiCache, - Kms, - Emr, - Ecs, - Eks, - XRay, - ElasticBeanstalk, - AppSync, - CloudFront, - Athena, - Glue, - SageMaker, - SageMakerRuntime, - Ecr, - Qldb, - QldbSession, - CloudTrail, - Glacier, - Batch, - Organizations, - AutoScaling, - MediaStore, - MediaStoreData, - Transfer, - Acm, - CodeCommit, - KinesisAnalytics, - Amplify, - ApplicationAutoscaling, - Kafka, - ApiGatewayManagementApi, - TimeStreamQuery, - TimeStreamWrite, - S3Control, - ElbV2, - Support, - Neptune, - DocDb, - ServiceDiscovery, - ServerlessApplicationRepository, - AppConfig, - CostExplorer, - MediaConvert, - ResourceGroupsTaggingApi, - ResourceGroups, - Efs, - Backup, - LakeFormation, - Waf, - WafV2, - ConfigService, + ApiGateway, + ApiGatewayV2, + Kinesis, + DynamoDb, + DynamoDbStreams, + ElasticSearch, + S3, + Firehose, + Lambda, + Sns, + Sqs, + Redshift, + RedshiftData, + Es, + Ses, + Sesv2, + Route53, + CloudFormation, + CloudWatch, + Ssm, + SecretsManager, + StepFunctions, + Logs, + Events, + Elb, + Iot, + IoTAnalytics, + IoTEvents, + IoTEventsData, + IoTWireless, + IoTDataPlane, + IoTJobsDataPlane, + CognitoIdp, + CognitoIdentity, + Sts, + Iam, + Rds, + RdsData, + CloudSearch, + Swf, + Ec2, + ElastiCache, + Kms, + Emr, + Ecs, + Eks, + XRay, + ElasticBeanstalk, + AppSync, + CloudFront, + Athena, + Glue, + SageMaker, + SageMakerRuntime, + Ecr, + Qldb, + QldbSession, + CloudTrail, + Glacier, + Batch, + Organizations, + AutoScaling, + MediaStore, + MediaStoreData, + Transfer, + Acm, + CodeCommit, + KinesisAnalytics, + Amplify, + ApplicationAutoscaling, + Kafka, + ApiGatewayManagementApi, + TimeStreamQuery, + TimeStreamWrite, + S3Control, + ElbV2, + Support, + Neptune, + DocDb, + ServiceDiscovery, + ServerlessApplicationRepository, + AppConfig, + CostExplorer, + MediaConvert, + ResourceGroupsTaggingApi, + ResourceGroups, + Efs, + Backup, + LakeFormation, + Waf, + WafV2, + ConfigService, EventBridge } \ No newline at end of file diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs index c6237ab..a315d2c 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs @@ -2,880 +2,880 @@ public class CreateClientByImplementationTests { - private static readonly ISession Session; - - static CreateClientByImplementationTests() - { - Session = SessionStandalone.Init() - - .WithSessionOptions(new SessionOptions(regionName: AssertAmazonClient.TestAwsRegion)) - .Create(); - } - - [Fact] - public void Should_Able_To_Create_AmazonAPIGatewayClient() - { - var amazonApiGatewayClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonApiGatewayClient); - AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonApiGatewayV2Client() - { - var amazonApiGatewayV2Client = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonApiGatewayV2Client); - AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayV2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonS3Client() - { - var amazonS3Client = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonS3Client); - AssertAmazonClient.AssertClientConfiguration(amazonS3Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonDynamoDBClient() - { - var amazonDynamoDbClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonDynamoDbClient); - AssertAmazonClient.AssertClientConfiguration(amazonDynamoDbClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticsearchClient() - { - var amazonElasticsearchClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonElasticsearchClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticsearchClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonEventBridgeClient() - { - var amazonEventBridgeClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonEventBridgeClient); + private static readonly ISession Session; + + static CreateClientByImplementationTests() + { + Session = SessionStandalone.Init() + + .WithSessionOptions(new SessionOptions(regionName: AssertAmazonClient.TestAwsRegion)) + .Create(); + } + + [Fact] + public void Should_Able_To_Create_AmazonAPIGatewayClient() + { + var amazonApiGatewayClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonApiGatewayClient); + AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonApiGatewayV2Client() + { + var amazonApiGatewayV2Client = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonApiGatewayV2Client); + AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayV2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonS3Client() + { + var amazonS3Client = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonS3Client); + AssertAmazonClient.AssertClientConfiguration(amazonS3Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonDynamoDBClient() + { + var amazonDynamoDbClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonDynamoDbClient); + AssertAmazonClient.AssertClientConfiguration(amazonDynamoDbClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticsearchClient() + { + var amazonElasticsearchClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonElasticsearchClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticsearchClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonEventBridgeClient() + { + var amazonEventBridgeClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonEventBridgeClient); AssertAmazonClient.AssertClientConfiguration(amazonEventBridgeClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonKinesisFirehoseClient() - { - var amazonKinesisFirehoseClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonKinesisFirehoseClient); - AssertAmazonClient.AssertClientConfiguration(amazonKinesisFirehoseClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonLambdaClient() - { - var amazonLambdaClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonLambdaClient); - AssertAmazonClient.AssertClientConfiguration(amazonLambdaClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleNotificationServiceClient() - { - var amazonSimpleNotificationServiceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSimpleNotificationServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonSimpleNotificationServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSQSClient() - { - var amazonSqsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSqsClient); - AssertAmazonClient.AssertClientConfiguration(amazonSqsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonRedshiftClient() - { - var amazonRedshiftClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonRedshiftClient); - AssertAmazonClient.AssertClientConfiguration(amazonRedshiftClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleEmailServiceClient() - { - var amazonSimpleEmailServiceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSimpleEmailServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonSimpleEmailServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleEmailServiceV2Client() - { - var simpleEmailServiceV2Client = Session.CreateClientByImplementation(); - - Assert.NotNull(simpleEmailServiceV2Client); - AssertAmazonClient.AssertClientConfiguration(simpleEmailServiceV2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonRoute53Client() - { - var amazonRoute53Client = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonRoute53Client); - AssertAmazonClient.AssertClientConfiguration(amazonRoute53Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudFormationClient() - { - var amazonCloudFormationClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCloudFormationClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudFormationClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudWatchClient() - { - var amazonCloudWatchClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCloudWatchClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleSystemsManagementClient() - { - var amazonSimpleSystemsManagementClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSimpleSystemsManagementClient); - AssertAmazonClient.AssertClientConfiguration(amazonSimpleSystemsManagementClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSecretsManagerClient() - { - var amazonSecretsManagerClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSecretsManagerClient); - AssertAmazonClient.AssertClientConfiguration(amazonSecretsManagerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonStepFunctionsClient() - { - var amazonStepFunctionsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonStepFunctionsClient); - AssertAmazonClient.AssertClientConfiguration(amazonStepFunctionsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudWatchLogsClient() - { - var amazonCloudWatchLogsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCloudWatchLogsClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchLogsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudWatchEventsClient() - { - var amazonCloudWatchEventsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCloudWatchEventsClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchEventsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticLoadBalancingClient() - { - var amazonElasticLoadBalancingClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonElasticLoadBalancingClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticLoadBalancingClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTClient() - { - var amazonIoTClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonIoTClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTAnalyticsClient() - { - var amazonIoTAnalyticsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonIoTAnalyticsClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTAnalyticsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTEventsClient() - { - var amazonIoTEventsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonIoTEventsClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTEventsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTEventsDataClient() - { - var amazonIoTEventsDataClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonIoTEventsDataClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTEventsDataClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTWirelessClient() - { - var amazonIoTWirelessClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonIoTWirelessClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTWirelessClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTDataClient_With_ServiceUr() - { - var amazonIoTDataClient = Session.CreateClientByImplementation(useServiceUrl:true); - - Assert.NotNull(amazonIoTDataClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTDataClient); - } - - [Fact] - public void Should_Throw_AmazonClientException_When_Creating_AmazonIoTDataClient_If_RegionEndpoint_Used() - { - try - { - Session.CreateClientByImplementation(); - } - catch (Exception e) - { - Exception ex = e; - - while (ex != null) - { - if (ex is AmazonClientException) - { - return; - } - - ex = ex.InnerException; - } - - throw; - } - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTJobsDataPlaneClient_With_ServiceUr() - { - var amazonIoTJobsDataPlaneClient = Session.CreateClientByImplementation(useServiceUrl:true); - - Assert.NotNull(amazonIoTJobsDataPlaneClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTJobsDataPlaneClient); - } - - [Fact] - public void Should_Throw_AmazonClientException_When_Creating_AmazonIoTJobsDataPlaneClient_If_RegionEndpoint_Used() - { - try - { - Session.CreateClientByImplementation(); - } - catch (Exception e) - { - Exception ex = e; - - while (ex != null) - { - if (ex is AmazonClientException) - { - return; - } - - ex = ex.InnerException; - } - - throw; - } - } - - [Fact] - public void Should_Able_To_Create_AmazonCognitoIdentityProviderClient() - { - var amazonCognitoIdentityProviderClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCognitoIdentityProviderClient); - AssertAmazonClient.AssertClientConfiguration(amazonCognitoIdentityProviderClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCognitoIdentityClient() - { - var amazonCognitoIdentityClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCognitoIdentityClient); - AssertAmazonClient.AssertClientConfiguration(amazonCognitoIdentityClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSecurityTokenServiceClient() - { - var amazonSecurityTokenServiceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSecurityTokenServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonSecurityTokenServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIdentityManagementServiceClient() - { - var amazonIdentityManagementServiceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonIdentityManagementServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonIdentityManagementServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonRDSClient() - { - var amazonRdsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonRdsClient); - AssertAmazonClient.AssertClientConfiguration(amazonRdsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonRDSDataServiceClient() - { - var amazonRdsDataServiceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonRdsDataServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonRdsDataServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudSearchClient() - { - var amazonCloudSearchClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCloudSearchClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudSearchClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleWorkflowClient() - { - var amazonSimpleWorkflowClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSimpleWorkflowClient); - AssertAmazonClient.AssertClientConfiguration(amazonSimpleWorkflowClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonEC2Client() - { - var amazonEc2Client = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonEc2Client); - AssertAmazonClient.AssertClientConfiguration(amazonEc2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonElastiCacheClient() - { - var amazonElastiCacheClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonElastiCacheClient); - AssertAmazonClient.AssertClientConfiguration(amazonElastiCacheClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonKeyManagementServiceClient() - { - var amazonKeyManagementServiceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonKeyManagementServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonKeyManagementServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticMapReduceClient() - { - var amazonElasticMapReduceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonElasticMapReduceClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticMapReduceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonECSClient() - { - var amazonEcsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonEcsClient); - AssertAmazonClient.AssertClientConfiguration(amazonEcsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonEKSClient() - { - var amazonEksClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonEksClient); - AssertAmazonClient.AssertClientConfiguration(amazonEksClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonXRayClient() - { - var amazonXRayClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonXRayClient); - AssertAmazonClient.AssertClientConfiguration(amazonXRayClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticBeanstalkClient() - { - var amazonElasticBeanstalkClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonElasticBeanstalkClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticBeanstalkClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAppSyncClient() - { - var amazonAppSyncClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonAppSyncClient); - AssertAmazonClient.AssertClientConfiguration(amazonAppSyncClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudFrontClient() - { - var amazonCloudFrontClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCloudFrontClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudFrontClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAthenaClient() - { - var amazonAthenaClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonAthenaClient); - AssertAmazonClient.AssertClientConfiguration(amazonAthenaClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonGlueClient() - { - var amazonGlueClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonGlueClient); - AssertAmazonClient.AssertClientConfiguration(amazonGlueClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSageMakerClient() - { - var amazonSageMakerClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSageMakerClient); - AssertAmazonClient.AssertClientConfiguration(amazonSageMakerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSageMakerRuntimeClient() - { - var amazonSageMakerRuntimeClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSageMakerRuntimeClient); - AssertAmazonClient.AssertClientConfiguration(amazonSageMakerRuntimeClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonECRClient() - { - var amazonEcrClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonEcrClient); - AssertAmazonClient.AssertClientConfiguration(amazonEcrClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonQLDBClient() - { - var amazonQldbClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonQldbClient); - AssertAmazonClient.AssertClientConfiguration(amazonQldbClient); - } - - // [Fact] - // public void Should_Able_To_Create_AmazonQLDBSessionClient() - // { - // var amazonQldbSessionClient = Session.CreateClientByImplementation(); - // - // Assert.NotNull(amazonQldbSessionClient); - // AssertAmazonClient.AssertClientConfiguration(amazonQldbSessionClient); - // } - - [Fact] - public void Should_Able_To_Create_AmazonCloudTrailClient() - { - var amazonCloudTrailClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCloudTrailClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudTrailClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonBatchClientClient() - { - var amazonBatchClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonBatchClient); - AssertAmazonClient.AssertClientConfiguration(amazonBatchClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonOrganizationsClient() - { - var amazonOrganizationsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonOrganizationsClient); - AssertAmazonClient.AssertClientConfiguration(amazonOrganizationsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAutoScalingClient() - { - var amazonAutoScalingClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonAutoScalingClient); - AssertAmazonClient.AssertClientConfiguration(amazonAutoScalingClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonMediaStoreClient() - { - var amazonMediaStoreClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonMediaStoreClient); - AssertAmazonClient.AssertClientConfiguration(amazonMediaStoreClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonMediaStoreDataClient_With_ServiceUrl() - { - var amazonMediaStoreDataClient = Session.CreateClientByImplementation(useServiceUrl:true); - - Assert.NotNull(amazonMediaStoreDataClient); - AssertAmazonClient.AssertClientConfiguration(amazonMediaStoreDataClient); - } - - [Fact] - public void Should_Throw_AmazonClientException_When_Creating_AmazonMediaStoreDataClient_If_RegionEndpoint_Used() - { - try - { - Session.CreateClientByImplementation(); - } - catch (Exception e) - { - Exception ex = e; - - while (ex != null) - { - if (ex is AmazonClientException) - { - return; - } - - ex = ex.InnerException; - } - - throw; - } - } - - [Fact] - public void Should_Able_To_Create_AmazonTransferClient() - { - var amazonTransferClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonTransferClient); - AssertAmazonClient.AssertClientConfiguration(amazonTransferClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCertificateManagerClient() - { - var amazonCertificateManagerClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCertificateManagerClient); - AssertAmazonClient.AssertClientConfiguration(amazonCertificateManagerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCodeCommitClient() - { - var amazonCodeCommitClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCodeCommitClient); - AssertAmazonClient.AssertClientConfiguration(amazonCodeCommitClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonKinesisAnalyticsClient() - { - var amazonKinesisAnalyticsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonKinesisAnalyticsClient); - AssertAmazonClient.AssertClientConfiguration(amazonKinesisAnalyticsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAmplifyClient() - { - var amazonAmplifyClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonAmplifyClient); - AssertAmazonClient.AssertClientConfiguration(amazonAmplifyClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonKafkaClient() - { - var amazonKafkaClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonKafkaClient); - AssertAmazonClient.AssertClientConfiguration(amazonKafkaClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonRedshiftDataAPIServiceClient() - { - var amazonRedshiftDataApiServiceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonRedshiftDataApiServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonRedshiftDataApiServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonApiGatewayManagementApiClient() - { - var amazonApiGatewayManagementApiClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonApiGatewayManagementApiClient); - AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayManagementApiClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonTimestreamQueryClient() - { - var amazonTimestreamQueryClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonTimestreamQueryClient); - AssertAmazonClient.AssertClientConfiguration(amazonTimestreamQueryClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonTimestreamWriteClient() - { - var amazonTimestreamWriteClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonTimestreamWriteClient); - AssertAmazonClient.AssertClientConfiguration(amazonTimestreamWriteClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonS3ControlClient() - { - var amazonS3ControlClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonS3ControlClient); - AssertAmazonClient.AssertClientConfiguration(amazonS3ControlClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticLoadBalancingV2Client() - { - var amazonElasticLoadBalancingV2Client = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonElasticLoadBalancingV2Client); - AssertAmazonClient.AssertClientConfiguration(amazonElasticLoadBalancingV2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonSupportClient() - { - var amazonSupportClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonSupportClient); - AssertAmazonClient.AssertClientConfiguration(amazonSupportClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonNeptuneClient() - { - var amazonNeptuneClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonNeptuneClient); - AssertAmazonClient.AssertClientConfiguration(amazonNeptuneClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonDocDBClient() - { - var amazonDocDbClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonDocDbClient); - AssertAmazonClient.AssertClientConfiguration(amazonDocDbClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonServiceDiscoveryClient() - { - var amazonServiceDiscoveryClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonServiceDiscoveryClient); - AssertAmazonClient.AssertClientConfiguration(amazonServiceDiscoveryClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonServerlessApplicationRepositoryClient() - { - var amazonServiceServerlessApplicationRepositoryClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonServiceServerlessApplicationRepositoryClient); - AssertAmazonClient.AssertClientConfiguration(amazonServiceServerlessApplicationRepositoryClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAppConfigClient() - { - var amazonAppConfigClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonAppConfigClient); - AssertAmazonClient.AssertClientConfiguration(amazonAppConfigClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCostExplorerClient() - { - var amazonCostExplorerClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonCostExplorerClient); - AssertAmazonClient.AssertClientConfiguration(amazonCostExplorerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonMediaConvertClient() - { - var amazonMediaConvertClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonMediaConvertClient); - AssertAmazonClient.AssertClientConfiguration(amazonMediaConvertClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonResourceGroupsTaggingAPIClient() - { - var amazonResourceGroupsTaggingApiClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonResourceGroupsTaggingApiClient); - AssertAmazonClient.AssertClientConfiguration(amazonResourceGroupsTaggingApiClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonResourceGroupsClient() - { - var amazonResourceGroupsClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonResourceGroupsClient); - AssertAmazonClient.AssertClientConfiguration(amazonResourceGroupsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticFileSystemClient() - { - var amazonElasticFileSystemClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonElasticFileSystemClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticFileSystemClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonBackupClient() - { - var amazonBackupClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonBackupClient); - AssertAmazonClient.AssertClientConfiguration(amazonBackupClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonLakeFormationClient() - { - var amazonLakeFormationClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonLakeFormationClient); - AssertAmazonClient.AssertClientConfiguration(amazonLakeFormationClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonWAFClient() - { - var amazonWafClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonWafClient); - AssertAmazonClient.AssertClientConfiguration(amazonWafClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonWAFV2Client() - { - var amazonWafV2Client = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonWafV2Client); - AssertAmazonClient.AssertClientConfiguration(amazonWafV2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonConfigServiceClient() - { - var amazonConfigServiceClient = Session.CreateClientByImplementation(); - - Assert.NotNull(amazonConfigServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient); - } + } + + [Fact] + public void Should_Able_To_Create_AmazonKinesisFirehoseClient() + { + var amazonKinesisFirehoseClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonKinesisFirehoseClient); + AssertAmazonClient.AssertClientConfiguration(amazonKinesisFirehoseClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonLambdaClient() + { + var amazonLambdaClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonLambdaClient); + AssertAmazonClient.AssertClientConfiguration(amazonLambdaClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleNotificationServiceClient() + { + var amazonSimpleNotificationServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSimpleNotificationServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonSimpleNotificationServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSQSClient() + { + var amazonSqsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSqsClient); + AssertAmazonClient.AssertClientConfiguration(amazonSqsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonRedshiftClient() + { + var amazonRedshiftClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonRedshiftClient); + AssertAmazonClient.AssertClientConfiguration(amazonRedshiftClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleEmailServiceClient() + { + var amazonSimpleEmailServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSimpleEmailServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonSimpleEmailServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleEmailServiceV2Client() + { + var simpleEmailServiceV2Client = Session.CreateClientByImplementation(); + + Assert.NotNull(simpleEmailServiceV2Client); + AssertAmazonClient.AssertClientConfiguration(simpleEmailServiceV2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonRoute53Client() + { + var amazonRoute53Client = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonRoute53Client); + AssertAmazonClient.AssertClientConfiguration(amazonRoute53Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudFormationClient() + { + var amazonCloudFormationClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCloudFormationClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudFormationClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudWatchClient() + { + var amazonCloudWatchClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCloudWatchClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleSystemsManagementClient() + { + var amazonSimpleSystemsManagementClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSimpleSystemsManagementClient); + AssertAmazonClient.AssertClientConfiguration(amazonSimpleSystemsManagementClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSecretsManagerClient() + { + var amazonSecretsManagerClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSecretsManagerClient); + AssertAmazonClient.AssertClientConfiguration(amazonSecretsManagerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonStepFunctionsClient() + { + var amazonStepFunctionsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonStepFunctionsClient); + AssertAmazonClient.AssertClientConfiguration(amazonStepFunctionsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudWatchLogsClient() + { + var amazonCloudWatchLogsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCloudWatchLogsClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchLogsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudWatchEventsClient() + { + var amazonCloudWatchEventsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCloudWatchEventsClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchEventsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticLoadBalancingClient() + { + var amazonElasticLoadBalancingClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonElasticLoadBalancingClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticLoadBalancingClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTClient() + { + var amazonIoTClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonIoTClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTAnalyticsClient() + { + var amazonIoTAnalyticsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonIoTAnalyticsClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTAnalyticsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTEventsClient() + { + var amazonIoTEventsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonIoTEventsClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTEventsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTEventsDataClient() + { + var amazonIoTEventsDataClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonIoTEventsDataClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTEventsDataClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTWirelessClient() + { + var amazonIoTWirelessClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonIoTWirelessClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTWirelessClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTDataClient_With_ServiceUr() + { + var amazonIoTDataClient = Session.CreateClientByImplementation(useServiceUrl:true); + + Assert.NotNull(amazonIoTDataClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTDataClient); + } + + [Fact] + public void Should_Throw_AmazonClientException_When_Creating_AmazonIoTDataClient_If_RegionEndpoint_Used() + { + try + { + Session.CreateClientByImplementation(); + } + catch (Exception e) + { + Exception ex = e; + + while (ex != null) + { + if (ex is AmazonClientException) + { + return; + } + + ex = ex.InnerException; + } + + throw; + } + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTJobsDataPlaneClient_With_ServiceUr() + { + var amazonIoTJobsDataPlaneClient = Session.CreateClientByImplementation(useServiceUrl:true); + + Assert.NotNull(amazonIoTJobsDataPlaneClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTJobsDataPlaneClient); + } + + [Fact] + public void Should_Throw_AmazonClientException_When_Creating_AmazonIoTJobsDataPlaneClient_If_RegionEndpoint_Used() + { + try + { + Session.CreateClientByImplementation(); + } + catch (Exception e) + { + Exception ex = e; + + while (ex != null) + { + if (ex is AmazonClientException) + { + return; + } + + ex = ex.InnerException; + } + + throw; + } + } + + [Fact] + public void Should_Able_To_Create_AmazonCognitoIdentityProviderClient() + { + var amazonCognitoIdentityProviderClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCognitoIdentityProviderClient); + AssertAmazonClient.AssertClientConfiguration(amazonCognitoIdentityProviderClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCognitoIdentityClient() + { + var amazonCognitoIdentityClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCognitoIdentityClient); + AssertAmazonClient.AssertClientConfiguration(amazonCognitoIdentityClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSecurityTokenServiceClient() + { + var amazonSecurityTokenServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSecurityTokenServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonSecurityTokenServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIdentityManagementServiceClient() + { + var amazonIdentityManagementServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonIdentityManagementServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonIdentityManagementServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonRDSClient() + { + var amazonRdsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonRdsClient); + AssertAmazonClient.AssertClientConfiguration(amazonRdsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonRDSDataServiceClient() + { + var amazonRdsDataServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonRdsDataServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonRdsDataServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudSearchClient() + { + var amazonCloudSearchClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCloudSearchClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudSearchClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleWorkflowClient() + { + var amazonSimpleWorkflowClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSimpleWorkflowClient); + AssertAmazonClient.AssertClientConfiguration(amazonSimpleWorkflowClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonEC2Client() + { + var amazonEc2Client = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonEc2Client); + AssertAmazonClient.AssertClientConfiguration(amazonEc2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonElastiCacheClient() + { + var amazonElastiCacheClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonElastiCacheClient); + AssertAmazonClient.AssertClientConfiguration(amazonElastiCacheClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonKeyManagementServiceClient() + { + var amazonKeyManagementServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonKeyManagementServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonKeyManagementServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticMapReduceClient() + { + var amazonElasticMapReduceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonElasticMapReduceClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticMapReduceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonECSClient() + { + var amazonEcsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonEcsClient); + AssertAmazonClient.AssertClientConfiguration(amazonEcsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonEKSClient() + { + var amazonEksClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonEksClient); + AssertAmazonClient.AssertClientConfiguration(amazonEksClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonXRayClient() + { + var amazonXRayClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonXRayClient); + AssertAmazonClient.AssertClientConfiguration(amazonXRayClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticBeanstalkClient() + { + var amazonElasticBeanstalkClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonElasticBeanstalkClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticBeanstalkClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAppSyncClient() + { + var amazonAppSyncClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonAppSyncClient); + AssertAmazonClient.AssertClientConfiguration(amazonAppSyncClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudFrontClient() + { + var amazonCloudFrontClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCloudFrontClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudFrontClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAthenaClient() + { + var amazonAthenaClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonAthenaClient); + AssertAmazonClient.AssertClientConfiguration(amazonAthenaClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonGlueClient() + { + var amazonGlueClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonGlueClient); + AssertAmazonClient.AssertClientConfiguration(amazonGlueClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSageMakerClient() + { + var amazonSageMakerClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSageMakerClient); + AssertAmazonClient.AssertClientConfiguration(amazonSageMakerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSageMakerRuntimeClient() + { + var amazonSageMakerRuntimeClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSageMakerRuntimeClient); + AssertAmazonClient.AssertClientConfiguration(amazonSageMakerRuntimeClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonECRClient() + { + var amazonEcrClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonEcrClient); + AssertAmazonClient.AssertClientConfiguration(amazonEcrClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonQLDBClient() + { + var amazonQldbClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonQldbClient); + AssertAmazonClient.AssertClientConfiguration(amazonQldbClient); + } + + // [Fact] + // public void Should_Able_To_Create_AmazonQLDBSessionClient() + // { + // var amazonQldbSessionClient = Session.CreateClientByImplementation(); + // + // Assert.NotNull(amazonQldbSessionClient); + // AssertAmazonClient.AssertClientConfiguration(amazonQldbSessionClient); + // } + + [Fact] + public void Should_Able_To_Create_AmazonCloudTrailClient() + { + var amazonCloudTrailClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCloudTrailClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudTrailClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonBatchClientClient() + { + var amazonBatchClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonBatchClient); + AssertAmazonClient.AssertClientConfiguration(amazonBatchClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonOrganizationsClient() + { + var amazonOrganizationsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonOrganizationsClient); + AssertAmazonClient.AssertClientConfiguration(amazonOrganizationsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAutoScalingClient() + { + var amazonAutoScalingClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonAutoScalingClient); + AssertAmazonClient.AssertClientConfiguration(amazonAutoScalingClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonMediaStoreClient() + { + var amazonMediaStoreClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonMediaStoreClient); + AssertAmazonClient.AssertClientConfiguration(amazonMediaStoreClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonMediaStoreDataClient_With_ServiceUrl() + { + var amazonMediaStoreDataClient = Session.CreateClientByImplementation(useServiceUrl:true); + + Assert.NotNull(amazonMediaStoreDataClient); + AssertAmazonClient.AssertClientConfiguration(amazonMediaStoreDataClient); + } + + [Fact] + public void Should_Throw_AmazonClientException_When_Creating_AmazonMediaStoreDataClient_If_RegionEndpoint_Used() + { + try + { + Session.CreateClientByImplementation(); + } + catch (Exception e) + { + Exception ex = e; + + while (ex != null) + { + if (ex is AmazonClientException) + { + return; + } + + ex = ex.InnerException; + } + + throw; + } + } + + [Fact] + public void Should_Able_To_Create_AmazonTransferClient() + { + var amazonTransferClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonTransferClient); + AssertAmazonClient.AssertClientConfiguration(amazonTransferClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCertificateManagerClient() + { + var amazonCertificateManagerClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCertificateManagerClient); + AssertAmazonClient.AssertClientConfiguration(amazonCertificateManagerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCodeCommitClient() + { + var amazonCodeCommitClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCodeCommitClient); + AssertAmazonClient.AssertClientConfiguration(amazonCodeCommitClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonKinesisAnalyticsClient() + { + var amazonKinesisAnalyticsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonKinesisAnalyticsClient); + AssertAmazonClient.AssertClientConfiguration(amazonKinesisAnalyticsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAmplifyClient() + { + var amazonAmplifyClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonAmplifyClient); + AssertAmazonClient.AssertClientConfiguration(amazonAmplifyClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonKafkaClient() + { + var amazonKafkaClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonKafkaClient); + AssertAmazonClient.AssertClientConfiguration(amazonKafkaClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonRedshiftDataAPIServiceClient() + { + var amazonRedshiftDataApiServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonRedshiftDataApiServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonRedshiftDataApiServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonApiGatewayManagementApiClient() + { + var amazonApiGatewayManagementApiClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonApiGatewayManagementApiClient); + AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayManagementApiClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonTimestreamQueryClient() + { + var amazonTimestreamQueryClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonTimestreamQueryClient); + AssertAmazonClient.AssertClientConfiguration(amazonTimestreamQueryClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonTimestreamWriteClient() + { + var amazonTimestreamWriteClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonTimestreamWriteClient); + AssertAmazonClient.AssertClientConfiguration(amazonTimestreamWriteClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonS3ControlClient() + { + var amazonS3ControlClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonS3ControlClient); + AssertAmazonClient.AssertClientConfiguration(amazonS3ControlClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticLoadBalancingV2Client() + { + var amazonElasticLoadBalancingV2Client = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonElasticLoadBalancingV2Client); + AssertAmazonClient.AssertClientConfiguration(amazonElasticLoadBalancingV2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonSupportClient() + { + var amazonSupportClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonSupportClient); + AssertAmazonClient.AssertClientConfiguration(amazonSupportClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonNeptuneClient() + { + var amazonNeptuneClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonNeptuneClient); + AssertAmazonClient.AssertClientConfiguration(amazonNeptuneClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonDocDBClient() + { + var amazonDocDbClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonDocDbClient); + AssertAmazonClient.AssertClientConfiguration(amazonDocDbClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonServiceDiscoveryClient() + { + var amazonServiceDiscoveryClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonServiceDiscoveryClient); + AssertAmazonClient.AssertClientConfiguration(amazonServiceDiscoveryClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonServerlessApplicationRepositoryClient() + { + var amazonServiceServerlessApplicationRepositoryClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonServiceServerlessApplicationRepositoryClient); + AssertAmazonClient.AssertClientConfiguration(amazonServiceServerlessApplicationRepositoryClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAppConfigClient() + { + var amazonAppConfigClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonAppConfigClient); + AssertAmazonClient.AssertClientConfiguration(amazonAppConfigClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCostExplorerClient() + { + var amazonCostExplorerClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonCostExplorerClient); + AssertAmazonClient.AssertClientConfiguration(amazonCostExplorerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonMediaConvertClient() + { + var amazonMediaConvertClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonMediaConvertClient); + AssertAmazonClient.AssertClientConfiguration(amazonMediaConvertClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonResourceGroupsTaggingAPIClient() + { + var amazonResourceGroupsTaggingApiClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonResourceGroupsTaggingApiClient); + AssertAmazonClient.AssertClientConfiguration(amazonResourceGroupsTaggingApiClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonResourceGroupsClient() + { + var amazonResourceGroupsClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonResourceGroupsClient); + AssertAmazonClient.AssertClientConfiguration(amazonResourceGroupsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticFileSystemClient() + { + var amazonElasticFileSystemClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonElasticFileSystemClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticFileSystemClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonBackupClient() + { + var amazonBackupClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonBackupClient); + AssertAmazonClient.AssertClientConfiguration(amazonBackupClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonLakeFormationClient() + { + var amazonLakeFormationClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonLakeFormationClient); + AssertAmazonClient.AssertClientConfiguration(amazonLakeFormationClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonWAFClient() + { + var amazonWafClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonWafClient); + AssertAmazonClient.AssertClientConfiguration(amazonWafClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonWAFV2Client() + { + var amazonWafV2Client = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonWafV2Client); + AssertAmazonClient.AssertClientConfiguration(amazonWafV2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonConfigServiceClient() + { + var amazonConfigServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonConfigServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient); + } } diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs index 50d7c24..95ecb40 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs @@ -2,880 +2,880 @@ public class CreateClientByInterfaceTests { - private static readonly ISession Session; - - static CreateClientByInterfaceTests() - { - Session = SessionStandalone.Init() - - .WithSessionOptions(new SessionOptions(regionName: AssertAmazonClient.TestAwsRegion)) - .Create(); - } - - [Fact] - public void Should_Able_To_Create_AmazonAPIGatewayClient() - { - AmazonServiceClient amazonApiGatewayClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonApiGatewayClient); - AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonApiGatewayV2Client() - { - AmazonServiceClient amazonApiGatewayV2Client = Session.CreateClientByInterface(); - - Assert.NotNull(amazonApiGatewayV2Client); - AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayV2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonS3Client() - { - AmazonServiceClient amazonS3Client = Session.CreateClientByInterface(); - - Assert.NotNull(amazonS3Client); - AssertAmazonClient.AssertClientConfiguration(amazonS3Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonDynamoDBClient() - { - AmazonServiceClient amazonDynamoDbClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonDynamoDbClient); - AssertAmazonClient.AssertClientConfiguration(amazonDynamoDbClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticsearchClient() - { - AmazonServiceClient amazonElasticsearchClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonElasticsearchClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticsearchClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonKinesisFirehoseClient() - { - AmazonServiceClient amazonKinesisFirehoseClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonKinesisFirehoseClient); - AssertAmazonClient.AssertClientConfiguration(amazonKinesisFirehoseClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonLambdaClient() - { - AmazonServiceClient amazonLambdaClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonLambdaClient); - AssertAmazonClient.AssertClientConfiguration(amazonLambdaClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleNotificationServiceClient() - { - AmazonServiceClient amazonSimpleNotificationServiceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSimpleNotificationServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonSimpleNotificationServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSQSClient() - { - AmazonServiceClient amazonSqsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSqsClient); - AssertAmazonClient.AssertClientConfiguration(amazonSqsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonRedshiftClient() - { - AmazonServiceClient amazonRedshiftClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonRedshiftClient); - AssertAmazonClient.AssertClientConfiguration(amazonRedshiftClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleEmailServiceClient() - { - AmazonServiceClient amazonSimpleEmailServiceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSimpleEmailServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonSimpleEmailServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleEmailServiceV2Client() - { - AmazonServiceClient simpleEmailServiceV2Client = Session.CreateClientByInterface(); - - Assert.NotNull(simpleEmailServiceV2Client); - AssertAmazonClient.AssertClientConfiguration(simpleEmailServiceV2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonRoute53Client() - { - AmazonServiceClient amazonRoute53Client = Session.CreateClientByInterface(); - - Assert.NotNull(amazonRoute53Client); - AssertAmazonClient.AssertClientConfiguration(amazonRoute53Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudFormationClient() - { - AmazonServiceClient amazonCloudFormationClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCloudFormationClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudFormationClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudWatchClient() - { - AmazonServiceClient amazonCloudWatchClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCloudWatchClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleSystemsManagementClient() - { - AmazonServiceClient amazonSimpleSystemsManagementClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSimpleSystemsManagementClient); - AssertAmazonClient.AssertClientConfiguration(amazonSimpleSystemsManagementClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSecretsManagerClient() - { - AmazonServiceClient amazonSecretsManagerClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSecretsManagerClient); - AssertAmazonClient.AssertClientConfiguration(amazonSecretsManagerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonStepFunctionsClient() - { - AmazonServiceClient amazonSecretsManagerClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSecretsManagerClient); - AssertAmazonClient.AssertClientConfiguration(amazonSecretsManagerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudWatchLogsClient() - { - AmazonServiceClient amazonCloudWatchLogsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCloudWatchLogsClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchLogsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudWatchEventsClient() - { - AmazonServiceClient amazonCloudWatchEventsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCloudWatchEventsClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchEventsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticLoadBalancingClient() - { - AmazonServiceClient amazonElasticLoadBalancingClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonElasticLoadBalancingClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticLoadBalancingClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTClient() - { - AmazonServiceClient amazonIoTClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonIoTClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTAnalyticsClient() - { - AmazonServiceClient amazonIoTAnalyticsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonIoTAnalyticsClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTAnalyticsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTEventsClient() - { - AmazonServiceClient amazonIoTEventsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonIoTEventsClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTEventsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTEventsDataClient() - { - AmazonServiceClient amazonIoTEventsDataClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonIoTEventsDataClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTEventsDataClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTWirelessClient() - { - AmazonServiceClient amazonIoTWirelessClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonIoTWirelessClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTWirelessClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTDataClient_With_ServiceUrl() - { - AmazonServiceClient amazonIoTDataClient = Session.CreateClientByInterface(useServiceUrl:true); - - Assert.NotNull(amazonIoTDataClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTDataClient); - } - - [Fact] - public void Should_Throw_AmazonClientException_When_Creating_AmazonIoTDataClient_If_RegionEndpoint_Used() - { - try - { - Session.CreateClientByInterface(); - } - catch (Exception e) - { - Exception ex = e; - - while (ex != null) - { - if (ex is AmazonClientException) - { - return; - } - - ex = ex.InnerException; - } - - throw; - } - } - - [Fact] - public void Should_Able_To_Create_AmazonIoTJobsDataPlaneClient_With_ServiceUrl() - { - AmazonServiceClient amazonIoTJobsDataPlaneClient = Session.CreateClientByInterface(useServiceUrl:true); - - Assert.NotNull(amazonIoTJobsDataPlaneClient); - AssertAmazonClient.AssertClientConfiguration(amazonIoTJobsDataPlaneClient); - } - - [Fact] - public void Should_Throw_AmazonClientException_When_Creating_AmazonIoTJobsDataPlaneClient_If_RegionEndpoint_Used() - { - try - { - Session.CreateClientByInterface(); - } - catch (Exception e) - { - Exception ex = e; - - while (ex != null) - { - if (ex is AmazonClientException) - { - return; - } - - ex = ex.InnerException; - } - - throw; - } - } - - [Fact] - public void Should_Able_To_Create_AmazonCognitoIdentityProviderClient() - { - AmazonServiceClient amazonCognitoIdentityProviderClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCognitoIdentityProviderClient); - AssertAmazonClient.AssertClientConfiguration(amazonCognitoIdentityProviderClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCognitoIdentityClient() - { - AmazonServiceClient amazonCognitoIdentityClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCognitoIdentityClient); - AssertAmazonClient.AssertClientConfiguration(amazonCognitoIdentityClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSecurityTokenServiceClient() - { - AmazonServiceClient amazonSecurityTokenServiceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSecurityTokenServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonSecurityTokenServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonIdentityManagementServiceClient() - { - AmazonServiceClient amazonIdentityManagementServiceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonIdentityManagementServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonIdentityManagementServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonRDSClient() - { - AmazonServiceClient amazonRdsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonRdsClient); - AssertAmazonClient.AssertClientConfiguration(amazonRdsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonRDSDataServiceClient() - { - AmazonServiceClient amazonRdsDataServiceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonRdsDataServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonRdsDataServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudSearchClient() - { - AmazonServiceClient amazonCloudSearchClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCloudSearchClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudSearchClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSimpleWorkflowClient() - { - AmazonServiceClient amazonSimpleWorkflowClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSimpleWorkflowClient); - AssertAmazonClient.AssertClientConfiguration(amazonSimpleWorkflowClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonEC2Client() - { - AmazonServiceClient amazonEc2Client = Session.CreateClientByInterface(); - - Assert.NotNull(amazonEc2Client); - AssertAmazonClient.AssertClientConfiguration(amazonEc2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonElastiCacheClient() - { - AmazonServiceClient amazonElastiCacheClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonElastiCacheClient); - AssertAmazonClient.AssertClientConfiguration(amazonElastiCacheClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonKeyManagementServiceClient() - { - AmazonServiceClient amazonKeyManagementServiceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonKeyManagementServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonKeyManagementServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticMapReduceClient() - { - AmazonServiceClient amazonElasticMapReduceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonElasticMapReduceClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticMapReduceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonECSClient() - { - AmazonServiceClient amazonEcsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonEcsClient); - AssertAmazonClient.AssertClientConfiguration(amazonEcsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonEKSClient() - { - AmazonServiceClient amazonEksClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonEksClient); - AssertAmazonClient.AssertClientConfiguration(amazonEksClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonXRayClient() - { - AmazonServiceClient amazonXRayClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonXRayClient); - AssertAmazonClient.AssertClientConfiguration(amazonXRayClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticBeanstalkClient() - { - AmazonServiceClient amazonElasticBeanstalkClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonElasticBeanstalkClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticBeanstalkClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAppSyncClient() - { - AmazonServiceClient amazonAppSyncClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonAppSyncClient); - AssertAmazonClient.AssertClientConfiguration(amazonAppSyncClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCloudFrontClient() - { - AmazonServiceClient amazonCloudFrontClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCloudFrontClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudFrontClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAthenaClient() - { - AmazonServiceClient amazonAthenaClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonAthenaClient); - AssertAmazonClient.AssertClientConfiguration(amazonAthenaClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonGlueClient() - { - AmazonServiceClient amazonGlueClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonGlueClient); - AssertAmazonClient.AssertClientConfiguration(amazonGlueClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSageMakerClient() - { - AmazonServiceClient amazonSageMakerClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSageMakerClient); - AssertAmazonClient.AssertClientConfiguration(amazonSageMakerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonSageMakerRuntimeClient() - { - AmazonServiceClient amazonSageMakerRuntimeClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSageMakerRuntimeClient); - AssertAmazonClient.AssertClientConfiguration(amazonSageMakerRuntimeClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonECRClient() - { - AmazonServiceClient amazonEcrClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonEcrClient); - AssertAmazonClient.AssertClientConfiguration(amazonEcrClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonQLDBClient() - { - AmazonServiceClient amazonQldbClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonQldbClient); - AssertAmazonClient.AssertClientConfiguration(amazonQldbClient); - } - - // [Fact] - // public void Should_Able_To_Create_AmazonQLDBSessionClient() - // { - // AmazonServiceClient amazonQldbSessionClient = Session.CreateClientByInterface(); - // - // Assert.NotNull(amazonQldbSessionClient); - // AssertAmazonClient.AssertClientConfiguration(amazonQldbSessionClient); - // } - - [Fact] - public void Should_Able_To_Create_AmazonCloudTrailClient() - { - AmazonServiceClient amazonCloudTrailClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCloudTrailClient); - AssertAmazonClient.AssertClientConfiguration(amazonCloudTrailClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonBatchClientClient() - { - AmazonServiceClient amazonBatchClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonBatchClient); - AssertAmazonClient.AssertClientConfiguration(amazonBatchClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonOrganizationsClient() - { - AmazonServiceClient amazonOrganizationsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonOrganizationsClient); - AssertAmazonClient.AssertClientConfiguration(amazonOrganizationsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAutoScalingClient() - { - AmazonServiceClient amazonAutoScalingClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonAutoScalingClient); - AssertAmazonClient.AssertClientConfiguration(amazonAutoScalingClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonMediaStoreClient() - { - AmazonServiceClient amazonMediaStoreClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonMediaStoreClient); - AssertAmazonClient.AssertClientConfiguration(amazonMediaStoreClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonMediaStoreDataClient_With_ServiceUrl() - { - AmazonServiceClient amazonMediaStoreDataClient = Session.CreateClientByInterface(useServiceUrl:true); - - Assert.NotNull(amazonMediaStoreDataClient); - AssertAmazonClient.AssertClientConfiguration(amazonMediaStoreDataClient); - } - - [Fact] - public void Should_Throw_AmazonClientException_When_Creating_AmazonMediaStoreDataClient_If_RegionEndpoint_Used() - { - try - { - Session.CreateClientByInterface(); - } - catch (Exception e) - { - Exception ex = e; - - while (ex != null) - { - if (ex is AmazonClientException) - { - return; - } - - ex = ex.InnerException; - } - - throw; - } - } - - [Fact] - public void Should_Able_To_Create_AmazonTransferClient() - { - AmazonServiceClient amazonTransferClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonTransferClient); - AssertAmazonClient.AssertClientConfiguration(amazonTransferClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCertificateManagerClient() - { - AmazonServiceClient amazonCertificateManagerClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCertificateManagerClient); - AssertAmazonClient.AssertClientConfiguration(amazonCertificateManagerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCodeCommitClient() - { - AmazonServiceClient amazonCodeCommitClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCodeCommitClient); - AssertAmazonClient.AssertClientConfiguration(amazonCodeCommitClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonKinesisAnalyticsClient() - { - AmazonServiceClient amazonKinesisAnalyticsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonKinesisAnalyticsClient); - AssertAmazonClient.AssertClientConfiguration(amazonKinesisAnalyticsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAmplifyClient() - { - AmazonServiceClient amazonAmplifyClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonAmplifyClient); - AssertAmazonClient.AssertClientConfiguration(amazonAmplifyClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonKafkaClient() - { - AmazonServiceClient amazonKafkaClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonKafkaClient); - AssertAmazonClient.AssertClientConfiguration(amazonKafkaClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonRedshiftDataAPIServiceClient() - { - AmazonServiceClient amazonRedshiftDataApiServiceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonRedshiftDataApiServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonRedshiftDataApiServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonApiGatewayManagementApiClient() - { - AmazonServiceClient amazonApiGatewayManagementApiClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonApiGatewayManagementApiClient); - AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayManagementApiClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonTimestreamQueryClient() - { - AmazonServiceClient amazonTimestreamQueryClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonTimestreamQueryClient); - AssertAmazonClient.AssertClientConfiguration(amazonTimestreamQueryClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonTimestreamWriteClient() - { - AmazonServiceClient amazonTimestreamWriteClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonTimestreamWriteClient); - AssertAmazonClient.AssertClientConfiguration(amazonTimestreamWriteClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonS3ControlClient() - { - AmazonServiceClient amazonS3ControlClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonS3ControlClient); - AssertAmazonClient.AssertClientConfiguration(amazonS3ControlClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticLoadBalancingV2Client() - { - AmazonServiceClient amazonElasticLoadBalancingV2Client = Session.CreateClientByInterface(); - - Assert.NotNull(amazonElasticLoadBalancingV2Client); - AssertAmazonClient.AssertClientConfiguration(amazonElasticLoadBalancingV2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonSupportClient() - { - AmazonServiceClient amazonSupportClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonSupportClient); - AssertAmazonClient.AssertClientConfiguration(amazonSupportClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonNeptuneClient() - { - AmazonServiceClient amazonNeptuneClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonNeptuneClient); - AssertAmazonClient.AssertClientConfiguration(amazonNeptuneClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonDocDBClient() - { - AmazonServiceClient amazonDocDbClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonDocDbClient); - AssertAmazonClient.AssertClientConfiguration(amazonDocDbClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonServiceDiscoveryClient() - { - AmazonServiceClient amazonServiceDiscoveryClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonServiceDiscoveryClient); - AssertAmazonClient.AssertClientConfiguration(amazonServiceDiscoveryClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonServerlessApplicationRepositoryClient() - { - AmazonServiceClient amazonServiceServerlessApplicationRepositoryClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonServiceServerlessApplicationRepositoryClient); - AssertAmazonClient.AssertClientConfiguration(amazonServiceServerlessApplicationRepositoryClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonAppConfigClient() - { - AmazonServiceClient amazonAppConfigClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonAppConfigClient); - AssertAmazonClient.AssertClientConfiguration(amazonAppConfigClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonCostExplorerClient() - { - AmazonServiceClient amazonCostExplorerClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonCostExplorerClient); - AssertAmazonClient.AssertClientConfiguration(amazonCostExplorerClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonMediaConvertClient() - { - AmazonServiceClient amazonMediaConvertClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonMediaConvertClient); - AssertAmazonClient.AssertClientConfiguration(amazonMediaConvertClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonResourceGroupsTaggingAPIClient() - { - AmazonServiceClient amazonResourceGroupsTaggingApiClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonResourceGroupsTaggingApiClient); - AssertAmazonClient.AssertClientConfiguration(amazonResourceGroupsTaggingApiClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonResourceGroupsClient() - { - AmazonServiceClient amazonResourceGroupsClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonResourceGroupsClient); - AssertAmazonClient.AssertClientConfiguration(amazonResourceGroupsClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonElasticFileSystemClient() - { - AmazonServiceClient amazonElasticFileSystemClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonElasticFileSystemClient); - AssertAmazonClient.AssertClientConfiguration(amazonElasticFileSystemClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonBackupClient() - { - AmazonServiceClient amazonBackupClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonBackupClient); - AssertAmazonClient.AssertClientConfiguration(amazonBackupClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonLakeFormationClient() - { - AmazonServiceClient amazonLakeFormationClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonLakeFormationClient); - AssertAmazonClient.AssertClientConfiguration(amazonLakeFormationClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonWAFClient() - { - AmazonServiceClient amazonWafClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonWafClient); - AssertAmazonClient.AssertClientConfiguration(amazonWafClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonWAFV2Client() - { - AmazonServiceClient amazonWafV2Client = Session.CreateClientByInterface(); - - Assert.NotNull(amazonWafV2Client); - AssertAmazonClient.AssertClientConfiguration(amazonWafV2Client); - } - - [Fact] - public void Should_Able_To_Create_AmazonConfigServiceClient() - { - AmazonServiceClient amazonConfigServiceClient = Session.CreateClientByInterface(); - - Assert.NotNull(amazonConfigServiceClient); - AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient); - } - - [Fact] - public void Should_Able_To_Create_AmazonEventBridgeClient() - { - AmazonServiceClient amazonEventBridgeClient = Session.CreateClientByInterface(); + private static readonly ISession Session; + + static CreateClientByInterfaceTests() + { + Session = SessionStandalone.Init() + + .WithSessionOptions(new SessionOptions(regionName: AssertAmazonClient.TestAwsRegion)) + .Create(); + } + + [Fact] + public void Should_Able_To_Create_AmazonAPIGatewayClient() + { + AmazonServiceClient amazonApiGatewayClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonApiGatewayClient); + AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonApiGatewayV2Client() + { + AmazonServiceClient amazonApiGatewayV2Client = Session.CreateClientByInterface(); + + Assert.NotNull(amazonApiGatewayV2Client); + AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayV2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonS3Client() + { + AmazonServiceClient amazonS3Client = Session.CreateClientByInterface(); + + Assert.NotNull(amazonS3Client); + AssertAmazonClient.AssertClientConfiguration(amazonS3Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonDynamoDBClient() + { + AmazonServiceClient amazonDynamoDbClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonDynamoDbClient); + AssertAmazonClient.AssertClientConfiguration(amazonDynamoDbClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticsearchClient() + { + AmazonServiceClient amazonElasticsearchClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonElasticsearchClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticsearchClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonEventBridgeClient() + { + AmazonServiceClient amazonEventBridgeClient = Session.CreateClientByInterface(); Assert.NotNull(amazonEventBridgeClient); AssertAmazonClient.AssertClientConfiguration(amazonEventBridgeClient); - } + } + + [Fact] + public void Should_Able_To_Create_AmazonKinesisFirehoseClient() + { + AmazonServiceClient amazonKinesisFirehoseClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonKinesisFirehoseClient); + AssertAmazonClient.AssertClientConfiguration(amazonKinesisFirehoseClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonLambdaClient() + { + AmazonServiceClient amazonLambdaClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonLambdaClient); + AssertAmazonClient.AssertClientConfiguration(amazonLambdaClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleNotificationServiceClient() + { + AmazonServiceClient amazonSimpleNotificationServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSimpleNotificationServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonSimpleNotificationServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSQSClient() + { + AmazonServiceClient amazonSqsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSqsClient); + AssertAmazonClient.AssertClientConfiguration(amazonSqsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonRedshiftClient() + { + AmazonServiceClient amazonRedshiftClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonRedshiftClient); + AssertAmazonClient.AssertClientConfiguration(amazonRedshiftClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleEmailServiceClient() + { + AmazonServiceClient amazonSimpleEmailServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSimpleEmailServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonSimpleEmailServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleEmailServiceV2Client() + { + AmazonServiceClient simpleEmailServiceV2Client = Session.CreateClientByInterface(); + + Assert.NotNull(simpleEmailServiceV2Client); + AssertAmazonClient.AssertClientConfiguration(simpleEmailServiceV2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonRoute53Client() + { + AmazonServiceClient amazonRoute53Client = Session.CreateClientByInterface(); + + Assert.NotNull(amazonRoute53Client); + AssertAmazonClient.AssertClientConfiguration(amazonRoute53Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudFormationClient() + { + AmazonServiceClient amazonCloudFormationClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCloudFormationClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudFormationClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudWatchClient() + { + AmazonServiceClient amazonCloudWatchClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCloudWatchClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleSystemsManagementClient() + { + AmazonServiceClient amazonSimpleSystemsManagementClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSimpleSystemsManagementClient); + AssertAmazonClient.AssertClientConfiguration(amazonSimpleSystemsManagementClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSecretsManagerClient() + { + AmazonServiceClient amazonSecretsManagerClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSecretsManagerClient); + AssertAmazonClient.AssertClientConfiguration(amazonSecretsManagerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonStepFunctionsClient() + { + AmazonServiceClient amazonSecretsManagerClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSecretsManagerClient); + AssertAmazonClient.AssertClientConfiguration(amazonSecretsManagerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudWatchLogsClient() + { + AmazonServiceClient amazonCloudWatchLogsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCloudWatchLogsClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchLogsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudWatchEventsClient() + { + AmazonServiceClient amazonCloudWatchEventsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCloudWatchEventsClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudWatchEventsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticLoadBalancingClient() + { + AmazonServiceClient amazonElasticLoadBalancingClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonElasticLoadBalancingClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticLoadBalancingClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTClient() + { + AmazonServiceClient amazonIoTClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonIoTClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTAnalyticsClient() + { + AmazonServiceClient amazonIoTAnalyticsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonIoTAnalyticsClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTAnalyticsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTEventsClient() + { + AmazonServiceClient amazonIoTEventsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonIoTEventsClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTEventsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTEventsDataClient() + { + AmazonServiceClient amazonIoTEventsDataClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonIoTEventsDataClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTEventsDataClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTWirelessClient() + { + AmazonServiceClient amazonIoTWirelessClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonIoTWirelessClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTWirelessClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTDataClient_With_ServiceUrl() + { + AmazonServiceClient amazonIoTDataClient = Session.CreateClientByInterface(useServiceUrl:true); + + Assert.NotNull(amazonIoTDataClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTDataClient); + } + + [Fact] + public void Should_Throw_AmazonClientException_When_Creating_AmazonIoTDataClient_If_RegionEndpoint_Used() + { + try + { + Session.CreateClientByInterface(); + } + catch (Exception e) + { + Exception ex = e; + + while (ex != null) + { + if (ex is AmazonClientException) + { + return; + } + + ex = ex.InnerException; + } + + throw; + } + } + + [Fact] + public void Should_Able_To_Create_AmazonIoTJobsDataPlaneClient_With_ServiceUrl() + { + AmazonServiceClient amazonIoTJobsDataPlaneClient = Session.CreateClientByInterface(useServiceUrl:true); + + Assert.NotNull(amazonIoTJobsDataPlaneClient); + AssertAmazonClient.AssertClientConfiguration(amazonIoTJobsDataPlaneClient); + } + + [Fact] + public void Should_Throw_AmazonClientException_When_Creating_AmazonIoTJobsDataPlaneClient_If_RegionEndpoint_Used() + { + try + { + Session.CreateClientByInterface(); + } + catch (Exception e) + { + Exception ex = e; + + while (ex != null) + { + if (ex is AmazonClientException) + { + return; + } + + ex = ex.InnerException; + } + + throw; + } + } + + [Fact] + public void Should_Able_To_Create_AmazonCognitoIdentityProviderClient() + { + AmazonServiceClient amazonCognitoIdentityProviderClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCognitoIdentityProviderClient); + AssertAmazonClient.AssertClientConfiguration(amazonCognitoIdentityProviderClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCognitoIdentityClient() + { + AmazonServiceClient amazonCognitoIdentityClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCognitoIdentityClient); + AssertAmazonClient.AssertClientConfiguration(amazonCognitoIdentityClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSecurityTokenServiceClient() + { + AmazonServiceClient amazonSecurityTokenServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSecurityTokenServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonSecurityTokenServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonIdentityManagementServiceClient() + { + AmazonServiceClient amazonIdentityManagementServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonIdentityManagementServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonIdentityManagementServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonRDSClient() + { + AmazonServiceClient amazonRdsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonRdsClient); + AssertAmazonClient.AssertClientConfiguration(amazonRdsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonRDSDataServiceClient() + { + AmazonServiceClient amazonRdsDataServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonRdsDataServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonRdsDataServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudSearchClient() + { + AmazonServiceClient amazonCloudSearchClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCloudSearchClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudSearchClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSimpleWorkflowClient() + { + AmazonServiceClient amazonSimpleWorkflowClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSimpleWorkflowClient); + AssertAmazonClient.AssertClientConfiguration(amazonSimpleWorkflowClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonEC2Client() + { + AmazonServiceClient amazonEc2Client = Session.CreateClientByInterface(); + + Assert.NotNull(amazonEc2Client); + AssertAmazonClient.AssertClientConfiguration(amazonEc2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonElastiCacheClient() + { + AmazonServiceClient amazonElastiCacheClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonElastiCacheClient); + AssertAmazonClient.AssertClientConfiguration(amazonElastiCacheClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonKeyManagementServiceClient() + { + AmazonServiceClient amazonKeyManagementServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonKeyManagementServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonKeyManagementServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticMapReduceClient() + { + AmazonServiceClient amazonElasticMapReduceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonElasticMapReduceClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticMapReduceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonECSClient() + { + AmazonServiceClient amazonEcsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonEcsClient); + AssertAmazonClient.AssertClientConfiguration(amazonEcsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonEKSClient() + { + AmazonServiceClient amazonEksClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonEksClient); + AssertAmazonClient.AssertClientConfiguration(amazonEksClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonXRayClient() + { + AmazonServiceClient amazonXRayClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonXRayClient); + AssertAmazonClient.AssertClientConfiguration(amazonXRayClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticBeanstalkClient() + { + AmazonServiceClient amazonElasticBeanstalkClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonElasticBeanstalkClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticBeanstalkClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAppSyncClient() + { + AmazonServiceClient amazonAppSyncClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonAppSyncClient); + AssertAmazonClient.AssertClientConfiguration(amazonAppSyncClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCloudFrontClient() + { + AmazonServiceClient amazonCloudFrontClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCloudFrontClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudFrontClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAthenaClient() + { + AmazonServiceClient amazonAthenaClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonAthenaClient); + AssertAmazonClient.AssertClientConfiguration(amazonAthenaClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonGlueClient() + { + AmazonServiceClient amazonGlueClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonGlueClient); + AssertAmazonClient.AssertClientConfiguration(amazonGlueClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSageMakerClient() + { + AmazonServiceClient amazonSageMakerClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSageMakerClient); + AssertAmazonClient.AssertClientConfiguration(amazonSageMakerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonSageMakerRuntimeClient() + { + AmazonServiceClient amazonSageMakerRuntimeClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSageMakerRuntimeClient); + AssertAmazonClient.AssertClientConfiguration(amazonSageMakerRuntimeClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonECRClient() + { + AmazonServiceClient amazonEcrClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonEcrClient); + AssertAmazonClient.AssertClientConfiguration(amazonEcrClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonQLDBClient() + { + AmazonServiceClient amazonQldbClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonQldbClient); + AssertAmazonClient.AssertClientConfiguration(amazonQldbClient); + } + + // [Fact] + // public void Should_Able_To_Create_AmazonQLDBSessionClient() + // { + // AmazonServiceClient amazonQldbSessionClient = Session.CreateClientByInterface(); + // + // Assert.NotNull(amazonQldbSessionClient); + // AssertAmazonClient.AssertClientConfiguration(amazonQldbSessionClient); + // } + + [Fact] + public void Should_Able_To_Create_AmazonCloudTrailClient() + { + AmazonServiceClient amazonCloudTrailClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCloudTrailClient); + AssertAmazonClient.AssertClientConfiguration(amazonCloudTrailClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonBatchClientClient() + { + AmazonServiceClient amazonBatchClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonBatchClient); + AssertAmazonClient.AssertClientConfiguration(amazonBatchClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonOrganizationsClient() + { + AmazonServiceClient amazonOrganizationsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonOrganizationsClient); + AssertAmazonClient.AssertClientConfiguration(amazonOrganizationsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAutoScalingClient() + { + AmazonServiceClient amazonAutoScalingClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonAutoScalingClient); + AssertAmazonClient.AssertClientConfiguration(amazonAutoScalingClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonMediaStoreClient() + { + AmazonServiceClient amazonMediaStoreClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonMediaStoreClient); + AssertAmazonClient.AssertClientConfiguration(amazonMediaStoreClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonMediaStoreDataClient_With_ServiceUrl() + { + AmazonServiceClient amazonMediaStoreDataClient = Session.CreateClientByInterface(useServiceUrl:true); + + Assert.NotNull(amazonMediaStoreDataClient); + AssertAmazonClient.AssertClientConfiguration(amazonMediaStoreDataClient); + } + + [Fact] + public void Should_Throw_AmazonClientException_When_Creating_AmazonMediaStoreDataClient_If_RegionEndpoint_Used() + { + try + { + Session.CreateClientByInterface(); + } + catch (Exception e) + { + Exception ex = e; + + while (ex != null) + { + if (ex is AmazonClientException) + { + return; + } + + ex = ex.InnerException; + } + + throw; + } + } + + [Fact] + public void Should_Able_To_Create_AmazonTransferClient() + { + AmazonServiceClient amazonTransferClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonTransferClient); + AssertAmazonClient.AssertClientConfiguration(amazonTransferClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCertificateManagerClient() + { + AmazonServiceClient amazonCertificateManagerClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCertificateManagerClient); + AssertAmazonClient.AssertClientConfiguration(amazonCertificateManagerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCodeCommitClient() + { + AmazonServiceClient amazonCodeCommitClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCodeCommitClient); + AssertAmazonClient.AssertClientConfiguration(amazonCodeCommitClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonKinesisAnalyticsClient() + { + AmazonServiceClient amazonKinesisAnalyticsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonKinesisAnalyticsClient); + AssertAmazonClient.AssertClientConfiguration(amazonKinesisAnalyticsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAmplifyClient() + { + AmazonServiceClient amazonAmplifyClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonAmplifyClient); + AssertAmazonClient.AssertClientConfiguration(amazonAmplifyClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonKafkaClient() + { + AmazonServiceClient amazonKafkaClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonKafkaClient); + AssertAmazonClient.AssertClientConfiguration(amazonKafkaClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonRedshiftDataAPIServiceClient() + { + AmazonServiceClient amazonRedshiftDataApiServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonRedshiftDataApiServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonRedshiftDataApiServiceClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonApiGatewayManagementApiClient() + { + AmazonServiceClient amazonApiGatewayManagementApiClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonApiGatewayManagementApiClient); + AssertAmazonClient.AssertClientConfiguration(amazonApiGatewayManagementApiClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonTimestreamQueryClient() + { + AmazonServiceClient amazonTimestreamQueryClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonTimestreamQueryClient); + AssertAmazonClient.AssertClientConfiguration(amazonTimestreamQueryClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonTimestreamWriteClient() + { + AmazonServiceClient amazonTimestreamWriteClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonTimestreamWriteClient); + AssertAmazonClient.AssertClientConfiguration(amazonTimestreamWriteClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonS3ControlClient() + { + AmazonServiceClient amazonS3ControlClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonS3ControlClient); + AssertAmazonClient.AssertClientConfiguration(amazonS3ControlClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticLoadBalancingV2Client() + { + AmazonServiceClient amazonElasticLoadBalancingV2Client = Session.CreateClientByInterface(); + + Assert.NotNull(amazonElasticLoadBalancingV2Client); + AssertAmazonClient.AssertClientConfiguration(amazonElasticLoadBalancingV2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonSupportClient() + { + AmazonServiceClient amazonSupportClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonSupportClient); + AssertAmazonClient.AssertClientConfiguration(amazonSupportClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonNeptuneClient() + { + AmazonServiceClient amazonNeptuneClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonNeptuneClient); + AssertAmazonClient.AssertClientConfiguration(amazonNeptuneClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonDocDBClient() + { + AmazonServiceClient amazonDocDbClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonDocDbClient); + AssertAmazonClient.AssertClientConfiguration(amazonDocDbClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonServiceDiscoveryClient() + { + AmazonServiceClient amazonServiceDiscoveryClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonServiceDiscoveryClient); + AssertAmazonClient.AssertClientConfiguration(amazonServiceDiscoveryClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonServerlessApplicationRepositoryClient() + { + AmazonServiceClient amazonServiceServerlessApplicationRepositoryClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonServiceServerlessApplicationRepositoryClient); + AssertAmazonClient.AssertClientConfiguration(amazonServiceServerlessApplicationRepositoryClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonAppConfigClient() + { + AmazonServiceClient amazonAppConfigClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonAppConfigClient); + AssertAmazonClient.AssertClientConfiguration(amazonAppConfigClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonCostExplorerClient() + { + AmazonServiceClient amazonCostExplorerClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonCostExplorerClient); + AssertAmazonClient.AssertClientConfiguration(amazonCostExplorerClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonMediaConvertClient() + { + AmazonServiceClient amazonMediaConvertClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonMediaConvertClient); + AssertAmazonClient.AssertClientConfiguration(amazonMediaConvertClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonResourceGroupsTaggingAPIClient() + { + AmazonServiceClient amazonResourceGroupsTaggingApiClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonResourceGroupsTaggingApiClient); + AssertAmazonClient.AssertClientConfiguration(amazonResourceGroupsTaggingApiClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonResourceGroupsClient() + { + AmazonServiceClient amazonResourceGroupsClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonResourceGroupsClient); + AssertAmazonClient.AssertClientConfiguration(amazonResourceGroupsClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonElasticFileSystemClient() + { + AmazonServiceClient amazonElasticFileSystemClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonElasticFileSystemClient); + AssertAmazonClient.AssertClientConfiguration(amazonElasticFileSystemClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonBackupClient() + { + AmazonServiceClient amazonBackupClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonBackupClient); + AssertAmazonClient.AssertClientConfiguration(amazonBackupClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonLakeFormationClient() + { + AmazonServiceClient amazonLakeFormationClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonLakeFormationClient); + AssertAmazonClient.AssertClientConfiguration(amazonLakeFormationClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonWAFClient() + { + AmazonServiceClient amazonWafClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonWafClient); + AssertAmazonClient.AssertClientConfiguration(amazonWafClient); + } + + [Fact] + public void Should_Able_To_Create_AmazonWAFV2Client() + { + AmazonServiceClient amazonWafV2Client = Session.CreateClientByInterface(); + + Assert.NotNull(amazonWafV2Client); + AssertAmazonClient.AssertClientConfiguration(amazonWafV2Client); + } + + [Fact] + public void Should_Able_To_Create_AmazonConfigServiceClient() + { + AmazonServiceClient amazonConfigServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonConfigServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient); + } } diff --git a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj index ec10a31..7bd6eb6 100644 --- a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj +++ b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj @@ -38,7 +38,7 @@ - + From a20eaea1a2bcecb84a050d41921966c852847b9e Mon Sep 17 00:00:00 2001 From: Blind-Striker Date: Mon, 29 Nov 2021 01:23:19 +0300 Subject: [PATCH 04/11] fix broken link in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a3e73ea..fbe26d7 100644 --- a/README.md +++ b/README.md @@ -394,7 +394,7 @@ ServiceProvider serviceProvider = collection.BuildServiceProvider(); var amazonS3Client = serviceProvider.GetRequiredService(); ``` -See [useServiceUrl] parameter usage (#standalone-useserviceurl) +See [useServiceUrl](#standalone-useserviceurl) parameter usage. ## Developing From 3420bfff245a1c9982f1aec06ca5ca18cff6f653 Mon Sep 17 00:00:00 2001 From: "deniz_irgin@yahoo.com" Date: Wed, 20 Apr 2022 23:52:13 +0300 Subject: [PATCH 05/11] add Route53Resolver support --- src/LocalStack.Client.Extensions/README.md | 2 +- .../Enums/AwsServiceEndpointMetadata.cs | 3 ++- src/LocalStack.Client/Enums/AwsServiceEnum.cs | 1 + src/LocalStack.Client/README.md | 2 +- .../AssertAmazonClient.cs | 2 +- .../CreateClientByImplementationTests.cs | 13 ++++++++++++- .../CreateClientByInterfaceTests.cs | 13 ++++++++++++- .../LocalStack.Client.Integration.Tests.csproj | 1 + 8 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/LocalStack.Client.Extensions/README.md b/src/LocalStack.Client.Extensions/README.md index a3e73ea..fbe26d7 100644 --- a/src/LocalStack.Client.Extensions/README.md +++ b/src/LocalStack.Client.Extensions/README.md @@ -394,7 +394,7 @@ ServiceProvider serviceProvider = collection.BuildServiceProvider(); var amazonS3Client = serviceProvider.GetRequiredService(); ``` -See [useServiceUrl] parameter usage (#standalone-useserviceurl) +See [useServiceUrl](#standalone-useserviceurl) parameter usage. ## Developing diff --git a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs index 34dd3f4..160b9a8 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs @@ -22,6 +22,7 @@ public class AwsServiceEndpointMetadata public static readonly AwsServiceEndpointMetadata Ses = new("SES", "ses", CommonEndpointPattern, 4579, AwsServiceEnum.Ses); public static readonly AwsServiceEndpointMetadata Sesv2 = new("SESv2", "sesv2", CommonEndpointPattern, 4579, AwsServiceEnum.Sesv2); public static readonly AwsServiceEndpointMetadata Route53 = new("Route 53", "route53", CommonEndpointPattern, 4580, AwsServiceEnum.Route53); + public static readonly AwsServiceEndpointMetadata Route53Resolver = new("Route53Resolver", "route53resolver", CommonEndpointPattern, 4580, AwsServiceEnum.Route53Resolver); public static readonly AwsServiceEndpointMetadata CloudFormation = new("CloudFormation", "cloudformation", CommonEndpointPattern, 4581, AwsServiceEnum.CloudFormation); public static readonly AwsServiceEndpointMetadata CloudWatch = new("CloudWatch", "cloudwatch", CommonEndpointPattern, 4582, AwsServiceEnum.CloudWatch); public static readonly AwsServiceEndpointMetadata Ssm = new("SSM", "ssm", CommonEndpointPattern, 4583, AwsServiceEnum.Ssm); @@ -102,7 +103,7 @@ public class AwsServiceEndpointMetadata public static readonly AwsServiceEndpointMetadata[] All = { - ApiGateway, ApiGatewayV2, Kinesis, DynamoDb, DynamoDbStreams, ElasticSearch, S3, Firehose, Lambda, Sns, Sqs, Redshift, RedshiftData, Es, Ses, Sesv2, Route53, CloudFormation, CloudWatch, + ApiGateway, ApiGatewayV2, Kinesis, DynamoDb, DynamoDbStreams, ElasticSearch, S3, Firehose, Lambda, Sns, Sqs, Redshift, RedshiftData, Es, Ses, Sesv2, Route53, Route53Resolver, CloudFormation, CloudWatch, Ssm, SecretsManager, StepFunctions, Logs, Events, Elb, Iot, IoTAnalytics, IoTEvents, IoTEventsData, IoTWireless, IoTDataPlane, IoTJobsDataPlane, CognitoIdp, CognitoIdentity, Sts, Iam, Rds, RdsData, CloudSearch, Swf, Ec2, ElastiCache, Kms, Emr, Ecs, Eks, XRay, ElasticBeanstalk, AppSync, CloudFront, Athena, Glue, SageMaker, SageMakerRuntime, Ecr, Qldb, QldbSession, CloudTrail, Glacier, Batch, Organizations, AutoScaling, MediaStore, MediaStoreData, Transfer, Acm, CodeCommit, KinesisAnalytics, Amplify, ApplicationAutoscaling, Kafka, ApiGatewayManagementApi, diff --git a/src/LocalStack.Client/Enums/AwsServiceEnum.cs b/src/LocalStack.Client/Enums/AwsServiceEnum.cs index e4c5375..e143c8d 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEnum.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEnum.cs @@ -19,6 +19,7 @@ public enum AwsServiceEnum Ses, Sesv2, Route53, + Route53Resolver, CloudFormation, CloudWatch, Ssm, diff --git a/src/LocalStack.Client/README.md b/src/LocalStack.Client/README.md index a3e73ea..fbe26d7 100644 --- a/src/LocalStack.Client/README.md +++ b/src/LocalStack.Client/README.md @@ -394,7 +394,7 @@ ServiceProvider serviceProvider = collection.BuildServiceProvider(); var amazonS3Client = serviceProvider.GetRequiredService(); ``` -See [useServiceUrl] parameter usage (#standalone-useserviceurl) +See [useServiceUrl](#standalone-useserviceurl) parameter usage. ## Developing diff --git a/tests/LocalStack.Client.Integration.Tests/AssertAmazonClient.cs b/tests/LocalStack.Client.Integration.Tests/AssertAmazonClient.cs index b5c338a..c729422 100644 --- a/tests/LocalStack.Client.Integration.Tests/AssertAmazonClient.cs +++ b/tests/LocalStack.Client.Integration.Tests/AssertAmazonClient.cs @@ -10,7 +10,7 @@ public static void AssertClientConfiguration(AmazonServiceClient amazonServiceCl if (clientConfig.ServiceURL != null) { - Assert.Equal($"http://{Constants.LocalStackHost}:{Constants.EdgePort}", clientConfig.ServiceURL); + Assert.Equal($"http://{Constants.LocalStackHost}:{Constants.EdgePort}/", clientConfig.ServiceURL); } else if(clientConfig.ServiceURL == null) { diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs index a315d2c..a22e2ee 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs @@ -1,4 +1,6 @@ -namespace LocalStack.Client.Integration.Tests; +using Amazon.Route53Resolver; + +namespace LocalStack.Client.Integration.Tests; public class CreateClientByImplementationTests { @@ -138,6 +140,15 @@ public void Should_Able_To_Create_AmazonRoute53Client() AssertAmazonClient.AssertClientConfiguration(amazonRoute53Client); } + [Fact] + public void Should_Able_To_Create_AmazonRoute53ResolverClient() + { + var amazonRoute53ResolverClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonRoute53ResolverClient); + AssertAmazonClient.AssertClientConfiguration(amazonRoute53ResolverClient); + } + [Fact] public void Should_Able_To_Create_AmazonCloudFormationClient() { diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs index 95ecb40..2bf2826 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs @@ -1,4 +1,6 @@ -namespace LocalStack.Client.Integration.Tests; +using Amazon.Route53Resolver; + +namespace LocalStack.Client.Integration.Tests; public class CreateClientByInterfaceTests { @@ -138,6 +140,15 @@ public void Should_Able_To_Create_AmazonRoute53Client() AssertAmazonClient.AssertClientConfiguration(amazonRoute53Client); } + [Fact] + public void Should_Able_To_Create_AmazonRoute53ResolverClient() + { + AmazonServiceClient amazonRoute53ResolverClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonRoute53ResolverClient); + AssertAmazonClient.AssertClientConfiguration(amazonRoute53ResolverClient); + } + [Fact] public void Should_Able_To_Create_AmazonCloudFormationClient() { diff --git a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj index 7bd6eb6..280e0cf 100644 --- a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj +++ b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj @@ -75,6 +75,7 @@ + From 0de8e814ebd4fa1c488a7aec40326e76fc105978 Mon Sep 17 00:00:00 2001 From: "deniz_irgin@yahoo.com" Date: Thu, 21 Apr 2022 00:05:00 +0300 Subject: [PATCH 06/11] add KinesisAnalyticsV2 and OpenSearch support --- .../Enums/AwsServiceEndpointMetadata.cs | 8 ++++--- src/LocalStack.Client/Enums/AwsServiceEnum.cs | 2 ++ .../CreateClientByImplementationTests.cs | 22 ++++++++++++++++--- .../CreateClientByInterfaceTests.cs | 22 ++++++++++++++++--- .../GlobalUsings.cs | 13 ++++++----- ...LocalStack.Client.Integration.Tests.csproj | 2 ++ 6 files changed, 55 insertions(+), 14 deletions(-) diff --git a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs index 160b9a8..39544c0 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs @@ -11,6 +11,7 @@ public class AwsServiceEndpointMetadata public static readonly AwsServiceEndpointMetadata DynamoDb = new("DynamoDB", "dynamodb", CommonEndpointPattern, 4569, AwsServiceEnum.DynamoDb); public static readonly AwsServiceEndpointMetadata DynamoDbStreams = new("DynamoDB Streams", "dynamodbstreams", CommonEndpointPattern, 4570, AwsServiceEnum.DynamoDbStreams); public static readonly AwsServiceEndpointMetadata ElasticSearch = new("Elasticsearch Service", "elasticsearch", CommonEndpointPattern, 4571, AwsServiceEnum.ElasticSearch); + public static readonly AwsServiceEndpointMetadata OpenSearch = new("OpenSearch", "opensearch", CommonEndpointPattern, 4571, AwsServiceEnum.OpenSearch); public static readonly AwsServiceEndpointMetadata S3 = new("S3", "s3", CommonEndpointPattern, 4572, AwsServiceEnum.S3); public static readonly AwsServiceEndpointMetadata Firehose = new("Firehose", "firehose", CommonEndpointPattern, 4573, AwsServiceEnum.Firehose); public static readonly AwsServiceEndpointMetadata Lambda = new("Lambda", "lambda", CommonEndpointPattern, 4574, AwsServiceEnum.Lambda); @@ -74,6 +75,7 @@ public class AwsServiceEndpointMetadata public static readonly AwsServiceEndpointMetadata Acm = new("ACM", "acm", CommonEndpointPattern, 4619, AwsServiceEnum.Acm); public static readonly AwsServiceEndpointMetadata CodeCommit = new("CodeCommit", "codecommit", CommonEndpointPattern, 4620, AwsServiceEnum.CodeCommit); public static readonly AwsServiceEndpointMetadata KinesisAnalytics = new("Kinesis Analytics", "kinesisanalytics", CommonEndpointPattern, 4621, AwsServiceEnum.KinesisAnalytics); + public static readonly AwsServiceEndpointMetadata KinesisAnalyticsV2 = new("Kinesis Analytics V2", "kinesisanalyticsv2", CommonEndpointPattern, 4621, AwsServiceEnum.KinesisAnalyticsV2); public static readonly AwsServiceEndpointMetadata Amplify = new("Amplify", "amplify", CommonEndpointPattern, 4622, AwsServiceEnum.Amplify); public static readonly AwsServiceEndpointMetadata ApplicationAutoscaling = new("Application Auto Scaling", "application-autoscaling", CommonEndpointPattern, 4623, AwsServiceEnum.ApplicationAutoscaling); public static readonly AwsServiceEndpointMetadata Kafka = new("Kafka", "kafka", CommonEndpointPattern, 4624, AwsServiceEnum.Kafka); @@ -103,10 +105,10 @@ public class AwsServiceEndpointMetadata public static readonly AwsServiceEndpointMetadata[] All = { - ApiGateway, ApiGatewayV2, Kinesis, DynamoDb, DynamoDbStreams, ElasticSearch, S3, Firehose, Lambda, Sns, Sqs, Redshift, RedshiftData, Es, Ses, Sesv2, Route53, Route53Resolver, CloudFormation, CloudWatch, - Ssm, SecretsManager, StepFunctions, Logs, Events, Elb, Iot, IoTAnalytics, IoTEvents, IoTEventsData, IoTWireless, IoTDataPlane, IoTJobsDataPlane, CognitoIdp, CognitoIdentity, Sts, + ApiGateway, ApiGatewayV2, Kinesis, DynamoDb, DynamoDbStreams, ElasticSearch, OpenSearch, S3, Firehose, Lambda, Sns, Sqs, Redshift, RedshiftData, Es, Ses, Sesv2, Route53, Route53Resolver, CloudFormation, + CloudWatch, Ssm, SecretsManager, StepFunctions, Logs, Events, Elb, Iot, IoTAnalytics, IoTEvents, IoTEventsData, IoTWireless, IoTDataPlane, IoTJobsDataPlane, CognitoIdp, CognitoIdentity, Sts, Iam, Rds, RdsData, CloudSearch, Swf, Ec2, ElastiCache, Kms, Emr, Ecs, Eks, XRay, ElasticBeanstalk, AppSync, CloudFront, Athena, Glue, SageMaker, SageMakerRuntime, Ecr, Qldb, QldbSession, - CloudTrail, Glacier, Batch, Organizations, AutoScaling, MediaStore, MediaStoreData, Transfer, Acm, CodeCommit, KinesisAnalytics, Amplify, ApplicationAutoscaling, Kafka, ApiGatewayManagementApi, + CloudTrail, Glacier, Batch, Organizations, AutoScaling, MediaStore, MediaStoreData, Transfer, Acm, CodeCommit, KinesisAnalytics, KinesisAnalyticsV2, Amplify, ApplicationAutoscaling, Kafka, ApiGatewayManagementApi, TimeStreamQuery, TimeStreamWrite, S3Control, ElbV2, Support, Neptune, DocDb, ServiceDiscovery, ServerlessApplicationRepository, AppConfig, CostExplorer, MediaConvert, ResourceGroupsTaggingApi, ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService, EventBridge }; diff --git a/src/LocalStack.Client/Enums/AwsServiceEnum.cs b/src/LocalStack.Client/Enums/AwsServiceEnum.cs index e143c8d..9b9b494 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEnum.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEnum.cs @@ -8,6 +8,7 @@ public enum AwsServiceEnum DynamoDb, DynamoDbStreams, ElasticSearch, + OpenSearch, S3, Firehose, Lambda, @@ -71,6 +72,7 @@ public enum AwsServiceEnum Acm, CodeCommit, KinesisAnalytics, + KinesisAnalyticsV2, Amplify, ApplicationAutoscaling, Kafka, diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs index a22e2ee..8c66b05 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs @@ -1,6 +1,4 @@ -using Amazon.Route53Resolver; - -namespace LocalStack.Client.Integration.Tests; +namespace LocalStack.Client.Integration.Tests; public class CreateClientByImplementationTests { @@ -59,6 +57,15 @@ public void Should_Able_To_Create_AmazonElasticsearchClient() AssertAmazonClient.AssertClientConfiguration(amazonElasticsearchClient); } + [Fact] + public void Should_Able_To_Create_AmazonOpenSearchServiceClient() + { + var amazonOpenSearchServiceClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonOpenSearchServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonOpenSearchServiceClient); + } + [Fact] public void Should_Able_To_Create_AmazonEventBridgeClient() { @@ -674,6 +681,15 @@ public void Should_Able_To_Create_AmazonKinesisAnalyticsClient() AssertAmazonClient.AssertClientConfiguration(amazonKinesisAnalyticsClient); } + [Fact] + public void Should_Able_To_Create_AmazonKinesisAnalyticsV2Client() + { + var kinesisAnalyticsV2Client = Session.CreateClientByImplementation(); + + Assert.NotNull(kinesisAnalyticsV2Client); + AssertAmazonClient.AssertClientConfiguration(kinesisAnalyticsV2Client); + } + [Fact] public void Should_Able_To_Create_AmazonAmplifyClient() { diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs index 2bf2826..3e85e82 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs @@ -1,6 +1,4 @@ -using Amazon.Route53Resolver; - -namespace LocalStack.Client.Integration.Tests; +namespace LocalStack.Client.Integration.Tests; public class CreateClientByInterfaceTests { @@ -59,6 +57,15 @@ public void Should_Able_To_Create_AmazonElasticsearchClient() AssertAmazonClient.AssertClientConfiguration(amazonElasticsearchClient); } + [Fact] + public void Should_Able_To_Create_AmazonOpenSearchServiceClient() + { + AmazonServiceClient amazonOpenSearchServiceClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonOpenSearchServiceClient); + AssertAmazonClient.AssertClientConfiguration(amazonOpenSearchServiceClient); + } + [Fact] public void Should_Able_To_Create_AmazonEventBridgeClient() { @@ -674,6 +681,15 @@ public void Should_Able_To_Create_AmazonKinesisAnalyticsClient() AssertAmazonClient.AssertClientConfiguration(amazonKinesisAnalyticsClient); } + [Fact] + public void Should_Able_To_Create_AmazonKinesisAnalyticsV2Client() + { + AmazonServiceClient kinesisAnalyticsV2Client = Session.CreateClientByInterface(); + + Assert.NotNull(kinesisAnalyticsV2Client); + AssertAmazonClient.AssertClientConfiguration(kinesisAnalyticsV2Client); + } + [Fact] public void Should_Able_To_Create_AmazonAmplifyClient() { diff --git a/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs b/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs index aabc346..d691029 100644 --- a/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs +++ b/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs @@ -1,7 +1,4 @@ -global using System; -global using System.Reflection; - -global using Amazon; +global using Amazon; global using Amazon.Amplify; global using Amazon.APIGateway; global using Amazon.ApiGatewayManagementApi; @@ -52,6 +49,7 @@ global using Amazon.Kafka; global using Amazon.KeyManagementService; global using Amazon.KinesisAnalytics; +global using Amazon.KinesisAnalyticsV2; global using Amazon.KinesisFirehose; global using Amazon.LakeFormation; global using Amazon.Lambda; @@ -59,6 +57,7 @@ global using Amazon.MediaStore; global using Amazon.MediaStoreData; global using Amazon.Neptune; +global using Amazon.OpenSearchService; global using Amazon.Organizations; global using Amazon.QLDB; global using Amazon.RDS; @@ -68,6 +67,7 @@ global using Amazon.ResourceGroups; global using Amazon.ResourceGroupsTaggingAPI; global using Amazon.Route53; +global using Amazon.Route53Resolver; global using Amazon.Runtime; global using Amazon.S3; global using Amazon.S3Control; @@ -91,9 +91,12 @@ global using Amazon.WAFV2; global using Amazon.XRay; -global using LocalStack.Client.Options; global using LocalStack.Client.Contracts; global using LocalStack.Client.Exceptions; global using LocalStack.Client.Models; +global using LocalStack.Client.Options; + +global using System; +global using System.Reflection; global using Xunit; diff --git a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj index 280e0cf..13d418d 100644 --- a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj +++ b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj @@ -45,6 +45,7 @@ + @@ -58,6 +59,7 @@ + From 9892c5daa4e075ba4fffb7422bfdeda746781205 Mon Sep 17 00:00:00 2001 From: "deniz_irgin@yahoo.com" Date: Thu, 21 Apr 2022 00:10:48 +0300 Subject: [PATCH 07/11] add Amazon Managed Workflows for Apache Airflow (MWAA) support --- .../Enums/AwsServiceEndpointMetadata.cs | 3 ++- src/LocalStack.Client/Enums/AwsServiceEnum.cs | 1 + .../CreateClientByImplementationTests.cs | 9 +++++++++ .../CreateClientByInterfaceTests.cs | 9 +++++++++ .../LocalStack.Client.Integration.Tests/GlobalUsings.cs | 1 + .../LocalStack.Client.Integration.Tests.csproj | 1 + 6 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs index 39544c0..72d394a 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs @@ -100,6 +100,7 @@ public class AwsServiceEndpointMetadata public static readonly AwsServiceEndpointMetadata Waf = new("WAF", "waf", CommonEndpointPattern, 4640, AwsServiceEnum.Waf); public static readonly AwsServiceEndpointMetadata WafV2 = new("WAFV2", "wafv2", CommonEndpointPattern, 4640, AwsServiceEnum.WafV2); public static readonly AwsServiceEndpointMetadata ConfigService = new("Config Service", "config", CommonEndpointPattern, 4641, AwsServiceEnum.ConfigService); + public static readonly AwsServiceEndpointMetadata Mwaa = new("MWAA", "mwaa", CommonEndpointPattern, 4642, AwsServiceEnum.Mwaa); public static readonly AwsServiceEndpointMetadata EventBridge = new("EventBridge", "eventbridge", CommonEndpointPattern, 4587, AwsServiceEnum.EventBridge); @@ -110,7 +111,7 @@ public class AwsServiceEndpointMetadata Iam, Rds, RdsData, CloudSearch, Swf, Ec2, ElastiCache, Kms, Emr, Ecs, Eks, XRay, ElasticBeanstalk, AppSync, CloudFront, Athena, Glue, SageMaker, SageMakerRuntime, Ecr, Qldb, QldbSession, CloudTrail, Glacier, Batch, Organizations, AutoScaling, MediaStore, MediaStoreData, Transfer, Acm, CodeCommit, KinesisAnalytics, KinesisAnalyticsV2, Amplify, ApplicationAutoscaling, Kafka, ApiGatewayManagementApi, TimeStreamQuery, TimeStreamWrite, S3Control, ElbV2, Support, Neptune, DocDb, ServiceDiscovery, ServerlessApplicationRepository, AppConfig, CostExplorer, MediaConvert, ResourceGroupsTaggingApi, - ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService, EventBridge + ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService, Mwaa, EventBridge }; private AwsServiceEndpointMetadata() diff --git a/src/LocalStack.Client/Enums/AwsServiceEnum.cs b/src/LocalStack.Client/Enums/AwsServiceEnum.cs index 9b9b494..f08758f 100644 --- a/src/LocalStack.Client/Enums/AwsServiceEnum.cs +++ b/src/LocalStack.Client/Enums/AwsServiceEnum.cs @@ -97,5 +97,6 @@ public enum AwsServiceEnum Waf, WafV2, ConfigService, + Mwaa, EventBridge } \ No newline at end of file diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs index 8c66b05..3fc2950 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs @@ -905,4 +905,13 @@ public void Should_Able_To_Create_AmazonConfigServiceClient() Assert.NotNull(amazonConfigServiceClient); AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient); } + + [Fact] + public void Should_Able_To_Create_AmazonMWAAClient() + { + var amazonMwaaClient = Session.CreateClientByImplementation(); + + Assert.NotNull(amazonMwaaClient); + AssertAmazonClient.AssertClientConfiguration(amazonMwaaClient); + } } diff --git a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs index 3e85e82..53f0987 100644 --- a/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs +++ b/tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs @@ -905,4 +905,13 @@ public void Should_Able_To_Create_AmazonConfigServiceClient() Assert.NotNull(amazonConfigServiceClient); AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient); } + + [Fact] + public void Should_Able_To_Create_AmazonMWAAClient() + { + AmazonServiceClient amazonMwaaClient = Session.CreateClientByInterface(); + + Assert.NotNull(amazonMwaaClient); + AssertAmazonClient.AssertClientConfiguration(amazonMwaaClient); + } } diff --git a/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs b/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs index d691029..74f9151 100644 --- a/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs +++ b/tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs @@ -56,6 +56,7 @@ global using Amazon.MediaConvert; global using Amazon.MediaStore; global using Amazon.MediaStoreData; +global using Amazon.MWAA; global using Amazon.Neptune; global using Amazon.OpenSearchService; global using Amazon.Organizations; diff --git a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj index 13d418d..5292bd3 100644 --- a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj +++ b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj @@ -30,6 +30,7 @@ + From 3bc1d1872360410874e826449ca7a326b55f0332 Mon Sep 17 00:00:00 2001 From: "deniz_irgin@yahoo.com" Date: Thu, 21 Apr 2022 00:18:40 +0300 Subject: [PATCH 08/11] update localstack container to 0.14.2 --- .../Fixtures/LocalStackFixture.cs | 4 ++-- tests/sandboxes/LocalStack.Container/Program.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/LocalStack.Client.Functional.Tests/Fixtures/LocalStackFixture.cs b/tests/LocalStack.Client.Functional.Tests/Fixtures/LocalStackFixture.cs index d0c0e12..9c7efea 100644 --- a/tests/LocalStack.Client.Functional.Tests/Fixtures/LocalStackFixture.cs +++ b/tests/LocalStack.Client.Functional.Tests/Fixtures/LocalStackFixture.cs @@ -7,8 +7,8 @@ public class LocalStackFixture : IAsyncLifetime public LocalStackFixture() { ITestcontainersBuilder localStackBuilder = new TestcontainersBuilder() - .WithName($"LocalStack-0.13.0-{DateTime.Now.Ticks}") - .WithImage("localstack/localstack:0.13.0") + .WithName($"LocalStack-0.14.2-{DateTime.Now.Ticks}") + .WithImage("localstack/localstack:0.14.2") .WithCleanUp(true) .WithEnvironment("SERVICES", "s3,dynamodb,sqs,sns") .WithEnvironment("DOCKER_HOST", "unix:///var/run/docker.sock") diff --git a/tests/sandboxes/LocalStack.Container/Program.cs b/tests/sandboxes/LocalStack.Container/Program.cs index bb39494..8b3af81 100644 --- a/tests/sandboxes/LocalStack.Container/Program.cs +++ b/tests/sandboxes/LocalStack.Container/Program.cs @@ -8,8 +8,8 @@ Console.ReadLine(); ITestcontainersBuilder localStackBuilder = new TestcontainersBuilder() - .WithName("LocalStack-0.13.0") - .WithImage("localstack/localstack:0.13.0") + .WithName("LocalStack-0.14.2") + .WithImage("localstack/localstack:0.14.2") .WithCleanUp(true) .WithEnvironment("DEFAULT_REGION", "eu-central-1") .WithEnvironment("SERVICES", "iam,lambda,dynamodb,apigateway,s3,sns,cloudformation,cloudwatch,sts") From a58badc0d6786881a18ac76acab4f69f10e8da61 Mon Sep 17 00:00:00 2001 From: "deniz_irgin@yahoo.com" Date: Thu, 21 Apr 2022 00:53:45 +0300 Subject: [PATCH 09/11] set AWSSDK.Core version to 3.7.9 and update packages --- build/LocalStack.Build/GlobalUsings.cs | 30 ++++++++++--------- .../LocalStack.Build/LocalStack.Build.csproj | 4 +-- build/LocalStack.Build/Program.cs | 4 +-- build/scripts/packageUpdatee.ps1 | 14 +++++++++ src/Directory.Build.props | 2 +- .../LocalStack.Client.Extensions.csproj | 4 +-- .../LocalStack.Client.csproj | 2 +- .../LocalStack.Client.Extensions.Tests.csproj | 10 +++---- .../LocalStack.Client.Functional.Tests.csproj | 18 +++++------ ...LocalStack.Client.Integration.Tests.csproj | 2 +- .../LocalStack.Client.Tests.csproj | 8 ++--- ....Client.Sandbox.DependencyInjection.csproj | 12 ++++---- ...tack.Client.Sandbox.WithGenericHost.csproj | 12 ++++---- .../LocalStack.Client.Sandbox.csproj | 2 +- 14 files changed, 69 insertions(+), 55 deletions(-) create mode 100644 build/scripts/packageUpdatee.ps1 diff --git a/build/LocalStack.Build/GlobalUsings.cs b/build/LocalStack.Build/GlobalUsings.cs index cee24ea..61987d7 100644 --- a/build/LocalStack.Build/GlobalUsings.cs +++ b/build/LocalStack.Build/GlobalUsings.cs @@ -1,27 +1,29 @@ -global using System; -global using System.IO; -global using System.Collections.Generic; -global using System.Collections.Immutable; -global using System.Linq; -global using System.Text; -global using System.Text.RegularExpressions; - -global using Cake.Common; +global using Cake.Common; +global using Cake.Common.Diagnostics; global using Cake.Common.IO; global using Cake.Common.IO.Paths; -global using Cake.Common.Tools.NuGet; -global using Cake.Common.Tools.NuGet.Install; -global using Cake.Common.Diagnostics; -global using Cake.Common.Tools.DotNetCore.NuGet.Push; +global using Cake.Common.Tools.DotNet.MSBuild; global using Cake.Common.Tools.DotNetCore; global using Cake.Common.Tools.DotNetCore.Build; global using Cake.Common.Tools.DotNetCore.MSBuild; +global using Cake.Common.Tools.DotNetCore.NuGet.Push; global using Cake.Common.Tools.DotNetCore.Pack; global using Cake.Common.Tools.DotNetCore.Test; +global using Cake.Common.Tools.NuGet; +global using Cake.Common.Tools.NuGet.Install; global using Cake.Common.Tools.NuGet.List; global using Cake.Core; global using Cake.Core.IO; +global using Cake.Docker; global using Cake.Frosting; global using LocalStack.Build; -global using LocalStack.Build.Models; \ No newline at end of file +global using LocalStack.Build.Models; + +global using System; +global using System.Collections.Generic; +global using System.Collections.Immutable; +global using System.IO; +global using System.Linq; +global using System.Text; +global using System.Text.RegularExpressions; \ No newline at end of file diff --git a/build/LocalStack.Build/LocalStack.Build.csproj b/build/LocalStack.Build/LocalStack.Build.csproj index e0c8120..7780e66 100644 --- a/build/LocalStack.Build/LocalStack.Build.csproj +++ b/build/LocalStack.Build/LocalStack.Build.csproj @@ -7,7 +7,7 @@ CA1303 - - + + diff --git a/build/LocalStack.Build/Program.cs b/build/LocalStack.Build/Program.cs index f3a4122..99b5cf3 100644 --- a/build/LocalStack.Build/Program.cs +++ b/build/LocalStack.Build/Program.cs @@ -1,6 +1,4 @@ -using Cake.Docker; - -return new CakeHost() +return new CakeHost() .UseContext() .Run(args); diff --git a/build/scripts/packageUpdatee.ps1 b/build/scripts/packageUpdatee.ps1 new file mode 100644 index 0000000..6e26f9a --- /dev/null +++ b/build/scripts/packageUpdatee.ps1 @@ -0,0 +1,14 @@ +$regex = [regex] 'PackageReference Include="([^"]*)" Version="([^"]*)"' +ForEach ($file in get-childitem . -recurse | where {$_.extension -like "*proj"}) +{ + $proj = $file.fullname + $content = Get-Content $proj + $match = $regex.Match($content) + if ($match.Success) { + $name = $match.Groups[1].Value + $version = $match.Groups[2].Value + if ($version -notin "-") { + iex "dotnet add $proj package $name" + } + } +} \ No newline at end of file diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 53b7949..f707cd2 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -5,6 +5,6 @@ LocalStack.NET https://github.com/localstack-dotnet/localstack-dotnet-client localstack-dotnet-square.png - 1.3 + 1.3.1 \ No newline at end of file diff --git a/src/LocalStack.Client.Extensions/LocalStack.Client.Extensions.csproj b/src/LocalStack.Client.Extensions/LocalStack.Client.Extensions.csproj index f2e01ac..99bf263 100644 --- a/src/LocalStack.Client.Extensions/LocalStack.Client.Extensions.csproj +++ b/src/LocalStack.Client.Extensions/LocalStack.Client.Extensions.csproj @@ -6,7 +6,7 @@ LocalStack.Client.Extensions LocalStack.Client.Extensions latest - 1.1.2 + 1.1.3 LocalStack.NET Client @@ -25,7 +25,7 @@ - + diff --git a/src/LocalStack.Client/LocalStack.Client.csproj b/src/LocalStack.Client/LocalStack.Client.csproj index 0f00c9c..278777d 100644 --- a/src/LocalStack.Client/LocalStack.Client.csproj +++ b/src/LocalStack.Client/LocalStack.Client.csproj @@ -24,7 +24,7 @@ - + diff --git a/tests/LocalStack.Client.Extensions.Tests/LocalStack.Client.Extensions.Tests.csproj b/tests/LocalStack.Client.Extensions.Tests/LocalStack.Client.Extensions.Tests.csproj index 557993d..c71ea49 100644 --- a/tests/LocalStack.Client.Extensions.Tests/LocalStack.Client.Extensions.Tests.csproj +++ b/tests/LocalStack.Client.Extensions.Tests/LocalStack.Client.Extensions.Tests.csproj @@ -7,9 +7,9 @@ - - - + + + @@ -21,9 +21,9 @@ runtime; build; native; contentfiles; analyzers - + - + diff --git a/tests/LocalStack.Client.Functional.Tests/LocalStack.Client.Functional.Tests.csproj b/tests/LocalStack.Client.Functional.Tests/LocalStack.Client.Functional.Tests.csproj index af3e900..3e59ff8 100644 --- a/tests/LocalStack.Client.Functional.Tests/LocalStack.Client.Functional.Tests.csproj +++ b/tests/LocalStack.Client.Functional.Tests/LocalStack.Client.Functional.Tests.csproj @@ -17,10 +17,10 @@ - - + + - + @@ -31,17 +31,17 @@ all runtime; build; native; contentfiles; analyzers - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - - + + + + diff --git a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj index 5292bd3..ca81f7f 100644 --- a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj +++ b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj @@ -7,7 +7,7 @@ - + diff --git a/tests/LocalStack.Client.Tests/LocalStack.Client.Tests.csproj b/tests/LocalStack.Client.Tests/LocalStack.Client.Tests.csproj index db5edab..7133c0d 100644 --- a/tests/LocalStack.Client.Tests/LocalStack.Client.Tests.csproj +++ b/tests/LocalStack.Client.Tests/LocalStack.Client.Tests.csproj @@ -7,8 +7,8 @@ - - + + @@ -20,11 +20,11 @@ runtime; build; native; contentfiles; analyzers - + - + diff --git a/tests/sandboxes/LocalStack.Client.Sandbox.DependencyInjection/LocalStack.Client.Sandbox.DependencyInjection.csproj b/tests/sandboxes/LocalStack.Client.Sandbox.DependencyInjection/LocalStack.Client.Sandbox.DependencyInjection.csproj index 13492a8..115ced2 100644 --- a/tests/sandboxes/LocalStack.Client.Sandbox.DependencyInjection/LocalStack.Client.Sandbox.DependencyInjection.csproj +++ b/tests/sandboxes/LocalStack.Client.Sandbox.DependencyInjection/LocalStack.Client.Sandbox.DependencyInjection.csproj @@ -23,12 +23,12 @@ - - - - - - + + + + + + diff --git a/tests/sandboxes/LocalStack.Client.Sandbox.WithGenericHost/LocalStack.Client.Sandbox.WithGenericHost.csproj b/tests/sandboxes/LocalStack.Client.Sandbox.WithGenericHost/LocalStack.Client.Sandbox.WithGenericHost.csproj index 2dc1a34..8d2b054 100644 --- a/tests/sandboxes/LocalStack.Client.Sandbox.WithGenericHost/LocalStack.Client.Sandbox.WithGenericHost.csproj +++ b/tests/sandboxes/LocalStack.Client.Sandbox.WithGenericHost/LocalStack.Client.Sandbox.WithGenericHost.csproj @@ -17,12 +17,12 @@ - - - - - - + + + + + + diff --git a/tests/sandboxes/LocalStack.Client.Sandbox/LocalStack.Client.Sandbox.csproj b/tests/sandboxes/LocalStack.Client.Sandbox/LocalStack.Client.Sandbox.csproj index 5268f49..a62a810 100644 --- a/tests/sandboxes/LocalStack.Client.Sandbox/LocalStack.Client.Sandbox.csproj +++ b/tests/sandboxes/LocalStack.Client.Sandbox/LocalStack.Client.Sandbox.csproj @@ -8,7 +8,7 @@ - + From b2f88f0a9f8193503fe472d14b4425c179d90516 Mon Sep 17 00:00:00 2001 From: "deniz_irgin@yahoo.com" Date: Thu, 21 Apr 2022 01:23:41 +0300 Subject: [PATCH 10/11] update packages in integration tests project --- build/scripts/packageUpdate.ps1 | 17 ++ build/scripts/packageUpdatee.ps1 | 14 -- .../LocalStack.Client.Functional.Tests.csproj | 2 +- ...LocalStack.Client.Integration.Tests.csproj | 182 +++++++++--------- 4 files changed, 109 insertions(+), 106 deletions(-) create mode 100644 build/scripts/packageUpdate.ps1 delete mode 100644 build/scripts/packageUpdatee.ps1 diff --git a/build/scripts/packageUpdate.ps1 b/build/scripts/packageUpdate.ps1 new file mode 100644 index 0000000..48318fe --- /dev/null +++ b/build/scripts/packageUpdate.ps1 @@ -0,0 +1,17 @@ +$regex = 'PackageReference Include="([^"]*)" Version="([^"]*)"' + +ForEach ($file in get-childitem . -recurse | where {$_.extension -like "*proj"}) +{ + $packages = Get-Content $file.FullName | + select-string -pattern $regex -AllMatches | + ForEach-Object {$_.Matches} | + ForEach-Object {$_.Groups[1].Value.ToString()}| + sort -Unique + + ForEach ($package in $packages) + { + write-host "Update $file package :$package" -foreground 'magenta' + $fullName = $file.FullName + iex "dotnet add $fullName package $package" + } +} \ No newline at end of file diff --git a/build/scripts/packageUpdatee.ps1 b/build/scripts/packageUpdatee.ps1 deleted file mode 100644 index 6e26f9a..0000000 --- a/build/scripts/packageUpdatee.ps1 +++ /dev/null @@ -1,14 +0,0 @@ -$regex = [regex] 'PackageReference Include="([^"]*)" Version="([^"]*)"' -ForEach ($file in get-childitem . -recurse | where {$_.extension -like "*proj"}) -{ - $proj = $file.fullname - $content = Get-Content $proj - $match = $regex.Match($content) - if ($match.Success) { - $name = $match.Groups[1].Value - $version = $match.Groups[2].Value - if ($version -notin "-") { - iex "dotnet add $proj package $name" - } - } -} \ No newline at end of file diff --git a/tests/LocalStack.Client.Functional.Tests/LocalStack.Client.Functional.Tests.csproj b/tests/LocalStack.Client.Functional.Tests/LocalStack.Client.Functional.Tests.csproj index 3e59ff8..ba53612 100644 --- a/tests/LocalStack.Client.Functional.Tests/LocalStack.Client.Functional.Tests.csproj +++ b/tests/LocalStack.Client.Functional.Tests/LocalStack.Client.Functional.Tests.csproj @@ -36,7 +36,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj index ca81f7f..da3f17d 100644 --- a/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj +++ b/tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj @@ -8,100 +8,100 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -115,7 +115,7 @@ - + From 5603a7921705d7aeb057aa4548eeb5059cc182c2 Mon Sep 17 00:00:00 2001 From: "deniz_irgin@yahoo.com" Date: Thu, 21 Apr 2022 01:35:22 +0300 Subject: [PATCH 11/11] move changelogs to CHANGELOG.md --- CHANGELOG.md | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 59 +---------------------------------------- 2 files changed, 76 insertions(+), 58 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..47a55f0 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,75 @@ +# LocalStack .NET Client Change Log + +### [v1.3.1](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.3.1) + +#### 1. New Features +- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.35 have been added. + - Route53Resolver + - KinesisAnalyticsV2 + - OpenSearch + - Amazon Managed Workflows for Apache Airflow (MWAA) + +#### 2. General +- Tested against LocalStack v0.14.2 container. +- AWSSDK.Core set to 3.7.9 as the minimum version. +- AWSSDK.Extensions.NETCore.Setup set to 3.7.2 as the minimum version. + + +### [v1.3.0](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.3.0) + +#### 1. New Features +- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.27 have been added. + - SESv2 + - EventBridge ([#14](https://github.com/localstack-dotnet/localstack-dotnet-client/pull/14)) +- Tested against LocalStack v0.13.0 container. +#### 2. Enhancements +- `useServiceUrl` parameter added to change client connection behavior. See [useServiceUrl Parameter](#useserviceurl) +- Readme and SourceLink added to Nuget packages +#### 3. Bug Fixes +- Session::RegionName configuration does not honor while creating AWS client ([#15](https://github.com/localstack-dotnet/localstack-dotnet-client/issues/15)) + +Thanks to [petertownsend](https://github.com/petertownsend) for his contribution + +### [v1.2.3](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.2.3) + +- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.25 have been added. + - Config Service +- .NET 6.0 support added. +- AWSSDK.Core set to 3.7.3.15 as the minimum version. +- AWSSDK.Extensions.NETCore.Setup set to 3.7.1 as the minimum version. +- Tested against LocalStack v0.13.0 container. + +### [v1.2.2](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.2.2) + +- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.22 have been added. + - EFS, Backup, LakeFormation, WAF, WAF V2 and QLDB Session +- AWSSDK.Core set to 3.7.1 as the minimum version. +- Tested against LocalStack v0.12.16 container. + +### [v1.2](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.2.0) + +- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.20 have been added. + - IoTAnalytics, IoT Events, IoT Events Data, IoT Wireless, IoT Data Plane, IoT Jobs Data Plane, Support, Neptune, DocDB, ServiceDiscovery, ServerlessApplicationRepository, AppConfig, Cost Explorer, MediaConvert, Resource Groups Tagging API, Resource Groups +- AWSSDK.Core set to 3.7.0 as the minimum version. +- Obsolete methods removed. +- New alternate AddAWSServiceLocalStack method added to prevent mix up with AddAWSService (for LocalStack.Client.Extension v1.1.0). +- Tested against LocalStack v0.12.10 container. + +### [v1.1](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.1.0) + +- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.10 have been added. + - Transfer, ACM, CodeCommit, Kinesis Analytics, Amplify, Application Auto Scaling, Kafka, Timestream Query, Timestream Write, Timestream Write, S3 Control, Elastic Load Balancing v2, Redshift Data +- .NET 5.0 support added. +- AWSSDK.Core set to 3.5.0 as the minimum version. +- Tested against LocalStack v0.12.07 container. + +### [v1.0](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.0.0) + +- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v0.23 have been added. + - ElastiCache, Kms, Emr, Ecs, Eks, XRay, ElasticBeanstalk, AppSync, CloudFront, Athena, Glue, Api Gateway V2, RdsData, SageMaker, SageMakerRuntime, Ecr, Qldb +- .netcore2.2 support removed since Microsoft depracated it. .netcore3.1 support added. +- AWSSDK.Core set to 3.3.106.5 as the minimum version. + +### [v0.8.0.163](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v0.8.0.163) + +- First release. \ No newline at end of file diff --git a/README.md b/README.md index fbe26d7..23514c4 100644 --- a/README.md +++ b/README.md @@ -440,64 +440,7 @@ Linux ## Changelog -### [v1.3.0](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.3.0) - -#### 1. New Features -- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.27 have been added. - - SESv2 - - EventBridge ([#14](https://github.com/localstack-dotnet/localstack-dotnet-client/pull/14)) -- Tested against LocalStack v0.13.0 container. -#### 2. Enhancements -- `useServiceUrl` parameter added to change client connection behavior. See [useServiceUrl Parameter](#useserviceurl) -- Readme and SourceLink added to Nuget packages -#### 3. Bug Fixes -- Session::RegionName configuration does not honor while creating AWS client ([#15](https://github.com/localstack-dotnet/localstack-dotnet-client/issues/15)) - -Thanks to [petertownsend](https://github.com/petertownsend) for his contribution - -### [v1.2.3](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.2.3) - -- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.25 have been added. - - Config Service -- .NET 6.0 support added. -- AWSSDK.Core set to 3.7.3.15 as the minimum version. -- AWSSDK.Extensions.NETCore.Setup set to 3.7.1 as the minimum version. -- Tested against LocalStack v0.13.0 container. - -### [v1.2.2](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.2.2) - -- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.22 have been added. - - EFS, Backup, LakeFormation, WAF, WAF V2 and QLDB Session -- AWSSDK.Core set to 3.7.1 as the minimum version. -- Tested against LocalStack v0.12.16 container. - -### [v1.2](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.2.0) - -- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.20 have been added. - - IoTAnalytics, IoT Events, IoT Events Data, IoT Wireless, IoT Data Plane, IoT Jobs Data Plane, Support, Neptune, DocDB, ServiceDiscovery, ServerlessApplicationRepository, AppConfig, Cost Explorer, MediaConvert, Resource Groups Tagging API, Resource Groups -- AWSSDK.Core set to 3.7.0 as the minimum version. -- Obsolete methods removed. -- New alternate AddAWSServiceLocalStack method added to prevent mix up with AddAWSService (for LocalStack.Client.Extension v1.1.0). -- Tested against LocalStack v0.12.10 container. - -### [v1.1](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.1.0) - -- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.10 have been added. - - Transfer, ACM, CodeCommit, Kinesis Analytics, Amplify, Application Auto Scaling, Kafka, Timestream Query, Timestream Write, Timestream Write, S3 Control, Elastic Load Balancing v2, Redshift Data -- .NET 5.0 support added. -- AWSSDK.Core set to 3.5.0 as the minimum version. -- Tested against LocalStack v0.12.07 container. - -### [v1.0](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.0.0) - -- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v0.23 have been added. - - ElastiCache, Kms, Emr, Ecs, Eks, XRay, ElasticBeanstalk, AppSync, CloudFront, Athena, Glue, Api Gateway V2, RdsData, SageMaker, SageMakerRuntime, Ecr, Qldb -- .netcore2.2 support removed since Microsoft depracated it. .netcore3.1 support added. -- AWSSDK.Core set to 3.3.106.5 as the minimum version. - -### [v0.8.0.163](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v0.8.0.163) - -- First release. +Please refer to [`CHANGELOG.md`](CHANGELOG.md) to see the complete list of changes for each release. ## License