alicloud.bastionhost.HostGroup
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
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.BastionHost.HostGroup("example", new()
{
HostGroupName = "example_value",
InstanceId = "bastionhost-cn-tl3xxxxxxx",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/bastionhost"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bastionhost.NewHostGroup(ctx, "example", &bastionhost.HostGroupArgs{
HostGroupName: pulumi.String("example_value"),
InstanceId: pulumi.String("bastionhost-cn-tl3xxxxxxx"),
})
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.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 pulumi
import pulumi_alicloud as alicloud
example = alicloud.bastionhost.HostGroup("example",
host_group_name="example_value",
instance_id="bastionhost-cn-tl3xxxxxxx")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.bastionhost.HostGroup("example", {
hostGroupName: "example_value",
instanceId: "bastionhost-cn-tl3xxxxxxx",
});
resources:
example:
type: alicloud:bastionhost:HostGroup
properties:
hostGroupName: example_value
instanceId: bastionhost-cn-tl3xxxxxxx
Create HostGroup Resource
new HostGroup(name: string, args: HostGroupArgs, opts?: CustomResourceOptions);
@overload
def HostGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
host_group_name: Optional[str] = None,
instance_id: Optional[str] = None)
@overload
def HostGroup(resource_name: str,
args: HostGroupArgs,
opts: Optional[ResourceOptions] = None)
func NewHostGroup(ctx *Context, name string, args HostGroupArgs, opts ...ResourceOption) (*HostGroup, error)
public HostGroup(string name, HostGroupArgs args, CustomResourceOptions? opts = null)
public HostGroup(String name, HostGroupArgs args)
public HostGroup(String name, HostGroupArgs args, CustomResourceOptions options)
type: alicloud:bastionhost:HostGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HostGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HostGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
HostGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The HostGroup resource accepts the following input properties:
- Host
Group stringName Specify the New Host Group Name, Supports up to 128 Characters.
- Instance
Id string Specify the New Host Group Where the Bastion Host ID of.
- Comment string
Specify the New Host Group of Notes, Supports up to 500 Characters.
- Host
Group stringName Specify the New Host Group Name, Supports up to 128 Characters.
- Instance
Id string Specify the New Host Group Where the Bastion Host ID of.
- Comment string
Specify the New Host Group of Notes, Supports up to 500 Characters.
- host
Group StringName Specify the New Host Group Name, Supports up to 128 Characters.
- instance
Id String Specify the New Host Group Where the Bastion Host ID of.
- comment String
Specify the New Host Group of Notes, Supports up to 500 Characters.
- host
Group stringName Specify the New Host Group Name, Supports up to 128 Characters.
- instance
Id string Specify the New Host Group Where the Bastion Host ID of.
- comment string
Specify the New Host Group of Notes, Supports up to 500 Characters.
- host_
group_ strname Specify the New Host Group Name, Supports up to 128 Characters.
- instance_
id str Specify the New Host Group Where the Bastion Host ID of.
- comment str
Specify the New Host Group of Notes, Supports up to 500 Characters.
- host
Group StringName Specify the New Host Group Name, Supports up to 128 Characters.
- instance
Id String Specify the New Host Group Where the Bastion Host ID of.
- comment String
Specify the New Host Group of Notes, Supports up to 500 Characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the HostGroup resource produces the following output properties:
- Host
Group stringId Host Group ID.
- Id string
The provider-assigned unique ID for this managed resource.
- Host
Group stringId Host Group ID.
- Id string
The provider-assigned unique ID for this managed resource.
- host
Group StringId Host Group ID.
- id String
The provider-assigned unique ID for this managed resource.
- host
Group stringId Host Group ID.
- id string
The provider-assigned unique ID for this managed resource.
- host_
group_ strid Host Group ID.
- id str
The provider-assigned unique ID for this managed resource.
- host
Group StringId Host Group ID.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing HostGroup Resource
Get an existing HostGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HostGroupState, opts?: CustomResourceOptions): HostGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
host_group_id: Optional[str] = None,
host_group_name: Optional[str] = None,
instance_id: Optional[str] = None) -> HostGroup
func GetHostGroup(ctx *Context, name string, id IDInput, state *HostGroupState, opts ...ResourceOption) (*HostGroup, error)
public static HostGroup Get(string name, Input<string> id, HostGroupState? state, CustomResourceOptions? opts = null)
public static HostGroup get(String name, Output<String> id, HostGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Comment string
Specify the New Host Group of Notes, Supports up to 500 Characters.
- Host
Group stringId Host Group ID.
- Host
Group stringName Specify the New Host Group Name, Supports up to 128 Characters.
- Instance
Id string Specify the New Host Group Where the Bastion Host ID of.
- Comment string
Specify the New Host Group of Notes, Supports up to 500 Characters.
- Host
Group stringId Host Group ID.
- Host
Group stringName Specify the New Host Group Name, Supports up to 128 Characters.
- Instance
Id string Specify the New Host Group Where the Bastion Host ID of.
- comment String
Specify the New Host Group of Notes, Supports up to 500 Characters.
- host
Group StringId Host Group ID.
- host
Group StringName Specify the New Host Group Name, Supports up to 128 Characters.
- instance
Id String Specify the New Host Group Where the Bastion Host ID of.
- comment string
Specify the New Host Group of Notes, Supports up to 500 Characters.
- host
Group stringId Host Group ID.
- host
Group stringName Specify the New Host Group Name, Supports up to 128 Characters.
- instance
Id string Specify the New Host Group Where the Bastion Host ID of.
- comment str
Specify the New Host Group of Notes, Supports up to 500 Characters.
- host_
group_ strid Host Group ID.
- host_
group_ strname Specify the New Host Group Name, Supports up to 128 Characters.
- instance_
id str Specify the New Host Group Where the Bastion Host ID of.
- comment String
Specify the New Host Group of Notes, Supports up to 500 Characters.
- host
Group StringId Host Group ID.
- host
Group StringName Specify the New Host Group Name, Supports up to 128 Characters.
- instance
Id String Specify the New Host Group Where the Bastion Host ID of.
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>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.