alicloud logo
Alibaba Cloud v3.29.0, Jan 20 23

alicloud.bastionhost.UserGroup

Provides a Bastion Host User Group resource.

For information about Bastion Host User Group and how to use it, see What is User Group.

NOTE: Available in v1.132.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = new AliCloud.BastionHost.UserGroup("example", new()
    {
        InstanceId = "example_value",
        UserGroupName = "example_value",
    });

});
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.NewUserGroup(ctx, "example", &bastionhost.UserGroupArgs{
			InstanceId:    pulumi.String("example_value"),
			UserGroupName: pulumi.String("example_value"),
		})
		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.UserGroup;
import com.pulumi.alicloud.bastionhost.UserGroupArgs;
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 UserGroup("example", UserGroupArgs.builder()        
            .instanceId("example_value")
            .userGroupName("example_value")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.bastionhost.UserGroup("example",
    instance_id="example_value",
    user_group_name="example_value")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.bastionhost.UserGroup("example", {
    instanceId: "example_value",
    userGroupName: "example_value",
});
resources:
  example:
    type: alicloud:bastionhost:UserGroup
    properties:
      instanceId: example_value
      userGroupName: example_value

Create UserGroup Resource

new UserGroup(name: string, args: UserGroupArgs, opts?: CustomResourceOptions);
@overload
def UserGroup(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              comment: Optional[str] = None,
              instance_id: Optional[str] = None,
              user_group_name: Optional[str] = None)
@overload
def UserGroup(resource_name: str,
              args: UserGroupArgs,
              opts: Optional[ResourceOptions] = None)
func NewUserGroup(ctx *Context, name string, args UserGroupArgs, opts ...ResourceOption) (*UserGroup, error)
public UserGroup(string name, UserGroupArgs args, CustomResourceOptions? opts = null)
public UserGroup(String name, UserGroupArgs args)
public UserGroup(String name, UserGroupArgs args, CustomResourceOptions options)
type: alicloud:bastionhost:UserGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args UserGroupArgs
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 UserGroupArgs
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 UserGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args UserGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args UserGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

UserGroup 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 UserGroup resource accepts the following input properties:

InstanceId string

Specify the New Group of the Bastion Host of Instance Id.

UserGroupName string

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

Comment string

Specify the New Group of Remark Information. Supports up to 500 Characters.

InstanceId string

Specify the New Group of the Bastion Host of Instance Id.

UserGroupName string

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

Comment string

Specify the New Group of Remark Information. Supports up to 500 Characters.

instanceId String

Specify the New Group of the Bastion Host of Instance Id.

userGroupName String

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

comment String

Specify the New Group of Remark Information. Supports up to 500 Characters.

instanceId string

Specify the New Group of the Bastion Host of Instance Id.

userGroupName string

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

comment string

Specify the New Group of Remark Information. Supports up to 500 Characters.

instance_id str

Specify the New Group of the Bastion Host of Instance Id.

user_group_name str

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

comment str

Specify the New Group of Remark Information. Supports up to 500 Characters.

instanceId String

Specify the New Group of the Bastion Host of Instance Id.

userGroupName String

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

comment String

Specify the New Group of Remark Information. Supports up to 500 Characters.

Outputs

All input properties are implicitly available as output properties. Additionally, the UserGroup resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

UserGroupId string

The User Group self ID.

Id string

The provider-assigned unique ID for this managed resource.

UserGroupId string

The User Group self ID.

id String

The provider-assigned unique ID for this managed resource.

userGroupId String

The User Group self ID.

id string

The provider-assigned unique ID for this managed resource.

userGroupId string

The User Group self ID.

id str

The provider-assigned unique ID for this managed resource.

user_group_id str

The User Group self ID.

id String

The provider-assigned unique ID for this managed resource.

userGroupId String

The User Group self ID.

Look up Existing UserGroup Resource

Get an existing UserGroup 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?: UserGroupState, opts?: CustomResourceOptions): UserGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comment: Optional[str] = None,
        instance_id: Optional[str] = None,
        user_group_id: Optional[str] = None,
        user_group_name: Optional[str] = None) -> UserGroup
func GetUserGroup(ctx *Context, name string, id IDInput, state *UserGroupState, opts ...ResourceOption) (*UserGroup, error)
public static UserGroup Get(string name, Input<string> id, UserGroupState? state, CustomResourceOptions? opts = null)
public static UserGroup get(String name, Output<String> id, UserGroupState 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.
The following state arguments are supported:
Comment string

Specify the New Group of Remark Information. Supports up to 500 Characters.

InstanceId string

Specify the New Group of the Bastion Host of Instance Id.

UserGroupId string

The User Group self ID.

UserGroupName string

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

Comment string

Specify the New Group of Remark Information. Supports up to 500 Characters.

InstanceId string

Specify the New Group of the Bastion Host of Instance Id.

UserGroupId string

The User Group self ID.

UserGroupName string

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

comment String

Specify the New Group of Remark Information. Supports up to 500 Characters.

instanceId String

Specify the New Group of the Bastion Host of Instance Id.

userGroupId String

The User Group self ID.

userGroupName String

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

comment string

Specify the New Group of Remark Information. Supports up to 500 Characters.

instanceId string

Specify the New Group of the Bastion Host of Instance Id.

userGroupId string

The User Group self ID.

userGroupName string

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

comment str

Specify the New Group of Remark Information. Supports up to 500 Characters.

instance_id str

Specify the New Group of the Bastion Host of Instance Id.

user_group_id str

The User Group self ID.

user_group_name str

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

comment String

Specify the New Group of Remark Information. Supports up to 500 Characters.

instanceId String

Specify the New Group of the Bastion Host of Instance Id.

userGroupId String

The User Group self ID.

userGroupName String

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

Import

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

 $ pulumi import alicloud:bastionhost/userGroup:UserGroup example <instance_id>:<user_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.