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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
orgManagePolicy:
type: tencentcloud:OrganizationOrgManagePolicy
properties:
content: '{"version":"2.0","statement":[{"effect":"allow","action":"*","resource":"*"}]}'
description: Full access policy
type: SERVICE_CONTROL_POLICY
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 string
- The unique name of the resource.
- args OrganizationOrgManagePolicyArgs
- 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 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 string
- The unique name of the resource.
- args OrganizationOrgManagePolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationOrgManagePolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 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.
- Organization
Org stringManage Policy Id - 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 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.
- Organization
Org stringManage Policy Id - 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 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.
- organization
Org StringManage Policy Id - 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 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.
- organization
Org stringManage Policy Id - 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 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_ strmanage_ policy_ id - 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 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.
- organization
Org StringManage Policy Id - 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:
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
- 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.
- 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.
- Organization
Org stringManage Policy Id - ID of the resource.
- Policy
Id 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.
- Organization
Org stringManage Policy Id - ID of the resource.
- Policy
Id 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.
- organization
Org StringManage Policy Id - ID of the resource.
- policy
Id 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.
- organization
Org stringManage Policy Id - ID of the resource.
- policy
Id 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_ strmanage_ policy_ id - 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.
- organization
Org StringManage Policy Id - ID of the resource.
- policy
Id 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
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.