Skip to content

C# How to get Glue connection object #2110

Answered by ashishdhingra
dburtsev asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming you are using .NET 6, below code should work (you would need to add reference to AWSSDK.Glue NuGet package):

using Amazon.Glue;
using Amazon.Glue.Model;

var client = new AmazonGlueClient();
var request = new GetConnectionRequest() { Name = "<<connection-name>>" };
var response = await client.GetConnectionAsync(request);

Thanks,
Ashish

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. module/sdk-generated
2 participants