aviatrix.AviatrixAppDomain
Explore with Pulumi AI
!> WARNING aviatrix_app_domain is part of the Micro-segmentation private preview feature for R2.22.0. If you wish to enable a private preview mode feature, please contact your sales representative or Aviatrix Support. The aviatrix_app_domain resource handles the creation and management of App Domains. Available as of Provider R2.22.0+.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix App Domain
var testAppDomainIp = new Aviatrix.AviatrixAppDomain("testAppDomainIp", new()
{
Selector = new Aviatrix.Inputs.AviatrixAppDomainSelectorArgs
{
MatchExpressions = new[]
{
new Aviatrix.Inputs.AviatrixAppDomainSelectorMatchExpressionArgs
{
AccountName = "devops",
Region = "us-west-2",
Tags =
{
{ "k3", "v3" },
},
Type = "vm",
},
new Aviatrix.Inputs.AviatrixAppDomainSelectorMatchExpressionArgs
{
Cidr = "10.0.0.0/16",
},
},
},
});
});
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.NewAviatrixAppDomain(ctx, "testAppDomainIp", &aviatrix.AviatrixAppDomainArgs{
Selector: &AviatrixAppDomainSelectorArgs{
MatchExpressions: AviatrixAppDomainSelectorMatchExpressionArray{
&AviatrixAppDomainSelectorMatchExpressionArgs{
AccountName: pulumi.String("devops"),
Region: pulumi.String("us-west-2"),
Tags: pulumi.StringMap{
"k3": pulumi.String("v3"),
},
Type: pulumi.String("vm"),
},
&AviatrixAppDomainSelectorMatchExpressionArgs{
Cidr: pulumi.String("10.0.0.0/16"),
},
},
},
})
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.AviatrixAppDomain;
import com.pulumi.aviatrix.AviatrixAppDomainArgs;
import com.pulumi.aviatrix.inputs.AviatrixAppDomainSelectorArgs;
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 testAppDomainIp = new AviatrixAppDomain("testAppDomainIp", AviatrixAppDomainArgs.builder()
.selector(AviatrixAppDomainSelectorArgs.builder()
.matchExpressions(
AviatrixAppDomainSelectorMatchExpressionArgs.builder()
.accountName("devops")
.region("us-west-2")
.tags(Map.of("k3", "v3"))
.type("vm")
.build(),
AviatrixAppDomainSelectorMatchExpressionArgs.builder()
.cidr("10.0.0.0/16")
.build())
.build())
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix App Domain
test_app_domain_ip = aviatrix.AviatrixAppDomain("testAppDomainIp", selector=aviatrix.AviatrixAppDomainSelectorArgs(
match_expressions=[
aviatrix.AviatrixAppDomainSelectorMatchExpressionArgs(
account_name="devops",
region="us-west-2",
tags={
"k3": "v3",
},
type="vm",
),
aviatrix.AviatrixAppDomainSelectorMatchExpressionArgs(
cidr="10.0.0.0/16",
),
],
))
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Create an Aviatrix App Domain
const testAppDomainIp = new aviatrix.AviatrixAppDomain("test_app_domain_ip", {
selector: {
matchExpressions: [
{
accountName: "devops",
region: "us-west-2",
tags: {
k3: "v3",
},
type: "vm",
},
{
cidr: "10.0.0.0/16",
},
],
},
});
resources:
# Create an Aviatrix App Domain
testAppDomainIp:
type: aviatrix:AviatrixAppDomain
properties:
selector:
matchExpressions:
- accountName: devops
region: us-west-2
tags:
k3: v3
type: vm
- cidr: 10.0.0.0/16
Create AviatrixAppDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixAppDomain(name: string, args: AviatrixAppDomainArgs, opts?: CustomResourceOptions);
@overload
def AviatrixAppDomain(resource_name: str,
args: AviatrixAppDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixAppDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
selector: Optional[AviatrixAppDomainSelectorArgs] = None,
name: Optional[str] = None)
func NewAviatrixAppDomain(ctx *Context, name string, args AviatrixAppDomainArgs, opts ...ResourceOption) (*AviatrixAppDomain, error)
public AviatrixAppDomain(string name, AviatrixAppDomainArgs args, CustomResourceOptions? opts = null)
public AviatrixAppDomain(String name, AviatrixAppDomainArgs args)
public AviatrixAppDomain(String name, AviatrixAppDomainArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixAppDomain
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 AviatrixAppDomainArgs
- 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 AviatrixAppDomainArgs
- 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 AviatrixAppDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixAppDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixAppDomainArgs
- 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 aviatrixAppDomainResource = new Aviatrix.AviatrixAppDomain("aviatrixAppDomainResource", new()
{
Selector = new Aviatrix.Inputs.AviatrixAppDomainSelectorArgs
{
MatchExpressions = new[]
{
new Aviatrix.Inputs.AviatrixAppDomainSelectorMatchExpressionArgs
{
AccountId = "string",
AccountName = "string",
Cidr = "string",
Region = "string",
ResId = "string",
Tags =
{
{ "string", "string" },
},
Type = "string",
Zone = "string",
},
},
},
Name = "string",
});
example, err := aviatrix.NewAviatrixAppDomain(ctx, "aviatrixAppDomainResource", &aviatrix.AviatrixAppDomainArgs{
Selector: &aviatrix.AviatrixAppDomainSelectorArgs{
MatchExpressions: aviatrix.AviatrixAppDomainSelectorMatchExpressionArray{
&aviatrix.AviatrixAppDomainSelectorMatchExpressionArgs{
AccountId: pulumi.String("string"),
AccountName: pulumi.String("string"),
Cidr: pulumi.String("string"),
Region: pulumi.String("string"),
ResId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Type: pulumi.String("string"),
Zone: pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
})
var aviatrixAppDomainResource = new AviatrixAppDomain("aviatrixAppDomainResource", AviatrixAppDomainArgs.builder()
.selector(AviatrixAppDomainSelectorArgs.builder()
.matchExpressions(AviatrixAppDomainSelectorMatchExpressionArgs.builder()
.accountId("string")
.accountName("string")
.cidr("string")
.region("string")
.resId("string")
.tags(Map.of("string", "string"))
.type("string")
.zone("string")
.build())
.build())
.name("string")
.build());
aviatrix_app_domain_resource = aviatrix.AviatrixAppDomain("aviatrixAppDomainResource",
selector=aviatrix.AviatrixAppDomainSelectorArgs(
match_expressions=[aviatrix.AviatrixAppDomainSelectorMatchExpressionArgs(
account_id="string",
account_name="string",
cidr="string",
region="string",
res_id="string",
tags={
"string": "string",
},
type="string",
zone="string",
)],
),
name="string")
const aviatrixAppDomainResource = new aviatrix.AviatrixAppDomain("aviatrixAppDomainResource", {
selector: {
matchExpressions: [{
accountId: "string",
accountName: "string",
cidr: "string",
region: "string",
resId: "string",
tags: {
string: "string",
},
type: "string",
zone: "string",
}],
},
name: "string",
});
type: aviatrix:AviatrixAppDomain
properties:
name: string
selector:
matchExpressions:
- accountId: string
accountName: string
cidr: string
region: string
resId: string
tags:
string: string
type: string
zone: string
AviatrixAppDomain 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 AviatrixAppDomain resource accepts the following input properties:
- Selector
Aviatrix
App Domain Selector - Block containing match expressions to filter the App Domain.
- Name string
- Name of the App Domain.
- Selector
Aviatrix
App Domain Selector Args - Block containing match expressions to filter the App Domain.
- Name string
- Name of the App Domain.
- selector
Aviatrix
App Domain Selector - Block containing match expressions to filter the App Domain.
- name String
- Name of the App Domain.
- selector
Aviatrix
App Domain Selector - Block containing match expressions to filter the App Domain.
- name string
- Name of the App Domain.
- selector
Aviatrix
App Domain Selector Args - Block containing match expressions to filter the App Domain.
- name str
- Name of the App Domain.
- selector Property Map
- Block containing match expressions to filter the App Domain.
- name String
- Name of the App Domain.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixAppDomain resource produces the following output properties:
Look up Existing AviatrixAppDomain Resource
Get an existing AviatrixAppDomain 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?: AviatrixAppDomainState, opts?: CustomResourceOptions): AviatrixAppDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
selector: Optional[AviatrixAppDomainSelectorArgs] = None,
uuid: Optional[str] = None) -> AviatrixAppDomain
func GetAviatrixAppDomain(ctx *Context, name string, id IDInput, state *AviatrixAppDomainState, opts ...ResourceOption) (*AviatrixAppDomain, error)
public static AviatrixAppDomain Get(string name, Input<string> id, AviatrixAppDomainState? state, CustomResourceOptions? opts = null)
public static AviatrixAppDomain get(String name, Output<String> id, AviatrixAppDomainState 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.
- Name string
- Name of the App Domain.
- Selector
Aviatrix
App Domain Selector - Block containing match expressions to filter the App Domain.
- Uuid string
- UUID of the App Domain.
- Name string
- Name of the App Domain.
- Selector
Aviatrix
App Domain Selector Args - Block containing match expressions to filter the App Domain.
- Uuid string
- UUID of the App Domain.
- name String
- Name of the App Domain.
- selector
Aviatrix
App Domain Selector - Block containing match expressions to filter the App Domain.
- uuid String
- UUID of the App Domain.
- name string
- Name of the App Domain.
- selector
Aviatrix
App Domain Selector - Block containing match expressions to filter the App Domain.
- uuid string
- UUID of the App Domain.
- name str
- Name of the App Domain.
- selector
Aviatrix
App Domain Selector Args - Block containing match expressions to filter the App Domain.
- uuid str
- UUID of the App Domain.
- name String
- Name of the App Domain.
- selector Property Map
- Block containing match expressions to filter the App Domain.
- uuid String
- UUID of the App Domain.
Supporting Types
AviatrixAppDomainSelector, AviatrixAppDomainSelectorArgs
- Match
Expressions List<AviatrixApp Domain Selector Match Expression> - List of match expressions. The App Domain will be a union of all resources matched by each
match_expressions
.match_expressions
blocks cannot be empty.
- Match
Expressions []AviatrixApp Domain Selector Match Expression - List of match expressions. The App Domain will be a union of all resources matched by each
match_expressions
.match_expressions
blocks cannot be empty.
- match
Expressions List<AviatrixApp Domain Selector Match Expression> - List of match expressions. The App Domain will be a union of all resources matched by each
match_expressions
.match_expressions
blocks cannot be empty.
- match
Expressions AviatrixApp Domain Selector Match Expression[] - List of match expressions. The App Domain will be a union of all resources matched by each
match_expressions
.match_expressions
blocks cannot be empty.
- match_
expressions Sequence[AviatrixApp Domain Selector Match Expression] - List of match expressions. The App Domain will be a union of all resources matched by each
match_expressions
.match_expressions
blocks cannot be empty.
- match
Expressions List<Property Map> - List of match expressions. The App Domain will be a union of all resources matched by each
match_expressions
.match_expressions
blocks cannot be empty.
AviatrixAppDomainSelectorMatchExpression, AviatrixAppDomainSelectorMatchExpressionArgs
- Account
Id string - Account ID this expression matches.
- Account
Name string - Account name this expression matches.
- Cidr string
- CIDR block or IP Address this expression matches.
cidr
cannot be used with any other filters in the samematch_expressions
block.
- CIDR block or IP Address this expression matches.
- Region string
- Region this expression matches.
- Res
Id string - Resource ID this expression matches.
- Dictionary<string, string>
- Map of tags this expression matches.
- Type string
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
type
is required whencidr
is not used.
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
- Zone string
- Zone this expression matches.
- Account
Id string - Account ID this expression matches.
- Account
Name string - Account name this expression matches.
- Cidr string
- CIDR block or IP Address this expression matches.
cidr
cannot be used with any other filters in the samematch_expressions
block.
- CIDR block or IP Address this expression matches.
- Region string
- Region this expression matches.
- Res
Id string - Resource ID this expression matches.
- map[string]string
- Map of tags this expression matches.
- Type string
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
type
is required whencidr
is not used.
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
- Zone string
- Zone this expression matches.
- account
Id String - Account ID this expression matches.
- account
Name String - Account name this expression matches.
- cidr String
- CIDR block or IP Address this expression matches.
cidr
cannot be used with any other filters in the samematch_expressions
block.
- CIDR block or IP Address this expression matches.
- region String
- Region this expression matches.
- res
Id String - Resource ID this expression matches.
- Map<String,String>
- Map of tags this expression matches.
- type String
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
type
is required whencidr
is not used.
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
- zone String
- Zone this expression matches.
- account
Id string - Account ID this expression matches.
- account
Name string - Account name this expression matches.
- cidr string
- CIDR block or IP Address this expression matches.
cidr
cannot be used with any other filters in the samematch_expressions
block.
- CIDR block or IP Address this expression matches.
- region string
- Region this expression matches.
- res
Id string - Resource ID this expression matches.
- {[key: string]: string}
- Map of tags this expression matches.
- type string
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
type
is required whencidr
is not used.
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
- zone string
- Zone this expression matches.
- account_
id str - Account ID this expression matches.
- account_
name str - Account name this expression matches.
- cidr str
- CIDR block or IP Address this expression matches.
cidr
cannot be used with any other filters in the samematch_expressions
block.
- CIDR block or IP Address this expression matches.
- region str
- Region this expression matches.
- res_
id str - Resource ID this expression matches.
- Mapping[str, str]
- Map of tags this expression matches.
- type str
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
type
is required whencidr
is not used.
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
- zone str
- Zone this expression matches.
- account
Id String - Account ID this expression matches.
- account
Name String - Account name this expression matches.
- cidr String
- CIDR block or IP Address this expression matches.
cidr
cannot be used with any other filters in the samematch_expressions
block.
- CIDR block or IP Address this expression matches.
- region String
- Region this expression matches.
- res
Id String - Resource ID this expression matches.
- Map<String>
- Map of tags this expression matches.
- type String
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
type
is required whencidr
is not used.
- Type of resource this expression matches. Must be one of "vm", "vpc" or "subnet".
- zone String
- Zone this expression matches.
Import
aviatrix_app_domain can be imported using the uuid
, e.g.
$ pulumi import aviatrix:index/aviatrixAppDomain:AviatrixAppDomain test 41984f8b-5a37-4272-89b3-57c79e9ff77c
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.