1. Packages
  2. Ucloud Provider
  3. API Docs
  4. IamGroup
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.IamGroup

Explore with Pulumi AI

Provides an IAM group resource.

Example Usage

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

const foo = new ucloud.IamGroup("foo", {comment: "comment"});
Copy
import pulumi
import pulumi_ucloud as ucloud

foo = ucloud.IamGroup("foo", comment="comment")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ucloud.NewIamGroup(ctx, "foo", &ucloud.IamGroupArgs{
			Comment: pulumi.String("comment"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Ucloud.IamGroup("foo", new()
    {
        Comment = "comment",
    });

});
Copy
package generated_program;

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

    }
}
Copy
resources:
  foo:
    type: ucloud:IamGroup
    properties:
      comment: comment
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,
             comment: Optional[str] = None,
             iam_group_id: Optional[str] = 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: ucloud: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 Ucloud.IamGroup("iamGroupResource", new()
{
    Comment = "string",
    IamGroupId = "string",
    Name = "string",
});
Copy
example, err := ucloud.NewIamGroup(ctx, "iamGroupResource", &ucloud.IamGroupArgs{
Comment: pulumi.String("string"),
IamGroupId: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var iamGroupResource = new IamGroup("iamGroupResource", IamGroupArgs.builder()
    .comment("string")
    .iamGroupId("string")
    .name("string")
    .build());
Copy
iam_group_resource = ucloud.IamGroup("iamGroupResource",
    comment="string",
    iam_group_id="string",
    name="string")
Copy
const iamGroupResource = new ucloud.IamGroup("iamGroupResource", {
    comment: "string",
    iamGroupId: "string",
    name: "string",
});
Copy
type: ucloud:IamGroup
properties:
    comment: string
    iamGroupId: string
    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:

Comment string
Comment of the IAM group.
IamGroupId string
Name string
Name of the IAM group.
Comment string
Comment of the IAM group.
IamGroupId string
Name string
Name of the IAM group.
comment String
Comment of the IAM group.
iamGroupId String
name String
Name of the IAM group.
comment string
Comment of the IAM group.
iamGroupId string
name string
Name of the IAM group.
comment str
Comment of the IAM group.
iam_group_id str
name str
Name of the IAM group.
comment String
Comment of the IAM group.
iamGroupId String
name String
Name of the IAM group.

Outputs

All input properties are implicitly available as output properties. Additionally, the IamGroup 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 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,
        comment: Optional[str] = None,
        iam_group_id: 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: ucloud: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:
Comment string
Comment of the IAM group.
IamGroupId string
Name string
Name of the IAM group.
Comment string
Comment of the IAM group.
IamGroupId string
Name string
Name of the IAM group.
comment String
Comment of the IAM group.
iamGroupId String
name String
Name of the IAM group.
comment string
Comment of the IAM group.
iamGroupId string
name string
Name of the IAM group.
comment str
Comment of the IAM group.
iam_group_id str
name str
Name of the IAM group.
comment String
Comment of the IAM group.
iamGroupId String
name String
Name of the IAM group.

Import

IAM group can be imported using group name, e.g.

$ pulumi import ucloud:index/iamGroup:IamGroup example Administrator
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ucloud ucloud/terraform-provider-ucloud
License
Notes
This Pulumi package is based on the ucloud Terraform Provider.