tencentcloud.CamRolePermissionBoundaryAttachment
Explore with Pulumi AI
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:
- Policy
Id double - Role ID.
- Cam
Role stringPermission Boundary Attachment Id - ID of the resource.
- Role
Id string - Role ID (at least one should be filled in with the role name).
- Role
Name string - Role name (at least one should be filled in with the role ID).
- Policy
Id float64 - Role ID.
- Cam
Role stringPermission Boundary Attachment Id - ID of the resource.
- Role
Id string - Role ID (at least one should be filled in with the role name).
- Role
Name string - Role name (at least one should be filled in with the role ID).
- policy
Id Double - Role ID.
- cam
Role StringPermission Boundary Attachment Id - ID of the resource.
- role
Id String - Role ID (at least one should be filled in with the role name).
- role
Name String - Role name (at least one should be filled in with the role ID).
- policy
Id number - Role ID.
- cam
Role stringPermission Boundary Attachment Id - ID of the resource.
- role
Id string - Role ID (at least one should be filled in with the role name).
- role
Name string - Role name (at least one should be filled in with the role ID).
- policy_
id float - Role ID.
- cam_
role_ strpermission_ boundary_ attachment_ id - 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).
- policy
Id Number - Role ID.
- cam
Role StringPermission Boundary Attachment Id - ID of the resource.
- role
Id String - Role ID (at least one should be filled in with the role name).
- role
Name 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.
- Cam
Role stringPermission Boundary Attachment Id - ID of the resource.
- Policy
Id double - Role ID.
- Role
Id string - Role ID (at least one should be filled in with the role name).
- Role
Name string - Role name (at least one should be filled in with the role ID).
- Cam
Role stringPermission Boundary Attachment Id - ID of the resource.
- Policy
Id float64 - Role ID.
- Role
Id string - Role ID (at least one should be filled in with the role name).
- Role
Name string - Role name (at least one should be filled in with the role ID).
- cam
Role StringPermission Boundary Attachment Id - ID of the resource.
- policy
Id Double - Role ID.
- role
Id String - Role ID (at least one should be filled in with the role name).
- role
Name String - Role name (at least one should be filled in with the role ID).
- cam
Role stringPermission Boundary Attachment Id - ID of the resource.
- policy
Id number - Role ID.
- role
Id string - Role ID (at least one should be filled in with the role name).
- role
Name string - Role name (at least one should be filled in with the role ID).
- cam_
role_ strpermission_ boundary_ attachment_ id - 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).
- cam
Role StringPermission Boundary Attachment Id - ID of the resource.
- policy
Id Number - Role ID.
- role
Id String - Role ID (at least one should be filled in with the role name).
- role
Name 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.