@Generated(value="jsii-pacmak/1.52.1 (build 5ccc8f6)", date="2022-01-20T19:49:54.015Z") @Stability(value=Stable) public class CfnMacro extends CfnResource implements IInspectable
The AWS::CloudFormation::Macro
resource is a CloudFormation resource type that creates a CloudFormation macro to perform custom processing on CloudFormation templates. For more information, see Using AWS CloudFormation macros to perform custom processing on templates .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.core.*; CfnMacro cfnMacro = CfnMacro.Builder.create(this, "MyCfnMacro") .functionName("functionName") .name("name") // the properties below are optional .description("description") .logGroupName("logGroupName") .logRoleArn("logRoleArn") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnMacro.Builder
A fluent builder for
CfnMacro . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnMacro(Construct scope,
String id,
CfnMacroProps props)
Create a new `AWS::CloudFormation::Macro`.
|
protected |
CfnMacro(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMacro(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description of the macro.
|
String |
getFunctionName()
The Amazon Resource Name (ARN) of the underlying AWS Lambda function that you want AWS CloudFormation to invoke when the macro is run.
|
String |
getLogGroupName()
The Amazon CloudWatch log group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function.
|
String |
getLogRoleArn()
The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch logs.
|
String |
getName()
The name of the macro.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A description of the macro.
|
void |
setFunctionName(String value)
The Amazon Resource Name (ARN) of the underlying AWS Lambda function that you want AWS CloudFormation to invoke when the macro is run.
|
void |
setLogGroupName(String value)
The Amazon CloudWatch log group to which AWS CloudFormation sends error logging information when invoking the macro's underlying AWS Lambda function.
|
void |
setLogRoleArn(String value)
The ARN of the role AWS CloudFormation should assume when sending log entries to CloudWatch logs.
|
void |
setName(String value)
The name of the macro.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnMacro(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMacro(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnMacro(@NotNull Construct scope, @NotNull String id, @NotNull CfnMacroProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public String getFunctionName()
@Stability(value=Stable) public void setFunctionName(@NotNull String value)
@Stability(value=Stable) @NotNull public String getName()
The name of the macro must be unique across all macros in the account.
@Stability(value=Stable) public void setName(@NotNull String value)
The name of the macro must be unique across all macros in the account.
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable) public void setDescription(@Nullable String value)
@Stability(value=Stable) @Nullable public String getLogGroupName()
@Stability(value=Stable) public void setLogGroupName(@Nullable String value)
@Stability(value=Stable) @Nullable public String getLogRoleArn()
@Stability(value=Stable) public void setLogRoleArn(@Nullable String value)
Copyright © 2022. All rights reserved.