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