Skip to content

Commit 9892c5d

Browse files
committed
add Amazon Managed Workflows for Apache Airflow (MWAA) support
1 parent 0de8e81 commit 9892c5d

File tree

6 files changed

+23
-1
lines changed

6 files changed

+23
-1
lines changed

src/LocalStack.Client/Enums/AwsServiceEndpointMetadata.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public class AwsServiceEndpointMetadata
100100
public static readonly AwsServiceEndpointMetadata Waf = new("WAF", "waf", CommonEndpointPattern, 4640, AwsServiceEnum.Waf);
101101
public static readonly AwsServiceEndpointMetadata WafV2 = new("WAFV2", "wafv2", CommonEndpointPattern, 4640, AwsServiceEnum.WafV2);
102102
public static readonly AwsServiceEndpointMetadata ConfigService = new("Config Service", "config", CommonEndpointPattern, 4641, AwsServiceEnum.ConfigService);
103+
public static readonly AwsServiceEndpointMetadata Mwaa = new("MWAA", "mwaa", CommonEndpointPattern, 4642, AwsServiceEnum.Mwaa);
103104
public static readonly AwsServiceEndpointMetadata EventBridge = new("EventBridge", "eventbridge", CommonEndpointPattern, 4587, AwsServiceEnum.EventBridge);
104105

105106

@@ -110,7 +111,7 @@ public class AwsServiceEndpointMetadata
110111
Iam, Rds, RdsData, CloudSearch, Swf, Ec2, ElastiCache, Kms, Emr, Ecs, Eks, XRay, ElasticBeanstalk, AppSync, CloudFront, Athena, Glue, SageMaker, SageMakerRuntime, Ecr, Qldb, QldbSession,
111112
CloudTrail, Glacier, Batch, Organizations, AutoScaling, MediaStore, MediaStoreData, Transfer, Acm, CodeCommit, KinesisAnalytics, KinesisAnalyticsV2, Amplify, ApplicationAutoscaling, Kafka, ApiGatewayManagementApi,
112113
TimeStreamQuery, TimeStreamWrite, S3Control, ElbV2, Support, Neptune, DocDb, ServiceDiscovery, ServerlessApplicationRepository, AppConfig, CostExplorer, MediaConvert, ResourceGroupsTaggingApi,
113-
ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService, EventBridge
114+
ResourceGroups, Efs, Backup, LakeFormation, Waf, WafV2, ConfigService, Mwaa, EventBridge
114115
};
115116

116117
private AwsServiceEndpointMetadata()

src/LocalStack.Client/Enums/AwsServiceEnum.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,6 @@ public enum AwsServiceEnum
9797
Waf,
9898
WafV2,
9999
ConfigService,
100+
Mwaa,
100101
EventBridge
101102
}

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,4 +905,13 @@ public void Should_Able_To_Create_AmazonConfigServiceClient()
905905
Assert.NotNull(amazonConfigServiceClient);
906906
AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient);
907907
}
908+
909+
[Fact]
910+
public void Should_Able_To_Create_AmazonMWAAClient()
911+
{
912+
var amazonMwaaClient = Session.CreateClientByImplementation<AmazonMWAAClient>();
913+
914+
Assert.NotNull(amazonMwaaClient);
915+
AssertAmazonClient.AssertClientConfiguration(amazonMwaaClient);
916+
}
908917
}

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,4 +905,13 @@ public void Should_Able_To_Create_AmazonConfigServiceClient()
905905
Assert.NotNull(amazonConfigServiceClient);
906906
AssertAmazonClient.AssertClientConfiguration(amazonConfigServiceClient);
907907
}
908+
909+
[Fact]
910+
public void Should_Able_To_Create_AmazonMWAAClient()
911+
{
912+
AmazonServiceClient amazonMwaaClient = Session.CreateClientByInterface<IAmazonMWAA>();
913+
914+
Assert.NotNull(amazonMwaaClient);
915+
AssertAmazonClient.AssertClientConfiguration(amazonMwaaClient);
916+
}
908917
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
global using Amazon.MediaConvert;
5757
global using Amazon.MediaStore;
5858
global using Amazon.MediaStoreData;
59+
global using Amazon.MWAA;
5960
global using Amazon.Neptune;
6061
global using Amazon.OpenSearchService;
6162
global using Amazon.Organizations;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<PackageReference Include="AWSSDK.CognitoIdentity" Version="3.7.0.103" />
3131
<PackageReference Include="AWSSDK.CognitoIdentityProvider" Version="3.7.1.75" />
3232
<PackageReference Include="AWSSDK.ConfigService" Version="3.7.5.22" />
33+
<PackageReference Include="AWSSDK.MWAA" Version="3.7.2.38" />
3334
<PackageReference Include="AWSSDK.CostExplorer" Version="3.7.3.51" />
3435
<PackageReference Include="AWSSDK.DocDB" Version="3.7.2.75" />
3536
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.1" />

0 commit comments

Comments
 (0)