tencentcloud.CiamUserGroup
Explore with Pulumi AI
Provides a resource to create a ciam user group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const userStore = new tencentcloud.CiamUserStore("userStore", {
userPoolName: "tf_user_store",
userPoolDesc: "for terraform test",
userPoolLogo: "https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png",
});
const userGroup = new tencentcloud.CiamUserGroup("userGroup", {
displayName: "tf_user_group",
userStoreId: userStore.ciamUserStoreId,
description: "for terrafrom test",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
user_store = tencentcloud.CiamUserStore("userStore",
user_pool_name="tf_user_store",
user_pool_desc="for terraform test",
user_pool_logo="https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png")
user_group = tencentcloud.CiamUserGroup("userGroup",
display_name="tf_user_group",
user_store_id=user_store.ciam_user_store_id,
description="for terrafrom test")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
userStore, err := tencentcloud.NewCiamUserStore(ctx, "userStore", &tencentcloud.CiamUserStoreArgs{
UserPoolName: pulumi.String("tf_user_store"),
UserPoolDesc: pulumi.String("for terraform test"),
UserPoolLogo: pulumi.String("https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewCiamUserGroup(ctx, "userGroup", &tencentcloud.CiamUserGroupArgs{
DisplayName: pulumi.String("tf_user_group"),
UserStoreId: userStore.CiamUserStoreId,
Description: pulumi.String("for terrafrom test"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var userStore = new Tencentcloud.CiamUserStore("userStore", new()
{
UserPoolName = "tf_user_store",
UserPoolDesc = "for terraform test",
UserPoolLogo = "https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png",
});
var userGroup = new Tencentcloud.CiamUserGroup("userGroup", new()
{
DisplayName = "tf_user_group",
UserStoreId = userStore.CiamUserStoreId,
Description = "for terrafrom test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CiamUserStore;
import com.pulumi.tencentcloud.CiamUserStoreArgs;
import com.pulumi.tencentcloud.CiamUserGroup;
import com.pulumi.tencentcloud.CiamUserGroupArgs;
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 userStore = new CiamUserStore("userStore", CiamUserStoreArgs.builder()
.userPoolName("tf_user_store")
.userPoolDesc("for terraform test")
.userPoolLogo("https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png")
.build());
var userGroup = new CiamUserGroup("userGroup", CiamUserGroupArgs.builder()
.displayName("tf_user_group")
.userStoreId(userStore.ciamUserStoreId())
.description("for terrafrom test")
.build());
}
}
resources:
userStore:
type: tencentcloud:CiamUserStore
properties:
userPoolName: tf_user_store
userPoolDesc: for terraform test
userPoolLogo: https://ciam-prd-1302490086.cos.ap-guangzhou.myqcloud.com/temporary/92630252a2c5422d9663db5feafd619b.png
userGroup:
type: tencentcloud:CiamUserGroup
properties:
displayName: tf_user_group
userStoreId: ${userStore.ciamUserStoreId}
description: for terrafrom test
Create CiamUserGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CiamUserGroup(name: string, args: CiamUserGroupArgs, opts?: CustomResourceOptions);
@overload
def CiamUserGroup(resource_name: str,
args: CiamUserGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CiamUserGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
user_store_id: Optional[str] = None,
ciam_user_group_id: Optional[str] = None,
description: Optional[str] = None)
func NewCiamUserGroup(ctx *Context, name string, args CiamUserGroupArgs, opts ...ResourceOption) (*CiamUserGroup, error)
public CiamUserGroup(string name, CiamUserGroupArgs args, CustomResourceOptions? opts = null)
public CiamUserGroup(String name, CiamUserGroupArgs args)
public CiamUserGroup(String name, CiamUserGroupArgs args, CustomResourceOptions options)
type: tencentcloud:CiamUserGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CiamUserGroupArgs
- 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 CiamUserGroupArgs
- 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 CiamUserGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CiamUserGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CiamUserGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CiamUserGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CiamUserGroup resource accepts the following input properties:
- Display
Name string - User Group Name.
- User
Store stringId - User Store ID.
- Ciam
User stringGroup Id - ID of the resource.
- Description string
- User Group Description.
- Display
Name string - User Group Name.
- User
Store stringId - User Store ID.
- Ciam
User stringGroup Id - ID of the resource.
- Description string
- User Group Description.
- display
Name String - User Group Name.
- user
Store StringId - User Store ID.
- ciam
User StringGroup Id - ID of the resource.
- description String
- User Group Description.
- display
Name string - User Group Name.
- user
Store stringId - User Store ID.
- ciam
User stringGroup Id - ID of the resource.
- description string
- User Group Description.
- display_
name str - User Group Name.
- user_
store_ strid - User Store ID.
- ciam_
user_ strgroup_ id - ID of the resource.
- description str
- User Group Description.
- display
Name String - User Group Name.
- user
Store StringId - User Store ID.
- ciam
User StringGroup Id - ID of the resource.
- description String
- User Group Description.
Outputs
All input properties are implicitly available as output properties. Additionally, the CiamUserGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CiamUserGroup Resource
Get an existing CiamUserGroup 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?: CiamUserGroupState, opts?: CustomResourceOptions): CiamUserGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ciam_user_group_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
user_store_id: Optional[str] = None) -> CiamUserGroup
func GetCiamUserGroup(ctx *Context, name string, id IDInput, state *CiamUserGroupState, opts ...ResourceOption) (*CiamUserGroup, error)
public static CiamUserGroup Get(string name, Input<string> id, CiamUserGroupState? state, CustomResourceOptions? opts = null)
public static CiamUserGroup get(String name, Output<String> id, CiamUserGroupState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CiamUserGroup get: id: ${id}
- 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.
- Ciam
User stringGroup Id - ID of the resource.
- Description string
- User Group Description.
- Display
Name string - User Group Name.
- User
Store stringId - User Store ID.
- Ciam
User stringGroup Id - ID of the resource.
- Description string
- User Group Description.
- Display
Name string - User Group Name.
- User
Store stringId - User Store ID.
- ciam
User StringGroup Id - ID of the resource.
- description String
- User Group Description.
- display
Name String - User Group Name.
- user
Store StringId - User Store ID.
- ciam
User stringGroup Id - ID of the resource.
- description string
- User Group Description.
- display
Name string - User Group Name.
- user
Store stringId - User Store ID.
- ciam_
user_ strgroup_ id - ID of the resource.
- description str
- User Group Description.
- display_
name str - User Group Name.
- user_
store_ strid - User Store ID.
- ciam
User StringGroup Id - ID of the resource.
- description String
- User Group Description.
- display
Name String - User Group Name.
- user
Store StringId - User Store ID.
Import
ciam user_group can be imported using the id, e.g.
$ pulumi import tencentcloud:index/ciamUserGroup:CiamUserGroup user_group userStoreId#userGroupId
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.