aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicy
Explore with Pulumi AI
The aviatrix_segmentation_network_domain_connection_policy resource handles creation of Transit Segmentation Network Domain Connection Policies.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix Segmentation Network Domain
var testSegmentationNetworkDomainConnectionPolicy = new Aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicy("testSegmentationNetworkDomainConnectionPolicy", new()
{
DomainName1 = "domain-a",
DomainName2 = "domain-b",
});
});
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.NewAviatrixSegmentationNetworkDomainConnectionPolicy(ctx, "testSegmentationNetworkDomainConnectionPolicy", &aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicyArgs{
DomainName1: pulumi.String("domain-a"),
DomainName2: pulumi.String("domain-b"),
})
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.AviatrixSegmentationNetworkDomainConnectionPolicy;
import com.pulumi.aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicyArgs;
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 testSegmentationNetworkDomainConnectionPolicy = new AviatrixSegmentationNetworkDomainConnectionPolicy("testSegmentationNetworkDomainConnectionPolicy", AviatrixSegmentationNetworkDomainConnectionPolicyArgs.builder()
.domainName1("domain-a")
.domainName2("domain-b")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix Segmentation Network Domain
test_segmentation_network_domain_connection_policy = aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicy("testSegmentationNetworkDomainConnectionPolicy",
domain_name1="domain-a",
domain_name2="domain-b")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Create an Aviatrix Segmentation Network Domain
const testSegmentationNetworkDomainConnectionPolicy = new aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicy("test_segmentation_network_domain_connection_policy", {
domainName1: "domain-a",
domainName2: "domain-b",
});
resources:
# Create an Aviatrix Segmentation Network Domain
testSegmentationNetworkDomainConnectionPolicy:
type: aviatrix:AviatrixSegmentationNetworkDomainConnectionPolicy
properties:
domainName1: domain-a
domainName2: domain-b
Create AviatrixSegmentationNetworkDomainConnectionPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixSegmentationNetworkDomainConnectionPolicy(name: string, args: AviatrixSegmentationNetworkDomainConnectionPolicyArgs, opts?: CustomResourceOptions);
@overload
def AviatrixSegmentationNetworkDomainConnectionPolicy(resource_name: str,
args: AviatrixSegmentationNetworkDomainConnectionPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixSegmentationNetworkDomainConnectionPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_name1: Optional[str] = None,
domain_name2: Optional[str] = None)
func NewAviatrixSegmentationNetworkDomainConnectionPolicy(ctx *Context, name string, args AviatrixSegmentationNetworkDomainConnectionPolicyArgs, opts ...ResourceOption) (*AviatrixSegmentationNetworkDomainConnectionPolicy, error)
public AviatrixSegmentationNetworkDomainConnectionPolicy(string name, AviatrixSegmentationNetworkDomainConnectionPolicyArgs args, CustomResourceOptions? opts = null)
public AviatrixSegmentationNetworkDomainConnectionPolicy(String name, AviatrixSegmentationNetworkDomainConnectionPolicyArgs args)
public AviatrixSegmentationNetworkDomainConnectionPolicy(String name, AviatrixSegmentationNetworkDomainConnectionPolicyArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixSegmentationNetworkDomainConnectionPolicy
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 AviatrixSegmentationNetworkDomainConnectionPolicyArgs
- 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 AviatrixSegmentationNetworkDomainConnectionPolicyArgs
- 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 AviatrixSegmentationNetworkDomainConnectionPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixSegmentationNetworkDomainConnectionPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixSegmentationNetworkDomainConnectionPolicyArgs
- 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 aviatrixSegmentationNetworkDomainConnectionPolicyResource = new Aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicy("aviatrixSegmentationNetworkDomainConnectionPolicyResource", new()
{
DomainName1 = "string",
DomainName2 = "string",
});
example, err := aviatrix.NewAviatrixSegmentationNetworkDomainConnectionPolicy(ctx, "aviatrixSegmentationNetworkDomainConnectionPolicyResource", &aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicyArgs{
DomainName1: pulumi.String("string"),
DomainName2: pulumi.String("string"),
})
var aviatrixSegmentationNetworkDomainConnectionPolicyResource = new AviatrixSegmentationNetworkDomainConnectionPolicy("aviatrixSegmentationNetworkDomainConnectionPolicyResource", AviatrixSegmentationNetworkDomainConnectionPolicyArgs.builder()
.domainName1("string")
.domainName2("string")
.build());
aviatrix_segmentation_network_domain_connection_policy_resource = aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicy("aviatrixSegmentationNetworkDomainConnectionPolicyResource",
domain_name1="string",
domain_name2="string")
const aviatrixSegmentationNetworkDomainConnectionPolicyResource = new aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicy("aviatrixSegmentationNetworkDomainConnectionPolicyResource", {
domainName1: "string",
domainName2: "string",
});
type: aviatrix:AviatrixSegmentationNetworkDomainConnectionPolicy
properties:
domainName1: string
domainName2: string
AviatrixSegmentationNetworkDomainConnectionPolicy 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 AviatrixSegmentationNetworkDomainConnectionPolicy resource accepts the following input properties:
- Domain
Name1 string - Name of the Network Domain to connect to Domain 2.
- Domain
Name2 string - Name of the Network Domain to connect to Domain 1.
- Domain
Name1 string - Name of the Network Domain to connect to Domain 2.
- Domain
Name2 string - Name of the Network Domain to connect to Domain 1.
- domain
Name1 String - Name of the Network Domain to connect to Domain 2.
- domain
Name2 String - Name of the Network Domain to connect to Domain 1.
- domain
Name1 string - Name of the Network Domain to connect to Domain 2.
- domain
Name2 string - Name of the Network Domain to connect to Domain 1.
- domain_
name1 str - Name of the Network Domain to connect to Domain 2.
- domain_
name2 str - Name of the Network Domain to connect to Domain 1.
- domain
Name1 String - Name of the Network Domain to connect to Domain 2.
- domain
Name2 String - Name of the Network Domain to connect to Domain 1.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixSegmentationNetworkDomainConnectionPolicy 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 AviatrixSegmentationNetworkDomainConnectionPolicy Resource
Get an existing AviatrixSegmentationNetworkDomainConnectionPolicy 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?: AviatrixSegmentationNetworkDomainConnectionPolicyState, opts?: CustomResourceOptions): AviatrixSegmentationNetworkDomainConnectionPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain_name1: Optional[str] = None,
domain_name2: Optional[str] = None) -> AviatrixSegmentationNetworkDomainConnectionPolicy
func GetAviatrixSegmentationNetworkDomainConnectionPolicy(ctx *Context, name string, id IDInput, state *AviatrixSegmentationNetworkDomainConnectionPolicyState, opts ...ResourceOption) (*AviatrixSegmentationNetworkDomainConnectionPolicy, error)
public static AviatrixSegmentationNetworkDomainConnectionPolicy Get(string name, Input<string> id, AviatrixSegmentationNetworkDomainConnectionPolicyState? state, CustomResourceOptions? opts = null)
public static AviatrixSegmentationNetworkDomainConnectionPolicy get(String name, Output<String> id, AviatrixSegmentationNetworkDomainConnectionPolicyState 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.
- Domain
Name1 string - Name of the Network Domain to connect to Domain 2.
- Domain
Name2 string - Name of the Network Domain to connect to Domain 1.
- Domain
Name1 string - Name of the Network Domain to connect to Domain 2.
- Domain
Name2 string - Name of the Network Domain to connect to Domain 1.
- domain
Name1 String - Name of the Network Domain to connect to Domain 2.
- domain
Name2 String - Name of the Network Domain to connect to Domain 1.
- domain
Name1 string - Name of the Network Domain to connect to Domain 2.
- domain
Name2 string - Name of the Network Domain to connect to Domain 1.
- domain_
name1 str - Name of the Network Domain to connect to Domain 2.
- domain_
name2 str - Name of the Network Domain to connect to Domain 1.
- domain
Name1 String - Name of the Network Domain to connect to Domain 2.
- domain
Name2 String - Name of the Network Domain to connect to Domain 1.
Import
aviatrix_segmentation_network_domain_connection_policy can be imported using domain_name_1
and domain_name_2
separated by a ~
, e.g.
$ pulumi import aviatrix:index/aviatrixSegmentationNetworkDomainConnectionPolicy:AviatrixSegmentationNetworkDomainConnectionPolicy test domain_name_1~domain_name_2
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.