import * as core from "@terrascript/core"; export interface StatefulEngineOptionsArgs extends core.SchemaArgs { ruleOrder: string | core.StringOut; } export class StatefulEngineOptions extends core.Schema { @core.attr(String) public ruleOrder!: string | core.StringOut; } export interface StatefulRuleGroupReferenceArgs extends core.SchemaArgs { priority?: number | core.NumberOut; resourceArn: string | core.StringOut; } export class StatefulRuleGroupReference extends core.Schema { @core.attr(Number) public priority?: number | core.NumberOut; @core.attr(String) public resourceArn!: string | core.StringOut; } export interface DimensionArgs extends core.SchemaArgs { value: string | core.StringOut; } export class Dimension extends core.Schema { @core.attr(String) public value!: string | core.StringOut; } export interface PublishMetricActionArgs extends core.SchemaArgs { dimension: core.Array | core.ArrayOut; } export class PublishMetricAction extends core.Schema { @core.attr(Dimension, { kind: "array" }) public dimension!: core.Array | core.ArrayOut; } export interface ActionDefinitionArgs extends core.SchemaArgs { publishMetricAction: PublishMetricAction; } export class ActionDefinition extends core.Schema { @core.attr(PublishMetricAction) public publishMetricAction!: PublishMetricAction; } export interface StatelessCustomActionArgs extends core.SchemaArgs { actionDefinition: ActionDefinition; actionName: string | core.StringOut; } export class StatelessCustomAction extends core.Schema { @core.attr(ActionDefinition) public actionDefinition!: ActionDefinition; @core.attr(String) public actionName!: string | core.StringOut; } export interface StatelessRuleGroupReferenceArgs extends core.SchemaArgs { priority: number | core.NumberOut; resourceArn: string | core.StringOut; } export class StatelessRuleGroupReference extends core.Schema { @core.attr(Number) public priority!: number | core.NumberOut; @core.attr(String) public resourceArn!: string | core.StringOut; } export interface FirewallPolicyBlkArgs extends core.SchemaArgs { statefulDefaultActions?: core.Array | core.ArrayOut; statefulEngineOptions?: StatefulEngineOptions; statefulRuleGroupReference?: | core.Array | core.ArrayOut; statelessCustomAction?: | core.Array | core.ArrayOut; statelessDefaultActions: core.Array | core.ArrayOut; statelessFragmentDefaultActions: | core.Array | core.ArrayOut; statelessRuleGroupReference?: | core.Array | core.ArrayOut; } export class FirewallPolicyBlk extends core.Schema { @core.attr(String, { kind: "array" }) public statefulDefaultActions?: | core.Array | core.ArrayOut; @core.attr(StatefulEngineOptions) public statefulEngineOptions?: StatefulEngineOptions; @core.attr(StatefulRuleGroupReference, { kind: "array" }) public statefulRuleGroupReference?: | core.Array | core.ArrayOut; @core.attr(StatelessCustomAction, { kind: "array" }) public statelessCustomAction?: | core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public statelessDefaultActions!: | core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public statelessFragmentDefaultActions!: | core.Array | core.ArrayOut; @core.attr(StatelessRuleGroupReference, { kind: "array" }) public statelessRuleGroupReference?: | core.Array | core.ArrayOut; } export interface FirewallPolicyArgs extends core.ResourceArgs { /** * (Optional) A friendly description of the firewall policy. */ description?: string | core.StringOut; /** * (Required) A configuration block describing the rule groups and policy actions to use in the firewal * l policy. See [Firewall Policy](#firewall-policy) below for details. */ firewallPolicy: FirewallPolicyBlk; /** * (Required, Forces new resource) A friendly name of the firewall policy. */ name: string | core.StringOut; /** * (Optional) Map of resource tags to associate with the resource. If configured with a provider [`defa * ult_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#def * ault_tags-configuration-block) present, tags with matching keys will overwrite those defined at the * provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class FirewallPolicy extends core.Resource { /** * The Amazon Resource Name (ARN) that identifies the firewall policy. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) A friendly description of the firewall policy. */ @core.attr(String) public description?: string | core.StringOut; /** * (Required) A configuration block describing the rule groups and policy actions to use in the firewal * l policy. See [Firewall Policy](#firewall-policy) below for details. */ @core.attr(FirewallPolicyBlk) public firewallPolicy!: FirewallPolicyBlk; /** * The Amazon Resource Name (ARN) that identifies the firewall policy. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required, Forces new resource) A friendly name of the firewall policy. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) Map of resource tags to associate with the resource. If configured with a provider [`defa * ult_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#def * ault_tags-configuration-block) present, tags with matching keys will overwrite those defined at the * provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * A string token used when updating a firewall policy. */ @core.attr(String, { computed: true }) public updateToken!: string | core.StringOut; constructor(name: string, args?: FirewallPolicyArgs) { super(name, "aws_networkfirewall_firewall_policy", args); } public override getNamespace(): string { return "aws_networkfirewall"; } }