Group

class Group : KotlinCustomResource

Provides a RAM Group resource.

NOTE: When you want to destroy this resource forcefully(means remove all the relationships associated with it automatically and then destroy it) without set force with true at beginning, you need add force = true to configuration file and run pulumi preview, then you can delete resource forcefully. NOTE: Available since v1.0.0+.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Create a new RAM Group.
const group = new alicloud.ram.Group("group", {
name: "groupName",
comments: "this is a group comments.",
});
import pulumi
import pulumi_alicloud as alicloud
# Create a new RAM Group.
group = alicloud.ram.Group("group",
name="groupName",
comments="this is a group comments.")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Create a new RAM Group.
var @group = new AliCloud.Ram.Group("group", new()
{
Name = "groupName",
Comments = "this is a group comments.",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a new RAM Group.
_, err := ram.NewGroup(ctx, "group", &ram.GroupArgs{
Name: pulumi.String("groupName"),
Comments: pulumi.String("this is a group comments."),
})
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.alicloud.ram.Group;
import com.pulumi.alicloud.ram.GroupArgs;
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) {
// Create a new RAM Group.
var group = new Group("group", GroupArgs.builder()
.name("groupName")
.comments("this is a group comments.")
.build());
}
}
resources:
# Create a new RAM Group.
group:
type: alicloud:ram:Group
properties:
name: groupName
comments: this is a group comments.

Import

RAM group can be imported using the id or name, e.g.

$ pulumi import alicloud:ram/group:Group example my-group

Properties

Link copied to clipboard
val comments: Output<String>?

Comment of the RAM group. This parameter can have a string of 1 to 128 characters.

Link copied to clipboard
val force: Output<Boolean>?

This parameter is used for resource destroy. Default value is false.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the RAM group. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>