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

tencentcloud.OrganizationOrgIdentity

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 org_identity

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const orgIdentity = new tencentcloud.OrganizationOrgIdentity("orgIdentity", {
        description: "iac-test",
        identityAliasName: "example-iac-test",
        identityPolicies: [{
            policyId: 1,
            policyName: "AdministratorAccess",
            policyType: 2,
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    org_identity = tencentcloud.OrganizationOrgIdentity("orgIdentity",
        description="iac-test",
        identity_alias_name="example-iac-test",
        identity_policies=[{
            "policy_id": 1,
            "policy_name": "AdministratorAccess",
            "policy_type": 2,
        }])
    
    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.NewOrganizationOrgIdentity(ctx, "orgIdentity", &tencentcloud.OrganizationOrgIdentityArgs{
    			Description:       pulumi.String("iac-test"),
    			IdentityAliasName: pulumi.String("example-iac-test"),
    			IdentityPolicies: tencentcloud.OrganizationOrgIdentityIdentityPolicyArray{
    				&tencentcloud.OrganizationOrgIdentityIdentityPolicyArgs{
    					PolicyId:   pulumi.Float64(1),
    					PolicyName: pulumi.String("AdministratorAccess"),
    					PolicyType: pulumi.Float64(2),
    				},
    			},
    		})
    		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 orgIdentity = new Tencentcloud.OrganizationOrgIdentity("orgIdentity", new()
        {
            Description = "iac-test",
            IdentityAliasName = "example-iac-test",
            IdentityPolicies = new[]
            {
                new Tencentcloud.Inputs.OrganizationOrgIdentityIdentityPolicyArgs
                {
                    PolicyId = 1,
                    PolicyName = "AdministratorAccess",
                    PolicyType = 2,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OrganizationOrgIdentity;
    import com.pulumi.tencentcloud.OrganizationOrgIdentityArgs;
    import com.pulumi.tencentcloud.inputs.OrganizationOrgIdentityIdentityPolicyArgs;
    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 orgIdentity = new OrganizationOrgIdentity("orgIdentity", OrganizationOrgIdentityArgs.builder()
                .description("iac-test")
                .identityAliasName("example-iac-test")
                .identityPolicies(OrganizationOrgIdentityIdentityPolicyArgs.builder()
                    .policyId(1)
                    .policyName("AdministratorAccess")
                    .policyType(2)
                    .build())
                .build());
    
        }
    }
    
    resources:
      orgIdentity:
        type: tencentcloud:OrganizationOrgIdentity
        properties:
          description: iac-test
          identityAliasName: example-iac-test
          identityPolicies:
            - policyId: 1
              policyName: AdministratorAccess
              policyType: 2
    

    Create OrganizationOrgIdentity Resource

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

    Constructor syntax

    new OrganizationOrgIdentity(name: string, args: OrganizationOrgIdentityArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationOrgIdentity(resource_name: str,
                                args: OrganizationOrgIdentityArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationOrgIdentity(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                identity_alias_name: Optional[str] = None,
                                identity_policies: Optional[Sequence[OrganizationOrgIdentityIdentityPolicyArgs]] = None,
                                description: Optional[str] = None,
                                organization_org_identity_id: Optional[str] = None)
    func NewOrganizationOrgIdentity(ctx *Context, name string, args OrganizationOrgIdentityArgs, opts ...ResourceOption) (*OrganizationOrgIdentity, error)
    public OrganizationOrgIdentity(string name, OrganizationOrgIdentityArgs args, CustomResourceOptions? opts = null)
    public OrganizationOrgIdentity(String name, OrganizationOrgIdentityArgs args)
    public OrganizationOrgIdentity(String name, OrganizationOrgIdentityArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OrganizationOrgIdentity
    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 OrganizationOrgIdentityArgs
    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 OrganizationOrgIdentityArgs
    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 OrganizationOrgIdentityArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationOrgIdentityArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationOrgIdentityArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    IdentityAliasName string
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    IdentityPolicies List<OrganizationOrgIdentityIdentityPolicy>
    Identity policy list.
    Description string
    Identity description.
    OrganizationOrgIdentityId string
    ID of the resource.
    IdentityAliasName string
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    IdentityPolicies []OrganizationOrgIdentityIdentityPolicyArgs
    Identity policy list.
    Description string
    Identity description.
    OrganizationOrgIdentityId string
    ID of the resource.
    identityAliasName String
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    identityPolicies List<OrganizationOrgIdentityIdentityPolicy>
    Identity policy list.
    description String
    Identity description.
    organizationOrgIdentityId String
    ID of the resource.
    identityAliasName string
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    identityPolicies OrganizationOrgIdentityIdentityPolicy[]
    Identity policy list.
    description string
    Identity description.
    organizationOrgIdentityId string
    ID of the resource.
    identity_alias_name str
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    identity_policies Sequence[OrganizationOrgIdentityIdentityPolicyArgs]
    Identity policy list.
    description str
    Identity description.
    organization_org_identity_id str
    ID of the resource.
    identityAliasName String
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    identityPolicies List<Property Map>
    Identity policy list.
    description String
    Identity description.
    organizationOrgIdentityId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OrganizationOrgIdentity 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 OrganizationOrgIdentity Resource

    Get an existing OrganizationOrgIdentity 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?: OrganizationOrgIdentityState, opts?: CustomResourceOptions): OrganizationOrgIdentity
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            identity_alias_name: Optional[str] = None,
            identity_policies: Optional[Sequence[OrganizationOrgIdentityIdentityPolicyArgs]] = None,
            organization_org_identity_id: Optional[str] = None) -> OrganizationOrgIdentity
    func GetOrganizationOrgIdentity(ctx *Context, name string, id IDInput, state *OrganizationOrgIdentityState, opts ...ResourceOption) (*OrganizationOrgIdentity, error)
    public static OrganizationOrgIdentity Get(string name, Input<string> id, OrganizationOrgIdentityState? state, CustomResourceOptions? opts = null)
    public static OrganizationOrgIdentity get(String name, Output<String> id, OrganizationOrgIdentityState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OrganizationOrgIdentity    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:
    Description string
    Identity description.
    IdentityAliasName string
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    IdentityPolicies List<OrganizationOrgIdentityIdentityPolicy>
    Identity policy list.
    OrganizationOrgIdentityId string
    ID of the resource.
    Description string
    Identity description.
    IdentityAliasName string
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    IdentityPolicies []OrganizationOrgIdentityIdentityPolicyArgs
    Identity policy list.
    OrganizationOrgIdentityId string
    ID of the resource.
    description String
    Identity description.
    identityAliasName String
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    identityPolicies List<OrganizationOrgIdentityIdentityPolicy>
    Identity policy list.
    organizationOrgIdentityId String
    ID of the resource.
    description string
    Identity description.
    identityAliasName string
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    identityPolicies OrganizationOrgIdentityIdentityPolicy[]
    Identity policy list.
    organizationOrgIdentityId string
    ID of the resource.
    description str
    Identity description.
    identity_alias_name str
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    identity_policies Sequence[OrganizationOrgIdentityIdentityPolicyArgs]
    Identity policy list.
    organization_org_identity_id str
    ID of the resource.
    description String
    Identity description.
    identityAliasName String
    Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
    identityPolicies List<Property Map>
    Identity policy list.
    organizationOrgIdentityId String
    ID of the resource.

    Supporting Types

    OrganizationOrgIdentityIdentityPolicy, OrganizationOrgIdentityIdentityPolicyArgs

    PolicyDocument string
    Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
    PolicyId double
    CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
    PolicyName string
    CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
    PolicyType double
    Policy type. Value 1-custom policy 2-preset policy; default value 2.
    PolicyDocument string
    Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
    PolicyId float64
    CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
    PolicyName string
    CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
    PolicyType float64
    Policy type. Value 1-custom policy 2-preset policy; default value 2.
    policyDocument String
    Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
    policyId Double
    CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
    policyName String
    CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
    policyType Double
    Policy type. Value 1-custom policy 2-preset policy; default value 2.
    policyDocument string
    Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
    policyId number
    CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
    policyName string
    CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
    policyType number
    Policy type. Value 1-custom policy 2-preset policy; default value 2.
    policy_document str
    Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
    policy_id float
    CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
    policy_name str
    CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
    policy_type float
    Policy type. Value 1-custom policy 2-preset policy; default value 2.
    policyDocument String
    Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
    policyId Number
    CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
    policyName String
    CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
    policyType Number
    Policy type. Value 1-custom policy 2-preset policy; default value 2.

    Import

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

    $ pulumi import tencentcloud:index/organizationOrgIdentity:OrganizationOrgIdentity org_identity org_identity_id
    

    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