1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. networksecuritymanager
  6. getTemplate

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi

    Resource Type definition for AWS::NetworkSecurityManager::Template. Creates and manages a Network Security Manager template.

    Using getTemplate

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTemplate(args: GetTemplateArgs, opts?: InvokeOptions): Promise<GetTemplateResult>
    function getTemplateOutput(args: GetTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetTemplateResult>
    def get_template(template_arn: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetTemplateResult
    def get_template_output(template_arn: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetTemplateResult]
    func LookupTemplate(ctx *Context, args *LookupTemplateArgs, opts ...InvokeOption) (*LookupTemplateResult, error)
    func LookupTemplateOutput(ctx *Context, args *LookupTemplateOutputArgs, opts ...InvokeOption) LookupTemplateResultOutput

    > Note: This function is named LookupTemplate in the Go SDK.

    public static class GetTemplate 
    {
        public static Task<GetTemplateResult> InvokeAsync(GetTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetTemplateResult> Invoke(GetTemplateInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTemplateResult> Invoke(GetTemplateInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTemplateResult> getTemplate(GetTemplateArgs args, InvokeOptions options)
    public static Output<GetTemplateResult> getTemplate(GetTemplateArgs args, InvokeOptions options)
    public static Output<GetTemplateResult> getTemplate(GetTemplateArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:networksecuritymanager:getTemplate
      arguments:
        # arguments dictionary
    data "aws-native_networksecuritymanager_get_template" "name" {
        # arguments
    }

    The following arguments are supported:

    TemplateArn string
    The ARN of the template.
    TemplateArn string
    The ARN of the template.
    template_arn string
    The ARN of the template.
    templateArn String
    The ARN of the template.
    templateArn string
    The ARN of the template.
    template_arn str
    The ARN of the template.
    templateArn String
    The ARN of the template.

    getTemplate Result

    The following output properties are available:

    AssociatedRuleList List<Pulumi.AwsNative.NetworkSecurityManager.Outputs.TemplateAssociatedRule>
    List of rules associated with this template.
    Status Pulumi.AwsNative.NetworkSecurityManager.TemplateStatus
    The status of the template.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags associated with the template.
    TemplateArn string
    The ARN of the template.
    TemplateDescription string
    A description of the template.
    TemplateId string
    The unique identifier of the template.
    UpdatedAt string
    An ISO 8601 timestamp indicating when the template was last modified.
    Version string
    The version number.
    AssociatedRuleList []TemplateAssociatedRule
    List of rules associated with this template.
    Status TemplateStatus
    The status of the template.
    Tags Tag
    The tags associated with the template.
    TemplateArn string
    The ARN of the template.
    TemplateDescription string
    A description of the template.
    TemplateId string
    The unique identifier of the template.
    UpdatedAt string
    An ISO 8601 timestamp indicating when the template was last modified.
    Version string
    The version number.
    associated_rule_list list(object)
    List of rules associated with this template.
    status "DRAFT" | "ACTIVE" | "DISABLED"
    The status of the template.
    tags list(object)
    The tags associated with the template.
    template_arn string
    The ARN of the template.
    template_description string
    A description of the template.
    template_id string
    The unique identifier of the template.
    updated_at string
    An ISO 8601 timestamp indicating when the template was last modified.
    version string
    The version number.
    associatedRuleList List<TemplateAssociatedRule>
    List of rules associated with this template.
    status TemplateStatus
    The status of the template.
    tags List<Tag>
    The tags associated with the template.
    templateArn String
    The ARN of the template.
    templateDescription String
    A description of the template.
    templateId String
    The unique identifier of the template.
    updatedAt String
    An ISO 8601 timestamp indicating when the template was last modified.
    version String
    The version number.
    associatedRuleList TemplateAssociatedRule[]
    List of rules associated with this template.
    status TemplateStatus
    The status of the template.
    tags Tag[]
    The tags associated with the template.
    templateArn string
    The ARN of the template.
    templateDescription string
    A description of the template.
    templateId string
    The unique identifier of the template.
    updatedAt string
    An ISO 8601 timestamp indicating when the template was last modified.
    version string
    The version number.
    associated_rule_list Sequence[TemplateAssociatedRule]
    List of rules associated with this template.
    status TemplateStatus
    The status of the template.
    tags Sequence[root_Tag]
    The tags associated with the template.
    template_arn str
    The ARN of the template.
    template_description str
    A description of the template.
    template_id str
    The unique identifier of the template.
    updated_at str
    An ISO 8601 timestamp indicating when the template was last modified.
    version str
    The version number.
    associatedRuleList List<Property Map>
    List of rules associated with this template.
    status "DRAFT" | "ACTIVE" | "DISABLED"
    The status of the template.
    tags List<Property Map>
    The tags associated with the template.
    templateArn String
    The ARN of the template.
    templateDescription String
    A description of the template.
    templateId String
    The unique identifier of the template.
    updatedAt String
    An ISO 8601 timestamp indicating when the template was last modified.
    version String
    The version number.

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    TemplateAssociatedRule

    RuleArn string
    ARN of the associated rule.
    RuleArn string
    ARN of the associated rule.
    rule_arn string
    ARN of the associated rule.
    ruleArn String
    ARN of the associated rule.
    ruleArn string
    ARN of the associated rule.
    rule_arn str
    ARN of the associated rule.
    ruleArn String
    ARN of the associated rule.

    TemplateStatus

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.85.0
    published on Monday, Nov 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial