HostAttachment

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>

Properties

Link copied to clipboard
val hostGroupId: Output<String>

Specifies the added to the host group ID.

Link copied to clipboard
val hostId: Output<String>

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

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

The bastion host instance id.

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