1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. AppOverrideRule
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm logo
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi

    AppOverrideRule resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    // --- 1. TAG Resource ---
    const appOverridePositionTag = new scm.Tag("app_override_position_tag", {
        name: "app-override-position-tag_1",
        folder: "All",
        color: "Orange",
    });
    // --- 2. ANCHOR RULE (Used for relative positioning by other rules) ---
    const anchorAppOverride = new scm.AppOverrideRule("anchor_app_override", {
        name: "anchor-app-override-rule",
        description: "Base rule for testing 'before' and 'after' positioning. Updating",
        folder: "All",
        position: "pre",
        application: "ssl",
        protocol: "tcp",
        port: "112",
        froms: ["trust"],
        tos: ["untrust"],
        sources: ["any"],
        destinations: ["any"],
        tags: [appOverridePositionTag.name],
    });
    // --- 3. ABSOLUTE POSITIONING Examples ("top" and "bottom") ---
    const ruleTopAppOverride = new scm.AppOverrideRule("rule_top_app_override", {
        name: "top-absolute-app-override",
        description: "Placed at the very TOP of the App Override rulebase.",
        folder: "All",
        position: "pre",
        relativePosition: "bottom",
        application: "ssl",
        protocol: "tcp",
        port: "443",
        froms: ["untrust"],
        tos: ["trust"],
        sources: ["any"],
        destinations: ["any"],
    });
    const ruleBottomAppOverride = new scm.AppOverrideRule("rule_bottom_app_override", {
        name: "bottom-absolute-app-override",
        description: "Placed at the very BOTTOM of the App Override rulebase.",
        folder: "All",
        position: "pre",
        relativePosition: "bottom",
        application: "ssl",
        protocol: "tcp",
        port: "443",
        froms: ["any"],
        tos: ["any"],
        sources: ["any"],
        destinations: ["any"],
    });
    //--- 4. RELATIVE POSITIONING Examples ("before" and "after") ---
    const ruleBeforeAnchorOverride = new scm.AppOverrideRule("rule_before_anchor_override", {
        name: "before-anchor-app-override",
        description: "Positioned immediately BEFORE the anchor-app-override-rule.",
        folder: "All",
        position: "pre",
        relativePosition: "before",
        targetRule: anchorAppOverride.id,
        application: "ssl",
        protocol: "tcp",
        port: "443",
        froms: ["trust"],
        tos: ["untrust"],
        sources: ["any"],
        destinations: ["any"],
    });
    const ruleAfterAnchorOverride = new scm.AppOverrideRule("rule_after_anchor_override", {
        name: "after-anchor-app-override",
        description: "Positioned immediately AFTER the anchor-app-override-rule.",
        folder: "All",
        position: "pre",
        relativePosition: "before",
        targetRule: anchorAppOverride.id,
        application: "ssl",
        protocol: "tcp",
        port: "443",
        froms: ["untrust"],
        tos: ["trust"],
        sources: ["any"],
        destinations: ["any"],
    });
    
    import pulumi
    import pulumi_scm as scm
    
    # --- 1. TAG Resource ---
    app_override_position_tag = scm.Tag("app_override_position_tag",
        name="app-override-position-tag_1",
        folder="All",
        color="Orange")
    # --- 2. ANCHOR RULE (Used for relative positioning by other rules) ---
    anchor_app_override = scm.AppOverrideRule("anchor_app_override",
        name="anchor-app-override-rule",
        description="Base rule for testing 'before' and 'after' positioning. Updating",
        folder="All",
        position="pre",
        application="ssl",
        protocol="tcp",
        port="112",
        froms=["trust"],
        tos=["untrust"],
        sources=["any"],
        destinations=["any"],
        tags=[app_override_position_tag.name])
    # --- 3. ABSOLUTE POSITIONING Examples ("top" and "bottom") ---
    rule_top_app_override = scm.AppOverrideRule("rule_top_app_override",
        name="top-absolute-app-override",
        description="Placed at the very TOP of the App Override rulebase.",
        folder="All",
        position="pre",
        relative_position="bottom",
        application="ssl",
        protocol="tcp",
        port="443",
        froms=["untrust"],
        tos=["trust"],
        sources=["any"],
        destinations=["any"])
    rule_bottom_app_override = scm.AppOverrideRule("rule_bottom_app_override",
        name="bottom-absolute-app-override",
        description="Placed at the very BOTTOM of the App Override rulebase.",
        folder="All",
        position="pre",
        relative_position="bottom",
        application="ssl",
        protocol="tcp",
        port="443",
        froms=["any"],
        tos=["any"],
        sources=["any"],
        destinations=["any"])
    #--- 4. RELATIVE POSITIONING Examples ("before" and "after") ---
    rule_before_anchor_override = scm.AppOverrideRule("rule_before_anchor_override",
        name="before-anchor-app-override",
        description="Positioned immediately BEFORE the anchor-app-override-rule.",
        folder="All",
        position="pre",
        relative_position="before",
        target_rule=anchor_app_override.id,
        application="ssl",
        protocol="tcp",
        port="443",
        froms=["trust"],
        tos=["untrust"],
        sources=["any"],
        destinations=["any"])
    rule_after_anchor_override = scm.AppOverrideRule("rule_after_anchor_override",
        name="after-anchor-app-override",
        description="Positioned immediately AFTER the anchor-app-override-rule.",
        folder="All",
        position="pre",
        relative_position="before",
        target_rule=anchor_app_override.id,
        application="ssl",
        protocol="tcp",
        port="443",
        froms=["untrust"],
        tos=["trust"],
        sources=["any"],
        destinations=["any"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// --- 1. TAG Resource ---
    		appOverridePositionTag, err := scm.NewTag(ctx, "app_override_position_tag", &scm.TagArgs{
    			Name:   pulumi.String("app-override-position-tag_1"),
    			Folder: pulumi.String("All"),
    			Color:  pulumi.String("Orange"),
    		})
    		if err != nil {
    			return err
    		}
    		// --- 2. ANCHOR RULE (Used for relative positioning by other rules) ---
    		anchorAppOverride, err := scm.NewAppOverrideRule(ctx, "anchor_app_override", &scm.AppOverrideRuleArgs{
    			Name:        pulumi.String("anchor-app-override-rule"),
    			Description: pulumi.String("Base rule for testing 'before' and 'after' positioning. Updating"),
    			Folder:      pulumi.String("All"),
    			Position:    pulumi.String("pre"),
    			Application: pulumi.String("ssl"),
    			Protocol:    pulumi.String("tcp"),
    			Port:        pulumi.String("112"),
    			Froms: pulumi.StringArray{
    				pulumi.String("trust"),
    			},
    			Tos: pulumi.StringArray{
    				pulumi.String("untrust"),
    			},
    			Sources: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    			Destinations: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    			Tags: pulumi.StringArray{
    				appOverridePositionTag.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// --- 3. ABSOLUTE POSITIONING Examples ("top" and "bottom") ---
    		_, err = scm.NewAppOverrideRule(ctx, "rule_top_app_override", &scm.AppOverrideRuleArgs{
    			Name:             pulumi.String("top-absolute-app-override"),
    			Description:      pulumi.String("Placed at the very TOP of the App Override rulebase."),
    			Folder:           pulumi.String("All"),
    			Position:         pulumi.String("pre"),
    			RelativePosition: pulumi.String("bottom"),
    			Application:      pulumi.String("ssl"),
    			Protocol:         pulumi.String("tcp"),
    			Port:             pulumi.String("443"),
    			Froms: pulumi.StringArray{
    				pulumi.String("untrust"),
    			},
    			Tos: pulumi.StringArray{
    				pulumi.String("trust"),
    			},
    			Sources: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    			Destinations: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scm.NewAppOverrideRule(ctx, "rule_bottom_app_override", &scm.AppOverrideRuleArgs{
    			Name:             pulumi.String("bottom-absolute-app-override"),
    			Description:      pulumi.String("Placed at the very BOTTOM of the App Override rulebase."),
    			Folder:           pulumi.String("All"),
    			Position:         pulumi.String("pre"),
    			RelativePosition: pulumi.String("bottom"),
    			Application:      pulumi.String("ssl"),
    			Protocol:         pulumi.String("tcp"),
    			Port:             pulumi.String("443"),
    			Froms: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    			Tos: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    			Sources: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    			Destinations: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// --- 4. RELATIVE POSITIONING Examples ("before" and "after") ---
    		_, err = scm.NewAppOverrideRule(ctx, "rule_before_anchor_override", &scm.AppOverrideRuleArgs{
    			Name:             pulumi.String("before-anchor-app-override"),
    			Description:      pulumi.String("Positioned immediately BEFORE the anchor-app-override-rule."),
    			Folder:           pulumi.String("All"),
    			Position:         pulumi.String("pre"),
    			RelativePosition: pulumi.String("before"),
    			TargetRule:       anchorAppOverride.ID(),
    			Application:      pulumi.String("ssl"),
    			Protocol:         pulumi.String("tcp"),
    			Port:             pulumi.String("443"),
    			Froms: pulumi.StringArray{
    				pulumi.String("trust"),
    			},
    			Tos: pulumi.StringArray{
    				pulumi.String("untrust"),
    			},
    			Sources: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    			Destinations: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scm.NewAppOverrideRule(ctx, "rule_after_anchor_override", &scm.AppOverrideRuleArgs{
    			Name:             pulumi.String("after-anchor-app-override"),
    			Description:      pulumi.String("Positioned immediately AFTER the anchor-app-override-rule."),
    			Folder:           pulumi.String("All"),
    			Position:         pulumi.String("pre"),
    			RelativePosition: pulumi.String("before"),
    			TargetRule:       anchorAppOverride.ID(),
    			Application:      pulumi.String("ssl"),
    			Protocol:         pulumi.String("tcp"),
    			Port:             pulumi.String("443"),
    			Froms: pulumi.StringArray{
    				pulumi.String("untrust"),
    			},
    			Tos: pulumi.StringArray{
    				pulumi.String("trust"),
    			},
    			Sources: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    			Destinations: pulumi.StringArray{
    				pulumi.String("any"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // --- 1. TAG Resource ---
        var appOverridePositionTag = new Scm.Tag("app_override_position_tag", new()
        {
            Name = "app-override-position-tag_1",
            Folder = "All",
            Color = "Orange",
        });
    
        // --- 2. ANCHOR RULE (Used for relative positioning by other rules) ---
        var anchorAppOverride = new Scm.AppOverrideRule("anchor_app_override", new()
        {
            Name = "anchor-app-override-rule",
            Description = "Base rule for testing 'before' and 'after' positioning. Updating",
            Folder = "All",
            Position = "pre",
            Application = "ssl",
            Protocol = "tcp",
            Port = "112",
            Froms = new[]
            {
                "trust",
            },
            Tos = new[]
            {
                "untrust",
            },
            Sources = new[]
            {
                "any",
            },
            Destinations = new[]
            {
                "any",
            },
            Tags = new[]
            {
                appOverridePositionTag.Name,
            },
        });
    
        // --- 3. ABSOLUTE POSITIONING Examples ("top" and "bottom") ---
        var ruleTopAppOverride = new Scm.AppOverrideRule("rule_top_app_override", new()
        {
            Name = "top-absolute-app-override",
            Description = "Placed at the very TOP of the App Override rulebase.",
            Folder = "All",
            Position = "pre",
            RelativePosition = "bottom",
            Application = "ssl",
            Protocol = "tcp",
            Port = "443",
            Froms = new[]
            {
                "untrust",
            },
            Tos = new[]
            {
                "trust",
            },
            Sources = new[]
            {
                "any",
            },
            Destinations = new[]
            {
                "any",
            },
        });
    
        var ruleBottomAppOverride = new Scm.AppOverrideRule("rule_bottom_app_override", new()
        {
            Name = "bottom-absolute-app-override",
            Description = "Placed at the very BOTTOM of the App Override rulebase.",
            Folder = "All",
            Position = "pre",
            RelativePosition = "bottom",
            Application = "ssl",
            Protocol = "tcp",
            Port = "443",
            Froms = new[]
            {
                "any",
            },
            Tos = new[]
            {
                "any",
            },
            Sources = new[]
            {
                "any",
            },
            Destinations = new[]
            {
                "any",
            },
        });
    
        //--- 4. RELATIVE POSITIONING Examples ("before" and "after") ---
        var ruleBeforeAnchorOverride = new Scm.AppOverrideRule("rule_before_anchor_override", new()
        {
            Name = "before-anchor-app-override",
            Description = "Positioned immediately BEFORE the anchor-app-override-rule.",
            Folder = "All",
            Position = "pre",
            RelativePosition = "before",
            TargetRule = anchorAppOverride.Id,
            Application = "ssl",
            Protocol = "tcp",
            Port = "443",
            Froms = new[]
            {
                "trust",
            },
            Tos = new[]
            {
                "untrust",
            },
            Sources = new[]
            {
                "any",
            },
            Destinations = new[]
            {
                "any",
            },
        });
    
        var ruleAfterAnchorOverride = new Scm.AppOverrideRule("rule_after_anchor_override", new()
        {
            Name = "after-anchor-app-override",
            Description = "Positioned immediately AFTER the anchor-app-override-rule.",
            Folder = "All",
            Position = "pre",
            RelativePosition = "before",
            TargetRule = anchorAppOverride.Id,
            Application = "ssl",
            Protocol = "tcp",
            Port = "443",
            Froms = new[]
            {
                "untrust",
            },
            Tos = new[]
            {
                "trust",
            },
            Sources = new[]
            {
                "any",
            },
            Destinations = new[]
            {
                "any",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.Tag;
    import com.pulumi.scm.TagArgs;
    import com.pulumi.scm.AppOverrideRule;
    import com.pulumi.scm.AppOverrideRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // --- 1. TAG Resource ---
            var appOverridePositionTag = new Tag("appOverridePositionTag", TagArgs.builder()
                .name("app-override-position-tag_1")
                .folder("All")
                .color("Orange")
                .build());
    
            // --- 2. ANCHOR RULE (Used for relative positioning by other rules) ---
            var anchorAppOverride = new AppOverrideRule("anchorAppOverride", AppOverrideRuleArgs.builder()
                .name("anchor-app-override-rule")
                .description("Base rule for testing 'before' and 'after' positioning. Updating")
                .folder("All")
                .position("pre")
                .application("ssl")
                .protocol("tcp")
                .port("112")
                .froms("trust")
                .tos("untrust")
                .sources("any")
                .destinations("any")
                .tags(appOverridePositionTag.name())
                .build());
    
            // --- 3. ABSOLUTE POSITIONING Examples ("top" and "bottom") ---
            var ruleTopAppOverride = new AppOverrideRule("ruleTopAppOverride", AppOverrideRuleArgs.builder()
                .name("top-absolute-app-override")
                .description("Placed at the very TOP of the App Override rulebase.")
                .folder("All")
                .position("pre")
                .relativePosition("bottom")
                .application("ssl")
                .protocol("tcp")
                .port("443")
                .froms("untrust")
                .tos("trust")
                .sources("any")
                .destinations("any")
                .build());
    
            var ruleBottomAppOverride = new AppOverrideRule("ruleBottomAppOverride", AppOverrideRuleArgs.builder()
                .name("bottom-absolute-app-override")
                .description("Placed at the very BOTTOM of the App Override rulebase.")
                .folder("All")
                .position("pre")
                .relativePosition("bottom")
                .application("ssl")
                .protocol("tcp")
                .port("443")
                .froms("any")
                .tos("any")
                .sources("any")
                .destinations("any")
                .build());
    
            //--- 4. RELATIVE POSITIONING Examples ("before" and "after") ---
            var ruleBeforeAnchorOverride = new AppOverrideRule("ruleBeforeAnchorOverride", AppOverrideRuleArgs.builder()
                .name("before-anchor-app-override")
                .description("Positioned immediately BEFORE the anchor-app-override-rule.")
                .folder("All")
                .position("pre")
                .relativePosition("before")
                .targetRule(anchorAppOverride.id())
                .application("ssl")
                .protocol("tcp")
                .port("443")
                .froms("trust")
                .tos("untrust")
                .sources("any")
                .destinations("any")
                .build());
    
            var ruleAfterAnchorOverride = new AppOverrideRule("ruleAfterAnchorOverride", AppOverrideRuleArgs.builder()
                .name("after-anchor-app-override")
                .description("Positioned immediately AFTER the anchor-app-override-rule.")
                .folder("All")
                .position("pre")
                .relativePosition("before")
                .targetRule(anchorAppOverride.id())
                .application("ssl")
                .protocol("tcp")
                .port("443")
                .froms("untrust")
                .tos("trust")
                .sources("any")
                .destinations("any")
                .build());
    
        }
    }
    
    resources:
      # --- 1. TAG Resource ---
      appOverridePositionTag:
        type: scm:Tag
        name: app_override_position_tag
        properties:
          name: app-override-position-tag_1
          folder: All
          color: Orange
      # --- 2. ANCHOR RULE (Used for relative positioning by other rules) ---
      anchorAppOverride:
        type: scm:AppOverrideRule
        name: anchor_app_override
        properties:
          name: anchor-app-override-rule
          description: Base rule for testing 'before' and 'after' positioning. Updating
          folder: All
          position: pre
          application: ssl
          protocol: tcp
          port: '112'
          froms:
            - trust
          tos:
            - untrust
          sources:
            - any
          destinations:
            - any
          tags:
            - ${appOverridePositionTag.name}
      # --- 3. ABSOLUTE POSITIONING Examples ("top" and "bottom") ---
      ruleTopAppOverride:
        type: scm:AppOverrideRule
        name: rule_top_app_override
        properties:
          name: top-absolute-app-override
          description: Placed at the very TOP of the App Override rulebase.
          folder: All
          position: pre
          relativePosition: bottom
          application: ssl
          protocol: tcp
          port: '443'
          froms:
            - untrust
          tos:
            - trust
          sources:
            - any
          destinations:
            - any
      ruleBottomAppOverride:
        type: scm:AppOverrideRule
        name: rule_bottom_app_override
        properties:
          name: bottom-absolute-app-override
          description: Placed at the very BOTTOM of the App Override rulebase.
          folder: All
          position: pre
          relativePosition: bottom
          application: ssl
          protocol: tcp
          port: '443'
          froms:
            - any
          tos:
            - any
          sources:
            - any
          destinations:
            - any
      #--- 4. RELATIVE POSITIONING Examples ("before" and "after") ---
      ruleBeforeAnchorOverride:
        type: scm:AppOverrideRule
        name: rule_before_anchor_override
        properties:
          name: before-anchor-app-override
          description: Positioned immediately BEFORE the anchor-app-override-rule.
          folder: All
          position: pre
          relativePosition: before
          targetRule: ${anchorAppOverride.id}
          application: ssl
          protocol: tcp
          port: '443'
          froms:
            - trust
          tos:
            - untrust
          sources:
            - any
          destinations:
            - any
      ruleAfterAnchorOverride:
        type: scm:AppOverrideRule
        name: rule_after_anchor_override
        properties:
          name: after-anchor-app-override
          description: Positioned immediately AFTER the anchor-app-override-rule.
          folder: All
          position: pre
          relativePosition: before
          targetRule: ${anchorAppOverride.id}
          application: ssl
          protocol: tcp
          port: '443'
          froms:
            - untrust
          tos:
            - trust
          sources:
            - any
          destinations:
            - any
    

    Create AppOverrideRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppOverrideRule(name: string, args: AppOverrideRuleArgs, opts?: CustomResourceOptions);
    @overload
    def AppOverrideRule(resource_name: str,
                        args: AppOverrideRuleArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppOverrideRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        application: Optional[str] = None,
                        tos: Optional[Sequence[str]] = None,
                        destinations: Optional[Sequence[str]] = None,
                        sources: Optional[Sequence[str]] = None,
                        protocol: Optional[str] = None,
                        port: Optional[str] = None,
                        froms: Optional[Sequence[str]] = None,
                        negate_source: Optional[bool] = None,
                        name: Optional[str] = None,
                        negate_destination: Optional[bool] = None,
                        group_tag: Optional[str] = None,
                        folder: Optional[str] = None,
                        position: Optional[str] = None,
                        disabled: Optional[bool] = None,
                        relative_position: Optional[str] = None,
                        snippet: Optional[str] = None,
                        device: Optional[str] = None,
                        tags: Optional[Sequence[str]] = None,
                        target_rule: Optional[str] = None,
                        description: Optional[str] = None)
    func NewAppOverrideRule(ctx *Context, name string, args AppOverrideRuleArgs, opts ...ResourceOption) (*AppOverrideRule, error)
    public AppOverrideRule(string name, AppOverrideRuleArgs args, CustomResourceOptions? opts = null)
    public AppOverrideRule(String name, AppOverrideRuleArgs args)
    public AppOverrideRule(String name, AppOverrideRuleArgs args, CustomResourceOptions options)
    
    type: scm:AppOverrideRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AppOverrideRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AppOverrideRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AppOverrideRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppOverrideRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppOverrideRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var appOverrideRuleResource = new Scm.AppOverrideRule("appOverrideRuleResource", new()
    {
        Application = "string",
        Tos = new[]
        {
            "string",
        },
        Destinations = new[]
        {
            "string",
        },
        Sources = new[]
        {
            "string",
        },
        Protocol = "string",
        Port = "string",
        Froms = new[]
        {
            "string",
        },
        NegateSource = false,
        Name = "string",
        NegateDestination = false,
        GroupTag = "string",
        Folder = "string",
        Position = "string",
        Disabled = false,
        RelativePosition = "string",
        Snippet = "string",
        Device = "string",
        Tags = new[]
        {
            "string",
        },
        TargetRule = "string",
        Description = "string",
    });
    
    example, err := scm.NewAppOverrideRule(ctx, "appOverrideRuleResource", &scm.AppOverrideRuleArgs{
    	Application: pulumi.String("string"),
    	Tos: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Destinations: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Sources: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Protocol: pulumi.String("string"),
    	Port:     pulumi.String("string"),
    	Froms: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NegateSource:      pulumi.Bool(false),
    	Name:              pulumi.String("string"),
    	NegateDestination: pulumi.Bool(false),
    	GroupTag:          pulumi.String("string"),
    	Folder:            pulumi.String("string"),
    	Position:          pulumi.String("string"),
    	Disabled:          pulumi.Bool(false),
    	RelativePosition:  pulumi.String("string"),
    	Snippet:           pulumi.String("string"),
    	Device:            pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetRule:  pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    var appOverrideRuleResource = new AppOverrideRule("appOverrideRuleResource", AppOverrideRuleArgs.builder()
        .application("string")
        .tos("string")
        .destinations("string")
        .sources("string")
        .protocol("string")
        .port("string")
        .froms("string")
        .negateSource(false)
        .name("string")
        .negateDestination(false)
        .groupTag("string")
        .folder("string")
        .position("string")
        .disabled(false)
        .relativePosition("string")
        .snippet("string")
        .device("string")
        .tags("string")
        .targetRule("string")
        .description("string")
        .build());
    
    app_override_rule_resource = scm.AppOverrideRule("appOverrideRuleResource",
        application="string",
        tos=["string"],
        destinations=["string"],
        sources=["string"],
        protocol="string",
        port="string",
        froms=["string"],
        negate_source=False,
        name="string",
        negate_destination=False,
        group_tag="string",
        folder="string",
        position="string",
        disabled=False,
        relative_position="string",
        snippet="string",
        device="string",
        tags=["string"],
        target_rule="string",
        description="string")
    
    const appOverrideRuleResource = new scm.AppOverrideRule("appOverrideRuleResource", {
        application: "string",
        tos: ["string"],
        destinations: ["string"],
        sources: ["string"],
        protocol: "string",
        port: "string",
        froms: ["string"],
        negateSource: false,
        name: "string",
        negateDestination: false,
        groupTag: "string",
        folder: "string",
        position: "string",
        disabled: false,
        relativePosition: "string",
        snippet: "string",
        device: "string",
        tags: ["string"],
        targetRule: "string",
        description: "string",
    });
    
    type: scm:AppOverrideRule
    properties:
        application: string
        description: string
        destinations:
            - string
        device: string
        disabled: false
        folder: string
        froms:
            - string
        groupTag: string
        name: string
        negateDestination: false
        negateSource: false
        port: string
        position: string
        protocol: string
        relativePosition: string
        snippet: string
        sources:
            - string
        tags:
            - string
        targetRule: string
        tos:
            - string
    

    AppOverrideRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AppOverrideRule resource accepts the following input properties:

    Application string
    Application
    Destinations List<string>
    Destination
    Froms List<string>
    From
    Port string
    Port
    Protocol string
    Protocol
    Sources List<string>
    Source
    Tos List<string>
    To
    Description string
    Description
    Device string
    The device in which the resource is defined
    Disabled bool
    Disabled
    Folder string
    The folder in which the resource is defined
    GroupTag string
    Group tag
    Name string
    Name
    NegateDestination bool
    Negate destination
    NegateSource bool
    Negate source
    Position string
    The position of a security rule
    RelativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    Snippet string
    The snippet in which the resource is defined
    Tags List<string>
    Tag
    TargetRule string
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    Application string
    Application
    Destinations []string
    Destination
    Froms []string
    From
    Port string
    Port
    Protocol string
    Protocol
    Sources []string
    Source
    Tos []string
    To
    Description string
    Description
    Device string
    The device in which the resource is defined
    Disabled bool
    Disabled
    Folder string
    The folder in which the resource is defined
    GroupTag string
    Group tag
    Name string
    Name
    NegateDestination bool
    Negate destination
    NegateSource bool
    Negate source
    Position string
    The position of a security rule
    RelativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    Snippet string
    The snippet in which the resource is defined
    Tags []string
    Tag
    TargetRule string
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    application String
    Application
    destinations List<String>
    Destination
    froms List<String>
    From
    port String
    Port
    protocol String
    Protocol
    sources List<String>
    Source
    tos List<String>
    To
    description String
    Description
    device String
    The device in which the resource is defined
    disabled Boolean
    Disabled
    folder String
    The folder in which the resource is defined
    groupTag String
    Group tag
    name String
    Name
    negateDestination Boolean
    Negate destination
    negateSource Boolean
    Negate source
    position String
    The position of a security rule
    relativePosition String
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    snippet String
    The snippet in which the resource is defined
    tags List<String>
    Tag
    targetRule String
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    application string
    Application
    destinations string[]
    Destination
    froms string[]
    From
    port string
    Port
    protocol string
    Protocol
    sources string[]
    Source
    tos string[]
    To
    description string
    Description
    device string
    The device in which the resource is defined
    disabled boolean
    Disabled
    folder string
    The folder in which the resource is defined
    groupTag string
    Group tag
    name string
    Name
    negateDestination boolean
    Negate destination
    negateSource boolean
    Negate source
    position string
    The position of a security rule
    relativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    snippet string
    The snippet in which the resource is defined
    tags string[]
    Tag
    targetRule string
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    application str
    Application
    destinations Sequence[str]
    Destination
    froms Sequence[str]
    From
    port str
    Port
    protocol str
    Protocol
    sources Sequence[str]
    Source
    tos Sequence[str]
    To
    description str
    Description
    device str
    The device in which the resource is defined
    disabled bool
    Disabled
    folder str
    The folder in which the resource is defined
    group_tag str
    Group tag
    name str
    Name
    negate_destination bool
    Negate destination
    negate_source bool
    Negate source
    position str
    The position of a security rule
    relative_position str
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    snippet str
    The snippet in which the resource is defined
    tags Sequence[str]
    Tag
    target_rule str
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    application String
    Application
    destinations List<String>
    Destination
    froms List<String>
    From
    port String
    Port
    protocol String
    Protocol
    sources List<String>
    Source
    tos List<String>
    To
    description String
    Description
    device String
    The device in which the resource is defined
    disabled Boolean
    Disabled
    folder String
    The folder in which the resource is defined
    groupTag String
    Group tag
    name String
    Name
    negateDestination Boolean
    Negate destination
    negateSource Boolean
    Negate source
    position String
    The position of a security rule
    relativePosition String
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    snippet String
    The snippet in which the resource is defined
    tags List<String>
    Tag
    targetRule String
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppOverrideRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Tfid string
    Id string
    The provider-assigned unique ID for this managed resource.
    Tfid string
    id String
    The provider-assigned unique ID for this managed resource.
    tfid String
    id string
    The provider-assigned unique ID for this managed resource.
    tfid string
    id str
    The provider-assigned unique ID for this managed resource.
    tfid str
    id String
    The provider-assigned unique ID for this managed resource.
    tfid String

    Look up Existing AppOverrideRule Resource

    Get an existing AppOverrideRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AppOverrideRuleState, opts?: CustomResourceOptions): AppOverrideRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application: Optional[str] = None,
            description: Optional[str] = None,
            destinations: Optional[Sequence[str]] = None,
            device: Optional[str] = None,
            disabled: Optional[bool] = None,
            folder: Optional[str] = None,
            froms: Optional[Sequence[str]] = None,
            group_tag: Optional[str] = None,
            name: Optional[str] = None,
            negate_destination: Optional[bool] = None,
            negate_source: Optional[bool] = None,
            port: Optional[str] = None,
            position: Optional[str] = None,
            protocol: Optional[str] = None,
            relative_position: Optional[str] = None,
            snippet: Optional[str] = None,
            sources: Optional[Sequence[str]] = None,
            tags: Optional[Sequence[str]] = None,
            target_rule: Optional[str] = None,
            tfid: Optional[str] = None,
            tos: Optional[Sequence[str]] = None) -> AppOverrideRule
    func GetAppOverrideRule(ctx *Context, name string, id IDInput, state *AppOverrideRuleState, opts ...ResourceOption) (*AppOverrideRule, error)
    public static AppOverrideRule Get(string name, Input<string> id, AppOverrideRuleState? state, CustomResourceOptions? opts = null)
    public static AppOverrideRule get(String name, Output<String> id, AppOverrideRuleState state, CustomResourceOptions options)
    resources:  _:    type: scm:AppOverrideRule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Application string
    Application
    Description string
    Description
    Destinations List<string>
    Destination
    Device string
    The device in which the resource is defined
    Disabled bool
    Disabled
    Folder string
    The folder in which the resource is defined
    Froms List<string>
    From
    GroupTag string
    Group tag
    Name string
    Name
    NegateDestination bool
    Negate destination
    NegateSource bool
    Negate source
    Port string
    Port
    Position string
    The position of a security rule
    Protocol string
    Protocol
    RelativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    Snippet string
    The snippet in which the resource is defined
    Sources List<string>
    Source
    Tags List<string>
    Tag
    TargetRule string
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    Tfid string
    Tos List<string>
    To
    Application string
    Application
    Description string
    Description
    Destinations []string
    Destination
    Device string
    The device in which the resource is defined
    Disabled bool
    Disabled
    Folder string
    The folder in which the resource is defined
    Froms []string
    From
    GroupTag string
    Group tag
    Name string
    Name
    NegateDestination bool
    Negate destination
    NegateSource bool
    Negate source
    Port string
    Port
    Position string
    The position of a security rule
    Protocol string
    Protocol
    RelativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    Snippet string
    The snippet in which the resource is defined
    Sources []string
    Source
    Tags []string
    Tag
    TargetRule string
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    Tfid string
    Tos []string
    To
    application String
    Application
    description String
    Description
    destinations List<String>
    Destination
    device String
    The device in which the resource is defined
    disabled Boolean
    Disabled
    folder String
    The folder in which the resource is defined
    froms List<String>
    From
    groupTag String
    Group tag
    name String
    Name
    negateDestination Boolean
    Negate destination
    negateSource Boolean
    Negate source
    port String
    Port
    position String
    The position of a security rule
    protocol String
    Protocol
    relativePosition String
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    snippet String
    The snippet in which the resource is defined
    sources List<String>
    Source
    tags List<String>
    Tag
    targetRule String
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    tfid String
    tos List<String>
    To
    application string
    Application
    description string
    Description
    destinations string[]
    Destination
    device string
    The device in which the resource is defined
    disabled boolean
    Disabled
    folder string
    The folder in which the resource is defined
    froms string[]
    From
    groupTag string
    Group tag
    name string
    Name
    negateDestination boolean
    Negate destination
    negateSource boolean
    Negate source
    port string
    Port
    position string
    The position of a security rule
    protocol string
    Protocol
    relativePosition string
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    snippet string
    The snippet in which the resource is defined
    sources string[]
    Source
    tags string[]
    Tag
    targetRule string
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    tfid string
    tos string[]
    To
    application str
    Application
    description str
    Description
    destinations Sequence[str]
    Destination
    device str
    The device in which the resource is defined
    disabled bool
    Disabled
    folder str
    The folder in which the resource is defined
    froms Sequence[str]
    From
    group_tag str
    Group tag
    name str
    Name
    negate_destination bool
    Negate destination
    negate_source bool
    Negate source
    port str
    Port
    position str
    The position of a security rule
    protocol str
    Protocol
    relative_position str
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    snippet str
    The snippet in which the resource is defined
    sources Sequence[str]
    Source
    tags Sequence[str]
    Tag
    target_rule str
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    tfid str
    tos Sequence[str]
    To
    application String
    Application
    description String
    Description
    destinations List<String>
    Destination
    device String
    The device in which the resource is defined
    disabled Boolean
    Disabled
    folder String
    The folder in which the resource is defined
    froms List<String>
    From
    groupTag String
    Group tag
    name String
    Name
    negateDestination Boolean
    Negate destination
    negateSource Boolean
    Negate source
    port String
    Port
    position String
    The position of a security rule
    protocol String
    Protocol
    relativePosition String
    Relative positioning rule. String must be one of these: "before", "after", "top", "bottom". If not specified, rule is created at the bottom of the ruleset.
    snippet String
    The snippet in which the resource is defined
    sources List<String>
    Source
    tags List<String>
    Tag
    targetRule String
    The name or UUID of the rule to position this rule relative to. Required when relative_position is "before" or "after".
    tfid String
    tos List<String>
    To

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate