1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CamUserPermissionBoundaryAttachment
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.CamUserPermissionBoundaryAttachment

Explore with Pulumi AI

Provides a resource to create a CAM user permission boundary

Example Usage

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

const example = new tencentcloud.CamUserPermissionBoundaryAttachment("example", {
    policyId: 234290251,
    targetUin: 100037718101,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.CamUserPermissionBoundaryAttachment("example",
    policy_id=234290251,
    target_uin=100037718101)
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.NewCamUserPermissionBoundaryAttachment(ctx, "example", &tencentcloud.CamUserPermissionBoundaryAttachmentArgs{
			PolicyId:  pulumi.Float64(234290251),
			TargetUin: pulumi.Float64(100037718101),
		})
		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 example = new Tencentcloud.CamUserPermissionBoundaryAttachment("example", new()
    {
        PolicyId = 234290251,
        TargetUin = 100037718101,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CamUserPermissionBoundaryAttachment;
import com.pulumi.tencentcloud.CamUserPermissionBoundaryAttachmentArgs;
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 CamUserPermissionBoundaryAttachment("example", CamUserPermissionBoundaryAttachmentArgs.builder()
            .policyId(234290251)
            .targetUin(100037718101)
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:CamUserPermissionBoundaryAttachment
    properties:
      policyId: 2.34290251e+08
      targetUin: 1.00037718101e+11
Copy

Create CamUserPermissionBoundaryAttachment Resource

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

Constructor syntax

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

@overload
def CamUserPermissionBoundaryAttachment(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        policy_id: Optional[float] = None,
                                        target_uin: Optional[float] = None,
                                        cam_user_permission_boundary_attachment_id: Optional[str] = None)
func NewCamUserPermissionBoundaryAttachment(ctx *Context, name string, args CamUserPermissionBoundaryAttachmentArgs, opts ...ResourceOption) (*CamUserPermissionBoundaryAttachment, error)
public CamUserPermissionBoundaryAttachment(string name, CamUserPermissionBoundaryAttachmentArgs args, CustomResourceOptions? opts = null)
public CamUserPermissionBoundaryAttachment(String name, CamUserPermissionBoundaryAttachmentArgs args)
public CamUserPermissionBoundaryAttachment(String name, CamUserPermissionBoundaryAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:CamUserPermissionBoundaryAttachment
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. CamUserPermissionBoundaryAttachmentArgs
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. CamUserPermissionBoundaryAttachmentArgs
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. CamUserPermissionBoundaryAttachmentArgs
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. CamUserPermissionBoundaryAttachmentArgs
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. CamUserPermissionBoundaryAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

PolicyId This property is required. double
Policy ID.
TargetUin This property is required. double
Sub account Uin.
CamUserPermissionBoundaryAttachmentId string
ID of the resource.
PolicyId This property is required. float64
Policy ID.
TargetUin This property is required. float64
Sub account Uin.
CamUserPermissionBoundaryAttachmentId string
ID of the resource.
policyId This property is required. Double
Policy ID.
targetUin This property is required. Double
Sub account Uin.
camUserPermissionBoundaryAttachmentId String
ID of the resource.
policyId This property is required. number
Policy ID.
targetUin This property is required. number
Sub account Uin.
camUserPermissionBoundaryAttachmentId string
ID of the resource.
policy_id This property is required. float
Policy ID.
target_uin This property is required. float
Sub account Uin.
cam_user_permission_boundary_attachment_id str
ID of the resource.
policyId This property is required. Number
Policy ID.
targetUin This property is required. Number
Sub account Uin.
camUserPermissionBoundaryAttachmentId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the CamUserPermissionBoundaryAttachment 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 CamUserPermissionBoundaryAttachment Resource

Get an existing CamUserPermissionBoundaryAttachment 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?: CamUserPermissionBoundaryAttachmentState, opts?: CustomResourceOptions): CamUserPermissionBoundaryAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cam_user_permission_boundary_attachment_id: Optional[str] = None,
        policy_id: Optional[float] = None,
        target_uin: Optional[float] = None) -> CamUserPermissionBoundaryAttachment
func GetCamUserPermissionBoundaryAttachment(ctx *Context, name string, id IDInput, state *CamUserPermissionBoundaryAttachmentState, opts ...ResourceOption) (*CamUserPermissionBoundaryAttachment, error)
public static CamUserPermissionBoundaryAttachment Get(string name, Input<string> id, CamUserPermissionBoundaryAttachmentState? state, CustomResourceOptions? opts = null)
public static CamUserPermissionBoundaryAttachment get(String name, Output<String> id, CamUserPermissionBoundaryAttachmentState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CamUserPermissionBoundaryAttachment    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:
CamUserPermissionBoundaryAttachmentId string
ID of the resource.
PolicyId double
Policy ID.
TargetUin double
Sub account Uin.
CamUserPermissionBoundaryAttachmentId string
ID of the resource.
PolicyId float64
Policy ID.
TargetUin float64
Sub account Uin.
camUserPermissionBoundaryAttachmentId String
ID of the resource.
policyId Double
Policy ID.
targetUin Double
Sub account Uin.
camUserPermissionBoundaryAttachmentId string
ID of the resource.
policyId number
Policy ID.
targetUin number
Sub account Uin.
cam_user_permission_boundary_attachment_id str
ID of the resource.
policy_id float
Policy ID.
target_uin float
Sub account Uin.
camUserPermissionBoundaryAttachmentId String
ID of the resource.
policyId Number
Policy ID.
targetUin Number
Sub account Uin.

Import

CAM user permission boundary can be imported using the id, e.g.

$ pulumi import tencentcloud:index/camUserPermissionBoundaryAttachment:CamUserPermissionBoundaryAttachment example 100037718101#234290251
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.