Skip to content

Commit 27e28f0

Browse files
Merge pull request #14 from petertownsend/feature/event-bridge
adding EventBridge support
2 parents 50eab2e + 95c15ba commit 27e28f0

File tree

6 files changed

+26
-4
lines changed

6 files changed

+26
-4
lines changed

src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,17 @@ public class AwsServiceEndpointMetadata
9797
public static readonly AwsServiceEndpointMetadata Waf = new("WAF", "waf", CommonEndpointPattern, 4640, AwsServiceEnum.Waf);
9898
public static readonly AwsServiceEndpointMetadata WafV2 = new("WAFV2", "wafv2", CommonEndpointPattern, 4640, AwsServiceEnum.WafV2);
9999
public static readonly AwsServiceEndpointMetadata ConfigService = new("Config Service", "config", CommonEndpointPattern, 4641, AwsServiceEnum.ConfigService);
100-
101-
100+
public static readonly AwsServiceEndpointMetadata EventBridge = new("EventBridge", "eventbridge", CommonEndpointPattern, 4587, AwsServiceEnum.EventBridge);
101+
102+
102103
public static readonly AwsServiceEndpointMetadata[] All =
103104
{
104105
ApiGateway, ApiGatewayV2, Kinesis, DynamoDb, DynamoDbStreams, ElasticSearch, S3, Firehose, Lambda, Sns, Sqs, Redshift, RedshiftData, Es, Ses, Sesv2, Route53, CloudFormation, CloudWatch,
105106
Ssm, SecretsManager, StepFunctions, Logs, Events, Elb, Iot, IoTAnalytics, IoTEvents, IoTEventsData, IoTWireless, IoTDataPlane, IoTJobsDataPlane, CognitoIdp, CognitoIdentity, Sts,
106107
Iam, Rds, RdsData, CloudSearch, Swf, Ec2, ElastiCache, Kms, Emr, Ecs, Eks, XRay, ElasticBeanstalk, AppSync, CloudFront, Athena, Glue, SageMaker, SageMakerRuntime, Ecr, Qldb, QldbSession,
107108
CloudTrail, Glacier, Batch, Organizations, AutoScaling, MediaStore, MediaStoreData, Transfer, Acm, CodeCommit, KinesisAnalytics, Amplify, ApplicationAutoscaling, Kafka, ApiGatewayManagementApi,
108109
TimeStreamQuery, TimeStreamWrite, S3Control, ElbV2, Support, Neptune, DocDb, ServiceDiscovery, ServerlessApplicationRepository, AppConfig, CostExplorer, MediaConvert, ResourceGroupsTaggingApi,
109-
ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService
110+
ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService, EventBridge
110111
};
111112

112113
private AwsServiceEndpointMetadata()

src/LocalStack.Client/Enums/AwsServiceEnum.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,6 @@ public enum AwsServiceEnum
9393
LakeFormation,
9494
Waf,
9595
WafV2,
96-
ConfigService
96+
ConfigService,
97+
EventBridge
9798
}

tests/LocalStack.Client.Integration.Tests/CreateClientByImplementationTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ public void Should_Able_To_Create_AmazonElasticsearchClient()
5757
AssertAmazonClient.AssertClientConfiguration(amazonElasticsearchClient);
5858
}
5959

60+
[Fact]
61+
public void Should_Able_To_Create_AmazonEventBridgeClient()
62+
{
63+
var amazonEventBridgeClient = Session.CreateClientByImplementation<AmazonEventBridgeClient>();
64+
65+
Assert.NotNull(amazonEventBridgeClient);
66+
AssertAmazonClient.AssertClientConfiguration(amazonEventBridgeClient);
67+
}
68+
6069
[Fact]
6170
public void Should_Able_To_Create_AmazonKinesisFirehoseClient()
6271
{

tests/LocalStack.Client.Integration.Tests/CreateClientByInterfaceTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,4 +869,13 @@ public void Should_Able_To_Create_AmazonConfigServiceClient()
869869
Assert.NotNull(amazonConfigServiceClient);
870870
AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient);
871871
}
872+
873+
[Fact]
874+
public void Should_Able_To_Create_AmazonEventBridgeClient()
875+
{
876+
AmazonServiceClient amazonEventBridgeClient = Session.CreateClientByInterface<IAmazonEventBridge>();
877+
878+
Assert.NotNull(amazonEventBridgeClient);
879+
AssertAmazonClient.AssertClientConfiguration(amazonEventBridgeClient);
880+
}
872881
}

tests/LocalStack.Client.Integration.Tests/GlobalUsings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
global using Amazon.ElasticLoadBalancingV2;
4040
global using Amazon.ElasticMapReduce;
4141
global using Amazon.Elasticsearch;
42+
global using Amazon.EventBridge;
4243
global using Amazon.Glue;
4344
global using Amazon.IdentityManagement;
4445
global using Amazon.IoT;

tests/LocalStack.Client.Integration.Tests/LocalStack.Client.Integration.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<PackageReference Include="AWSSDK.ECS" Version="3.7.4.10" />
3939
<PackageReference Include="AWSSDK.EKS" Version="3.7.11" />
4040
<PackageReference Include="AWSSDK.ElastiCache" Version="3.7.4.1" />
41+
<PackageReference Include="AWSSDK.EventBridge" Version="3.7.4.48" />
4142
<PackageReference Include="AWSSDK.ElasticBeanstalk" Version="3.7.0.103" />
4243
<PackageReference Include="AWSSDK.ElasticFileSystem" Version="3.7.3.29" />
4344
<PackageReference Include="AWSSDK.ElasticLoadBalancing" Version="3.7.0.103" />

0 commit comments

Comments
 (0)