tencentcloud.OrganizationOrgMemberPolicyAttachment
Explore with Pulumi AI
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:
- Identity
Id double - Organization identity ID.
- Member
Uins List<double> - Member Uin list. Up to 10.
- Policy
Name string - Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
- Description string
- Notes.The maximum length is 128 characters.
- Organization
Org stringMember Policy Attachment Id - ID of the resource.
- Identity
Id float64 - Organization identity ID.
- Member
Uins []float64 - Member Uin list. Up to 10.
- Policy
Name string - Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
- Description string
- Notes.The maximum length is 128 characters.
- Organization
Org stringMember Policy Attachment Id - ID of the resource.
- identity
Id Double - Organization identity ID.
- member
Uins List<Double> - Member Uin list. Up to 10.
- policy
Name String - Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
- description String
- Notes.The maximum length is 128 characters.
- organization
Org StringMember Policy Attachment Id - ID of the resource.
- identity
Id number - Organization identity ID.
- member
Uins number[] - Member Uin list. Up to 10.
- policy
Name string - Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
- description string
- Notes.The maximum length is 128 characters.
- organization
Org stringMember Policy Attachment Id - 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_ strmember_ policy_ attachment_ id - ID of the resource.
- identity
Id Number - Organization identity ID.
- member
Uins List<Number> - Member Uin list. Up to 10.
- policy
Name String - Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
- description String
- Notes.The maximum length is 128 characters.
- organization
Org StringMember Policy Attachment Id - 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.
- Description string
- Notes.The maximum length is 128 characters.
- Identity
Id double - Organization identity ID.
- Member
Uins List<double> - Member Uin list. Up to 10.
- Organization
Org stringMember Policy Attachment Id - ID of the resource.
- Policy
Name string - Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
- Description string
- Notes.The maximum length is 128 characters.
- Identity
Id float64 - Organization identity ID.
- Member
Uins []float64 - Member Uin list. Up to 10.
- Organization
Org stringMember Policy Attachment Id - ID of the resource.
- Policy
Name string - Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
- description String
- Notes.The maximum length is 128 characters.
- identity
Id Double - Organization identity ID.
- member
Uins List<Double> - Member Uin list. Up to 10.
- organization
Org StringMember Policy Attachment Id - ID of the resource.
- policy
Name String - Policy name.The maximum length is 128 characters, supporting English letters, numbers, and symbols +=,.@_-.
- description string
- Notes.The maximum length is 128 characters.
- identity
Id number - Organization identity ID.
- member
Uins number[] - Member Uin list. Up to 10.
- organization
Org stringMember Policy Attachment Id - ID of the resource.
- policy
Name 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_ strmember_ policy_ attachment_ id - 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.
- identity
Id Number - Organization identity ID.
- member
Uins List<Number> - Member Uin list. Up to 10.
- organization
Org StringMember Policy Attachment Id - ID of the resource.
- policy
Name 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.