1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OrganizationOrgManagePolicy
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.OrganizationOrgManagePolicy

Explore with Pulumi AI

Provides a resource to create a organization org_manage_policy

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const orgManagePolicy = new tencentcloud.OrganizationOrgManagePolicy("orgManagePolicy", {
    content: "{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}",
    description: "Full access policy",
    type: "SERVICE_CONTROL_POLICY",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

org_manage_policy = tencentcloud.OrganizationOrgManagePolicy("orgManagePolicy",
    content="{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}",
    description="Full access policy",
    type="SERVICE_CONTROL_POLICY")
Copy
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.NewOrganizationOrgManagePolicy(ctx, "orgManagePolicy", &tencentcloud.OrganizationOrgManagePolicyArgs{
			Content:     pulumi.String("{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}"),
			Description: pulumi.String("Full access policy"),
			Type:        pulumi.String("SERVICE_CONTROL_POLICY"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var orgManagePolicy = new Tencentcloud.OrganizationOrgManagePolicy("orgManagePolicy", new()
    {
        Content = "{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}",
        Description = "Full access policy",
        Type = "SERVICE_CONTROL_POLICY",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationOrgManagePolicy;
import com.pulumi.tencentcloud.OrganizationOrgManagePolicyArgs;
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 orgManagePolicy = new OrganizationOrgManagePolicy("orgManagePolicy", OrganizationOrgManagePolicyArgs.builder()
            .content("{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}")
            .description("Full access policy")
            .type("SERVICE_CONTROL_POLICY")
            .build());

    }
}
Copy
resources:
  orgManagePolicy:
    type: tencentcloud:OrganizationOrgManagePolicy
    properties:
      content: '{"version":"2.0","statement":[{"effect":"allow","action":"*","resource":"*"}]}'
      description: Full access policy
      type: SERVICE_CONTROL_POLICY
Copy

Create OrganizationOrgManagePolicy Resource

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

Constructor syntax

new OrganizationOrgManagePolicy(name: string, args: OrganizationOrgManagePolicyArgs, opts?: CustomResourceOptions);
@overload
def OrganizationOrgManagePolicy(resource_name: str,
                                args: OrganizationOrgManagePolicyArgs,
                                opts: Optional[ResourceOptions] = None)

@overload
def OrganizationOrgManagePolicy(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                content: Optional[str] = None,
                                description: Optional[str] = None,
                                name: Optional[str] = None,
                                organization_org_manage_policy_id: Optional[str] = None,
                                type: Optional[str] = None)
func NewOrganizationOrgManagePolicy(ctx *Context, name string, args OrganizationOrgManagePolicyArgs, opts ...ResourceOption) (*OrganizationOrgManagePolicy, error)
public OrganizationOrgManagePolicy(string name, OrganizationOrgManagePolicyArgs args, CustomResourceOptions? opts = null)
public OrganizationOrgManagePolicy(String name, OrganizationOrgManagePolicyArgs args)
public OrganizationOrgManagePolicy(String name, OrganizationOrgManagePolicyArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationOrgManagePolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationOrgManagePolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OrganizationOrgManagePolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationOrgManagePolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationOrgManagePolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OrganizationOrgManagePolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Content This property is required. string
Policy content. Refer to the CAM policy syntax.
Description string
Policy description.
Name string
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
OrganizationOrgManagePolicyId string
ID of the resource.
Type string
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
Content This property is required. string
Policy content. Refer to the CAM policy syntax.
Description string
Policy description.
Name string
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
OrganizationOrgManagePolicyId string
ID of the resource.
Type string
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
content This property is required. String
Policy content. Refer to the CAM policy syntax.
description String
Policy description.
name String
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
organizationOrgManagePolicyId String
ID of the resource.
type String
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
content This property is required. string
Policy content. Refer to the CAM policy syntax.
description string
Policy description.
name string
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
organizationOrgManagePolicyId string
ID of the resource.
type string
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
content This property is required. str
Policy content. Refer to the CAM policy syntax.
description str
Policy description.
name str
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
organization_org_manage_policy_id str
ID of the resource.
type str
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
content This property is required. String
Policy content. Refer to the CAM policy syntax.
description String
Policy description.
name String
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
organizationOrgManagePolicyId String
ID of the resource.
type String
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
PolicyId string
Policy Id.
Id string
The provider-assigned unique ID for this managed resource.
PolicyId string
Policy Id.
id String
The provider-assigned unique ID for this managed resource.
policyId String
Policy Id.
id string
The provider-assigned unique ID for this managed resource.
policyId string
Policy Id.
id str
The provider-assigned unique ID for this managed resource.
policy_id str
Policy Id.
id String
The provider-assigned unique ID for this managed resource.
policyId String
Policy Id.

Look up Existing OrganizationOrgManagePolicy Resource

Get an existing OrganizationOrgManagePolicy 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?: OrganizationOrgManagePolicyState, opts?: CustomResourceOptions): OrganizationOrgManagePolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        content: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        organization_org_manage_policy_id: Optional[str] = None,
        policy_id: Optional[str] = None,
        type: Optional[str] = None) -> OrganizationOrgManagePolicy
func GetOrganizationOrgManagePolicy(ctx *Context, name string, id IDInput, state *OrganizationOrgManagePolicyState, opts ...ResourceOption) (*OrganizationOrgManagePolicy, error)
public static OrganizationOrgManagePolicy Get(string name, Input<string> id, OrganizationOrgManagePolicyState? state, CustomResourceOptions? opts = null)
public static OrganizationOrgManagePolicy get(String name, Output<String> id, OrganizationOrgManagePolicyState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:OrganizationOrgManagePolicy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Content string
Policy content. Refer to the CAM policy syntax.
Description string
Policy description.
Name string
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
OrganizationOrgManagePolicyId string
ID of the resource.
PolicyId string
Policy Id.
Type string
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
Content string
Policy content. Refer to the CAM policy syntax.
Description string
Policy description.
Name string
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
OrganizationOrgManagePolicyId string
ID of the resource.
PolicyId string
Policy Id.
Type string
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
content String
Policy content. Refer to the CAM policy syntax.
description String
Policy description.
name String
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
organizationOrgManagePolicyId String
ID of the resource.
policyId String
Policy Id.
type String
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
content string
Policy content. Refer to the CAM policy syntax.
description string
Policy description.
name string
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
organizationOrgManagePolicyId string
ID of the resource.
policyId string
Policy Id.
type string
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
content str
Policy content. Refer to the CAM policy syntax.
description str
Policy description.
name str
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
organization_org_manage_policy_id str
ID of the resource.
policy_id str
Policy Id.
type str
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.
content String
Policy content. Refer to the CAM policy syntax.
description String
Policy description.
name String
Policy name. The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
organizationOrgManagePolicyId String
ID of the resource.
policyId String
Policy Id.
type String
Policy type. Default value is SERVICE_CONTROL_POLICY. Valid values:

  • SERVICE_CONTROL_POLICY: Service control policy.
  • TAG_POLICY: Tag policy.

Import

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

$ pulumi import tencentcloud:index/organizationOrgManagePolicy:OrganizationOrgManagePolicy org_manage_policy policy_id#type
Copy

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.