UserAttachment

Provides a Bastion Host User Attachment resource to add user to one user group.

NOTE: Available in v1.134.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.bastionhost.UserAttachment;
import com.pulumi.alicloud.bastionhost.UserAttachmentArgs;
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 example = new UserAttachment("example", UserAttachmentArgs.builder()
.instanceId("bastionhost-cn-tl3xxxxxxx")
.userGroupId("10")
.userId("100")
.build());
}
}

Import

Bastion Host User Attachment can be imported using the id, e.g.

$ pulumi import alicloud:bastionhost/userAttachment:UserAttachment example <instance_id>:<user_group_id>:<user_id>

Properties

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

Specifies the user group to add the user's bastion host ID of.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userGroupId: Output<String>

Specifies the user group to which you want to add the user ID.

Link copied to clipboard
val userId: Output<String>

Specify that you want to add to the policy attached to the user group ID. This includes response parameters in a Json-formatted string supports up to set up 100 USER ID.