HostAttachmentArgs

data class HostAttachmentArgs(val hostGroupId: Output<String>? = null, val hostId: Output<String>? = null, val instanceId: Output<String>? = null) : ConvertibleToJava<HostAttachmentArgs>

Provides a Bastion Host Host Attachment resource to add host into one host group.

NOTE: Available in v1.135.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.HostAttachment;
import com.pulumi.alicloud.bastionhost.HostAttachmentArgs;
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 HostAttachment("example", HostAttachmentArgs.builder()
.hostGroupId("6")
.hostId("15")
.instanceId("bastionhost-cn-tl32bh0no30")
.build());
}
}

Import

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

$ pulumi import alicloud:bastionhost/hostAttachment:HostAttachment example <instance_id>:<host_group_id>:<host_id>

Constructors

Link copied to clipboard
fun HostAttachmentArgs(hostGroupId: Output<String>? = null, hostId: Output<String>? = null, instanceId: Output<String>? = null)

Functions

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

Properties

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

Specifies the added to the host group ID.

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

Specified to be part of a host group of host ID.

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

The bastion host instance id.