tencentcloud.IdentityCenterRoleAssignment
Explore with Pulumi AI
Provides a resource to create a organization identity_center_role_assignment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const identityCenterRoleAssignment = new tencentcloud.IdentityCenterRoleAssignment("identityCenterRoleAssignment", {
principalId: "u-xxxxxx",
principalType: "User",
roleConfigurationId: "rc-xxxxxx",
targetType: "MemberUin",
targetUin: "xxxxxx",
zoneId: "z-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
identity_center_role_assignment = tencentcloud.IdentityCenterRoleAssignment("identityCenterRoleAssignment",
principal_id="u-xxxxxx",
principal_type="User",
role_configuration_id="rc-xxxxxx",
target_type="MemberUin",
target_uin="xxxxxx",
zone_id="z-xxxxxx")
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 {
_, err := tencentcloud.NewIdentityCenterRoleAssignment(ctx, "identityCenterRoleAssignment", &tencentcloud.IdentityCenterRoleAssignmentArgs{
PrincipalId: pulumi.String("u-xxxxxx"),
PrincipalType: pulumi.String("User"),
RoleConfigurationId: pulumi.String("rc-xxxxxx"),
TargetType: pulumi.String("MemberUin"),
TargetUin: pulumi.Float64("xxxxxx"),
ZoneId: pulumi.String("z-xxxxxx"),
})
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 identityCenterRoleAssignment = new Tencentcloud.IdentityCenterRoleAssignment("identityCenterRoleAssignment", new()
{
PrincipalId = "u-xxxxxx",
PrincipalType = "User",
RoleConfigurationId = "rc-xxxxxx",
TargetType = "MemberUin",
TargetUin = "xxxxxx",
ZoneId = "z-xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.IdentityCenterRoleAssignment;
import com.pulumi.tencentcloud.IdentityCenterRoleAssignmentArgs;
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 identityCenterRoleAssignment = new IdentityCenterRoleAssignment("identityCenterRoleAssignment", IdentityCenterRoleAssignmentArgs.builder()
.principalId("u-xxxxxx")
.principalType("User")
.roleConfigurationId("rc-xxxxxx")
.targetType("MemberUin")
.targetUin("xxxxxx")
.zoneId("z-xxxxxx")
.build());
}
}
resources:
identityCenterRoleAssignment:
type: tencentcloud:IdentityCenterRoleAssignment
properties:
principalId: u-xxxxxx
principalType: User
roleConfigurationId: rc-xxxxxx
targetType: MemberUin
targetUin: xxxxxx
zoneId: z-xxxxxx
Create IdentityCenterRoleAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityCenterRoleAssignment(name: string, args: IdentityCenterRoleAssignmentArgs, opts?: CustomResourceOptions);
@overload
def IdentityCenterRoleAssignment(resource_name: str,
args: IdentityCenterRoleAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityCenterRoleAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
principal_id: Optional[str] = None,
principal_type: Optional[str] = None,
role_configuration_id: Optional[str] = None,
target_type: Optional[str] = None,
target_uin: Optional[float] = None,
zone_id: Optional[str] = None,
deprovision_strategy: Optional[str] = None,
identity_center_role_assignment_id: Optional[str] = None)
func NewIdentityCenterRoleAssignment(ctx *Context, name string, args IdentityCenterRoleAssignmentArgs, opts ...ResourceOption) (*IdentityCenterRoleAssignment, error)
public IdentityCenterRoleAssignment(string name, IdentityCenterRoleAssignmentArgs args, CustomResourceOptions? opts = null)
public IdentityCenterRoleAssignment(String name, IdentityCenterRoleAssignmentArgs args)
public IdentityCenterRoleAssignment(String name, IdentityCenterRoleAssignmentArgs args, CustomResourceOptions options)
type: tencentcloud:IdentityCenterRoleAssignment
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 IdentityCenterRoleAssignmentArgs
- 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 IdentityCenterRoleAssignmentArgs
- 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 IdentityCenterRoleAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityCenterRoleAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityCenterRoleAssignmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IdentityCenterRoleAssignment 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 IdentityCenterRoleAssignment resource accepts the following input properties:
- Principal
Id string - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- Principal
Type string Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- Role
Configuration stringId - Permission configuration ID.
- Target
Type string - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- Target
Uin double - UIN of the synchronized target account of the Tencent Cloud Organization.
- Zone
Id string - Space ID.
- Deprovision
Strategy string - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- Identity
Center stringRole Assignment Id - ID of the resource.
- Principal
Id string - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- Principal
Type string Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- Role
Configuration stringId - Permission configuration ID.
- Target
Type string - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- Target
Uin float64 - UIN of the synchronized target account of the Tencent Cloud Organization.
- Zone
Id string - Space ID.
- Deprovision
Strategy string - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- Identity
Center stringRole Assignment Id - ID of the resource.
- principal
Id String - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- principal
Type String Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- role
Configuration StringId - Permission configuration ID.
- target
Type String - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- target
Uin Double - UIN of the synchronized target account of the Tencent Cloud Organization.
- zone
Id String - Space ID.
- deprovision
Strategy String - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- identity
Center StringRole Assignment Id - ID of the resource.
- principal
Id string - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- principal
Type string Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- role
Configuration stringId - Permission configuration ID.
- target
Type string - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- target
Uin number - UIN of the synchronized target account of the Tencent Cloud Organization.
- zone
Id string - Space ID.
- deprovision
Strategy string - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- identity
Center stringRole Assignment Id - ID of the resource.
- principal_
id str - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- principal_
type str Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- role_
configuration_ strid - Permission configuration ID.
- target_
type str - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- target_
uin float - UIN of the synchronized target account of the Tencent Cloud Organization.
- zone_
id str - Space ID.
- deprovision_
strategy str - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- identity_
center_ strrole_ assignment_ id - ID of the resource.
- principal
Id String - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- principal
Type String Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- role
Configuration StringId - Permission configuration ID.
- target
Type String - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- target
Uin Number - UIN of the synchronized target account of the Tencent Cloud Organization.
- zone
Id String - Space ID.
- deprovision
Strategy String - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- identity
Center StringRole Assignment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityCenterRoleAssignment resource produces the following output properties:
- Create
Time string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Name string - Principal name.
- Role
Configuration stringName - Role configuration name.
- Target
Name string - Target name.
- Update
Time string - Update time.
- Create
Time string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Name string - Principal name.
- Role
Configuration stringName - Role configuration name.
- Target
Name string - Target name.
- Update
Time string - Update time.
- create
Time String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Name String - Principal name.
- role
Configuration StringName - Role configuration name.
- target
Name String - Target name.
- update
Time String - Update time.
- create
Time string - Create time.
- id string
- The provider-assigned unique ID for this managed resource.
- principal
Name string - Principal name.
- role
Configuration stringName - Role configuration name.
- target
Name string - Target name.
- update
Time string - Update time.
- create_
time str - Create time.
- id str
- The provider-assigned unique ID for this managed resource.
- principal_
name str - Principal name.
- role_
configuration_ strname - Role configuration name.
- target_
name str - Target name.
- update_
time str - Update time.
- create
Time String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Name String - Principal name.
- role
Configuration StringName - Role configuration name.
- target
Name String - Target name.
- update
Time String - Update time.
Look up Existing IdentityCenterRoleAssignment Resource
Get an existing IdentityCenterRoleAssignment 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?: IdentityCenterRoleAssignmentState, opts?: CustomResourceOptions): IdentityCenterRoleAssignment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
deprovision_strategy: Optional[str] = None,
identity_center_role_assignment_id: Optional[str] = None,
principal_id: Optional[str] = None,
principal_name: Optional[str] = None,
principal_type: Optional[str] = None,
role_configuration_id: Optional[str] = None,
role_configuration_name: Optional[str] = None,
target_name: Optional[str] = None,
target_type: Optional[str] = None,
target_uin: Optional[float] = None,
update_time: Optional[str] = None,
zone_id: Optional[str] = None) -> IdentityCenterRoleAssignment
func GetIdentityCenterRoleAssignment(ctx *Context, name string, id IDInput, state *IdentityCenterRoleAssignmentState, opts ...ResourceOption) (*IdentityCenterRoleAssignment, error)
public static IdentityCenterRoleAssignment Get(string name, Input<string> id, IdentityCenterRoleAssignmentState? state, CustomResourceOptions? opts = null)
public static IdentityCenterRoleAssignment get(String name, Output<String> id, IdentityCenterRoleAssignmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:IdentityCenterRoleAssignment 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.
- Create
Time string - Create time.
- Deprovision
Strategy string - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- Identity
Center stringRole Assignment Id - ID of the resource.
- Principal
Id string - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- Principal
Name string - Principal name.
- Principal
Type string Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- Role
Configuration stringId - Permission configuration ID.
- Role
Configuration stringName - Role configuration name.
- Target
Name string - Target name.
- Target
Type string - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- Target
Uin double - UIN of the synchronized target account of the Tencent Cloud Organization.
- Update
Time string - Update time.
- Zone
Id string - Space ID.
- Create
Time string - Create time.
- Deprovision
Strategy string - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- Identity
Center stringRole Assignment Id - ID of the resource.
- Principal
Id string - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- Principal
Name string - Principal name.
- Principal
Type string Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- Role
Configuration stringId - Permission configuration ID.
- Role
Configuration stringName - Role configuration name.
- Target
Name string - Target name.
- Target
Type string - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- Target
Uin float64 - UIN of the synchronized target account of the Tencent Cloud Organization.
- Update
Time string - Update time.
- Zone
Id string - Space ID.
- create
Time String - Create time.
- deprovision
Strategy String - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- identity
Center StringRole Assignment Id - ID of the resource.
- principal
Id String - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- principal
Name String - Principal name.
- principal
Type String Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- role
Configuration StringId - Permission configuration ID.
- role
Configuration StringName - Role configuration name.
- target
Name String - Target name.
- target
Type String - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- target
Uin Double - UIN of the synchronized target account of the Tencent Cloud Organization.
- update
Time String - Update time.
- zone
Id String - Space ID.
- create
Time string - Create time.
- deprovision
Strategy string - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- identity
Center stringRole Assignment Id - ID of the resource.
- principal
Id string - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- principal
Name string - Principal name.
- principal
Type string Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- role
Configuration stringId - Permission configuration ID.
- role
Configuration stringName - Role configuration name.
- target
Name string - Target name.
- target
Type string - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- target
Uin number - UIN of the synchronized target account of the Tencent Cloud Organization.
- update
Time string - Update time.
- zone
Id string - Space ID.
- create_
time str - Create time.
- deprovision_
strategy str - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- identity_
center_ strrole_ assignment_ id - ID of the resource.
- principal_
id str - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- principal_
name str - Principal name.
- principal_
type str Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- role_
configuration_ strid - Permission configuration ID.
- role_
configuration_ strname - Role configuration name.
- target_
name str - Target name.
- target_
type str - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- target_
uin float - UIN of the synchronized target account of the Tencent Cloud Organization.
- update_
time str - Update time.
- zone_
id str - Space ID.
- create
Time String - Create time.
- deprovision
Strategy String - When you remove the last authorization configured with a certain privilege on a group account target account, whether to cancel the privilege configuration deployment at the same time. Value: DeprovisionForLastRoleAssignmentOnAccount: Remove privileges to configure deployment. None (default): Configure deployment without delegating privileges.
- identity
Center StringRole Assignment Id - ID of the resource.
- principal
Id String - Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-). When the PrincipalType value is User, it is the CIC user ID (u-).
- principal
Name String - Principal name.
- principal
Type String Identity type for the CAM user synchronization. Valid values:
User: indicates that the identity for the CAM user synchronization is a CIC user. Group: indicates that the identity for the CAM user synchronization is a CIC user group.
- role
Configuration StringId - Permission configuration ID.
- role
Configuration StringName - Role configuration name.
- target
Name String - Target name.
- target
Type String - Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
- target
Uin Number - UIN of the synchronized target account of the Tencent Cloud Organization.
- update
Time String - Update time.
- zone
Id String - Space ID.
Import
organization identity_center_role_assignment can be imported using the id, e.g.
$ pulumi import tencentcloud:index/identityCenterRoleAssignment:IdentityCenterRoleAssignment identity_center_role_assignment {zoneId}#{roleConfigurationId}#{targetType}#{targetUinString}#{principalType}#{principalId}
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.