1. Packages
  2. Aviatrix
  3. API Docs
  4. AviatrixRbacGroupAccessAccountAttachment
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.AviatrixRbacGroupAccessAccountAttachment

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    The aviatrix_rbac_group_access_account_attachment resource allows the creation and management of access account 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 Access Account Attachment
        var testAttachment = new Aviatrix.AviatrixRbacGroupAccessAccountAttachment("testAttachment", new()
        {
            AccessAccountName = "account_name",
            GroupName = "write_only",
        });
    
    });
    
    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.NewAviatrixRbacGroupAccessAccountAttachment(ctx, "testAttachment", &aviatrix.AviatrixRbacGroupAccessAccountAttachmentArgs{
    			AccessAccountName: pulumi.String("account_name"),
    			GroupName:         pulumi.String("write_only"),
    		})
    		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.AviatrixRbacGroupAccessAccountAttachment;
    import com.pulumi.aviatrix.AviatrixRbacGroupAccessAccountAttachmentArgs;
    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 AviatrixRbacGroupAccessAccountAttachment("testAttachment", AviatrixRbacGroupAccessAccountAttachmentArgs.builder()        
                .accessAccountName("account_name")
                .groupName("write_only")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    # Create an Aviatrix RBAC Group Access Account Attachment
    test_attachment = aviatrix.AviatrixRbacGroupAccessAccountAttachment("testAttachment",
        access_account_name="account_name",
        group_name="write_only")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Create an Aviatrix RBAC Group Access Account Attachment
    const testAttachment = new aviatrix.AviatrixRbacGroupAccessAccountAttachment("test_attachment", {
        accessAccountName: "account_name",
        groupName: "write_only",
    });
    
    resources:
      # Create an Aviatrix RBAC Group Access Account Attachment
      testAttachment:
        type: aviatrix:AviatrixRbacGroupAccessAccountAttachment
        properties:
          accessAccountName: account_name
          groupName: write_only
    

    Create AviatrixRbacGroupAccessAccountAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AviatrixRbacGroupAccessAccountAttachment(name: string, args: AviatrixRbacGroupAccessAccountAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def AviatrixRbacGroupAccessAccountAttachment(resource_name: str,
                                                 args: AviatrixRbacGroupAccessAccountAttachmentArgs,
                                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AviatrixRbacGroupAccessAccountAttachment(resource_name: str,
                                                 opts: Optional[ResourceOptions] = None,
                                                 access_account_name: Optional[str] = None,
                                                 group_name: Optional[str] = None)
    func NewAviatrixRbacGroupAccessAccountAttachment(ctx *Context, name string, args AviatrixRbacGroupAccessAccountAttachmentArgs, opts ...ResourceOption) (*AviatrixRbacGroupAccessAccountAttachment, error)
    public AviatrixRbacGroupAccessAccountAttachment(string name, AviatrixRbacGroupAccessAccountAttachmentArgs args, CustomResourceOptions? opts = null)
    public AviatrixRbacGroupAccessAccountAttachment(String name, AviatrixRbacGroupAccessAccountAttachmentArgs args)
    public AviatrixRbacGroupAccessAccountAttachment(String name, AviatrixRbacGroupAccessAccountAttachmentArgs args, CustomResourceOptions options)
    
    type: aviatrix:AviatrixRbacGroupAccessAccountAttachment
    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 AviatrixRbacGroupAccessAccountAttachmentArgs
    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 AviatrixRbacGroupAccessAccountAttachmentArgs
    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 AviatrixRbacGroupAccessAccountAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AviatrixRbacGroupAccessAccountAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AviatrixRbacGroupAccessAccountAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var aviatrixRbacGroupAccessAccountAttachmentResource = new Aviatrix.AviatrixRbacGroupAccessAccountAttachment("aviatrixRbacGroupAccessAccountAttachmentResource", new()
    {
        AccessAccountName = "string",
        GroupName = "string",
    });
    
    example, err := aviatrix.NewAviatrixRbacGroupAccessAccountAttachment(ctx, "aviatrixRbacGroupAccessAccountAttachmentResource", &aviatrix.AviatrixRbacGroupAccessAccountAttachmentArgs{
    	AccessAccountName: pulumi.String("string"),
    	GroupName:         pulumi.String("string"),
    })
    
    var aviatrixRbacGroupAccessAccountAttachmentResource = new AviatrixRbacGroupAccessAccountAttachment("aviatrixRbacGroupAccessAccountAttachmentResource", AviatrixRbacGroupAccessAccountAttachmentArgs.builder()        
        .accessAccountName("string")
        .groupName("string")
        .build());
    
    aviatrix_rbac_group_access_account_attachment_resource = aviatrix.AviatrixRbacGroupAccessAccountAttachment("aviatrixRbacGroupAccessAccountAttachmentResource",
        access_account_name="string",
        group_name="string")
    
    const aviatrixRbacGroupAccessAccountAttachmentResource = new aviatrix.AviatrixRbacGroupAccessAccountAttachment("aviatrixRbacGroupAccessAccountAttachmentResource", {
        accessAccountName: "string",
        groupName: "string",
    });
    
    type: aviatrix:AviatrixRbacGroupAccessAccountAttachment
    properties:
        accessAccountName: string
        groupName: string
    

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

    AccessAccountName string
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    GroupName string
    This parameter represents the name of a RBAC group.
    AccessAccountName string
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    GroupName string
    This parameter represents the name of a RBAC group.
    accessAccountName String
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    groupName String
    This parameter represents the name of a RBAC group.
    accessAccountName string
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    groupName string
    This parameter represents the name of a RBAC group.
    access_account_name str
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    group_name str
    This parameter represents the name of a RBAC group.
    accessAccountName String
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    groupName String
    This parameter represents the name of a RBAC group.

    Outputs

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

    Get an existing AviatrixRbacGroupAccessAccountAttachment 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?: AviatrixRbacGroupAccessAccountAttachmentState, opts?: CustomResourceOptions): AviatrixRbacGroupAccessAccountAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_account_name: Optional[str] = None,
            group_name: Optional[str] = None) -> AviatrixRbacGroupAccessAccountAttachment
    func GetAviatrixRbacGroupAccessAccountAttachment(ctx *Context, name string, id IDInput, state *AviatrixRbacGroupAccessAccountAttachmentState, opts ...ResourceOption) (*AviatrixRbacGroupAccessAccountAttachment, error)
    public static AviatrixRbacGroupAccessAccountAttachment Get(string name, Input<string> id, AviatrixRbacGroupAccessAccountAttachmentState? state, CustomResourceOptions? opts = null)
    public static AviatrixRbacGroupAccessAccountAttachment get(String name, Output<String> id, AviatrixRbacGroupAccessAccountAttachmentState 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:
    AccessAccountName string
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    GroupName string
    This parameter represents the name of a RBAC group.
    AccessAccountName string
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    GroupName string
    This parameter represents the name of a RBAC group.
    accessAccountName String
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    groupName String
    This parameter represents the name of a RBAC group.
    accessAccountName string
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    groupName string
    This parameter represents the name of a RBAC group.
    access_account_name str
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    group_name str
    This parameter represents the name of a RBAC group.
    accessAccountName String
    Account name. This can be used for logging in to CloudN console or UserConnect controller.
    groupName String
    This parameter represents the name of a RBAC group.

    Import

    rbac_group_access_account_attachment can be imported using the group_name and access_account_name, e.g.

     $ pulumi import aviatrix:index/aviatrixRbacGroupAccessAccountAttachment:AviatrixRbacGroupAccessAccountAttachment test group_name~access_account_name
    

    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.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix