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

aviatrix.AviatrixTransitFirenetPolicy

Explore with Pulumi AI

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

    The aviatrix_transit_firenet_policy resource allows the creation and management of Aviatrix Transit FireNet policies that determine which resources should be inspected in the Transit FireNet solution.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Aviatrix = Pulumi.Aviatrix;
    
    return await Deployment.RunAsync(() => 
    {
        // Create an Aviatrix Transit FireNet Policy
        var testTransitFirenetPolicy = new Aviatrix.AviatrixTransitFirenetPolicy("testTransitFirenetPolicy", new()
        {
            InspectedResourceName = "SPOKE:spokeGw1",
            TransitFirenetGatewayName = "transitGw1",
        });
    
    });
    
    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.NewAviatrixTransitFirenetPolicy(ctx, "testTransitFirenetPolicy", &aviatrix.AviatrixTransitFirenetPolicyArgs{
    			InspectedResourceName:     pulumi.String("SPOKE:spokeGw1"),
    			TransitFirenetGatewayName: pulumi.String("transitGw1"),
    		})
    		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.AviatrixTransitFirenetPolicy;
    import com.pulumi.aviatrix.AviatrixTransitFirenetPolicyArgs;
    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 testTransitFirenetPolicy = new AviatrixTransitFirenetPolicy("testTransitFirenetPolicy", AviatrixTransitFirenetPolicyArgs.builder()        
                .inspectedResourceName("SPOKE:spokeGw1")
                .transitFirenetGatewayName("transitGw1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    # Create an Aviatrix Transit FireNet Policy
    test_transit_firenet_policy = aviatrix.AviatrixTransitFirenetPolicy("testTransitFirenetPolicy",
        inspected_resource_name="SPOKE:spokeGw1",
        transit_firenet_gateway_name="transitGw1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Create an Aviatrix Transit FireNet Policy
    const testTransitFirenetPolicy = new aviatrix.AviatrixTransitFirenetPolicy("test_transit_firenet_policy", {
        inspectedResourceName: "SPOKE:spokeGw1",
        transitFirenetGatewayName: "transitGw1",
    });
    
    resources:
      # Create an Aviatrix Transit FireNet Policy
      testTransitFirenetPolicy:
        type: aviatrix:AviatrixTransitFirenetPolicy
        properties:
          inspectedResourceName: SPOKE:spokeGw1
          transitFirenetGatewayName: transitGw1
    

    Create AviatrixTransitFirenetPolicy Resource

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

    Constructor syntax

    new AviatrixTransitFirenetPolicy(name: string, args: AviatrixTransitFirenetPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def AviatrixTransitFirenetPolicy(resource_name: str,
                                     args: AviatrixTransitFirenetPolicyArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def AviatrixTransitFirenetPolicy(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     inspected_resource_name: Optional[str] = None,
                                     transit_firenet_gateway_name: Optional[str] = None)
    func NewAviatrixTransitFirenetPolicy(ctx *Context, name string, args AviatrixTransitFirenetPolicyArgs, opts ...ResourceOption) (*AviatrixTransitFirenetPolicy, error)
    public AviatrixTransitFirenetPolicy(string name, AviatrixTransitFirenetPolicyArgs args, CustomResourceOptions? opts = null)
    public AviatrixTransitFirenetPolicy(String name, AviatrixTransitFirenetPolicyArgs args)
    public AviatrixTransitFirenetPolicy(String name, AviatrixTransitFirenetPolicyArgs args, CustomResourceOptions options)
    
    type: aviatrix:AviatrixTransitFirenetPolicy
    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 AviatrixTransitFirenetPolicyArgs
    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 AviatrixTransitFirenetPolicyArgs
    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 AviatrixTransitFirenetPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AviatrixTransitFirenetPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AviatrixTransitFirenetPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var aviatrixTransitFirenetPolicyResource = new Aviatrix.AviatrixTransitFirenetPolicy("aviatrixTransitFirenetPolicyResource", new()
    {
        InspectedResourceName = "string",
        TransitFirenetGatewayName = "string",
    });
    
    example, err := aviatrix.NewAviatrixTransitFirenetPolicy(ctx, "aviatrixTransitFirenetPolicyResource", &aviatrix.AviatrixTransitFirenetPolicyArgs{
    	InspectedResourceName:     pulumi.String("string"),
    	TransitFirenetGatewayName: pulumi.String("string"),
    })
    
    var aviatrixTransitFirenetPolicyResource = new AviatrixTransitFirenetPolicy("aviatrixTransitFirenetPolicyResource", AviatrixTransitFirenetPolicyArgs.builder()        
        .inspectedResourceName("string")
        .transitFirenetGatewayName("string")
        .build());
    
    aviatrix_transit_firenet_policy_resource = aviatrix.AviatrixTransitFirenetPolicy("aviatrixTransitFirenetPolicyResource",
        inspected_resource_name="string",
        transit_firenet_gateway_name="string")
    
    const aviatrixTransitFirenetPolicyResource = new aviatrix.AviatrixTransitFirenetPolicy("aviatrixTransitFirenetPolicyResource", {
        inspectedResourceName: "string",
        transitFirenetGatewayName: "string",
    });
    
    type: aviatrix:AviatrixTransitFirenetPolicy
    properties:
        inspectedResourceName: string
        transitFirenetGatewayName: string
    

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

    InspectedResourceName string
    The name of the resource which will be inspected.
    TransitFirenetGatewayName string
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    InspectedResourceName string
    The name of the resource which will be inspected.
    TransitFirenetGatewayName string
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    inspectedResourceName String
    The name of the resource which will be inspected.
    transitFirenetGatewayName String
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    inspectedResourceName string
    The name of the resource which will be inspected.
    transitFirenetGatewayName string
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    inspected_resource_name str
    The name of the resource which will be inspected.
    transit_firenet_gateway_name str
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    inspectedResourceName String
    The name of the resource which will be inspected.
    transitFirenetGatewayName String
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.

    Outputs

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

    Get an existing AviatrixTransitFirenetPolicy 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?: AviatrixTransitFirenetPolicyState, opts?: CustomResourceOptions): AviatrixTransitFirenetPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            inspected_resource_name: Optional[str] = None,
            transit_firenet_gateway_name: Optional[str] = None) -> AviatrixTransitFirenetPolicy
    func GetAviatrixTransitFirenetPolicy(ctx *Context, name string, id IDInput, state *AviatrixTransitFirenetPolicyState, opts ...ResourceOption) (*AviatrixTransitFirenetPolicy, error)
    public static AviatrixTransitFirenetPolicy Get(string name, Input<string> id, AviatrixTransitFirenetPolicyState? state, CustomResourceOptions? opts = null)
    public static AviatrixTransitFirenetPolicy get(String name, Output<String> id, AviatrixTransitFirenetPolicyState 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:
    InspectedResourceName string
    The name of the resource which will be inspected.
    TransitFirenetGatewayName string
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    InspectedResourceName string
    The name of the resource which will be inspected.
    TransitFirenetGatewayName string
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    inspectedResourceName String
    The name of the resource which will be inspected.
    transitFirenetGatewayName String
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    inspectedResourceName string
    The name of the resource which will be inspected.
    transitFirenetGatewayName string
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    inspected_resource_name str
    The name of the resource which will be inspected.
    transit_firenet_gateway_name str
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.
    inspectedResourceName String
    The name of the resource which will be inspected.
    transitFirenetGatewayName String
    Name of the Transit FireNet-enabled transit gateway. Currently supports AWS and Azure.

    Import

    transit_firenet_policy can be imported using the transit_firenet_gateway_name and inspected_resource_name, e.g.

     $ pulumi import aviatrix:index/aviatrixTransitFirenetPolicy:AviatrixTransitFirenetPolicy test transit_firenet_gateway_name~inspected_resource_name
    

    To learn more about importing existing cloud resources, see Importing resources.

    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