aviatrix.AviatrixCopilotSecurityGroupManagementConfig
Explore with Pulumi AI
The aviatrix_copilot_security_group_management_config resource allows management of controller CoPilot security group management configuration. This resource is available as of provider version R2.23+.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Enable the CoPilot Security Group Management
var test = new Aviatrix.AviatrixCopilotSecurityGroupManagementConfig("test", new()
{
AccountName = "aws-account",
CloudType = 1,
EnableCopilotSecurityGroupManagement = true,
InstanceId = "i-1234567890",
Region = "us-east-1",
VpcId = "vpc-1234567890",
});
});
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.NewAviatrixCopilotSecurityGroupManagementConfig(ctx, "test", &aviatrix.AviatrixCopilotSecurityGroupManagementConfigArgs{
AccountName: pulumi.String("aws-account"),
CloudType: pulumi.Int(1),
EnableCopilotSecurityGroupManagement: pulumi.Bool(true),
InstanceId: pulumi.String("i-1234567890"),
Region: pulumi.String("us-east-1"),
VpcId: pulumi.String("vpc-1234567890"),
})
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.AviatrixCopilotSecurityGroupManagementConfig;
import com.pulumi.aviatrix.AviatrixCopilotSecurityGroupManagementConfigArgs;
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 test = new AviatrixCopilotSecurityGroupManagementConfig("test", AviatrixCopilotSecurityGroupManagementConfigArgs.builder()
.accountName("aws-account")
.cloudType(1)
.enableCopilotSecurityGroupManagement(true)
.instanceId("i-1234567890")
.region("us-east-1")
.vpcId("vpc-1234567890")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Enable the CoPilot Security Group Management
test = aviatrix.AviatrixCopilotSecurityGroupManagementConfig("test",
account_name="aws-account",
cloud_type=1,
enable_copilot_security_group_management=True,
instance_id="i-1234567890",
region="us-east-1",
vpc_id="vpc-1234567890")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Enable the CoPilot Security Group Management
const test = new aviatrix.AviatrixCopilotSecurityGroupManagementConfig("test", {
accountName: "aws-account",
cloudType: 1,
enableCopilotSecurityGroupManagement: true,
instanceId: "i-1234567890",
region: "us-east-1",
vpcId: "vpc-1234567890",
});
resources:
# Enable the CoPilot Security Group Management
test:
type: aviatrix:AviatrixCopilotSecurityGroupManagementConfig
properties:
accountName: aws-account
cloudType: 1
enableCopilotSecurityGroupManagement: true
instanceId: i-1234567890
region: us-east-1
vpcId: vpc-1234567890
Create AviatrixCopilotSecurityGroupManagementConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixCopilotSecurityGroupManagementConfig(name: string, args: AviatrixCopilotSecurityGroupManagementConfigArgs, opts?: CustomResourceOptions);
@overload
def AviatrixCopilotSecurityGroupManagementConfig(resource_name: str,
args: AviatrixCopilotSecurityGroupManagementConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixCopilotSecurityGroupManagementConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
enable_copilot_security_group_management: Optional[bool] = None,
account_name: Optional[str] = None,
cloud_type: Optional[int] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
vpc_id: Optional[str] = None,
zone: Optional[str] = None)
func NewAviatrixCopilotSecurityGroupManagementConfig(ctx *Context, name string, args AviatrixCopilotSecurityGroupManagementConfigArgs, opts ...ResourceOption) (*AviatrixCopilotSecurityGroupManagementConfig, error)
public AviatrixCopilotSecurityGroupManagementConfig(string name, AviatrixCopilotSecurityGroupManagementConfigArgs args, CustomResourceOptions? opts = null)
public AviatrixCopilotSecurityGroupManagementConfig(String name, AviatrixCopilotSecurityGroupManagementConfigArgs args)
public AviatrixCopilotSecurityGroupManagementConfig(String name, AviatrixCopilotSecurityGroupManagementConfigArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixCopilotSecurityGroupManagementConfig
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 AviatrixCopilotSecurityGroupManagementConfigArgs
- 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 AviatrixCopilotSecurityGroupManagementConfigArgs
- 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 AviatrixCopilotSecurityGroupManagementConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixCopilotSecurityGroupManagementConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixCopilotSecurityGroupManagementConfigArgs
- 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 aviatrixCopilotSecurityGroupManagementConfigResource = new Aviatrix.AviatrixCopilotSecurityGroupManagementConfig("aviatrixCopilotSecurityGroupManagementConfigResource", new()
{
EnableCopilotSecurityGroupManagement = false,
AccountName = "string",
CloudType = 0,
InstanceId = "string",
Region = "string",
VpcId = "string",
Zone = "string",
});
example, err := aviatrix.NewAviatrixCopilotSecurityGroupManagementConfig(ctx, "aviatrixCopilotSecurityGroupManagementConfigResource", &aviatrix.AviatrixCopilotSecurityGroupManagementConfigArgs{
EnableCopilotSecurityGroupManagement: pulumi.Bool(false),
AccountName: pulumi.String("string"),
CloudType: pulumi.Int(0),
InstanceId: pulumi.String("string"),
Region: pulumi.String("string"),
VpcId: pulumi.String("string"),
Zone: pulumi.String("string"),
})
var aviatrixCopilotSecurityGroupManagementConfigResource = new AviatrixCopilotSecurityGroupManagementConfig("aviatrixCopilotSecurityGroupManagementConfigResource", AviatrixCopilotSecurityGroupManagementConfigArgs.builder()
.enableCopilotSecurityGroupManagement(false)
.accountName("string")
.cloudType(0)
.instanceId("string")
.region("string")
.vpcId("string")
.zone("string")
.build());
aviatrix_copilot_security_group_management_config_resource = aviatrix.AviatrixCopilotSecurityGroupManagementConfig("aviatrixCopilotSecurityGroupManagementConfigResource",
enable_copilot_security_group_management=False,
account_name="string",
cloud_type=0,
instance_id="string",
region="string",
vpc_id="string",
zone="string")
const aviatrixCopilotSecurityGroupManagementConfigResource = new aviatrix.AviatrixCopilotSecurityGroupManagementConfig("aviatrixCopilotSecurityGroupManagementConfigResource", {
enableCopilotSecurityGroupManagement: false,
accountName: "string",
cloudType: 0,
instanceId: "string",
region: "string",
vpcId: "string",
zone: "string",
});
type: aviatrix:AviatrixCopilotSecurityGroupManagementConfig
properties:
accountName: string
cloudType: 0
enableCopilotSecurityGroupManagement: false
instanceId: string
region: string
vpcId: string
zone: string
AviatrixCopilotSecurityGroupManagementConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AviatrixCopilotSecurityGroupManagementConfig resource accepts the following input properties:
- Enable
Copilot boolSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- Account
Name string - Aviatrix access account name. Required to enable copilot security group management.
- Cloud
Type int - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- Instance
Id string - CoPilot instance ID. Required to enable copilot security group management.
- Region string
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- Vpc
Id string - VPC ID. Required to enable copilot security group management.
- Zone string
- Zone where CoPilot is deployed. Required and valid for GCP.
- Enable
Copilot boolSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- Account
Name string - Aviatrix access account name. Required to enable copilot security group management.
- Cloud
Type int - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- Instance
Id string - CoPilot instance ID. Required to enable copilot security group management.
- Region string
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- Vpc
Id string - VPC ID. Required to enable copilot security group management.
- Zone string
- Zone where CoPilot is deployed. Required and valid for GCP.
- enable
Copilot BooleanSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- account
Name String - Aviatrix access account name. Required to enable copilot security group management.
- cloud
Type Integer - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- instance
Id String - CoPilot instance ID. Required to enable copilot security group management.
- region String
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- vpc
Id String - VPC ID. Required to enable copilot security group management.
- zone String
- Zone where CoPilot is deployed. Required and valid for GCP.
- enable
Copilot booleanSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- account
Name string - Aviatrix access account name. Required to enable copilot security group management.
- cloud
Type number - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- instance
Id string - CoPilot instance ID. Required to enable copilot security group management.
- region string
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- vpc
Id string - VPC ID. Required to enable copilot security group management.
- zone string
- Zone where CoPilot is deployed. Required and valid for GCP.
- enable_
copilot_ boolsecurity_ group_ management - Switch to enable copilot security group management. Valid values: true, false.
- account_
name str - Aviatrix access account name. Required to enable copilot security group management.
- cloud_
type int - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- instance_
id str - CoPilot instance ID. Required to enable copilot security group management.
- region str
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- vpc_
id str - VPC ID. Required to enable copilot security group management.
- zone str
- Zone where CoPilot is deployed. Required and valid for GCP.
- enable
Copilot BooleanSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- account
Name String - Aviatrix access account name. Required to enable copilot security group management.
- cloud
Type Number - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- instance
Id String - CoPilot instance ID. Required to enable copilot security group management.
- region String
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- vpc
Id String - VPC ID. Required to enable copilot security group management.
- zone String
- Zone where CoPilot is deployed. Required and valid for GCP.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixCopilotSecurityGroupManagementConfig 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 AviatrixCopilotSecurityGroupManagementConfig Resource
Get an existing AviatrixCopilotSecurityGroupManagementConfig 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?: AviatrixCopilotSecurityGroupManagementConfigState, opts?: CustomResourceOptions): AviatrixCopilotSecurityGroupManagementConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
cloud_type: Optional[int] = None,
enable_copilot_security_group_management: Optional[bool] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
vpc_id: Optional[str] = None,
zone: Optional[str] = None) -> AviatrixCopilotSecurityGroupManagementConfig
func GetAviatrixCopilotSecurityGroupManagementConfig(ctx *Context, name string, id IDInput, state *AviatrixCopilotSecurityGroupManagementConfigState, opts ...ResourceOption) (*AviatrixCopilotSecurityGroupManagementConfig, error)
public static AviatrixCopilotSecurityGroupManagementConfig Get(string name, Input<string> id, AviatrixCopilotSecurityGroupManagementConfigState? state, CustomResourceOptions? opts = null)
public static AviatrixCopilotSecurityGroupManagementConfig get(String name, Output<String> id, AviatrixCopilotSecurityGroupManagementConfigState 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.
- Account
Name string - Aviatrix access account name. Required to enable copilot security group management.
- Cloud
Type int - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- Enable
Copilot boolSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- Instance
Id string - CoPilot instance ID. Required to enable copilot security group management.
- Region string
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- Vpc
Id string - VPC ID. Required to enable copilot security group management.
- Zone string
- Zone where CoPilot is deployed. Required and valid for GCP.
- Account
Name string - Aviatrix access account name. Required to enable copilot security group management.
- Cloud
Type int - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- Enable
Copilot boolSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- Instance
Id string - CoPilot instance ID. Required to enable copilot security group management.
- Region string
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- Vpc
Id string - VPC ID. Required to enable copilot security group management.
- Zone string
- Zone where CoPilot is deployed. Required and valid for GCP.
- account
Name String - Aviatrix access account name. Required to enable copilot security group management.
- cloud
Type Integer - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- enable
Copilot BooleanSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- instance
Id String - CoPilot instance ID. Required to enable copilot security group management.
- region String
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- vpc
Id String - VPC ID. Required to enable copilot security group management.
- zone String
- Zone where CoPilot is deployed. Required and valid for GCP.
- account
Name string - Aviatrix access account name. Required to enable copilot security group management.
- cloud
Type number - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- enable
Copilot booleanSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- instance
Id string - CoPilot instance ID. Required to enable copilot security group management.
- region string
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- vpc
Id string - VPC ID. Required to enable copilot security group management.
- zone string
- Zone where CoPilot is deployed. Required and valid for GCP.
- account_
name str - Aviatrix access account name. Required to enable copilot security group management.
- cloud_
type int - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- enable_
copilot_ boolsecurity_ group_ management - Switch to enable copilot security group management. Valid values: true, false.
- instance_
id str - CoPilot instance ID. Required to enable copilot security group management.
- region str
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- vpc_
id str - VPC ID. Required to enable copilot security group management.
- zone str
- Zone where CoPilot is deployed. Required and valid for GCP.
- account
Name String - Aviatrix access account name. Required to enable copilot security group management.
- cloud
Type Number - Cloud type. The type of this attribute is Integer. Only support AWS, Azure and OCI. Required to enable copilot security group management.
- enable
Copilot BooleanSecurity Group Management - Switch to enable copilot security group management. Valid values: true, false.
- instance
Id String - CoPilot instance ID. Required to enable copilot security group management.
- region String
- Region where CoPilot is deployed. Required and valid for AWS and Azure.
- vpc
Id String - VPC ID. Required to enable copilot security group management.
- zone String
- Zone where CoPilot is deployed. Required and valid for GCP.
Import
aviatrix_copilot_security_group_management_config can be imported using controller IP, e.g. controller IP is 10.11.12.13
$ pulumi import aviatrix:index/aviatrixCopilotSecurityGroupManagementConfig:AviatrixCopilotSecurityGroupManagementConfig test 10-11-12-13
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.