import * as pulumi from "@pulumi/pulumi"; /** * Manages an AWS Network Security Manager Template. A template groups one or more rules so they can be reused across policies. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.networksecuritymanager.Rule("example", { * name: "example", * firewallType: "WAF", * type: "CONFIGURATION", * configuration: JSON.stringify({ * DefaultAction: { * Allow: {}, * }, * }), * }); * const exampleTemplate = new aws.networksecuritymanager.Template("example", { * name: "example", * description: "Baseline web ACL settings", * firewallType: "WAF", * ruleArns: [example.arn], * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `arn` (String) ARN of the template. * * Using `pulumi import`, import Network Security Manager Template using the `arn`. For example: * * ```sh * $ pulumi import aws:networksecuritymanager/template:Template example arn:aws:network-security-manager:us-east-1:123456789012:template:0123456789abcdef * ``` */ export declare class Template extends pulumi.CustomResource { /** * Get an existing Template resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: TemplateState, opts?: pulumi.CustomResourceOptions): Template; /** * Check whether an existing Template resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: TemplateState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of Template. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Template; /** * ARN of the template. */ readonly arn: pulumi.Output; /** * Description of the template. */ readonly description: pulumi.Output; /** * Firewall type of the template. Valid values: `WAF`. */ readonly firewallType: pulumi.Output; /** * Whether to publish the template. When `true`, the template is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published template, the draft is saved on top of the published version. Defaults to `true`. */ readonly isPublished: pulumi.Output; /** * Name of the template. */ readonly name: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Ordered list of ARNs of the rules to associate with the template. Specify 1 to 50 rules. Each rule can be associated only once. * * The following arguments are optional: */ readonly ruleArns: pulumi.Output; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Create a Template resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TemplateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Template resources. */ export interface TemplateState { /** * ARN of the template. */ arn?: pulumi.Input; /** * Description of the template. */ description?: pulumi.Input; /** * Firewall type of the template. Valid values: `WAF`. */ firewallType?: pulumi.Input; /** * Whether to publish the template. When `true`, the template is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published template, the draft is saved on top of the published version. Defaults to `true`. */ isPublished?: pulumi.Input; /** * Name of the template. */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Ordered list of ARNs of the rules to associate with the template. Specify 1 to 50 rules. Each rule can be associated only once. * * The following arguments are optional: */ ruleArns?: pulumi.Input[] | undefined>; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } /** * The set of arguments for constructing a Template resource. */ export interface TemplateArgs { /** * Description of the template. */ description?: pulumi.Input; /** * Firewall type of the template. Valid values: `WAF`. */ firewallType: pulumi.Input; /** * Whether to publish the template. When `true`, the template is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published template, the draft is saved on top of the published version. Defaults to `true`. */ isPublished?: pulumi.Input; /** * Name of the template. */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Ordered list of ARNs of the rules to associate with the template. Specify 1 to 50 rules. Each rule can be associated only once. * * The following arguments are optional: */ ruleArns: pulumi.Input[]>; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=template.d.ts.map