HostGroupArgs

data class HostGroupArgs(val comment: Output<String>? = null, val hostGroupName: Output<String>? = null, val instanceId: Output<String>? = null) : ConvertibleToJava<HostGroupArgs>

Provides a Bastion Host Host Group resource. For information about Bastion Host Host Group and how to use it, see What is Host 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.HostGroup;
import com.pulumi.alicloud.bastionhost.HostGroupArgs;
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 HostGroup("example", HostGroupArgs.builder()
.hostGroupName("example_value")
.instanceId("bastionhost-cn-tl3xxxxxxx")
.build());
}
}

Import

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

$ pulumi import alicloud:bastionhost/hostGroup:HostGroup example <instance_id>:<host_group_id>

Constructors

Link copied to clipboard
fun HostGroupArgs(comment: Output<String>? = null, hostGroupName: Output<String>? = null, instanceId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): HostGroupArgs

Properties

Link copied to clipboard
val comment: Output<String>? = null

Specify the New Host Group of Notes, Supports up to 500 Characters.

Link copied to clipboard
val hostGroupName: Output<String>? = null

Specify the New Host Group Name, Supports up to 128 Characters.

Link copied to clipboard
val instanceId: Output<String>? = null

Specify the New Host Group Where the Bastion Host ID of.