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

tencentcloud.OrganizationOrgMemberPolicyAttachment

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_member_policy_attachment

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const orgMemberPolicyAttachment = new tencentcloud.OrganizationOrgMemberPolicyAttachment("orgMemberPolicyAttachment", {
        identityId: 1,
        memberUins: [
            100033905366,
            100033905356,
        ],
        policyName: "example-iac",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    org_member_policy_attachment = tencentcloud.OrganizationOrgMemberPolicyAttachment("orgMemberPolicyAttachment",
        identity_id=1,
        member_uins=[
            100033905366,
            100033905356,
        ],
        policy_name="example-iac")
    
    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.NewOrganizationOrgMemberPolicyAttachment(ctx, "orgMemberPolicyAttachment", &tencentcloud.OrganizationOrgMemberPolicyAttachmentArgs{
    			IdentityId: pulumi.Float64(1),
    			MemberUins: pulumi.Float64Array{
    				pulumi.Float64(100033905366),
    				pulumi.Float64(100033905356),
    			},
    			PolicyName: pulumi.String("example-iac"),
    		})
    		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 orgMemberPolicyAttachment = new Tencentcloud.OrganizationOrgMemberPolicyAttachment("orgMemberPolicyAttachment", new()
        {
            IdentityId = 1,
            MemberUins = new[]
            {
                100033905366,
                100033905356,
            },
            PolicyName = "example-iac",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OrganizationOrgMemberPolicyAttachment;
    import com.pulumi.tencentcloud.OrganizationOrgMemberPolicyAttachmentArgs;
    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 orgMemberPolicyAttachment = new OrganizationOrgMemberPolicyAttachment("orgMemberPolicyAttachment", OrganizationOrgMemberPolicyAttachmentArgs.builder()
                .identityId(1)
                .memberUins(            
                    100033905366,
                    100033905356)
                .policyName("example-iac")
                .build());
    
        }
    }
    
    resources:
      orgMemberPolicyAttachment:
        type: tencentcloud:OrganizationOrgMemberPolicyAttachment
        properties:
          identityId: 1
          memberUins:
            - 1.00033905366e+11
            - 1.00033905356e+11
          policyName: example-iac
    

    Create OrganizationOrgMemberPolicyAttachment Resource

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

    Constructor syntax

    new OrganizationOrgMemberPolicyAttachment(name: string, args: OrganizationOrgMemberPolicyAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationOrgMemberPolicyAttachment(resource_name: str,
                                              args: OrganizationOrgMemberPolicyAttachmentArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationOrgMemberPolicyAttachment(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              identity_id: Optional[float] = None,
                                              member_uins: Optional[Sequence[float]] = None,
                                              policy_name: Optional[str] = None,
                                              description: Optional[str] = None,
                                              organization_org_member_policy_attachment_id: Optional[str] = None)
    func NewOrganizationOrgMemberPolicyAttachment(ctx *Context, name string, args OrganizationOrgMemberPolicyAttachmentArgs, opts ...ResourceOption) (*OrganizationOrgMemberPolicyAttachment, error)
    public OrganizationOrgMemberPolicyAttachment(string name, OrganizationOrgMemberPolicyAttachmentArgs args, CustomResourceOptions? opts = null)
    public OrganizationOrgMemberPolicyAttachment(String name, OrganizationOrgMemberPolicyAttachmentArgs args)
    public OrganizationOrgMemberPolicyAttachment(String name, OrganizationOrgMemberPolicyAttachmentArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OrganizationOrgMemberPolicyAttachment
    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 OrganizationOrgMemberPolicyAttachmentArgs
    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 OrganizationOrgMemberPolicyAttachmentArgs
    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 OrganizationOrgMemberPolicyAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationOrgMemberPolicyAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationOrgMemberPolicyAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    IdentityId double
    Organization identity ID.
    MemberUins List<double>
    Member Uin list. Up to 10.
    PolicyName string
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    Description string
    Notes.The maximum length is 128 characters.
    OrganizationOrgMemberPolicyAttachmentId string
    ID of the resource.
    IdentityId float64
    Organization identity ID.
    MemberUins []float64
    Member Uin list. Up to 10.
    PolicyName string
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    Description string
    Notes.The maximum length is 128 characters.
    OrganizationOrgMemberPolicyAttachmentId string
    ID of the resource.
    identityId Double
    Organization identity ID.
    memberUins List<Double>
    Member Uin list. Up to 10.
    policyName String
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    description String
    Notes.The maximum length is 128 characters.
    organizationOrgMemberPolicyAttachmentId String
    ID of the resource.
    identityId number
    Organization identity ID.
    memberUins number[]
    Member Uin list. Up to 10.
    policyName string
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    description string
    Notes.The maximum length is 128 characters.
    organizationOrgMemberPolicyAttachmentId string
    ID of the resource.
    identity_id float
    Organization identity ID.
    member_uins Sequence[float]
    Member Uin list. Up to 10.
    policy_name str
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    description str
    Notes.The maximum length is 128 characters.
    organization_org_member_policy_attachment_id str
    ID of the resource.
    identityId Number
    Organization identity ID.
    memberUins List<Number>
    Member Uin list. Up to 10.
    policyName String
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    description String
    Notes.The maximum length is 128 characters.
    organizationOrgMemberPolicyAttachmentId String
    ID of the resource.

    Outputs

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

    Get an existing OrganizationOrgMemberPolicyAttachment 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?: OrganizationOrgMemberPolicyAttachmentState, opts?: CustomResourceOptions): OrganizationOrgMemberPolicyAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            identity_id: Optional[float] = None,
            member_uins: Optional[Sequence[float]] = None,
            organization_org_member_policy_attachment_id: Optional[str] = None,
            policy_name: Optional[str] = None) -> OrganizationOrgMemberPolicyAttachment
    func GetOrganizationOrgMemberPolicyAttachment(ctx *Context, name string, id IDInput, state *OrganizationOrgMemberPolicyAttachmentState, opts ...ResourceOption) (*OrganizationOrgMemberPolicyAttachment, error)
    public static OrganizationOrgMemberPolicyAttachment Get(string name, Input<string> id, OrganizationOrgMemberPolicyAttachmentState? state, CustomResourceOptions? opts = null)
    public static OrganizationOrgMemberPolicyAttachment get(String name, Output<String> id, OrganizationOrgMemberPolicyAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OrganizationOrgMemberPolicyAttachment    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
    Notes.The maximum length is 128 characters.
    IdentityId double
    Organization identity ID.
    MemberUins List<double>
    Member Uin list. Up to 10.
    OrganizationOrgMemberPolicyAttachmentId string
    ID of the resource.
    PolicyName string
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    Description string
    Notes.The maximum length is 128 characters.
    IdentityId float64
    Organization identity ID.
    MemberUins []float64
    Member Uin list. Up to 10.
    OrganizationOrgMemberPolicyAttachmentId string
    ID of the resource.
    PolicyName string
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    description String
    Notes.The maximum length is 128 characters.
    identityId Double
    Organization identity ID.
    memberUins List<Double>
    Member Uin list. Up to 10.
    organizationOrgMemberPolicyAttachmentId String
    ID of the resource.
    policyName String
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    description string
    Notes.The maximum length is 128 characters.
    identityId number
    Organization identity ID.
    memberUins number[]
    Member Uin list. Up to 10.
    organizationOrgMemberPolicyAttachmentId string
    ID of the resource.
    policyName string
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    description str
    Notes.The maximum length is 128 characters.
    identity_id float
    Organization identity ID.
    member_uins Sequence[float]
    Member Uin list. Up to 10.
    organization_org_member_policy_attachment_id str
    ID of the resource.
    policy_name str
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
    description String
    Notes.The maximum length is 128 characters.
    identityId Number
    Organization identity ID.
    memberUins List<Number>
    Member Uin list. Up to 10.
    organizationOrgMemberPolicyAttachmentId String
    ID of the resource.
    policyName String
    Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.

    Import

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

    $ pulumi import tencentcloud:index/organizationOrgMemberPolicyAttachment:OrganizationOrgMemberPolicyAttachment org_member_policy_attachment org_member_policy_attachment_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