1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a organization identity_center_role_configuration_permission_custom_policy_attachment

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const identityCenterRoleConfigurationPermissionCustomPolicyAttachment = new tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment("identityCenterRoleConfigurationPermissionCustomPolicyAttachment", {
        zoneId: "z-xxxxxx",
        roleConfigurationId: "rc-xxxxxx",
        rolePolicyName: "CustomPolicy",
        rolePolicyDocument: `{
        "version": "2.0",
        "statement": [
            {
                "effect": "allow",
                "action": [
                    "vpc:AcceptAttachCcnInstances"
                ],
                "resource": [
                    "*"
                ]
            }
        ]
    }
    `,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    identity_center_role_configuration_permission_custom_policy_attachment = tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment("identityCenterRoleConfigurationPermissionCustomPolicyAttachment",
        zone_id="z-xxxxxx",
        role_configuration_id="rc-xxxxxx",
        role_policy_name="CustomPolicy",
        role_policy_document="""{
        "version": "2.0",
        "statement": [
            {
                "effect": "allow",
                "action": [
                    "vpc:AcceptAttachCcnInstances"
                ],
                "resource": [
                    "*"
                ]
            }
        ]
    }
    """)
    
    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.NewIdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(ctx, "identityCenterRoleConfigurationPermissionCustomPolicyAttachment", &tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs{
    			ZoneId:              pulumi.String("z-xxxxxx"),
    			RoleConfigurationId: pulumi.String("rc-xxxxxx"),
    			RolePolicyName:      pulumi.String("CustomPolicy"),
    			RolePolicyDocument: pulumi.String(`{
        "version": "2.0",
        "statement": [
            {
                "effect": "allow",
                "action": [
                    "vpc:AcceptAttachCcnInstances"
                ],
                "resource": [
                    "*"
                ]
            }
        ]
    }
    `),
    		})
    		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 identityCenterRoleConfigurationPermissionCustomPolicyAttachment = new Tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment("identityCenterRoleConfigurationPermissionCustomPolicyAttachment", new()
        {
            ZoneId = "z-xxxxxx",
            RoleConfigurationId = "rc-xxxxxx",
            RolePolicyName = "CustomPolicy",
            RolePolicyDocument = @"{
        ""version"": ""2.0"",
        ""statement"": [
            {
                ""effect"": ""allow"",
                ""action"": [
                    ""vpc:AcceptAttachCcnInstances""
                ],
                ""resource"": [
                    ""*""
                ]
            }
        ]
    }
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment;
    import com.pulumi.tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs;
    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 identityCenterRoleConfigurationPermissionCustomPolicyAttachment = new IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment("identityCenterRoleConfigurationPermissionCustomPolicyAttachment", IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs.builder()
                .zoneId("z-xxxxxx")
                .roleConfigurationId("rc-xxxxxx")
                .rolePolicyName("CustomPolicy")
                .rolePolicyDocument("""
    {
        "version": "2.0",
        "statement": [
            {
                "effect": "allow",
                "action": [
                    "vpc:AcceptAttachCcnInstances"
                ],
                "resource": [
                    "*"
                ]
            }
        ]
    }
                """)
                .build());
    
        }
    }
    
    resources:
      identityCenterRoleConfigurationPermissionCustomPolicyAttachment:
        type: tencentcloud:IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
        properties:
          zoneId: z-xxxxxx
          roleConfigurationId: rc-xxxxxx
          rolePolicyName: CustomPolicy
          rolePolicyDocument: |
            {
                "version": "2.0",
                "statement": [
                    {
                        "effect": "allow",
                        "action": [
                            "vpc:AcceptAttachCcnInstances"
                        ],
                        "resource": [
                            "*"
                        ]
                    }
                ]
            }        
    

    Create IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(name: string, args: IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(resource_name: str,
                                                                        args: IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs,
                                                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(resource_name: str,
                                                                        opts: Optional[ResourceOptions] = None,
                                                                        role_configuration_id: Optional[str] = None,
                                                                        role_policy_document: Optional[str] = None,
                                                                        role_policy_name: Optional[str] = None,
                                                                        zone_id: Optional[str] = None,
                                                                        identity_center_role_configuration_permission_custom_policy_attachment_id: Optional[str] = None)
    func NewIdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(ctx *Context, name string, args IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs, opts ...ResourceOption) (*IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment, error)
    public IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(string name, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs args, CustomResourceOptions? opts = null)
    public IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(String name, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs args)
    public IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(String name, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs args, CustomResourceOptions options)
    
    type: tencentcloud:IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
    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 IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
    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 IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
    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 IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    RoleConfigurationId string
    Permission configuration ID.
    RolePolicyDocument string
    Role policy document.
    RolePolicyName string
    Role policy name.
    ZoneId string
    Space ID.
    IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentId string
    ID of the resource.
    RoleConfigurationId string
    Permission configuration ID.
    RolePolicyDocument string
    Role policy document.
    RolePolicyName string
    Role policy name.
    ZoneId string
    Space ID.
    IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentId string
    ID of the resource.
    roleConfigurationId String
    Permission configuration ID.
    rolePolicyDocument String
    Role policy document.
    rolePolicyName String
    Role policy name.
    zoneId String
    Space ID.
    identityCenterRoleConfigurationPermissionCustomPolicyAttachmentId String
    ID of the resource.
    roleConfigurationId string
    Permission configuration ID.
    rolePolicyDocument string
    Role policy document.
    rolePolicyName string
    Role policy name.
    zoneId string
    Space ID.
    identityCenterRoleConfigurationPermissionCustomPolicyAttachmentId string
    ID of the resource.
    role_configuration_id str
    Permission configuration ID.
    role_policy_document str
    Role policy document.
    role_policy_name str
    Role policy name.
    zone_id str
    Space ID.
    identity_center_role_configuration_permission_custom_policy_attachment_id str
    ID of the resource.
    roleConfigurationId String
    Permission configuration ID.
    rolePolicyDocument String
    Role policy document.
    rolePolicyName String
    Role policy name.
    zoneId String
    Space ID.
    identityCenterRoleConfigurationPermissionCustomPolicyAttachmentId String
    ID of the resource.

    Outputs

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

    AddTime string
    Role policy add time.
    Id string
    The provider-assigned unique ID for this managed resource.
    RolePolicyType string
    Role policy type.
    AddTime string
    Role policy add time.
    Id string
    The provider-assigned unique ID for this managed resource.
    RolePolicyType string
    Role policy type.
    addTime String
    Role policy add time.
    id String
    The provider-assigned unique ID for this managed resource.
    rolePolicyType String
    Role policy type.
    addTime string
    Role policy add time.
    id string
    The provider-assigned unique ID for this managed resource.
    rolePolicyType string
    Role policy type.
    add_time str
    Role policy add time.
    id str
    The provider-assigned unique ID for this managed resource.
    role_policy_type str
    Role policy type.
    addTime String
    Role policy add time.
    id String
    The provider-assigned unique ID for this managed resource.
    rolePolicyType String
    Role policy type.

    Look up Existing IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment Resource

    Get an existing IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment 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?: IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentState, opts?: CustomResourceOptions): IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            add_time: Optional[str] = None,
            identity_center_role_configuration_permission_custom_policy_attachment_id: Optional[str] = None,
            role_configuration_id: Optional[str] = None,
            role_policy_document: Optional[str] = None,
            role_policy_name: Optional[str] = None,
            role_policy_type: Optional[str] = None,
            zone_id: Optional[str] = None) -> IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
    func GetIdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(ctx *Context, name string, id IDInput, state *IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentState, opts ...ResourceOption) (*IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment, error)
    public static IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment Get(string name, Input<string> id, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentState? state, CustomResourceOptions? opts = null)
    public static IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment get(String name, Output<String> id, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment    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.
    The following state arguments are supported:
    AddTime string
    Role policy add time.
    IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentId string
    ID of the resource.
    RoleConfigurationId string
    Permission configuration ID.
    RolePolicyDocument string
    Role policy document.
    RolePolicyName string
    Role policy name.
    RolePolicyType string
    Role policy type.
    ZoneId string
    Space ID.
    AddTime string
    Role policy add time.
    IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentId string
    ID of the resource.
    RoleConfigurationId string
    Permission configuration ID.
    RolePolicyDocument string
    Role policy document.
    RolePolicyName string
    Role policy name.
    RolePolicyType string
    Role policy type.
    ZoneId string
    Space ID.
    addTime String
    Role policy add time.
    identityCenterRoleConfigurationPermissionCustomPolicyAttachmentId String
    ID of the resource.
    roleConfigurationId String
    Permission configuration ID.
    rolePolicyDocument String
    Role policy document.
    rolePolicyName String
    Role policy name.
    rolePolicyType String
    Role policy type.
    zoneId String
    Space ID.
    addTime string
    Role policy add time.
    identityCenterRoleConfigurationPermissionCustomPolicyAttachmentId string
    ID of the resource.
    roleConfigurationId string
    Permission configuration ID.
    rolePolicyDocument string
    Role policy document.
    rolePolicyName string
    Role policy name.
    rolePolicyType string
    Role policy type.
    zoneId string
    Space ID.
    add_time str
    Role policy add time.
    identity_center_role_configuration_permission_custom_policy_attachment_id str
    ID of the resource.
    role_configuration_id str
    Permission configuration ID.
    role_policy_document str
    Role policy document.
    role_policy_name str
    Role policy name.
    role_policy_type str
    Role policy type.
    zone_id str
    Space ID.
    addTime String
    Role policy add time.
    identityCenterRoleConfigurationPermissionCustomPolicyAttachmentId String
    ID of the resource.
    roleConfigurationId String
    Permission configuration ID.
    rolePolicyDocument String
    Role policy document.
    rolePolicyName String
    Role policy name.
    rolePolicyType String
    Role policy type.
    zoneId String
    Space ID.

    Import

    organization identity_center_role_configuration_permission_custom_policy_attachment can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/identityCenterRoleConfigurationPermissionCustomPolicyAttachment:IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment identity_center_role_configuration_permission_custom_policy_attachment ${zoneId}#${roleConfigurationId}#${rolePolicyName}
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack