MinIO v0.15.4 published on Monday, Jun 24, 2024 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;
import pulumi
import pulumi_minio as minio
developer = minio.IamGroup("developer", name="developer")
pulumi.export("minioUserGroup", developer.group_name)
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
})
}
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,
};
});
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());
}
}
resources:
developer:
type: minio:IamGroup
properties:
name: developer
outputs:
minioUserGroup: ${developer.groupName}
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
example, err := minio.NewIamGroup(ctx, "iamGroupResource", &minio.IamGroupArgs{
DisableGroup: pulumi.Bool(false),
ForceDestroy: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var iamGroupResource = new IamGroup("iamGroupResource", IamGroupArgs.builder()
.disableGroup(false)
.forceDestroy(false)
.name("string")
.build());
iam_group_resource = minio.IamGroup("iamGroupResource",
disable_group=False,
force_destroy=False,
name="string")
const iamGroupResource = new minio.IamGroup("iamGroupResource", {
disableGroup: false,
forceDestroy: false,
name: "string",
});
type: minio:IamGroup
properties:
disableGroup: false
forceDestroy: false
name: string
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
The IamGroup resource accepts the following input properties:
- Disable
Group bool - Disable group
- Force
Destroy bool - Name string
- Disable
Group bool - Disable group
- Force
Destroy bool - Name string
- disable
Group Boolean - Disable group
- force
Destroy Boolean - name String
- disable
Group boolean - Disable group
- force
Destroy boolean - name string
- disable_
group bool - Disable group
- force_
destroy bool - name str
- disable
Group Boolean - Disable group
- force
Destroy Boolean - name String
Outputs
All input properties are implicitly available as output properties. Additionally, the IamGroup resource produces the following output properties:
- group_
name str - id str
- 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)
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.
- Disable
Group bool - Disable group
- Force
Destroy bool - Group
Name string - Name string
- Disable
Group bool - Disable group
- Force
Destroy bool - Group
Name string - Name string
- disable
Group Boolean - Disable group
- force
Destroy Boolean - group
Name String - name String
- disable
Group boolean - Disable group
- force
Destroy boolean - group
Name string - name string
- disable_
group bool - Disable group
- force_
destroy bool - group_
name str - name str
- disable
Group Boolean - Disable group
- force
Destroy Boolean - group
Name 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.