Table of Contents

Class CfnMacroProps

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

Properties for defining a CfnMacro.

public class CfnMacroProps : ICfnMacroProps
Inheritance
CfnMacroProps
Implements
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK;
             var cfnMacroProps = new CfnMacroProps {
                 FunctionName = "functionName",
                 Name = "name",

                 // the properties below are optional
                 Description = "description",
                 LogGroupName = "logGroupName",
                 LogRoleArn = "logRoleArn"
             };

Remarks

Constructors

CfnMacroProps()

public CfnMacroProps()

Properties

Description

A description of the macro.

public string? Description { get; set; }

Property Value

string

Remarks

FunctionName

The Amazon Resource Name (ARN) of the underlying AWS Lambda function that you want AWS CloudFormation to invoke when the macro is run.

public string FunctionName { get; set; }

Property Value

string

Remarks

LogGroupName

The CloudWatch Logs group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function.

public string? LogGroupName { get; set; }

Property Value

string

Remarks

LogRoleArn

The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch Logs .

public string? LogRoleArn { get; set; }

Property Value

string

Remarks

Name

The name of the macro.

public string Name { get; set; }

Property Value

string

Remarks