tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
Explore with Pulumi AI
Provides a resource to create a organization identity_center_role_configuration_permission_custom_policy_attachment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const identityCenterRoleConfigurationPermissionCustomPolicyAttachment = new tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment("identityCenterRoleConfigurationPermissionCustomPolicyAttachment", {
zoneId: "z-xxxxxx",
roleConfigurationId: "rc-xxxxxx",
rolePolicyName: "CustomPolicy",
rolePolicyDocument: `{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"vpc:AcceptAttachCcnInstances"
],
"resource": [
"*"
]
}
]
}
`,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
identity_center_role_configuration_permission_custom_policy_attachment = tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment("identityCenterRoleConfigurationPermissionCustomPolicyAttachment",
zone_id="z-xxxxxx",
role_configuration_id="rc-xxxxxx",
role_policy_name="CustomPolicy",
role_policy_document="""{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"vpc:AcceptAttachCcnInstances"
],
"resource": [
"*"
]
}
]
}
""")
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.NewIdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(ctx, "identityCenterRoleConfigurationPermissionCustomPolicyAttachment", &tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs{
ZoneId: pulumi.String("z-xxxxxx"),
RoleConfigurationId: pulumi.String("rc-xxxxxx"),
RolePolicyName: pulumi.String("CustomPolicy"),
RolePolicyDocument: pulumi.String(`{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"vpc:AcceptAttachCcnInstances"
],
"resource": [
"*"
]
}
]
}
`),
})
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 identityCenterRoleConfigurationPermissionCustomPolicyAttachment = new Tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment("identityCenterRoleConfigurationPermissionCustomPolicyAttachment", new()
{
ZoneId = "z-xxxxxx",
RoleConfigurationId = "rc-xxxxxx",
RolePolicyName = "CustomPolicy",
RolePolicyDocument = @"{
""version"": ""2.0"",
""statement"": [
{
""effect"": ""allow"",
""action"": [
""vpc:AcceptAttachCcnInstances""
],
""resource"": [
""*""
]
}
]
}
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment;
import com.pulumi.tencentcloud.IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs;
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 identityCenterRoleConfigurationPermissionCustomPolicyAttachment = new IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment("identityCenterRoleConfigurationPermissionCustomPolicyAttachment", IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs.builder()
.zoneId("z-xxxxxx")
.roleConfigurationId("rc-xxxxxx")
.rolePolicyName("CustomPolicy")
.rolePolicyDocument("""
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"vpc:AcceptAttachCcnInstances"
],
"resource": [
"*"
]
}
]
}
""")
.build());
}
}
resources:
identityCenterRoleConfigurationPermissionCustomPolicyAttachment:
type: tencentcloud:IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
properties:
zoneId: z-xxxxxx
roleConfigurationId: rc-xxxxxx
rolePolicyName: CustomPolicy
rolePolicyDocument: |
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"vpc:AcceptAttachCcnInstances"
],
"resource": [
"*"
]
}
]
}
Create IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(name: string, args: IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs, opts?: CustomResourceOptions);
@overload
def IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(resource_name: str,
args: IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
role_configuration_id: Optional[str] = None,
role_policy_document: Optional[str] = None,
role_policy_name: Optional[str] = None,
zone_id: Optional[str] = None,
identity_center_role_configuration_permission_custom_policy_attachment_id: Optional[str] = None)
func NewIdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(ctx *Context, name string, args IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs, opts ...ResourceOption) (*IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment, error)
public IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(string name, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs args, CustomResourceOptions? opts = null)
public IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(String name, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs args)
public IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(String name, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
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 IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
- 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 IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
- 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 IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment 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 IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment resource accepts the following input properties:
- Role
Configuration stringId - Permission configuration ID.
- Role
Policy stringDocument - Role policy document.
- Role
Policy stringName - Role policy name.
- Zone
Id string - Space ID.
- Identity
Center stringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- Role
Configuration stringId - Permission configuration ID.
- Role
Policy stringDocument - Role policy document.
- Role
Policy stringName - Role policy name.
- Zone
Id string - Space ID.
- Identity
Center stringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- role
Configuration StringId - Permission configuration ID.
- role
Policy StringDocument - Role policy document.
- role
Policy StringName - Role policy name.
- zone
Id String - Space ID.
- identity
Center StringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- role
Configuration stringId - Permission configuration ID.
- role
Policy stringDocument - Role policy document.
- role
Policy stringName - Role policy name.
- zone
Id string - Space ID.
- identity
Center stringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- role_
configuration_ strid - Permission configuration ID.
- role_
policy_ strdocument - Role policy document.
- role_
policy_ strname - Role policy name.
- zone_
id str - Space ID.
- identity_
center_ strrole_ configuration_ permission_ custom_ policy_ attachment_ id - ID of the resource.
- role
Configuration StringId - Permission configuration ID.
- role
Policy StringDocument - Role policy document.
- role
Policy StringName - Role policy name.
- zone
Id String - Space ID.
- identity
Center StringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment resource produces the following output properties:
- Add
Time string - Role policy add time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Role
Policy stringType - Role policy type.
- Add
Time string - Role policy add time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Role
Policy stringType - Role policy type.
- add
Time String - Role policy add time.
- id String
- The provider-assigned unique ID for this managed resource.
- role
Policy StringType - Role policy type.
- add
Time string - Role policy add time.
- id string
- The provider-assigned unique ID for this managed resource.
- role
Policy stringType - Role policy type.
- add_
time str - Role policy add time.
- id str
- The provider-assigned unique ID for this managed resource.
- role_
policy_ strtype - Role policy type.
- add
Time String - Role policy add time.
- id String
- The provider-assigned unique ID for this managed resource.
- role
Policy StringType - Role policy type.
Look up Existing IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment Resource
Get an existing IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment 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?: IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentState, opts?: CustomResourceOptions): IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
add_time: Optional[str] = None,
identity_center_role_configuration_permission_custom_policy_attachment_id: Optional[str] = None,
role_configuration_id: Optional[str] = None,
role_policy_document: Optional[str] = None,
role_policy_name: Optional[str] = None,
role_policy_type: Optional[str] = None,
zone_id: Optional[str] = None) -> IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment
func GetIdentityCenterRoleConfigurationPermissionCustomPolicyAttachment(ctx *Context, name string, id IDInput, state *IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentState, opts ...ResourceOption) (*IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment, error)
public static IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment Get(string name, Input<string> id, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentState? state, CustomResourceOptions? opts = null)
public static IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment get(String name, Output<String> id, IdentityCenterRoleConfigurationPermissionCustomPolicyAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment 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.
- Add
Time string - Role policy add time.
- Identity
Center stringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- Role
Configuration stringId - Permission configuration ID.
- Role
Policy stringDocument - Role policy document.
- Role
Policy stringName - Role policy name.
- Role
Policy stringType - Role policy type.
- Zone
Id string - Space ID.
- Add
Time string - Role policy add time.
- Identity
Center stringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- Role
Configuration stringId - Permission configuration ID.
- Role
Policy stringDocument - Role policy document.
- Role
Policy stringName - Role policy name.
- Role
Policy stringType - Role policy type.
- Zone
Id string - Space ID.
- add
Time String - Role policy add time.
- identity
Center StringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- role
Configuration StringId - Permission configuration ID.
- role
Policy StringDocument - Role policy document.
- role
Policy StringName - Role policy name.
- role
Policy StringType - Role policy type.
- zone
Id String - Space ID.
- add
Time string - Role policy add time.
- identity
Center stringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- role
Configuration stringId - Permission configuration ID.
- role
Policy stringDocument - Role policy document.
- role
Policy stringName - Role policy name.
- role
Policy stringType - Role policy type.
- zone
Id string - Space ID.
- add_
time str - Role policy add time.
- identity_
center_ strrole_ configuration_ permission_ custom_ policy_ attachment_ id - ID of the resource.
- role_
configuration_ strid - Permission configuration ID.
- role_
policy_ strdocument - Role policy document.
- role_
policy_ strname - Role policy name.
- role_
policy_ strtype - Role policy type.
- zone_
id str - Space ID.
- add
Time String - Role policy add time.
- identity
Center StringRole Configuration Permission Custom Policy Attachment Id - ID of the resource.
- role
Configuration StringId - Permission configuration ID.
- role
Policy StringDocument - Role policy document.
- role
Policy StringName - Role policy name.
- role
Policy StringType - Role policy type.
- zone
Id String - Space ID.
Import
organization identity_center_role_configuration_permission_custom_policy_attachment can be imported using the id, e.g.
$ pulumi import tencentcloud:index/identityCenterRoleConfigurationPermissionCustomPolicyAttachment:IdentityCenterRoleConfigurationPermissionCustomPolicyAttachment identity_center_role_configuration_permission_custom_policy_attachment ${zoneId}#${roleConfigurationId}#${rolePolicyName}
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.