tencentcloud.OrganizationMemberAuthPolicyAttachment
Explore with Pulumi AI
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:
- Org
Sub doubleAccount Uin - Organization administrator sub-account Uin.
- Policy
Id double - Pilicy ID.
- Organization
Member stringAuth Policy Attachment Id - ID of the resource.
- Org
Sub float64Account Uin - Organization administrator sub-account Uin.
- Policy
Id float64 - Pilicy ID.
- Organization
Member stringAuth Policy Attachment Id - ID of the resource.
- org
Sub DoubleAccount Uin - Organization administrator sub-account Uin.
- policy
Id Double - Pilicy ID.
- organization
Member StringAuth Policy Attachment Id - ID of the resource.
- org
Sub numberAccount Uin - Organization administrator sub-account Uin.
- policy
Id number - Pilicy ID.
- organization
Member stringAuth Policy Attachment Id - ID of the resource.
- org_
sub_ floataccount_ uin - Organization administrator sub-account Uin.
- policy_
id float - Pilicy ID.
- organization_
member_ strauth_ policy_ attachment_ id - ID of the resource.
- org
Sub NumberAccount Uin - Organization administrator sub-account Uin.
- policy
Id Number - Pilicy ID.
- organization
Member StringAuth Policy Attachment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationMemberAuthPolicyAttachment resource produces the following output properties:
- Bind
Type double - Bind type. 1-Subaccount, 2-User Group.
- Create
Time string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Id double - Identity ID.
- Identity
Role stringAlias Name - Identity role alias name.
- Identity
Role stringName - Identity role name.
- Member
Name string - Member name.
- Member
Uin double - Member UIN.
- Org
Sub stringAccount Name - Org sub account name.
- Policy
Name string - Policy name.
- Bind
Type float64 - Bind type. 1-Subaccount, 2-User Group.
- Create
Time string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Id float64 - Identity ID.
- Identity
Role stringAlias Name - Identity role alias name.
- Identity
Role stringName - Identity role name.
- Member
Name string - Member name.
- Member
Uin float64 - Member UIN.
- Org
Sub stringAccount Name - Org sub account name.
- Policy
Name string - Policy name.
- bind
Type Double - Bind type. 1-Subaccount, 2-User Group.
- create
Time String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Id Double - Identity ID.
- identity
Role StringAlias Name - Identity role alias name.
- identity
Role StringName - Identity role name.
- member
Name String - Member name.
- member
Uin Double - Member UIN.
- org
Sub StringAccount Name - Org sub account name.
- policy
Name String - Policy name.
- bind
Type number - Bind type. 1-Subaccount, 2-User Group.
- create
Time string - Create time.
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Id number - Identity ID.
- identity
Role stringAlias Name - Identity role alias name.
- identity
Role stringName - Identity role name.
- member
Name string - Member name.
- member
Uin number - Member UIN.
- org
Sub stringAccount Name - Org sub account name.
- policy
Name 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_ stralias_ name - Identity role alias name.
- identity_
role_ strname - Identity role name.
- member_
name str - Member name.
- member_
uin float - Member UIN.
- org_
sub_ straccount_ name - Org sub account name.
- policy_
name str - Policy name.
- bind
Type Number - Bind type. 1-Subaccount, 2-User Group.
- create
Time String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Id Number - Identity ID.
- identity
Role StringAlias Name - Identity role alias name.
- identity
Role StringName - Identity role name.
- member
Name String - Member name.
- member
Uin Number - Member UIN.
- org
Sub StringAccount Name - Org sub account name.
- policy
Name 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.
- Bind
Type double - Bind type. 1-Subaccount, 2-User Group.
- Create
Time string - Create time.
- Identity
Id double - Identity ID.
- Identity
Role stringAlias Name - Identity role alias name.
- Identity
Role stringName - Identity role name.
- Member
Name string - Member name.
- Member
Uin double - Member UIN.
- Org
Sub stringAccount Name - Org sub account name.
- Org
Sub doubleAccount Uin - Organization administrator sub-account Uin.
- Organization
Member stringAuth Policy Attachment Id - ID of the resource.
- Policy
Id double - Pilicy ID.
- Policy
Name string - Policy name.
- Bind
Type float64 - Bind type. 1-Subaccount, 2-User Group.
- Create
Time string - Create time.
- Identity
Id float64 - Identity ID.
- Identity
Role stringAlias Name - Identity role alias name.
- Identity
Role stringName - Identity role name.
- Member
Name string - Member name.
- Member
Uin float64 - Member UIN.
- Org
Sub stringAccount Name - Org sub account name.
- Org
Sub float64Account Uin - Organization administrator sub-account Uin.
- Organization
Member stringAuth Policy Attachment Id - ID of the resource.
- Policy
Id float64 - Pilicy ID.
- Policy
Name string - Policy name.
- bind
Type Double - Bind type. 1-Subaccount, 2-User Group.
- create
Time String - Create time.
- identity
Id Double - Identity ID.
- identity
Role StringAlias Name - Identity role alias name.
- identity
Role StringName - Identity role name.
- member
Name String - Member name.
- member
Uin Double - Member UIN.
- org
Sub StringAccount Name - Org sub account name.
- org
Sub DoubleAccount Uin - Organization administrator sub-account Uin.
- organization
Member StringAuth Policy Attachment Id - ID of the resource.
- policy
Id Double - Pilicy ID.
- policy
Name String - Policy name.
- bind
Type number - Bind type. 1-Subaccount, 2-User Group.
- create
Time string - Create time.
- identity
Id number - Identity ID.
- identity
Role stringAlias Name - Identity role alias name.
- identity
Role stringName - Identity role name.
- member
Name string - Member name.
- member
Uin number - Member UIN.
- org
Sub stringAccount Name - Org sub account name.
- org
Sub numberAccount Uin - Organization administrator sub-account Uin.
- organization
Member stringAuth Policy Attachment Id - ID of the resource.
- policy
Id number - Pilicy ID.
- policy
Name 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_ stralias_ name - Identity role alias name.
- identity_
role_ strname - Identity role name.
- member_
name str - Member name.
- member_
uin float - Member UIN.
- org_
sub_ straccount_ name - Org sub account name.
- org_
sub_ floataccount_ uin - Organization administrator sub-account Uin.
- organization_
member_ strauth_ policy_ attachment_ id - ID of the resource.
- policy_
id float - Pilicy ID.
- policy_
name str - Policy name.
- bind
Type Number - Bind type. 1-Subaccount, 2-User Group.
- create
Time String - Create time.
- identity
Id Number - Identity ID.
- identity
Role StringAlias Name - Identity role alias name.
- identity
Role StringName - Identity role name.
- member
Name String - Member name.
- member
Uin Number - Member UIN.
- org
Sub StringAccount Name - Org sub account name.
- org
Sub NumberAccount Uin - Organization administrator sub-account Uin.
- organization
Member StringAuth Policy Attachment Id - ID of the resource.
- policy
Id Number - Pilicy ID.
- policy
Name 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.