aviatrix.AviatrixRbacGroupPermissionAttachment
Explore with Pulumi AI
The aviatrix_rbac_group_permission_attachment resource allows the creation and management of permission 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 Permission Attachment
var testAttachment = new Aviatrix.AviatrixRbacGroupPermissionAttachment("testAttachment", new()
{
GroupName = "write_only",
PermissionName = "all_write",
});
});
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.NewAviatrixRbacGroupPermissionAttachment(ctx, "testAttachment", &aviatrix.AviatrixRbacGroupPermissionAttachmentArgs{
GroupName: pulumi.String("write_only"),
PermissionName: pulumi.String("all_write"),
})
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.AviatrixRbacGroupPermissionAttachment;
import com.pulumi.aviatrix.AviatrixRbacGroupPermissionAttachmentArgs;
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 AviatrixRbacGroupPermissionAttachment("testAttachment", AviatrixRbacGroupPermissionAttachmentArgs.builder()
.groupName("write_only")
.permissionName("all_write")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix Rbac Group Permission Attachment
test_attachment = aviatrix.AviatrixRbacGroupPermissionAttachment("testAttachment",
group_name="write_only",
permission_name="all_write")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Create an Aviatrix Rbac Group Permission Attachment
const testAttachment = new aviatrix.AviatrixRbacGroupPermissionAttachment("test_attachment", {
groupName: "write_only",
permissionName: "all_write",
});
resources:
# Create an Aviatrix Rbac Group Permission Attachment
testAttachment:
type: aviatrix:AviatrixRbacGroupPermissionAttachment
properties:
groupName: write_only
permissionName: all_write
Create AviatrixRbacGroupPermissionAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixRbacGroupPermissionAttachment(name: string, args: AviatrixRbacGroupPermissionAttachmentArgs, opts?: CustomResourceOptions);
@overload
def AviatrixRbacGroupPermissionAttachment(resource_name: str,
args: AviatrixRbacGroupPermissionAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixRbacGroupPermissionAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_name: Optional[str] = None,
permission_name: Optional[str] = None)
func NewAviatrixRbacGroupPermissionAttachment(ctx *Context, name string, args AviatrixRbacGroupPermissionAttachmentArgs, opts ...ResourceOption) (*AviatrixRbacGroupPermissionAttachment, error)
public AviatrixRbacGroupPermissionAttachment(string name, AviatrixRbacGroupPermissionAttachmentArgs args, CustomResourceOptions? opts = null)
public AviatrixRbacGroupPermissionAttachment(String name, AviatrixRbacGroupPermissionAttachmentArgs args)
public AviatrixRbacGroupPermissionAttachment(String name, AviatrixRbacGroupPermissionAttachmentArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixRbacGroupPermissionAttachment
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 AviatrixRbacGroupPermissionAttachmentArgs
- 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 AviatrixRbacGroupPermissionAttachmentArgs
- 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 AviatrixRbacGroupPermissionAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixRbacGroupPermissionAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixRbacGroupPermissionAttachmentArgs
- 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 aviatrixRbacGroupPermissionAttachmentResource = new Aviatrix.AviatrixRbacGroupPermissionAttachment("aviatrixRbacGroupPermissionAttachmentResource", new()
{
GroupName = "string",
PermissionName = "string",
});
example, err := aviatrix.NewAviatrixRbacGroupPermissionAttachment(ctx, "aviatrixRbacGroupPermissionAttachmentResource", &aviatrix.AviatrixRbacGroupPermissionAttachmentArgs{
GroupName: pulumi.String("string"),
PermissionName: pulumi.String("string"),
})
var aviatrixRbacGroupPermissionAttachmentResource = new AviatrixRbacGroupPermissionAttachment("aviatrixRbacGroupPermissionAttachmentResource", AviatrixRbacGroupPermissionAttachmentArgs.builder()
.groupName("string")
.permissionName("string")
.build());
aviatrix_rbac_group_permission_attachment_resource = aviatrix.AviatrixRbacGroupPermissionAttachment("aviatrixRbacGroupPermissionAttachmentResource",
group_name="string",
permission_name="string")
const aviatrixRbacGroupPermissionAttachmentResource = new aviatrix.AviatrixRbacGroupPermissionAttachment("aviatrixRbacGroupPermissionAttachmentResource", {
groupName: "string",
permissionName: "string",
});
type: aviatrix:AviatrixRbacGroupPermissionAttachment
properties:
groupName: string
permissionName: string
AviatrixRbacGroupPermissionAttachment 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 AviatrixRbacGroupPermissionAttachment resource accepts the following input properties:
- Group
Name string - This parameter represents the name of a RBAC group.
- Permission
Name string - This parameter represents the permission to attach to the RBAC group.
- Group
Name string - This parameter represents the name of a RBAC group.
- Permission
Name string - This parameter represents the permission to attach to the RBAC group.
- group
Name String - This parameter represents the name of a RBAC group.
- permission
Name String - This parameter represents the permission to attach to the RBAC group.
- group
Name string - This parameter represents the name of a RBAC group.
- permission
Name string - This parameter represents the permission to attach to the RBAC group.
- group_
name str - This parameter represents the name of a RBAC group.
- permission_
name str - This parameter represents the permission to attach to the RBAC group.
- group
Name String - This parameter represents the name of a RBAC group.
- permission
Name String - This parameter represents the permission to attach to the RBAC group.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixRbacGroupPermissionAttachment 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 AviatrixRbacGroupPermissionAttachment Resource
Get an existing AviatrixRbacGroupPermissionAttachment 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?: AviatrixRbacGroupPermissionAttachmentState, opts?: CustomResourceOptions): AviatrixRbacGroupPermissionAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
group_name: Optional[str] = None,
permission_name: Optional[str] = None) -> AviatrixRbacGroupPermissionAttachment
func GetAviatrixRbacGroupPermissionAttachment(ctx *Context, name string, id IDInput, state *AviatrixRbacGroupPermissionAttachmentState, opts ...ResourceOption) (*AviatrixRbacGroupPermissionAttachment, error)
public static AviatrixRbacGroupPermissionAttachment Get(string name, Input<string> id, AviatrixRbacGroupPermissionAttachmentState? state, CustomResourceOptions? opts = null)
public static AviatrixRbacGroupPermissionAttachment get(String name, Output<String> id, AviatrixRbacGroupPermissionAttachmentState 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.
- Group
Name string - This parameter represents the name of a RBAC group.
- Permission
Name string - This parameter represents the permission to attach to the RBAC group.
- Group
Name string - This parameter represents the name of a RBAC group.
- Permission
Name string - This parameter represents the permission to attach to the RBAC group.
- group
Name String - This parameter represents the name of a RBAC group.
- permission
Name String - This parameter represents the permission to attach to the RBAC group.
- group
Name string - This parameter represents the name of a RBAC group.
- permission
Name string - This parameter represents the permission to attach to the RBAC group.
- group_
name str - This parameter represents the name of a RBAC group.
- permission_
name str - This parameter represents the permission to attach to the RBAC group.
- group
Name String - This parameter represents the name of a RBAC group.
- permission
Name String - This parameter represents the permission to attach to the RBAC group.
Import
rbac_group_permission_attachment can be imported using the group_name
and permission_name
, e.g.
$ pulumi import aviatrix:index/aviatrixRbacGroupPermissionAttachment:AviatrixRbacGroupPermissionAttachment test group_name~permission_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.