aviatrix.AviatrixFqdnPassThrough
Explore with Pulumi AI
Import
fqdn_pass_through can be imported using the gw_name
, e.g.
$ pulumi import aviatrix:index/aviatrixFqdnPassThrough:AviatrixFqdnPassThrough test gw_name
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix Gateway FQDN filter pass-through
var testFqdnPassThrough = new Aviatrix.AviatrixFqdnPassThrough("testFqdnPassThrough", new()
{
GwName = aviatrix_gateway.Test_gw_aws.Gw_name,
PassThroughCidrs = new[]
{
"10.0.0.0/24",
"10.0.1.0/24",
"10.0.2.0/24",
},
}, new CustomResourceOptions
{
DependsOn = new[]
{
aviatrix_fqdn.Test_fqdn,
},
});
});
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.NewAviatrixFqdnPassThrough(ctx, "testFqdnPassThrough", &aviatrix.AviatrixFqdnPassThroughArgs{
GwName: pulumi.Any(aviatrix_gateway.Test_gw_aws.Gw_name),
PassThroughCidrs: pulumi.StringArray{
pulumi.String("10.0.0.0/24"),
pulumi.String("10.0.1.0/24"),
pulumi.String("10.0.2.0/24"),
},
}, pulumi.DependsOn([]pulumi.Resource{
aviatrix_fqdn.Test_fqdn,
}))
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.AviatrixFqdnPassThrough;
import com.pulumi.aviatrix.AviatrixFqdnPassThroughArgs;
import com.pulumi.resources.CustomResourceOptions;
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 testFqdnPassThrough = new AviatrixFqdnPassThrough("testFqdnPassThrough", AviatrixFqdnPassThroughArgs.builder()
.gwName(aviatrix_gateway.test_gw_aws().gw_name())
.passThroughCidrs(
"10.0.0.0/24",
"10.0.1.0/24",
"10.0.2.0/24")
.build(), CustomResourceOptions.builder()
.dependsOn(aviatrix_fqdn.test_fqdn())
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix Gateway FQDN filter pass-through
test_fqdn_pass_through = aviatrix.AviatrixFqdnPassThrough("testFqdnPassThrough",
gw_name=aviatrix_gateway["test_gw_aws"]["gw_name"],
pass_through_cidrs=[
"10.0.0.0/24",
"10.0.1.0/24",
"10.0.2.0/24",
],
opts=pulumi.ResourceOptions(depends_on=[aviatrix_fqdn["test_fqdn"]]))
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@astipkovits/aviatrix";
// Create an Aviatrix Gateway FQDN filter pass-through
const testFqdnPassThrough = new aviatrix.AviatrixFqdnPassThrough("testFqdnPassThrough", {
gwName: aviatrix_gateway.test_gw_aws.gw_name,
passThroughCidrs: [
"10.0.0.0/24",
"10.0.1.0/24",
"10.0.2.0/24",
],
}, {
dependsOn: [aviatrix_fqdn.test_fqdn],
});
resources:
# Create an Aviatrix Gateway FQDN filter pass-through
testFqdnPassThrough:
type: aviatrix:AviatrixFqdnPassThrough
properties:
gwName: ${aviatrix_gateway.test_gw_aws.gw_name}
passThroughCidrs:
- 10.0.0.0/24
- 10.0.1.0/24
- 10.0.2.0/24
options:
dependson:
- ${aviatrix_fqdn.test_fqdn}
Create AviatrixFqdnPassThrough Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixFqdnPassThrough(name: string, args: AviatrixFqdnPassThroughArgs, opts?: CustomResourceOptions);
@overload
def AviatrixFqdnPassThrough(resource_name: str,
args: AviatrixFqdnPassThroughArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixFqdnPassThrough(resource_name: str,
opts: Optional[ResourceOptions] = None,
gw_name: Optional[str] = None,
pass_through_cidrs: Optional[Sequence[str]] = None)
func NewAviatrixFqdnPassThrough(ctx *Context, name string, args AviatrixFqdnPassThroughArgs, opts ...ResourceOption) (*AviatrixFqdnPassThrough, error)
public AviatrixFqdnPassThrough(string name, AviatrixFqdnPassThroughArgs args, CustomResourceOptions? opts = null)
public AviatrixFqdnPassThrough(String name, AviatrixFqdnPassThroughArgs args)
public AviatrixFqdnPassThrough(String name, AviatrixFqdnPassThroughArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixFqdnPassThrough
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 AviatrixFqdnPassThroughArgs
- 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 AviatrixFqdnPassThroughArgs
- 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 AviatrixFqdnPassThroughArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixFqdnPassThroughArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixFqdnPassThroughArgs
- 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 aviatrixFqdnPassThroughResource = new Aviatrix.AviatrixFqdnPassThrough("aviatrixFqdnPassThroughResource", new()
{
GwName = "string",
PassThroughCidrs = new[]
{
"string",
},
});
example, err := aviatrix.NewAviatrixFqdnPassThrough(ctx, "aviatrixFqdnPassThroughResource", &aviatrix.AviatrixFqdnPassThroughArgs{
GwName: pulumi.String("string"),
PassThroughCidrs: pulumi.StringArray{
pulumi.String("string"),
},
})
var aviatrixFqdnPassThroughResource = new AviatrixFqdnPassThrough("aviatrixFqdnPassThroughResource", AviatrixFqdnPassThroughArgs.builder()
.gwName("string")
.passThroughCidrs("string")
.build());
aviatrix_fqdn_pass_through_resource = aviatrix.AviatrixFqdnPassThrough("aviatrixFqdnPassThroughResource",
gw_name="string",
pass_through_cidrs=["string"])
const aviatrixFqdnPassThroughResource = new aviatrix.AviatrixFqdnPassThrough("aviatrixFqdnPassThroughResource", {
gwName: "string",
passThroughCidrs: ["string"],
});
type: aviatrix:AviatrixFqdnPassThrough
properties:
gwName: string
passThroughCidrs:
- string
AviatrixFqdnPassThrough 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 AviatrixFqdnPassThrough resource accepts the following input properties:
- Gw
Name string - Gateway name to apply pass-through rules to.
- Pass
Through List<string>Cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- Gw
Name string - Gateway name to apply pass-through rules to.
- Pass
Through []stringCidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- gw
Name String - Gateway name to apply pass-through rules to.
- pass
Through List<String>Cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- gw
Name string - Gateway name to apply pass-through rules to.
- pass
Through string[]Cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- gw_
name str - Gateway name to apply pass-through rules to.
- pass_
through_ Sequence[str]cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- gw
Name String - Gateway name to apply pass-through rules to.
- pass
Through List<String>Cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixFqdnPassThrough 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 AviatrixFqdnPassThrough Resource
Get an existing AviatrixFqdnPassThrough 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?: AviatrixFqdnPassThroughState, opts?: CustomResourceOptions): AviatrixFqdnPassThrough
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
gw_name: Optional[str] = None,
pass_through_cidrs: Optional[Sequence[str]] = None) -> AviatrixFqdnPassThrough
func GetAviatrixFqdnPassThrough(ctx *Context, name string, id IDInput, state *AviatrixFqdnPassThroughState, opts ...ResourceOption) (*AviatrixFqdnPassThrough, error)
public static AviatrixFqdnPassThrough Get(string name, Input<string> id, AviatrixFqdnPassThroughState? state, CustomResourceOptions? opts = null)
public static AviatrixFqdnPassThrough get(String name, Output<String> id, AviatrixFqdnPassThroughState 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.
- Gw
Name string - Gateway name to apply pass-through rules to.
- Pass
Through List<string>Cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- Gw
Name string - Gateway name to apply pass-through rules to.
- Pass
Through []stringCidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- gw
Name String - Gateway name to apply pass-through rules to.
- pass
Through List<String>Cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- gw
Name string - Gateway name to apply pass-through rules to.
- pass
Through string[]Cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- gw_
name str - Gateway name to apply pass-through rules to.
- pass_
through_ Sequence[str]cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
- gw
Name String - Gateway name to apply pass-through rules to.
- pass
Through List<String>Cidrs - List of origin CIDR's to allow to pass-through FQDN filtering rules. Minimum list length: 1.
Package Details
- Repository
- aviatrix astipkovits/pulumi-aviatrix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aviatrix
Terraform Provider.