aviatrix logo
Aviatrix v0.0.10, Jan 21 23

aviatrix.AviatrixAppDomain

!> 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

new AviatrixAppDomain(name: string, args: AviatrixAppDomainArgs, opts?: CustomResourceOptions);
@overload
def AviatrixAppDomain(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      name: Optional[str] = None,
                      selector: Optional[AviatrixAppDomainSelectorArgs] = None)
@overload
def AviatrixAppDomain(resource_name: str,
                      args: AviatrixAppDomainArgs,
                      opts: Optional[ResourceOptions] = 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.

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.

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 AviatrixAppDomainSelectorArgs

Block containing match expressions to filter the App Domain.

Name string

Name of the App Domain.

Selector AviatrixAppDomainSelectorArgs

Block containing match expressions to filter the App Domain.

Name string

Name of the App Domain.

selector AviatrixAppDomainSelectorArgs

Block containing match expressions to filter the App Domain.

name String

Name of the App Domain.

selector AviatrixAppDomainSelectorArgs

Block containing match expressions to filter the App Domain.

name string

Name of the App Domain.

selector AviatrixAppDomainSelectorArgs

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:

Id string

The provider-assigned unique ID for this managed resource.

Uuid string

UUID of the App Domain.

Id string

The provider-assigned unique ID for this managed resource.

Uuid string

UUID of the App Domain.

id String

The provider-assigned unique ID for this managed resource.

uuid String

UUID of the App Domain.

id string

The provider-assigned unique ID for this managed resource.

uuid string

UUID of the App Domain.

id str

The provider-assigned unique ID for this managed resource.

uuid str

UUID of the App Domain.

id String

The provider-assigned unique ID for this managed resource.

uuid String

UUID of the App Domain.

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.
The following state arguments are supported:
Name string

Name of the App Domain.

Selector AviatrixAppDomainSelectorArgs

Block containing match expressions to filter the App Domain.

Uuid string

UUID of the App Domain.

Name string

Name of the App Domain.

Selector AviatrixAppDomainSelectorArgs

Block containing match expressions to filter the App Domain.

Uuid string

UUID of the App Domain.

name String

Name of the App Domain.

selector AviatrixAppDomainSelectorArgs

Block containing match expressions to filter the App Domain.

uuid String

UUID of the App Domain.

name string

Name of the App Domain.

selector AviatrixAppDomainSelectorArgs

Block containing match expressions to filter the App Domain.

uuid string

UUID of the App Domain.

name str

Name of the App Domain.

selector AviatrixAppDomainSelectorArgs

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

MatchExpressions List<AviatrixAppDomainSelectorMatchExpression>

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.

MatchExpressions []AviatrixAppDomainSelectorMatchExpression

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.

matchExpressions List<AviatrixAppDomainSelectorMatchExpression>

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.

matchExpressions AviatrixAppDomainSelectorMatchExpression[]

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[AviatrixAppDomainSelectorMatchExpression]

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.

matchExpressions 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

AccountId string
  • Account ID this expression matches.
AccountName 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 same match_expressions block.
Region string
  • Region this expression matches.
ResId string
  • Resource ID this expression matches.
Tags 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 when cidr is not used.
Zone string
  • Zone this expression matches.
AccountId string
  • Account ID this expression matches.
AccountName 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 same match_expressions block.
Region string
  • Region this expression matches.
ResId string
  • Resource ID this expression matches.
Tags 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 when cidr is not used.
Zone string
  • Zone this expression matches.
accountId String
  • Account ID this expression matches.
accountName 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 same match_expressions block.
region String
  • Region this expression matches.
resId String
  • Resource ID this expression matches.
tags 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 when cidr is not used.
zone String
  • Zone this expression matches.
accountId string
  • Account ID this expression matches.
accountName 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 same match_expressions block.
region string
  • Region this expression matches.
resId string
  • Resource ID this expression matches.
tags {[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 when cidr is not used.
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 same match_expressions block.
region str
  • Region this expression matches.
res_id str
  • Resource ID this expression matches.
tags 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 when cidr is not used.
zone str
  • Zone this expression matches.
accountId String
  • Account ID this expression matches.
accountName 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 same match_expressions block.
region String
  • Region this expression matches.
resId String
  • Resource ID this expression matches.
tags 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 when cidr is not used.
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

Package Details

Repository
aviatrix astipkovits/pulumi-aviatrix
License
Apache-2.0
Notes

This Pulumi package is based on the aviatrix Terraform Provider.