aviatrix.AviatrixControllerSecurityGroupManagementConfig

Explore with Pulumi AI

The aviatrix_controller_security_group_management_config resource allows management of an Aviatrix Controller’s security group management configurations. This resource is available as of v2.20.1.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix Controller Security Group Management Config to Enable Security Group Management
    var testSqmConfig = new Aviatrix.AviatrixControllerSecurityGroupManagementConfig("testSqmConfig", new()
    {
        AccountName = "devops",
        EnableSecurityGroupManagement = true,
    });

});
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.NewAviatrixControllerSecurityGroupManagementConfig(ctx, "testSqmConfig", &aviatrix.AviatrixControllerSecurityGroupManagementConfigArgs{
			AccountName:                   pulumi.String("devops"),
			EnableSecurityGroupManagement: pulumi.Bool(true),
		})
		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.AviatrixControllerSecurityGroupManagementConfig;
import com.pulumi.aviatrix.AviatrixControllerSecurityGroupManagementConfigArgs;
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 testSqmConfig = new AviatrixControllerSecurityGroupManagementConfig("testSqmConfig", AviatrixControllerSecurityGroupManagementConfigArgs.builder()        
            .accountName("devops")
            .enableSecurityGroupManagement(true)
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Controller Security Group Management Config to Enable Security Group Management
test_sqm_config = aviatrix.AviatrixControllerSecurityGroupManagementConfig("testSqmConfig",
    account_name="devops",
    enable_security_group_management=True)
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix Controller Security Group Management Config to Enable Security Group Management
const testSqmConfig = new aviatrix.AviatrixControllerSecurityGroupManagementConfig("test_sqm_config", {
    accountName: "devops",
    enableSecurityGroupManagement: true,
});
resources:
  # Create an Aviatrix Controller Security Group Management Config to Enable Security Group Management
  testSqmConfig:
    type: aviatrix:AviatrixControllerSecurityGroupManagementConfig
    properties:
      accountName: devops
      enableSecurityGroupManagement: true
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix Controller Security Group Management Config to Disable Security Group Management
    var testSqmConfig = new Aviatrix.AviatrixControllerSecurityGroupManagementConfig("testSqmConfig", new()
    {
        EnableSecurityGroupManagement = false,
    });

});
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.NewAviatrixControllerSecurityGroupManagementConfig(ctx, "testSqmConfig", &aviatrix.AviatrixControllerSecurityGroupManagementConfigArgs{
			EnableSecurityGroupManagement: pulumi.Bool(false),
		})
		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.AviatrixControllerSecurityGroupManagementConfig;
