AWS Api gateway uses x-amazon-apigateway-* extensions in swagger to configure your REST Api.
I don't think there is already a library that will manage it for you via Swashbuckle but Swashbuckle has some interfaces you can implement to generate custom swagger extensions as explained in Swashbuckle documentation. For example, if you want to generate the x-amazon-apigateway-integration extention you can do it by implementing Swashbuckle.AspNetCore.SwaggerGen.IOperationFilter
interface:
public class AwsApiGatewayIntegrationFilter : IOperationFilter
{
public void Apply(Operation operation, OperationFilterContext context)
{
operation.Extensions.Add("x-amazon-apigateway-integration",new
{
type = "aws",
uri = "arn_to_your_aws_resource"
});
}
}
And configure it during swagger generator setup:
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new Info
{
Version = "v1",
Title = "My API",
Description = "",
TermsOfService = "",
});
c.OperationFilter<AwsApiGatewayIntegrationFilter>();
});