aviatrix.AviatrixRbacGroupUserAttachment

The aviatrix_rbac_group_user_attachment resource allows the creation and management of user attachments to Aviatrix (Role-Based Access Control) RBAC groups.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix RBAC Group User Attachment
    var testAttachment = new Aviatrix.AviatrixRbacGroupUserAttachment("testAttachment", new()
    {
        GroupName = "write_only",
        UserName = "user_name",
    });

});
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.NewAviatrixRbacGroupUserAttachment(ctx, "testAttachment", &aviatrix.AviatrixRbacGroupUserAttachmentArgs{
			GroupName: pulumi.String("write_only"),
			UserName:  pulumi.String("user_name"),
		})
		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.AviatrixRbacGroupUserAttachment;
import com.pulumi.aviatrix.AviatrixRbacGroupUserAttachmentArgs;
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 testAttachment = new AviatrixRbacGroupUserAttachment("testAttachment", AviatrixRbacGroupUserAttachmentArgs.builder()        
            .groupName("write_only")
            .userName("user_name")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix RBAC Group User Attachment
test_attachment = aviatrix.AviatrixRbacGroupUserAttachment("testAttachment",
    group_name="write_only",
    user_name="user_name")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix RBAC Group User Attachment
const testAttachment = new aviatrix.AviatrixRbacGroupUserAttachment("test_attachment", {
    groupName: "write_only",
    userName: "user_name",
});
resources:
  # Create an Aviatrix RBAC Group User Attachment
  testAttachment:
    type: aviatrix:AviatrixRbacGroupUserAttachment
    properties:
      groupName: write_only
      userName: user_name

Create AviatrixRbacGroupUserAttachment Resource

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

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

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

GroupName string

This parameter represents the name of a RBAC group.

UserName string

Username of the account user.

GroupName string

This parameter represents the name of a RBAC group.

UserName string

Username of the account user.

groupName String

This parameter represents the name of a RBAC group.

userName String

Username of the account user.

groupName string

This parameter represents the name of a RBAC group.

userName string

Username of the account user.

group_name str

This parameter represents the name of a RBAC group.

user_name str

Username of the account user.

groupName String

This parameter represents the name of a RBAC group.

userName String

Username of the account user.

Outputs

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

Get an existing AviatrixRbacGroupUserAttachment 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?: AviatrixRbacGroupUserAttachmentState, opts?: CustomResourceOptions): AviatrixRbacGroupUserAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        group_name: Optional[str] = None,
        user_name: Optional[str] = None) -> AviatrixRbacGroupUserAttachment
func GetAviatrixRbacGroupUserAttachment(ctx *Context, name string, id IDInput, state *AviatrixRbacGroupUserAttachmentState, opts ...ResourceOption) (*AviatrixRbacGroupUserAttachment, error)
public static AviatrixRbacGroupUserAttachment Get(string name, Input<string> id, AviatrixRbacGroupUserAttachmentState? state, CustomResourceOptions? opts = null)
public static AviatrixRbacGroupUserAttachment get(String name, Output<String> id, AviatrixRbacGroupUserAttachmentState 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:
GroupName string

This parameter represents the name of a RBAC group.

UserName string

Username of the account user.

GroupName string

This parameter represents the name of a RBAC group.

UserName string

Username of the account user.

groupName String

This parameter represents the name of a RBAC group.

userName String

Username of the account user.

groupName string

This parameter represents the name of a RBAC group.

userName string

Username of the account user.

group_name str

This parameter represents the name of a RBAC group.

user_name str

Username of the account user.

groupName String

This parameter represents the name of a RBAC group.

userName String

Username of the account user.

Import

rbac_group_user_attachment can be imported using the group_name and user_name, e.g.

 $ pulumi import aviatrix:index/aviatrixRbacGroupUserAttachment:AviatrixRbacGroupUserAttachment test group_name~user_name

Package Details

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

This Pulumi package is based on the aviatrix Terraform Provider.