1. Packages
  2. Aviatrix
  3. API Docs
  4. AviatrixFqdnTagRule
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.AviatrixFqdnTagRule

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    Import

    fqdn_tag_rule can be imported using the fqdn_tag_name, fqdn, protocol, port and action separated by ~, e.g.

     $ pulumi import aviatrix:index/aviatrixFqdnTagRule:AviatrixFqdnTagRule test "fqdn_tag_name~fqdn~protocol~port~action"
    

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Aviatrix = Pulumi.Aviatrix;
    
    return await Deployment.RunAsync(() => 
    {
        // Create an Aviatrix Gateway FQDN Tag Rule filter rule
        var testFqdn = new Aviatrix.AviatrixFqdnTagRule("testFqdn", new()
        {
            Fqdn = "reddit.com",
            FqdnTagName = "my_tag",
            Port = "443",
            Protocol = "tcp",
        });
    
    });
    
    package main
    
    import (
    	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aviatrix.NewAviatrixFqdnTagRule(ctx, "testFqdn", &aviatrix.AviatrixFqdnTagRuleArgs{
    			Fqdn:        pulumi.String("reddit.com"),
    			FqdnTagName: pulumi.String("my_tag"),
    			Port:        pulumi.String("443"),
    			Protocol:    pulumi.String("tcp"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aviatrix.AviatrixFqdnTagRule;
    import com.pulumi.aviatrix.AviatrixFqdnTagRuleArgs;
    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) {
            var testFqdn = new AviatrixFqdnTagRule("testFqdn", AviatrixFqdnTagRuleArgs.builder()        
                .fqdn("reddit.com")
                .fqdnTagName("my_tag")
                .port("443")
                .protocol("tcp")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    # Create an Aviatrix Gateway FQDN Tag Rule filter rule
    test_fqdn = aviatrix.AviatrixFqdnTagRule("testFqdn",
        fqdn="reddit.com",
        fqdn_tag_name="my_tag",
        port="443",
        protocol="tcp")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Create an Aviatrix Gateway FQDN Tag Rule filter rule
    const testFqdn = new aviatrix.AviatrixFqdnTagRule("test_fqdn", {
        fqdn: "reddit.com",
        fqdnTagName: "my_tag",
        port: "443",
        protocol: "tcp",
    });
    
    resources:
      # Create an Aviatrix Gateway FQDN Tag Rule filter rule
      testFqdn:
        type: aviatrix:AviatrixFqdnTagRule
        properties:
          fqdn: reddit.com
          fqdnTagName: my_tag
          port: '443'
          protocol: tcp
    

    Create AviatrixFqdnTagRule Resource

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

    Constructor syntax

    new AviatrixFqdnTagRule(name: string, args: AviatrixFqdnTagRuleArgs, opts?: CustomResourceOptions);
    @overload
    def AviatrixFqdnTagRule(resource_name: str,
                            args: AviatrixFqdnTagRuleArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AviatrixFqdnTagRule(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            fqdn: Optional[str] = None,
                            fqdn_tag_name: Optional[str] = None,
                            port: Optional[str] = None,
                            protocol: Optional[str] = None,
                            action: Optional[str] = None)
    func NewAviatrixFqdnTagRule(ctx *Context, name string, args AviatrixFqdnTagRuleArgs, opts ...ResourceOption) (*AviatrixFqdnTagRule, error)
    public AviatrixFqdnTagRule(string name, AviatrixFqdnTagRuleArgs args, CustomResourceOptions? opts = null)
    public AviatrixFqdnTagRule(String name, AviatrixFqdnTagRuleArgs args)
    public AviatrixFqdnTagRule(String name, AviatrixFqdnTagRuleArgs args, CustomResourceOptions options)
    
    type: aviatrix:AviatrixFqdnTagRule
    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 AviatrixFqdnTagRuleArgs
    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 AviatrixFqdnTagRuleArgs
    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 AviatrixFqdnTagRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AviatrixFqdnTagRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AviatrixFqdnTagRuleArgs
    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 aviatrixFqdnTagRuleResource = new Aviatrix.AviatrixFqdnTagRule("aviatrixFqdnTagRuleResource", new()
    {
        Fqdn = "string",
        FqdnTagName = "string",
        Port = "string",
        Protocol = "string",
        Action = "string",
    });
    
    example, err := aviatrix.NewAviatrixFqdnTagRule(ctx, "aviatrixFqdnTagRuleResource", &aviatrix.AviatrixFqdnTagRuleArgs{
    	Fqdn:        pulumi.String("string"),
    	FqdnTagName: pulumi.String("string"),
    	Port:        pulumi.String("string"),
    	Protocol:    pulumi.String("string"),
    	Action:      pulumi.String("string"),
    })
    
    var aviatrixFqdnTagRuleResource = new AviatrixFqdnTagRule("aviatrixFqdnTagRuleResource", AviatrixFqdnTagRuleArgs.builder()
        .fqdn("string")
        .fqdnTagName("string")
        .port("string")
        .protocol("string")
        .action("string")
        .build());
    
    aviatrix_fqdn_tag_rule_resource = aviatrix.AviatrixFqdnTagRule("aviatrixFqdnTagRuleResource",
        fqdn="string",
        fqdn_tag_name="string",
        port="string",
        protocol="string",
        action="string")
    
    const aviatrixFqdnTagRuleResource = new aviatrix.AviatrixFqdnTagRule("aviatrixFqdnTagRuleResource", {
        fqdn: "string",
        fqdnTagName: "string",
        port: "string",
        protocol: "string",
        action: "string",
    });
    
    type: aviatrix:AviatrixFqdnTagRule
    properties:
        action: string
        fqdn: string
        fqdnTagName: string
        port: string
        protocol: string
    

    AviatrixFqdnTagRule Resource Properties

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

    Inputs

    The AviatrixFqdnTagRule resource accepts the following input properties:

    Fqdn string
    FQDN. Example: "facebook.com".
    FqdnTagName string
    FQDN Filter tag name.
    Port string
    Port. Example "25".
    Protocol string
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    Action string
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    Fqdn string
    FQDN. Example: "facebook.com".
    FqdnTagName string
    FQDN Filter tag name.
    Port string
    Port. Example "25".
    Protocol string
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    Action string
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    fqdn String
    FQDN. Example: "facebook.com".
    fqdnTagName String
    FQDN Filter tag name.
    port String
    Port. Example "25".
    protocol String
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    action String
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    fqdn string
    FQDN. Example: "facebook.com".
    fqdnTagName string
    FQDN Filter tag name.
    port string
    Port. Example "25".
    protocol string
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    action string
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    fqdn str
    FQDN. Example: "facebook.com".
    fqdn_tag_name str
    FQDN Filter tag name.
    port str
    Port. Example "25".
    protocol str
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    action str
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    fqdn String
    FQDN. Example: "facebook.com".
    fqdnTagName String
    FQDN Filter tag name.
    port String
    Port. Example "25".
    protocol String
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    action String
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AviatrixFqdnTagRule 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 AviatrixFqdnTagRule Resource

    Get an existing AviatrixFqdnTagRule 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?: AviatrixFqdnTagRuleState, opts?: CustomResourceOptions): AviatrixFqdnTagRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            fqdn: Optional[str] = None,
            fqdn_tag_name: Optional[str] = None,
            port: Optional[str] = None,
            protocol: Optional[str] = None) -> AviatrixFqdnTagRule
    func GetAviatrixFqdnTagRule(ctx *Context, name string, id IDInput, state *AviatrixFqdnTagRuleState, opts ...ResourceOption) (*AviatrixFqdnTagRule, error)
    public static AviatrixFqdnTagRule Get(string name, Input<string> id, AviatrixFqdnTagRuleState? state, CustomResourceOptions? opts = null)
    public static AviatrixFqdnTagRule get(String name, Output<String> id, AviatrixFqdnTagRuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Action string
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    Fqdn string
    FQDN. Example: "facebook.com".
    FqdnTagName string
    FQDN Filter tag name.
    Port string
    Port. Example "25".
    Protocol string
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    Action string
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    Fqdn string
    FQDN. Example: "facebook.com".
    FqdnTagName string
    FQDN Filter tag name.
    Port string
    Port. Example "25".
    Protocol string
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    action String
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    fqdn String
    FQDN. Example: "facebook.com".
    fqdnTagName String
    FQDN Filter tag name.
    port String
    Port. Example "25".
    protocol String
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    action string
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    fqdn string
    FQDN. Example: "facebook.com".
    fqdnTagName string
    FQDN Filter tag name.
    port string
    Port. Example "25".
    protocol string
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    action str
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    fqdn str
    FQDN. Example: "facebook.com".
    fqdn_tag_name str
    FQDN Filter tag name.
    port str
    Port. Example "25".
    protocol str
    Protocol. Valid values: "all", "tcp", "udp", "icmp".
    action String
    What action should happen to matching requests. Possible values are: 'Base Policy', 'Allow' or 'Deny'. Defaults to 'Base Policy' if no value provided.

    • For protocol "all", port must be set to "all".
    • For protocol “icmp”, port must be set to “ping”.
    fqdn String
    FQDN. Example: "facebook.com".
    fqdnTagName String
    FQDN Filter tag name.
    port String
    Port. Example "25".
    protocol String
    Protocol. Valid values: "all", "tcp", "udp", "icmp".

    Package Details

    Repository
    aviatrix astipkovits/pulumi-aviatrix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aviatrix Terraform Provider.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix