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,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CamUserPermissionBoundaryAttachment("example",
policy_id=234290251,
target_uin=100037718101)
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
})
}
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,
});
});
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());
}
}
resources:
example:
type: tencentcloud:CamUserPermissionBoundaryAttachment
properties:
policyId: 2.34290251e+08
targetUin: 1.00037718101e+11
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 string
- The unique name of the resource.
- args CamUserPermissionBoundaryAttachmentArgs
- 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 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 string
- The unique name of the resource.
- args CamUserPermissionBoundaryAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CamUserPermissionBoundaryAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Policy
Id double - Policy ID.
- Target
Uin double - Sub account Uin.
- Cam
User stringPermission Boundary Attachment Id - ID of the resource.
- Policy
Id float64 - Policy ID.
- Target
Uin float64 - Sub account Uin.
- Cam
User stringPermission Boundary Attachment Id - ID of the resource.
- policy
Id Double - Policy ID.
- target
Uin Double - Sub account Uin.
- cam
User StringPermission Boundary Attachment Id - ID of the resource.
- policy
Id number - Policy ID.
- target
Uin number - Sub account Uin.
- cam
User stringPermission Boundary Attachment Id - ID of the resource.
- policy_
id float - Policy ID.
- target_
uin float - Sub account Uin.
- cam_
user_ strpermission_ boundary_ attachment_ id - ID of the resource.
- policy
Id Number - Policy ID.
- target
Uin Number - Sub account Uin.
- cam
User StringPermission Boundary Attachment Id - 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
- 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.
- Cam
User stringPermission Boundary Attachment Id - ID of the resource.
- Policy
Id double - Policy ID.
- Target
Uin double - Sub account Uin.
- Cam
User stringPermission Boundary Attachment Id - ID of the resource.
- Policy
Id float64 - Policy ID.
- Target
Uin float64 - Sub account Uin.
- cam
User StringPermission Boundary Attachment Id - ID of the resource.
- policy
Id Double - Policy ID.
- target
Uin Double - Sub account Uin.
- cam
User stringPermission Boundary Attachment Id - ID of the resource.
- policy
Id number - Policy ID.
- target
Uin number - Sub account Uin.
- cam_
user_ strpermission_ boundary_ attachment_ id - ID of the resource.
- policy_
id float - Policy ID.
- target_
uin float - Sub account Uin.
- cam
User StringPermission Boundary Attachment Id - ID of the resource.
- policy
Id Number - Policy ID.
- target
Uin 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
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.