tencentcloud.OrganizationOrgManagePolicyTarget
Explore with Pulumi AI
Provides a resource to create a organization org_manage_policy_target
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const orgManagePolicyTarget = new tencentcloud.OrganizationOrgManagePolicyTarget("orgManagePolicyTarget", {
policyId: 100001,
policyType: "SERVICE_CONTROL_POLICY",
targetId: 10001,
targetType: "NODE",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
org_manage_policy_target = tencentcloud.OrganizationOrgManagePolicyTarget("orgManagePolicyTarget",
policy_id=100001,
policy_type="SERVICE_CONTROL_POLICY",
target_id=10001,
target_type="NODE")
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.NewOrganizationOrgManagePolicyTarget(ctx, "orgManagePolicyTarget", &tencentcloud.OrganizationOrgManagePolicyTargetArgs{
PolicyId: pulumi.Float64(100001),
PolicyType: pulumi.String("SERVICE_CONTROL_POLICY"),
TargetId: pulumi.Float64(10001),
TargetType: pulumi.String("NODE"),
})
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 orgManagePolicyTarget = new Tencentcloud.OrganizationOrgManagePolicyTarget("orgManagePolicyTarget", new()
{
PolicyId = 100001,
PolicyType = "SERVICE_CONTROL_POLICY",
TargetId = 10001,
TargetType = "NODE",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationOrgManagePolicyTarget;
import com.pulumi.tencentcloud.OrganizationOrgManagePolicyTargetArgs;
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 orgManagePolicyTarget = new OrganizationOrgManagePolicyTarget("orgManagePolicyTarget", OrganizationOrgManagePolicyTargetArgs.builder()
.policyId(100001)
.policyType("SERVICE_CONTROL_POLICY")
.targetId(10001)
.targetType("NODE")
.build());
}
}
resources:
orgManagePolicyTarget:
type: tencentcloud:OrganizationOrgManagePolicyTarget
properties:
policyId: 100001
policyType: SERVICE_CONTROL_POLICY
targetId: 10001
targetType: NODE
Create OrganizationOrgManagePolicyTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationOrgManagePolicyTarget(name: string, args: OrganizationOrgManagePolicyTargetArgs, opts?: CustomResourceOptions);
@overload
def OrganizationOrgManagePolicyTarget(resource_name: str,
args: OrganizationOrgManagePolicyTargetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationOrgManagePolicyTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
policy_id: Optional[float] = None,
target_id: Optional[float] = None,
target_type: Optional[str] = None,
organization_org_manage_policy_target_id: Optional[str] = None,
policy_type: Optional[str] = None)
func NewOrganizationOrgManagePolicyTarget(ctx *Context, name string, args OrganizationOrgManagePolicyTargetArgs, opts ...ResourceOption) (*OrganizationOrgManagePolicyTarget, error)
public OrganizationOrgManagePolicyTarget(string name, OrganizationOrgManagePolicyTargetArgs args, CustomResourceOptions? opts = null)
public OrganizationOrgManagePolicyTarget(String name, OrganizationOrgManagePolicyTargetArgs args)
public OrganizationOrgManagePolicyTarget(String name, OrganizationOrgManagePolicyTargetArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationOrgManagePolicyTarget
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 OrganizationOrgManagePolicyTargetArgs
- 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 OrganizationOrgManagePolicyTargetArgs
- 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 OrganizationOrgManagePolicyTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationOrgManagePolicyTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationOrgManagePolicyTargetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OrganizationOrgManagePolicyTarget 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 OrganizationOrgManagePolicyTarget resource accepts the following input properties:
- Policy
Id double - Policy Id.
- Target
Id double - Binding target ID of the policy. Member Uin or Department ID.
- Target
Type string - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- Organization
Org stringManage Policy Target Id - ID of the resource.
- Policy
Type string - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- Policy
Id float64 - Policy Id.
- Target
Id float64 - Binding target ID of the policy. Member Uin or Department ID.
- Target
Type string - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- Organization
Org stringManage Policy Target Id - ID of the resource.
- Policy
Type string - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- policy
Id Double - Policy Id.
- target
Id Double - Binding target ID of the policy. Member Uin or Department ID.
- target
Type String - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- organization
Org StringManage Policy Target Id - ID of the resource.
- policy
Type String - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- policy
Id number - Policy Id.
- target
Id number - Binding target ID of the policy. Member Uin or Department ID.
- target
Type string - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- organization
Org stringManage Policy Target Id - ID of the resource.
- policy
Type string - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- policy_
id float - Policy Id.
- target_
id float - Binding target ID of the policy. Member Uin or Department ID.
- target_
type str - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- organization_
org_ strmanage_ policy_ target_ id - ID of the resource.
- policy_
type str - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- policy
Id Number - Policy Id.
- target
Id Number - Binding target ID of the policy. Member Uin or Department ID.
- target
Type String - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- organization
Org StringManage Policy Target Id - ID of the resource.
- policy
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 OrganizationOrgManagePolicyTarget 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 OrganizationOrgManagePolicyTarget Resource
Get an existing OrganizationOrgManagePolicyTarget 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?: OrganizationOrgManagePolicyTargetState, opts?: CustomResourceOptions): OrganizationOrgManagePolicyTarget
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
organization_org_manage_policy_target_id: Optional[str] = None,
policy_id: Optional[float] = None,
policy_type: Optional[str] = None,
target_id: Optional[float] = None,
target_type: Optional[str] = None) -> OrganizationOrgManagePolicyTarget
func GetOrganizationOrgManagePolicyTarget(ctx *Context, name string, id IDInput, state *OrganizationOrgManagePolicyTargetState, opts ...ResourceOption) (*OrganizationOrgManagePolicyTarget, error)
public static OrganizationOrgManagePolicyTarget Get(string name, Input<string> id, OrganizationOrgManagePolicyTargetState? state, CustomResourceOptions? opts = null)
public static OrganizationOrgManagePolicyTarget get(String name, Output<String> id, OrganizationOrgManagePolicyTargetState state, CustomResourceOptions options)
resources: _: type: tencentcloud:OrganizationOrgManagePolicyTarget 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.
- Organization
Org stringManage Policy Target Id - ID of the resource.
- Policy
Id double - Policy Id.
- Policy
Type string - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- Target
Id double - Binding target ID of the policy. Member Uin or Department ID.
- Target
Type string - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- Organization
Org stringManage Policy Target Id - ID of the resource.
- Policy
Id float64 - Policy Id.
- Policy
Type string - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- Target
Id float64 - Binding target ID of the policy. Member Uin or Department ID.
- Target
Type string - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- organization
Org StringManage Policy Target Id - ID of the resource.
- policy
Id Double - Policy Id.
- policy
Type String - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- target
Id Double - Binding target ID of the policy. Member Uin or Department ID.
- target
Type String - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- organization
Org stringManage Policy Target Id - ID of the resource.
- policy
Id number - Policy Id.
- policy
Type string - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- target
Id number - Binding target ID of the policy. Member Uin or Department ID.
- target
Type string - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- organization_
org_ strmanage_ policy_ target_ id - ID of the resource.
- policy_
id float - Policy Id.
- policy_
type str - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- target_
id float - Binding target ID of the policy. Member Uin or Department ID.
- target_
type str - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
- organization
Org StringManage Policy Target Id - ID of the resource.
- policy
Id Number - Policy Id.
- policy
Type String - Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
SERVICE_CONTROL_POLICY
: Service control policy.TAG_POLICY
: Tag policy.
- target
Id Number - Binding target ID of the policy. Member Uin or Department ID.
- target
Type String - Target type.
Valid values:
NODE
: Department.MEMBER
: Check Member.
Import
organization org_manage_policy_target can be imported using the id, e.g.
$ pulumi import tencentcloud:index/organizationOrgManagePolicyTarget:OrganizationOrgManagePolicyTarget org_manage_policy_target policy_type#policy_id#target_type#target_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.