import com.pulumi.aviatrix.AviatrixControllerSecurityGroupManagementConfigArgs;
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 testSqmConfig = new AviatrixControllerSecurityGroupManagementConfig("testSqmConfig", AviatrixControllerSecurityGroupManagementConfigArgs.builder()        
            .enableSecurityGroupManagement(false)
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Controller Security Group Management Config to Disable Security Group Management
test_sqm_config = aviatrix.AviatrixControllerSecurityGroupManagementConfig("testSqmConfig", enable_security_group_management=False)
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix Controller Security Group Management Config to Disable Security Group Management
const testSqmConfig = new aviatrix.AviatrixControllerSecurityGroupManagementConfig("test_sqm_config", {
    enableSecurityGroupManagement: false,
});
resources:
  # Create an Aviatrix Controller Security Group Management Config to Disable Security Group Management
  testSqmConfig:
    type: aviatrix:AviatrixControllerSecurityGroupManagementConfig
    properties:
      enableSecurityGroupManagement: false

Create AviatrixControllerSecurityGroupManagementConfig Resource

new AviatrixControllerSecurityGroupManagementConfig(name: string, args: AviatrixControllerSecurityGroupManagementConfigArgs, opts?: CustomResourceOptions);
@overload
def AviatrixControllerSecurityGroupManagementConfig(resource_name: str,
                                                    opts: Optional[ResourceOptions] = None,
                                                    account_name: Optional[str] = None,
                                                    enable_security_group_management: Optional[bool] = None)
@overload
def AviatrixControllerSecurityGroupManagementConfig(resource_name: str,
                                                    args: AviatrixControllerSecurityGroupManagementConfigArgs,
                                                    opts: Optional[ResourceOptions] = None)
func NewAviatrixControllerSecurityGroupManagementConfig(ctx *Context, name string, args AviatrixControllerSecurityGroupManagementConfigArgs, opts ...ResourceOption) (*AviatrixControllerSecurityGroupManagementConfig, error)
public AviatrixControllerSecurityGroupManagementConfig(string name, AviatrixControllerSecurityGroupManagementConfigArgs args, CustomResourceOptions? opts = null)
public AviatrixControllerSecurityGroupManagementConfig(String name, AviatrixControllerSecurityGroupManagementConfigArgs args)
public AviatrixControllerSecurityGroupManagementConfig(String name, AviatrixControllerSecurityGroupManagementConfigArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixControllerSecurityGroupManagementConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AviatrixControllerSecurityGroupManagementConfigArgs
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 AviatrixControllerSecurityGroupManagementConfigArgs
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 AviatrixControllerSecurityGroupManagementConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AviatrixControllerSecurityGroupManagementConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AviatrixControllerSecurityGroupManagementConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AviatrixControllerSecurityGroupManagementConfig 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 AviatrixControllerSecurityGroupManagementConfig resource accepts the following input properties:

EnableSecurityGroupManagement bool

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

AccountName string

Select the primary access account.

EnableSecurityGroupManagement bool

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

AccountName string

Select the primary access account.

enableSecurityGroupManagement Boolean

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

accountName String

Select the primary access account.

enableSecurityGroupManagement boolean

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

accountName string

Select the primary access account.

enable_security_group_management bool

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

account_name str

Select the primary access account.

enableSecurityGroupManagement Boolean

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

accountName String

Select the primary access account.

Outputs

All input properties are implicitly available as output properties. Additionally, the AviatrixControllerSecurityGroupManagementConfig 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 AviatrixControllerSecurityGroupManagementConfig Resource

Get an existing AviatrixControllerSecurityGroupManagementConfig 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?: AviatrixControllerSecurityGroupManagementConfigState, opts?: CustomResourceOptions): AviatrixControllerSecurityGroupManagementConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_name: Optional[str] = None,
        enable_security_group_management: Optional[bool] = None) -> AviatrixControllerSecurityGroupManagementConfig
func GetAviatrixControllerSecurityGroupManagementConfig(ctx *Context, name string, id IDInput, state *AviatrixControllerSecurityGroupManagementConfigState, opts ...ResourceOption) (*AviatrixControllerSecurityGroupManagementConfig, error)
public static AviatrixControllerSecurityGroupManagementConfig Get(string name, Input<string> id, AviatrixControllerSecurityGroupManagementConfigState? state, CustomResourceOptions? opts = null)
public static AviatrixControllerSecurityGroupManagementConfig get(String name, Output<String> id, AviatrixControllerSecurityGroupManagementConfigState 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:
AccountName string

Select the primary access account.

EnableSecurityGroupManagement bool

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

AccountName string

Select the primary access account.

EnableSecurityGroupManagement bool

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

accountName String

Select the primary access account.

enableSecurityGroupManagement Boolean

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

accountName string

Select the primary access account.

enableSecurityGroupManagement boolean

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

account_name str

Select the primary access account.

enable_security_group_management bool

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

accountName String

Select the primary access account.

enableSecurityGroupManagement Boolean

Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false.

Import

Instance controller_security_group_management_config can be imported using controller IP, e.g. controller IP is 10.11.12.13

 $ pulumi import aviatrix:index/aviatrixControllerSecurityGroupManagementConfig:AviatrixControllerSecurityGroupManagementConfig test 10-11-12-13

Package Details

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

This Pulumi package is based on the aviatrix Terraform Provider.