Interface ICfnJsonProps
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnJsonProps
Syntax (vb)
Public Interface ICfnJsonProps
Remarks
ExampleMetadata: infused
Examples
var tagParam = new CfnParameter(this, "TagName");
var stringEquals = new CfnJson(this, "ConditionJson", new CfnJsonProps {
Value = new Dictionary<string, boolean> {
{ $"aws:PrincipalTag/{tagParam.valueAsString}", true }
}
});
var principal = new AccountRootPrincipal().WithConditions(new Dictionary<string, object> {
{ "StringEquals", stringEquals }
});
new Role(this, "MyRole", new RoleProps { AssumedBy = principal });
Synopsis
Properties
Value | The value to resolve. |
Properties
Value
The value to resolve.
object Value { get; }
Property Value
System.Object
Remarks
Can be any JavaScript object, including tokens and references in keys or values.