Table of Contents

Interface ICfnJsonProps

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll
public interface ICfnJsonProps

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 });

Remarks

ExampleMetadata: infused

Properties

Value

The value to resolve.

object Value { get; }

Property Value

object

Remarks

Can be any JavaScript object, including tokens and references in keys or values.