1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OrganizationMemberAuthPolicyAttachment
tencentcloud 1.82.23 published on Monday, Sep 15, 2025 by tencentcloudstack

tencentcloud.OrganizationMemberAuthPolicyAttachment

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.82.23 published on Monday, Sep 15, 2025 by tencentcloudstack

    Provides a resource to create a Organization member auth policy attachment

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.OrganizationMemberAuthPolicyAttachment("example", {
        orgSubAccountUin: 100037718939,
        policyId: 252421751,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.OrganizationMemberAuthPolicyAttachment("example",
        org_sub_account_uin=100037718939,
        policy_id=252421751)
    
    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.NewOrganizationMemberAuthPolicyAttachment(ctx, "example", &tencentcloud.OrganizationMemberAuthPolicyAttachmentArgs{
    			OrgSubAccountUin: pulumi.Float64(100037718939),
    			PolicyId:         pulumi.Float64(252421751),
    		})
    		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 example = new Tencentcloud.OrganizationMemberAuthPolicyAttachment("example", new()
        {
            OrgSubAccountUin = 100037718939,
            PolicyId = 252421751,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OrganizationMemberAuthPolicyAttachment;
    import com.pulumi.tencentcloud.OrganizationMemberAuthPolicyAttachmentArgs;
    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 OrganizationMemberAuthPolicyAttachment("example", OrganizationMemberAuthPolicyAttachmentArgs.builder()
                .orgSubAccountUin(100037718939)
                .policyId(252421751)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:OrganizationMemberAuthPolicyAttachment
        properties:
          orgSubAccountUin: 1.00037718939e+11
          policyId: 2.52421751e+08
    

    Create OrganizationMemberAuthPolicyAttachment Resource

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

    Constructor syntax

    new OrganizationMemberAuthPolicyAttachment(name: string, args: OrganizationMemberAuthPolicyAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationMemberAuthPolicyAttachment(resource_name: str,
                                               args: OrganizationMemberAuthPolicyAttachmentArgs,
                                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationMemberAuthPolicyAttachment(resource_name: str,
                                               opts: Optional[ResourceOptions] = None,
                                               org_sub_account_uin: Optional[float] = None,
                                               policy_id: Optional[float] = None,
                                               organization_member_auth_policy_attachment_id: Optional[str] = None)
    func NewOrganizationMemberAuthPolicyAttachment(ctx *Context, name string, args OrganizationMemberAuthPolicyAttachmentArgs, opts ...ResourceOption) (*OrganizationMemberAuthPolicyAttachment, error)
    public OrganizationMemberAuthPolicyAttachment(string name, OrganizationMemberAuthPolicyAttachmentArgs args, CustomResourceOptions? opts = null)
    public OrganizationMemberAuthPolicyAttachment(String name, OrganizationMemberAuthPolicyAttachmentArgs args)
    public OrganizationMemberAuthPolicyAttachment(String name, OrganizationMemberAuthPolicyAttachmentArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OrganizationMemberAuthPolicyAttachment
    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 OrganizationMemberAuthPolicyAttachmentArgs
    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 OrganizationMemberAuthPolicyAttachmentArgs
    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 OrganizationMemberAuthPolicyAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationMemberAuthPolicyAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationMemberAuthPolicyAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    OrgSubAccountUin double
    Organization administrator sub-account Uin.
    PolicyId double
    Pilicy ID.
    OrganizationMemberAuthPolicyAttachmentId string
    ID of the resource.
    OrgSubAccountUin float64
    Organization administrator sub-account Uin.
    PolicyId float64
    Pilicy ID.
    OrganizationMemberAuthPolicyAttachmentId string
    ID of the resource.
    orgSubAccountUin Double
    Organization administrator sub-account Uin.
    policyId Double
    Pilicy ID.
    organizationMemberAuthPolicyAttachmentId String
    ID of the resource.
    orgSubAccountUin number
    Organization administrator sub-account Uin.
    policyId number
    Pilicy ID.
    organizationMemberAuthPolicyAttachmentId string
    ID of the resource.
    org_sub_account_uin float
    Organization administrator sub-account Uin.
    policy_id float
    Pilicy ID.
    organization_member_auth_policy_attachment_id str
    ID of the resource.
    orgSubAccountUin Number
    Organization administrator sub-account Uin.
    policyId Number
    Pilicy ID.
    organizationMemberAuthPolicyAttachmentId String
    ID of the resource.

    Outputs

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

    BindType double
    Bind type. 1-Subaccount, 2-User Group.
    CreateTime string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdentityId double
    Identity ID.
    IdentityRoleAliasName string
    Identity role alias name.
    IdentityRoleName string
    Identity role name.
    MemberName string
    Member name.
    MemberUin double
    Member UIN.
    OrgSubAccountName string
    Org sub account name.
    PolicyName string
    Policy name.
    BindType float64
    Bind type. 1-Subaccount, 2-User Group.
    CreateTime string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdentityId float64
    Identity ID.
    IdentityRoleAliasName string
    Identity role alias name.
    IdentityRoleName string
    Identity role name.
    MemberName string
    Member name.
    MemberUin float64
    Member UIN.
    OrgSubAccountName string
    Org sub account name.
    PolicyName string
    Policy name.
    bindType Double
    Bind type. 1-Subaccount, 2-User Group.
    createTime String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    identityId Double
    Identity ID.
    identityRoleAliasName String
    Identity role alias name.
    identityRoleName String
    Identity role name.
    memberName String
    Member name.
    memberUin Double
    Member UIN.
    orgSubAccountName String
    Org sub account name.
    policyName String
    Policy name.
    bindType number
    Bind type. 1-Subaccount, 2-User Group.
    createTime string
    Create time.
    id string
    The provider-assigned unique ID for this managed resource.
    identityId number
    Identity ID.
    identityRoleAliasName string
    Identity role alias name.
    identityRoleName string
    Identity role name.
    memberName string
    Member name.
    memberUin number
    Member UIN.
    orgSubAccountName string
    Org sub account name.
    policyName string
    Policy name.
    bind_type float
    Bind type. 1-Subaccount, 2-User Group.
    create_time str
    Create time.
    id str
    The provider-assigned unique ID for this managed resource.
    identity_id float
    Identity ID.
    identity_role_alias_name str
    Identity role alias name.
    identity_role_name str
    Identity role name.
    member_name str
    Member name.
    member_uin float
    Member UIN.
    org_sub_account_name str
    Org sub account name.
    policy_name str
    Policy name.
    bindType Number
    Bind type. 1-Subaccount, 2-User Group.
    createTime String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    identityId Number
    Identity ID.
    identityRoleAliasName String
    Identity role alias name.
    identityRoleName String
    Identity role name.
    memberName String
    Member name.
    memberUin Number
    Member UIN.
    orgSubAccountName String
    Org sub account name.
    policyName String
    Policy name.

    Look up Existing OrganizationMemberAuthPolicyAttachment Resource

    Get an existing OrganizationMemberAuthPolicyAttachment 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?: OrganizationMemberAuthPolicyAttachmentState, opts?: CustomResourceOptions): OrganizationMemberAuthPolicyAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bind_type: Optional[float] = None,
            create_time: Optional[str] = None,
            identity_id: Optional[float] = None,
            identity_role_alias_name: Optional[str] = None,
            identity_role_name: Optional[str] = None,
            member_name: Optional[str] = None,
            member_uin: Optional[float] = None,
            org_sub_account_name: Optional[str] = None,
            org_sub_account_uin: Optional[float] = None,
            organization_member_auth_policy_attachment_id: Optional[str] = None,
            policy_id: Optional[float] = None,
            policy_name: Optional[str] = None) -> OrganizationMemberAuthPolicyAttachment
    func GetOrganizationMemberAuthPolicyAttachment(ctx *Context, name string, id IDInput, state *OrganizationMemberAuthPolicyAttachmentState, opts ...ResourceOption) (*OrganizationMemberAuthPolicyAttachment, error)
    public static OrganizationMemberAuthPolicyAttachment Get(string name, Input<string> id, OrganizationMemberAuthPolicyAttachmentState? state, CustomResourceOptions? opts = null)
    public static OrganizationMemberAuthPolicyAttachment get(String name, Output<String> id, OrganizationMemberAuthPolicyAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OrganizationMemberAuthPolicyAttachment    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:
    BindType double
    Bind type. 1-Subaccount, 2-User Group.
    CreateTime string
    Create time.
    IdentityId double
    Identity ID.
    IdentityRoleAliasName string
    Identity role alias name.
    IdentityRoleName string
    Identity role name.
    MemberName string
    Member name.
    MemberUin double
    Member UIN.
    OrgSubAccountName string
    Org sub account name.
    OrgSubAccountUin double
    Organization administrator sub-account Uin.
    OrganizationMemberAuthPolicyAttachmentId string
    ID of the resource.
    PolicyId double
    Pilicy ID.
    PolicyName string
    Policy name.
    BindType float64
    Bind type. 1-Subaccount, 2-User Group.
    CreateTime string
    Create time.
    IdentityId float64
    Identity ID.
    IdentityRoleAliasName string
    Identity role alias name.
    IdentityRoleName string
    Identity role name.
    MemberName string
    Member name.
    MemberUin float64
    Member UIN.
    OrgSubAccountName string
    Org sub account name.
    OrgSubAccountUin float64
    Organization administrator sub-account Uin.
    OrganizationMemberAuthPolicyAttachmentId string
    ID of the resource.
    PolicyId float64
    Pilicy ID.
    PolicyName string
    Policy name.
    bindType Double
    Bind type. 1-Subaccount, 2-User Group.
    createTime String
    Create time.
    identityId Double
    Identity ID.
    identityRoleAliasName String
    Identity role alias name.
    identityRoleName String
    Identity role name.
    memberName String
    Member name.
    memberUin Double
    Member UIN.
    orgSubAccountName String
    Org sub account name.
    orgSubAccountUin Double
    Organization administrator sub-account Uin.
    organizationMemberAuthPolicyAttachmentId String
    ID of the resource.
    policyId Double
    Pilicy ID.
    policyName String
    Policy name.
    bindType number
    Bind type. 1-Subaccount, 2-User Group.
    createTime string
    Create time.
    identityId number
    Identity ID.
    identityRoleAliasName string
    Identity role alias name.
    identityRoleName string
    Identity role name.
    memberName string
    Member name.
    memberUin number
    Member UIN.
    orgSubAccountName string
    Org sub account name.
    orgSubAccountUin number
    Organization administrator sub-account Uin.
    organizationMemberAuthPolicyAttachmentId string
    ID of the resource.
    policyId number
    Pilicy ID.
    policyName string
    Policy name.
    bind_type float
    Bind type. 1-Subaccount, 2-User Group.
    create_time str
    Create time.
    identity_id float
    Identity ID.
    identity_role_alias_name str
    Identity role alias name.
    identity_role_name str
    Identity role name.
    member_name str
    Member name.
    member_uin float
    Member UIN.
    org_sub_account_name str
    Org sub account name.
    org_sub_account_uin float
    Organization administrator sub-account Uin.
    organization_member_auth_policy_attachment_id str
    ID of the resource.
    policy_id float
    Pilicy ID.
    policy_name str
    Policy name.
    bindType Number
    Bind type. 1-Subaccount, 2-User Group.
    createTime String
    Create time.
    identityId Number
    Identity ID.
    identityRoleAliasName String
    Identity role alias name.
    identityRoleName String
    Identity role name.
    memberName String
    Member name.
    memberUin Number
    Member UIN.
    orgSubAccountName String
    Org sub account name.
    orgSubAccountUin Number
    Organization administrator sub-account Uin.
    organizationMemberAuthPolicyAttachmentId String
    ID of the resource.
    policyId Number
    Pilicy ID.
    policyName String
    Policy name.

    Import

    Organization member auth policy attachment can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/organizationMemberAuthPolicyAttachment:OrganizationMemberAuthPolicyAttachment example 252421751#100037718939
    

    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.82.23 published on Monday, Sep 15, 2025 by tencentcloudstack