Table of Contents

Class CfnJsonProps

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll
public class CfnJsonProps : ICfnJsonProps
Inheritance
CfnJsonProps
Implements
Inherited Members

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

Constructors

CfnJsonProps()

public CfnJsonProps()

Properties

Value

The value to resolve.

public object Value { get; set; }

Property Value

object

Remarks

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