Class CfnTemplate
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.networksecuritymanager.CfnTemplate
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITemplateRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T16:59:59.242Z")
@Stability(Stable)
public class CfnTemplate
extends CfnResource
implements IInspectable, ITemplateRef, ITaggableV2
Resource Type definition for AWS::NetworkSecurityManager::Template.
Creates and manages a Network Security Manager template.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networksecuritymanager.*;
CfnTemplate cfnTemplate = CfnTemplate.Builder.create(this, "MyCfnTemplate")
.templateName("templateName")
// the properties below are optional
.associatedRuleList(List.of(AssociatedRuleProperty.builder()
.ruleArn("ruleArn")
.build()))
.firewallType("firewallType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.templateDescription("templateDescription")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn association between a template and a rule.static final classA fluent builder forCfnTemplate.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.networksecuritymanager.ITemplateRef
ITemplateRef.Jsii$Default, ITemplateRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnTemplate(software.constructs.Construct scope, String id, CfnTemplateProps props) Create a newAWS::NetworkSecurityManager::Template. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTemplate(ITemplateRef resource) List of rules associated with this template.The status of the template.The ARN of the template.The unique identifier of the template.The version number.Tag Manager which manages the tags for this resource.The type of firewall.getTags()The tags associated with the template.A description of the template.The name of the template.A reference to a Template resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTemplate.renderProperties(Map<String, Object> props) voidsetAssociatedRuleList(List<Object> value) List of rules associated with this template.voidsetAssociatedRuleList(IResolvable value) List of rules associated with this template.voidsetFirewallType(String value) The type of firewall.voidThe tags associated with the template.voidsetTemplateDescription(String value) A description of the template.voidsetTemplateName(String value) The name of the template.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTemplate
protected CfnTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTemplate
protected CfnTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTemplate
@Stability(Stable) public CfnTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTemplateProps props) Create a newAWS::NetworkSecurityManager::Template.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTemplate
- Parameters:
resource- This parameter is required.
-
isCfnTemplate
Checks whether the given object is a CfnTemplate.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrStatus
The status of the template. -
getAttrTemplateArn
The ARN of the template. -
getAttrTemplateId
The unique identifier of the template. -
getAttrVersion
The version number. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTemplateRef
A reference to a Template resource.- Specified by:
getTemplateRefin interfaceITemplateRef
-
getTemplateName
The name of the template. -
setTemplateName
The name of the template. -
getAssociatedRuleList
List of rules associated with this template.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTemplate.AssociatedRuleProperty> -
setAssociatedRuleList
List of rules associated with this template. -
setAssociatedRuleList
List of rules associated with this template. -
getFirewallType
The type of firewall. -
setFirewallType
The type of firewall. -
getTags
The tags associated with the template. -
setTags
The tags associated with the template. -
getTemplateDescription
A description of the template. -
setTemplateDescription
A description of the template.
-