1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CamRolePermissionBoundaryAttachment
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CamRolePermissionBoundaryAttachment

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a CAM role permission boundary attachment

    Example Usage

    Use role_name

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CamRolePermissionBoundaryAttachment("example", {
        policyId: 1,
        roleName: "tf-example",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CamRolePermissionBoundaryAttachment("example",
        policy_id=1,
        role_name="tf-example")
    
    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.NewCamRolePermissionBoundaryAttachment(ctx, "example", &tencentcloud.CamRolePermissionBoundaryAttachmentArgs{
    			PolicyId: pulumi.Float64(1),
    			RoleName: pulumi.String("tf-example"),
    		})
    		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.CamRolePermissionBoundaryAttachment("example", new()
        {
            PolicyId = 1,
            RoleName = "tf-example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CamRolePermissionBoundaryAttachment;
    import com.pulumi.tencentcloud.CamRolePermissionBoundaryAttachmentArgs;
    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 CamRolePermissionBoundaryAttachment("example", CamRolePermissionBoundaryAttachmentArgs.builder()
                .policyId(1)
                .roleName("tf-example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CamRolePermissionBoundaryAttachment
        properties:
          policyId: 1
          roleName: tf-example
    

    Use role_id

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CamRolePermissionBoundaryAttachment("example", {
        policyId: 1,
        roleId: "4611686018441060141",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CamRolePermissionBoundaryAttachment("example",
        policy_id=1,
        role_id="4611686018441060141")
    
    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.NewCamRolePermissionBoundaryAttachment(ctx, "example", &tencentcloud.CamRolePermissionBoundaryAttachmentArgs{
    			PolicyId: pulumi.Float64(1),
    			RoleId:   pulumi.String("4611686018441060141"),
    		})
    		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.CamRolePermissionBoundaryAttachment("example", new()
        {
            PolicyId = 1,
            RoleId = "4611686018441060141",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CamRolePermissionBoundaryAttachment;
    import com.pulumi.tencentcloud.CamRolePermissionBoundaryAttachmentArgs;
    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 CamRolePermissionBoundaryAttachment("example", CamRolePermissionBoundaryAttachmentArgs.builder()
                .policyId(1)
                .roleId("4611686018441060141")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CamRolePermissionBoundaryAttachment
        properties:
          policyId: 1
          roleId: '4611686018441060141'
    

    Use all

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CamRolePermissionBoundaryAttachment("example", {
        policyId: 1,
        roleId: "4611686018441060141",
        roleName: "tf-example",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CamRolePermissionBoundaryAttachment("example",
        policy_id=1,
        role_id="4611686018441060141",
        role_name="tf-example")
    
    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.NewCamRolePermissionBoundaryAttachment(ctx, "example", &tencentcloud.CamRolePermissionBoundaryAttachmentArgs{
    			PolicyId: pulumi.Float64(1),
    			RoleId:   pulumi.String("4611686018441060141"),
    			RoleName: pulumi.String("tf-example"),
    		})
    		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.CamRolePermissionBoundaryAttachment("example", new()
        {
            PolicyId = 1,
            RoleId = "4611686018441060141",
            RoleName = "tf-example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CamRolePermissionBoundaryAttachment;
    import com.pulumi.tencentcloud.CamRolePermissionBoundaryAttachmentArgs;
    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 CamRolePermissionBoundaryAttachment("example", CamRolePermissionBoundaryAttachmentArgs.builder()
                .policyId(1)
                .roleId("4611686018441060141")
                .roleName("tf-example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CamRolePermissionBoundaryAttachment
        properties:
          policyId: 1
          roleId: '4611686018441060141'
          roleName: tf-example
    

    Create CamRolePermissionBoundaryAttachment Resource

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

    Constructor syntax

    new CamRolePermissionBoundaryAttachment(name: string, args: CamRolePermissionBoundaryAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def CamRolePermissionBoundaryAttachment(resource_name: str,
                                            args: CamRolePermissionBoundaryAttachmentArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CamRolePermissionBoundaryAttachment(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            policy_id: Optional[float] = None,
                                            cam_role_permission_boundary_attachment_id: Optional[str] = None,
                                            role_id: Optional[str] = None,
                                            role_name: Optional[str] = None)
    func NewCamRolePermissionBoundaryAttachment(ctx *Context, name string, args CamRolePermissionBoundaryAttachmentArgs, opts ...ResourceOption) (*CamRolePermissionBoundaryAttachment, error)
    public CamRolePermissionBoundaryAttachment(string name, CamRolePermissionBoundaryAttachmentArgs args, CustomResourceOptions? opts = null)
    public CamRolePermissionBoundaryAttachment(String name, CamRolePermissionBoundaryAttachmentArgs args)
    public CamRolePermissionBoundaryAttachment(String name, CamRolePermissionBoundaryAttachmentArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CamRolePermissionBoundaryAttachment
    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 CamRolePermissionBoundaryAttachmentArgs
    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 CamRolePermissionBoundaryAttachmentArgs
    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 CamRolePermissionBoundaryAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CamRolePermissionBoundaryAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CamRolePermissionBoundaryAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    PolicyId double
    Role ID.
    CamRolePermissionBoundaryAttachmentId string
    ID of the resource.
    RoleId string
    Role ID (at least one should be filled in with the role name).
    RoleName string
    Role name (at least one should be filled in with the role ID).
    PolicyId float64
    Role ID.
    CamRolePermissionBoundaryAttachmentId string
    ID of the resource.
    RoleId string
    Role ID (at least one should be filled in with the role name).
    RoleName string
    Role name (at least one should be filled in with the role ID).
    policyId Double
    Role ID.
    camRolePermissionBoundaryAttachmentId String
    ID of the resource.
    roleId String
    Role ID (at least one should be filled in with the role name).
    roleName String
    Role name (at least one should be filled in with the role ID).
    policyId number
    Role ID.
    camRolePermissionBoundaryAttachmentId string
    ID of the resource.
    roleId string
    Role ID (at least one should be filled in with the role name).
    roleName string
    Role name (at least one should be filled in with the role ID).
    policy_id float
    Role ID.
    cam_role_permission_boundary_attachment_id str
    ID of the resource.
    role_id str
    Role ID (at least one should be filled in with the role name).
    role_name str
    Role name (at least one should be filled in with the role ID).
    policyId Number
    Role ID.
    camRolePermissionBoundaryAttachmentId String
    ID of the resource.
    roleId String
    Role ID (at least one should be filled in with the role name).
    roleName String
    Role name (at least one should be filled in with the role ID).

    Outputs

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

    Get an existing CamRolePermissionBoundaryAttachment 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?: CamRolePermissionBoundaryAttachmentState, opts?: CustomResourceOptions): CamRolePermissionBoundaryAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cam_role_permission_boundary_attachment_id: Optional[str] = None,
            policy_id: Optional[float] = None,
            role_id: Optional[str] = None,
            role_name: Optional[str] = None) -> CamRolePermissionBoundaryAttachment
    func GetCamRolePermissionBoundaryAttachment(ctx *Context, name string, id IDInput, state *CamRolePermissionBoundaryAttachmentState, opts ...ResourceOption) (*CamRolePermissionBoundaryAttachment, error)
    public static CamRolePermissionBoundaryAttachment Get(string name, Input<string> id, CamRolePermissionBoundaryAttachmentState? state, CustomResourceOptions? opts = null)
    public static CamRolePermissionBoundaryAttachment get(String name, Output<String> id, CamRolePermissionBoundaryAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CamRolePermissionBoundaryAttachment    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.
    The following state arguments are supported:
    CamRolePermissionBoundaryAttachmentId string
    ID of the resource.
    PolicyId double
    Role ID.
    RoleId string
    Role ID (at least one should be filled in with the role name).
    RoleName string
    Role name (at least one should be filled in with the role ID).
    CamRolePermissionBoundaryAttachmentId string
    ID of the resource.
    PolicyId float64
    Role ID.
    RoleId string
    Role ID (at least one should be filled in with the role name).
    RoleName string
    Role name (at least one should be filled in with the role ID).
    camRolePermissionBoundaryAttachmentId String
    ID of the resource.
    policyId Double
    Role ID.
    roleId String
    Role ID (at least one should be filled in with the role name).
    roleName String
    Role name (at least one should be filled in with the role ID).
    camRolePermissionBoundaryAttachmentId string
    ID of the resource.
    policyId number
    Role ID.
    roleId string
    Role ID (at least one should be filled in with the role name).
    roleName string
    Role name (at least one should be filled in with the role ID).
    cam_role_permission_boundary_attachment_id str
    ID of the resource.
    policy_id float
    Role ID.
    role_id str
    Role ID (at least one should be filled in with the role name).
    role_name str
    Role name (at least one should be filled in with the role ID).
    camRolePermissionBoundaryAttachmentId String
    ID of the resource.
    policyId Number
    Role ID.
    roleId String
    Role ID (at least one should be filled in with the role name).
    roleName String
    Role name (at least one should be filled in with the role ID).

    Import

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

    $ pulumi import tencentcloud:index/camRolePermissionBoundaryAttachment:CamRolePermissionBoundaryAttachment example 1##tf-example
    
    $ pulumi import tencentcloud:index/camRolePermissionBoundaryAttachment:CamRolePermissionBoundaryAttachment example 1#4611686018441060141#
    
    $ pulumi import tencentcloud:index/camRolePermissionBoundaryAttachment:CamRolePermissionBoundaryAttachment example 1#4611686018441060141#tf-example
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack