1. Packages
  2. Minio Provider
  3. API Docs
  4. IamGroup
MinIO v0.16.3 published on Wednesday, Feb 12, 2025 by Pulumi

minio.IamGroup

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as minio from "@pulumi/minio";

const developer = new minio.IamGroup("developer", {name: "developer"});
export const minioUserGroup = developer.groupName;
Copy
import pulumi
import pulumi_minio as minio

developer = minio.IamGroup("developer", name="developer")
pulumi.export("minioUserGroup", developer.group_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-minio/sdk/go/minio"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		developer, err := minio.NewIamGroup(ctx, "developer", &minio.IamGroupArgs{
			Name: pulumi.String("developer"),
		})
		if err != nil {
			return err
		}
		ctx.Export("minioUserGroup", developer.GroupName)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Minio = Pulumi.Minio;

return await Deployment.RunAsync(() => 
{
    var developer = new Minio.IamGroup("developer", new()
    {
        Name = "developer",
    });

    return new Dictionary<string, object?>
    {
        ["minioUserGroup"] = developer.GroupName,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.minio.IamGroup;
import com.pulumi.minio.IamGroupArgs;
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 developer = new IamGroup("developer", IamGroupArgs.builder()
            .name("developer")
            .build());

        ctx.export("minioUserGroup", developer.groupName());
    }
}
Copy
resources:
  developer:
    type: minio:IamGroup
    properties:
      name: developer
outputs:
  minioUserGroup: ${developer.groupName}
Copy

Create IamGroup Resource

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

Constructor syntax

new IamGroup(name: string, args?: IamGroupArgs, opts?: CustomResourceOptions);
@overload
def IamGroup(resource_name: str,
             args: Optional[IamGroupArgs] = None,
             opts: Optional[ResourceOptions] = None)

@overload
def IamGroup(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             disable_group: Optional[bool] = None,
             force_destroy: Optional[bool] = None,
             name: Optional[str] = None)
func NewIamGroup(ctx *Context, name string, args *IamGroupArgs, opts ...ResourceOption) (*IamGroup, error)
public IamGroup(string name, IamGroupArgs? args = null, CustomResourceOptions? opts = null)
public IamGroup(String name, IamGroupArgs args)
public IamGroup(String name, IamGroupArgs args, CustomResourceOptions options)
type: minio:IamGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args IamGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args IamGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args IamGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args IamGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IamGroupArgs
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 iamGroupResource = new Minio.IamGroup("iamGroupResource", new()
{
    DisableGroup = false,
    ForceDestroy = false,
    Name = "string",
});
Copy
example, err := minio.NewIamGroup(ctx, "iamGroupResource", &minio.IamGroupArgs{
	DisableGroup: pulumi.Bool(false),
	ForceDestroy: pulumi.Bool(false),
	Name:         pulumi.String("string"),
})
Copy
var iamGroupResource = new IamGroup("iamGroupResource", IamGroupArgs.builder()
    .disableGroup(false)
    .forceDestroy(false)
    .name("string")
    .build());
Copy
iam_group_resource = minio.IamGroup("iamGroupResource",
    disable_group=False,
    force_destroy=False,
    name="string")
Copy
const iamGroupResource = new minio.IamGroup("iamGroupResource", {
    disableGroup: false,
    forceDestroy: false,
    name: "string",
});
Copy
type: minio:IamGroup
properties:
    disableGroup: false
    forceDestroy: false
    name: string
Copy

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

DisableGroup bool
Disable group
ForceDestroy bool
Name string
DisableGroup bool
Disable group
ForceDestroy bool
Name string
disableGroup Boolean
Disable group
forceDestroy Boolean
name String
disableGroup boolean
Disable group
forceDestroy boolean
name string
disable_group bool
Disable group
force_destroy bool
name str
disableGroup Boolean
Disable group
forceDestroy Boolean
name String

Outputs

All input properties are implicitly available as output properties. Additionally, the IamGroup resource produces the following output properties:

GroupName string
Id string
The provider-assigned unique ID for this managed resource.
GroupName string
Id string
The provider-assigned unique ID for this managed resource.
groupName String
id String
The provider-assigned unique ID for this managed resource.
groupName string
id string
The provider-assigned unique ID for this managed resource.
group_name str
id str
The provider-assigned unique ID for this managed resource.
groupName String
id String
The provider-assigned unique ID for this managed resource.

Look up Existing IamGroup Resource

Get an existing IamGroup 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?: IamGroupState, opts?: CustomResourceOptions): IamGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        disable_group: Optional[bool] = None,
        force_destroy: Optional[bool] = None,
        group_name: Optional[str] = None,
        name: Optional[str] = None) -> IamGroup
func GetIamGroup(ctx *Context, name string, id IDInput, state *IamGroupState, opts ...ResourceOption) (*IamGroup, error)
public static IamGroup Get(string name, Input<string> id, IamGroupState? state, CustomResourceOptions? opts = null)
public static IamGroup get(String name, Output<String> id, IamGroupState state, CustomResourceOptions options)
resources:  _:    type: minio:IamGroup    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DisableGroup bool
Disable group
ForceDestroy bool
GroupName string
Name string
DisableGroup bool
Disable group
ForceDestroy bool
GroupName string
Name string
disableGroup Boolean
Disable group
forceDestroy Boolean
groupName String
name String
disableGroup boolean
Disable group
forceDestroy boolean
groupName string
name string
disable_group bool
Disable group
force_destroy bool
group_name str
name str
disableGroup Boolean
Disable group
forceDestroy Boolean
groupName String
name String

Package Details

Repository
MinIO pulumi/pulumi-minio
License
Apache-2.0
Notes
This Pulumi package is based on the minio Terraform Provider.