1. Packages
  2. Formal Provider
  3. API Docs
  4. ConnectorListenerRule
Formal v1.0.3 published on Monday, Aug 18, 2025 by Formal

formal.ConnectorListenerRule

Explore with Pulumi AI

formal logo
Formal v1.0.3 published on Monday, Aug 18, 2025 by Formal

    Registering a Connector Listener Rule with Formal.

    Create ConnectorListenerRule Resource

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

    Constructor syntax

    new ConnectorListenerRule(name: string, args: ConnectorListenerRuleArgs, opts?: CustomResourceOptions);
    @overload
    def ConnectorListenerRule(resource_name: str,
                              args: ConnectorListenerRuleArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConnectorListenerRule(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              connector_listener_id: Optional[str] = None,
                              rule: Optional[str] = None,
                              type: Optional[str] = None,
                              termination_protection: Optional[bool] = None)
    func NewConnectorListenerRule(ctx *Context, name string, args ConnectorListenerRuleArgs, opts ...ResourceOption) (*ConnectorListenerRule, error)
    public ConnectorListenerRule(string name, ConnectorListenerRuleArgs args, CustomResourceOptions? opts = null)
    public ConnectorListenerRule(String name, ConnectorListenerRuleArgs args)
    public ConnectorListenerRule(String name, ConnectorListenerRuleArgs args, CustomResourceOptions options)
    
    type: formal:ConnectorListenerRule
    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 ConnectorListenerRuleArgs
    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 ConnectorListenerRuleArgs
    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 ConnectorListenerRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectorListenerRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectorListenerRuleArgs
    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 connectorListenerRuleResource = new Pulumi.ConnectorListenerRule("connectorListenerRuleResource", new()
    {
        ConnectorListenerId = "string",
        Rule = "string",
        Type = "string",
        TerminationProtection = false,
    });
    
    example, err := formal.NewConnectorListenerRule(ctx, "connectorListenerRuleResource", &formal.ConnectorListenerRuleArgs{
    	ConnectorListenerId:   pulumi.String("string"),
    	Rule:                  pulumi.String("string"),
    	Type:                  pulumi.String("string"),
    	TerminationProtection: pulumi.Bool(false),
    })
    
    var connectorListenerRuleResource = new ConnectorListenerRule("connectorListenerRuleResource", ConnectorListenerRuleArgs.builder()
        .connectorListenerId("string")
        .rule("string")
        .type("string")
        .terminationProtection(false)
        .build());
    
    connector_listener_rule_resource = formal.ConnectorListenerRule("connectorListenerRuleResource",
        connector_listener_id="string",
        rule="string",
        type="string",
        termination_protection=False)
    
    const connectorListenerRuleResource = new formal.ConnectorListenerRule("connectorListenerRuleResource", {
        connectorListenerId: "string",
        rule: "string",
        type: "string",
        terminationProtection: false,
    });
    
    type: formal:ConnectorListenerRule
    properties:
        connectorListenerId: string
        rule: string
        terminationProtection: false
        type: string
    

    ConnectorListenerRule 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 ConnectorListenerRule resource accepts the following input properties:

    ConnectorListenerId string
    The ID of the listener this rule is associated with.
    Rule string
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    Type string
    The type of the rule. It can be either any, resource or technology
    TerminationProtection bool
    If set to true, this connector listener rule cannot be deleted.
    ConnectorListenerId string
    The ID of the listener this rule is associated with.
    Rule string
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    Type string
    The type of the rule. It can be either any, resource or technology
    TerminationProtection bool
    If set to true, this connector listener rule cannot be deleted.
    connectorListenerId String
    The ID of the listener this rule is associated with.
    rule String
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    type String
    The type of the rule. It can be either any, resource or technology
    terminationProtection Boolean
    If set to true, this connector listener rule cannot be deleted.
    connectorListenerId string
    The ID of the listener this rule is associated with.
    rule string
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    type string
    The type of the rule. It can be either any, resource or technology
    terminationProtection boolean
    If set to true, this connector listener rule cannot be deleted.
    connector_listener_id str
    The ID of the listener this rule is associated with.
    rule str
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    type str
    The type of the rule. It can be either any, resource or technology
    termination_protection bool
    If set to true, this connector listener rule cannot be deleted.
    connectorListenerId String
    The ID of the listener this rule is associated with.
    rule String
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    type String
    The type of the rule. It can be either any, resource or technology
    terminationProtection Boolean
    If set to true, this connector listener rule cannot be deleted.

    Outputs

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

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

    Look up Existing ConnectorListenerRule Resource

    Get an existing ConnectorListenerRule 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?: ConnectorListenerRuleState, opts?: CustomResourceOptions): ConnectorListenerRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connector_listener_id: Optional[str] = None,
            rule: Optional[str] = None,
            termination_protection: Optional[bool] = None,
            type: Optional[str] = None) -> ConnectorListenerRule
    func GetConnectorListenerRule(ctx *Context, name string, id IDInput, state *ConnectorListenerRuleState, opts ...ResourceOption) (*ConnectorListenerRule, error)
    public static ConnectorListenerRule Get(string name, Input<string> id, ConnectorListenerRuleState? state, CustomResourceOptions? opts = null)
    public static ConnectorListenerRule get(String name, Output<String> id, ConnectorListenerRuleState state, CustomResourceOptions options)
    resources:  _:    type: formal:ConnectorListenerRule    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:
    ConnectorListenerId string
    The ID of the listener this rule is associated with.
    Rule string
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    TerminationProtection bool
    If set to true, this connector listener rule cannot be deleted.
    Type string
    The type of the rule. It can be either any, resource or technology
    ConnectorListenerId string
    The ID of the listener this rule is associated with.
    Rule string
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    TerminationProtection bool
    If set to true, this connector listener rule cannot be deleted.
    Type string
    The type of the rule. It can be either any, resource or technology
    connectorListenerId String
    The ID of the listener this rule is associated with.
    rule String
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    terminationProtection Boolean
    If set to true, this connector listener rule cannot be deleted.
    type String
    The type of the rule. It can be either any, resource or technology
    connectorListenerId string
    The ID of the listener this rule is associated with.
    rule string
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    terminationProtection boolean
    If set to true, this connector listener rule cannot be deleted.
    type string
    The type of the rule. It can be either any, resource or technology
    connector_listener_id str
    The ID of the listener this rule is associated with.
    rule str
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    termination_protection bool
    If set to true, this connector listener rule cannot be deleted.
    type str
    The type of the rule. It can be either any, resource or technology
    connectorListenerId String
    The ID of the listener this rule is associated with.
    rule String
    The rule to apply to the listener. It should be either the id of the resource or the name of the technology.
    terminationProtection Boolean
    If set to true, this connector listener rule cannot be deleted.
    type String
    The type of the rule. It can be either any, resource or technology

    Package Details

    Repository
    formal formalco/pulumi-formal
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the formal Terraform Provider.
    formal logo
    Formal v1.0.3 published on Monday, Aug 18, 2025 by Formal
      AI Agentic Workflows: Register now