Using AwsSdkCall from C#

Viewed 72

I want to create a Custom Resource in C#. In this resource I want to make an AwsSdkCall, something like this:

var sdkCall = new AwsSdkCall
{
    Service = "SSM",
    Action = "putParameter",
    Parameters = new PutParameters
    {
        Name = "/my-param",
        Tier = Amazon.SimpleSystemsManagement.ParameterTier.Standard,
        Type = Amazon.SimpleSystemsManagement.ParameterType.String,
        Value = "My value"
    }
};

The Parameters field is of type object?. I tried using an anonymous object here but I get an exception from JSII runtime that it can't handle anonymous objects. I tried to define my own class and use that, but JSII runtime didn't like that either.

What type am I supposed to use for this field to correctly specify parameters of the SDK call?

0 Answers
Related