minio.IamUser
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as minio from "@pulumi/minio";
export = async () => {
const test = new minio.IamUser("test", {
name: "test",
forceDestroy: true,
tags: {
"tag-key": "tag-value",
},
});
return {
test: test.id,
status: test.status,
secret: test.secret,
};
}
import pulumi
import pulumi_minio as minio
test = minio.IamUser("test",
name="test",
force_destroy=True,
tags={
"tag-key": "tag-value",
})
pulumi.export("test", test.id)
pulumi.export("status", test.status)
pulumi.export("secret", test.secret)
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 {
test, err := minio.NewIamUser(ctx, "test", &minio.IamUserArgs{
Name: pulumi.String("test"),
ForceDestroy: pulumi.Bool(true),
Tags: pulumi.StringMap{
"tag-key": pulumi.String("tag-value"),
},
})
if err != nil {
return err
}
ctx.Export("test", test.ID())
ctx.Export("status", test.Status)
ctx.Export("secret", test.Secret)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Minio = Pulumi.Minio;
return await Deployment.RunAsync(() =>
{
var test = new Minio.IamUser("test", new()
{
Name = "test",
ForceDestroy = true,
Tags =
{
{ "tag-key", "tag-value" },
},
});
return new Dictionary<string, object?>
{
["test"] = test.Id,
["status"] = test.Status,
["secret"] = test.Secret,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.minio.IamUser;
import com.pulumi.minio.IamUserArgs;
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 test = new IamUser("test", IamUserArgs.builder()
.name("test")
.forceDestroy(true)
.tags(Map.of("tag-key", "tag-value"))
.build());
ctx.export("test", test.id());
ctx.export("status", test.status());
ctx.export("secret", test.secret());
}
}
resources:
test:
type: minio:IamUser
properties:
name: test
forceDestroy: true
tags:
tag-key: tag-value
outputs:
test: ${test.id}
status: ${test.status}
secret: ${test.secret}
Create IamUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamUser(name: string, args?: IamUserArgs, opts?: CustomResourceOptions);
@overload
def IamUser(resource_name: str,
args: Optional[IamUserArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IamUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
disable_user: Optional[bool] = None,
force_destroy: Optional[bool] = None,
name: Optional[str] = None,
secret: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
update_secret: Optional[bool] = None)
func NewIamUser(ctx *Context, name string, args *IamUserArgs, opts ...ResourceOption) (*IamUser, error)
public IamUser(string name, IamUserArgs? args = null, CustomResourceOptions? opts = null)
public IamUser(String name, IamUserArgs args)
public IamUser(String name, IamUserArgs args, CustomResourceOptions options)
type: minio:IamUser
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 IamUserArgs
- 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 IamUserArgs
- 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 IamUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamUserArgs
- 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 iamUserResource = new Minio.IamUser("iamUserResource", new()
{
DisableUser = false,
ForceDestroy = false,
Name = "string",
Secret = "string",
Tags =
{
{ "string", "string" },
},
UpdateSecret = false,
});
example, err := minio.NewIamUser(ctx, "iamUserResource", &minio.IamUserArgs{
DisableUser: pulumi.Bool(false),
ForceDestroy: pulumi.Bool(false),
Name: pulumi.String("string"),
Secret: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UpdateSecret: pulumi.Bool(false),
})
var iamUserResource = new IamUser("iamUserResource", IamUserArgs.builder()
.disableUser(false)
.forceDestroy(false)
.name("string")
.secret("string")
.tags(Map.of("string", "string"))
.updateSecret(false)
.build());
iam_user_resource = minio.IamUser("iamUserResource",
disable_user=False,
force_destroy=False,
name="string",
secret="string",
tags={
"string": "string",
},
update_secret=False)
const iamUserResource = new minio.IamUser("iamUserResource", {
disableUser: false,
forceDestroy: false,
name: "string",
secret: "string",
tags: {
string: "string",
},
updateSecret: false,
});
type: minio:IamUser
properties:
disableUser: false
forceDestroy: false
name: string
secret: string
tags:
string: string
updateSecret: false
IamUser 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 IamUser resource accepts the following input properties:
- Disable
User bool - Disable user
- Force
Destroy bool - Name string
- Secret string
- Dictionary<string, string>
- Update
Secret bool - Rotate Minio User Secret Key
- Disable
User bool - Disable user
- Force
Destroy bool - Name string
- Secret string
- map[string]string
- Update
Secret bool - Rotate Minio User Secret Key
- disable
User Boolean - Disable user
- force
Destroy Boolean - name String
- secret String
- Map<String,String>
- update
Secret Boolean - Rotate Minio User Secret Key
- disable
User boolean - Disable user
- force
Destroy boolean - name string
- secret string
- {[key: string]: string}
- update
Secret boolean - Rotate Minio User Secret Key
- disable_
user bool - Disable user
- force_
destroy bool - name str
- secret str
- Mapping[str, str]
- update_
secret bool - Rotate Minio User Secret Key
- disable
User Boolean - Disable user
- force
Destroy Boolean - name String
- secret String
- Map<String>
- update
Secret Boolean - Rotate Minio User Secret Key
Outputs
All input properties are implicitly available as output properties. Additionally, the IamUser resource produces the following output properties:
Look up Existing IamUser Resource
Get an existing IamUser 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?: IamUserState, opts?: CustomResourceOptions): IamUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
disable_user: Optional[bool] = None,
force_destroy: Optional[bool] = None,
name: Optional[str] = None,
secret: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
update_secret: Optional[bool] = None) -> IamUser
func GetIamUser(ctx *Context, name string, id IDInput, state *IamUserState, opts ...ResourceOption) (*IamUser, error)
public static IamUser Get(string name, Input<string> id, IamUserState? state, CustomResourceOptions? opts = null)
public static IamUser get(String name, Output<String> id, IamUserState 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
User bool - Disable user
- Force
Destroy bool - Name string
- Secret string
- Status string
- Dictionary<string, string>
- Update
Secret bool - Rotate Minio User Secret Key
- Disable
User bool - Disable user
- Force
Destroy bool - Name string
- Secret string
- Status string
- map[string]string
- Update
Secret bool - Rotate Minio User Secret Key
- disable
User Boolean - Disable user
- force
Destroy Boolean - name String
- secret String
- status String
- Map<String,String>
- update
Secret Boolean - Rotate Minio User Secret Key
- disable
User boolean - Disable user
- force
Destroy boolean - name string
- secret string
- status string
- {[key: string]: string}
- update
Secret boolean - Rotate Minio User Secret Key
- disable_
user bool - Disable user
- force_
destroy bool - name str
- secret str
- status str
- Mapping[str, str]
- update_
secret bool - Rotate Minio User Secret Key
- disable
User Boolean - Disable user
- force
Destroy Boolean - name String
- secret String
- status String
- Map<String>
- update
Secret Boolean - Rotate Minio User Secret Key
Package Details
- Repository
- MinIO pulumi/pulumi-minio
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
minio
Terraform Provider.