tencentcloud.OrganizationPolicySubAccountAttachment
Explore with Pulumi AI
Provides a resource to create a organization policy_sub_account_attachment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const policySubAccountAttachment = new tencentcloud.OrganizationPolicySubAccountAttachment("policySubAccountAttachment", {
memberUin: 100028582828,
orgSubAccountUin: 100028223737,
policyId: 144256499,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
policy_sub_account_attachment = tencentcloud.OrganizationPolicySubAccountAttachment("policySubAccountAttachment",
member_uin=100028582828,
org_sub_account_uin=100028223737,
policy_id=144256499)
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.NewOrganizationPolicySubAccountAttachment(ctx, "policySubAccountAttachment", &tencentcloud.OrganizationPolicySubAccountAttachmentArgs{
MemberUin: pulumi.Float64(100028582828),
OrgSubAccountUin: pulumi.Float64(100028223737),
PolicyId: pulumi.Float64(144256499),
})
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 policySubAccountAttachment = new Tencentcloud.OrganizationPolicySubAccountAttachment("policySubAccountAttachment", new()
{
MemberUin = 100028582828,
OrgSubAccountUin = 100028223737,
PolicyId = 144256499,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationPolicySubAccountAttachment;
import com.pulumi.tencentcloud.OrganizationPolicySubAccountAttachmentArgs;
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 policySubAccountAttachment = new OrganizationPolicySubAccountAttachment("policySubAccountAttachment", OrganizationPolicySubAccountAttachmentArgs.builder()
.memberUin(100028582828)
.orgSubAccountUin(100028223737)
.policyId(144256499)
.build());
}
}
resources:
policySubAccountAttachment:
type: tencentcloud:OrganizationPolicySubAccountAttachment
properties:
memberUin: 1.00028582828e+11
orgSubAccountUin: 1.00028223737e+11
policyId: 1.44256499e+08
Create OrganizationPolicySubAccountAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationPolicySubAccountAttachment(name: string, args: OrganizationPolicySubAccountAttachmentArgs, opts?: CustomResourceOptions);
@overload
def OrganizationPolicySubAccountAttachment(resource_name: str,
args: OrganizationPolicySubAccountAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationPolicySubAccountAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
member_uin: Optional[float] = None,
org_sub_account_uin: Optional[float] = None,
policy_id: Optional[float] = None,
organization_policy_sub_account_attachment_id: Optional[str] = None)
func NewOrganizationPolicySubAccountAttachment(ctx *Context, name string, args OrganizationPolicySubAccountAttachmentArgs, opts ...ResourceOption) (*OrganizationPolicySubAccountAttachment, error)
public OrganizationPolicySubAccountAttachment(string name, OrganizationPolicySubAccountAttachmentArgs args, CustomResourceOptions? opts = null)
public OrganizationPolicySubAccountAttachment(String name, OrganizationPolicySubAccountAttachmentArgs args)
public OrganizationPolicySubAccountAttachment(String name, OrganizationPolicySubAccountAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationPolicySubAccountAttachment
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 OrganizationPolicySubAccountAttachmentArgs
- 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 OrganizationPolicySubAccountAttachmentArgs
- 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 OrganizationPolicySubAccountAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationPolicySubAccountAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationPolicySubAccountAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OrganizationPolicySubAccountAttachment 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 OrganizationPolicySubAccountAttachment resource accepts the following input properties:
- Member
Uin double - Organization member uin.
- Org
Sub doubleAccount Uin - Organization administrator sub account uin list.
- Policy
Id double - Policy ID.
- Organization
Policy stringSub Account Attachment Id - ID of the resource.
- Member
Uin float64 - Organization member uin.
- Org
Sub float64Account Uin - Organization administrator sub account uin list.
- Policy
Id float64 - Policy ID.
- Organization
Policy stringSub Account Attachment Id - ID of the resource.
- member
Uin Double - Organization member uin.
- org
Sub DoubleAccount Uin - Organization administrator sub account uin list.
- policy
Id Double - Policy ID.
- organization
Policy StringSub Account Attachment Id - ID of the resource.
- member
Uin number - Organization member uin.
- org
Sub numberAccount Uin - Organization administrator sub account uin list.
- policy
Id number - Policy ID.
- organization
Policy stringSub Account Attachment Id - ID of the resource.
- member_
uin float - Organization member uin.
- org_
sub_ floataccount_ uin - Organization administrator sub account uin list.
- policy_
id float - Policy ID.
- organization_
policy_ strsub_ account_ attachment_ id - ID of the resource.
- member
Uin Number - Organization member uin.
- org
Sub NumberAccount Uin - Organization administrator sub account uin list.
- policy
Id Number - Policy ID.
- organization
Policy StringSub Account Attachment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationPolicySubAccountAttachment resource produces the following output properties:
- Create
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Id double - Manage Identity ID.
- Identity
Role stringAlias Name - Identity role alias name.
- Identity
Role stringName - Identity role name.
- Org
Sub stringAccount Name - Organization administrator sub account name.
- Policy
Name string - Policy name.
- Update
Time string - Update time.
- Create
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Id float64 - Manage Identity ID.
- Identity
Role stringAlias Name - Identity role alias name.
- Identity
Role stringName - Identity role name.
- Org
Sub stringAccount Name - Organization administrator sub account name.
- Policy
Name string - Policy name.
- Update
Time string - Update time.
- create
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Id Double - Manage Identity ID.
- identity
Role StringAlias Name - Identity role alias name.
- identity
Role StringName - Identity role name.
- org
Sub StringAccount Name - Organization administrator sub account name.
- policy
Name String - Policy name.
- update
Time String - Update time.
- create
Time string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Id number - Manage Identity ID.
- identity
Role stringAlias Name - Identity role alias name.
- identity
Role stringName - Identity role name.
- org
Sub stringAccount Name - Organization administrator sub account name.
- policy
Name string - Policy name.
- update
Time string - Update time.
- create_
time str - Creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- identity_
id float - Manage Identity ID.
- identity_
role_ stralias_ name - Identity role alias name.
- identity_
role_ strname - Identity role name.
- org_
sub_ straccount_ name - Organization administrator sub account name.
- policy_
name str - Policy name.
- update_
time str - Update time.
- create
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Id Number - Manage Identity ID.
- identity
Role StringAlias Name - Identity role alias name.
- identity
Role StringName - Identity role name.
- org
Sub StringAccount Name - Organization administrator sub account name.
- policy
Name String - Policy name.
- update
Time String - Update time.
Look up Existing OrganizationPolicySubAccountAttachment Resource
Get an existing OrganizationPolicySubAccountAttachment 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?: OrganizationPolicySubAccountAttachmentState, opts?: CustomResourceOptions): OrganizationPolicySubAccountAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = 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_uin: Optional[float] = None,
org_sub_account_name: Optional[str] = None,
org_sub_account_uin: Optional[float] = None,
organization_policy_sub_account_attachment_id: Optional[str] = None,
policy_id: Optional[float] = None,
policy_name: Optional[str] = None,
update_time: Optional[str] = None) -> OrganizationPolicySubAccountAttachment
func GetOrganizationPolicySubAccountAttachment(ctx *Context, name string, id IDInput, state *OrganizationPolicySubAccountAttachmentState, opts ...ResourceOption) (*OrganizationPolicySubAccountAttachment, error)
public static OrganizationPolicySubAccountAttachment Get(string name, Input<string> id, OrganizationPolicySubAccountAttachmentState? state, CustomResourceOptions? opts = null)
public static OrganizationPolicySubAccountAttachment get(String name, Output<String> id, OrganizationPolicySubAccountAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:OrganizationPolicySubAccountAttachment 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.
- Create
Time string - Creation time.
- Identity
Id double - Manage Identity ID.
- Identity
Role stringAlias Name - Identity role alias name.
- Identity
Role stringName - Identity role name.
- Member
Uin double - Organization member uin.
- Org
Sub stringAccount Name - Organization administrator sub account name.
- Org
Sub doubleAccount Uin - Organization administrator sub account uin list.
- Organization
Policy stringSub Account Attachment Id - ID of the resource.
- Policy
Id double - Policy ID.
- Policy
Name string - Policy name.
- Update
Time string - Update time.
- Create
Time string - Creation time.
- Identity
Id float64 - Manage Identity ID.
- Identity
Role stringAlias Name - Identity role alias name.
- Identity
Role stringName - Identity role name.
- Member
Uin float64 - Organization member uin.
- Org
Sub stringAccount Name - Organization administrator sub account name.
- Org
Sub float64Account Uin - Organization administrator sub account uin list.
- Organization
Policy stringSub Account Attachment Id - ID of the resource.
- Policy
Id float64 - Policy ID.
- Policy
Name string - Policy name.
- Update
Time string - Update time.
- create
Time String - Creation time.
- identity
Id Double - Manage Identity ID.
- identity
Role StringAlias Name - Identity role alias name.
- identity
Role StringName - Identity role name.
- member
Uin Double - Organization member uin.
- org
Sub StringAccount Name - Organization administrator sub account name.
- org
Sub DoubleAccount Uin - Organization administrator sub account uin list.
- organization
Policy StringSub Account Attachment Id - ID of the resource.
- policy
Id Double - Policy ID.
- policy
Name String - Policy name.
- update
Time String - Update time.
- create
Time string - Creation time.
- identity
Id number - Manage Identity ID.
- identity
Role stringAlias Name - Identity role alias name.
- identity
Role stringName - Identity role name.
- member
Uin number - Organization member uin.
- org
Sub stringAccount Name - Organization administrator sub account name.
- org
Sub numberAccount Uin - Organization administrator sub account uin list.
- organization
Policy stringSub Account Attachment Id - ID of the resource.
- policy
Id number - Policy ID.
- policy
Name string - Policy name.
- update
Time string - Update time.
- create_
time str - Creation time.
- identity_
id float - Manage Identity ID.
- identity_
role_ stralias_ name - Identity role alias name.
- identity_
role_ strname - Identity role name.
- member_
uin float - Organization member uin.
- org_
sub_ straccount_ name - Organization administrator sub account name.
- org_
sub_ floataccount_ uin - Organization administrator sub account uin list.
- organization_
policy_ strsub_ account_ attachment_ id - ID of the resource.
- policy_
id float - Policy ID.
- policy_
name str - Policy name.
- update_
time str - Update time.
- create
Time String - Creation time.
- identity
Id Number - Manage Identity ID.
- identity
Role StringAlias Name - Identity role alias name.
- identity
Role StringName - Identity role name.
- member
Uin Number - Organization member uin.
- org
Sub StringAccount Name - Organization administrator sub account name.
- org
Sub NumberAccount Uin - Organization administrator sub account uin list.
- organization
Policy StringSub Account Attachment Id - ID of the resource.
- policy
Id Number - Policy ID.
- policy
Name String - Policy name.
- update
Time String - Update time.
Import
organization policy_sub_account_attachment can be imported using the id, e.g.
$ pulumi import tencentcloud:index/organizationPolicySubAccountAttachment:OrganizationPolicySubAccountAttachment policy_sub_account_attachment policyId#memberUin#orgSubAccountUin
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.