tencentcloud.OrganizationOrgIdentity
Explore with Pulumi AI
Provides a resource to create a organization org_identity
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const orgIdentity = new tencentcloud.OrganizationOrgIdentity("orgIdentity", {
description: "iac-test",
identityAliasName: "example-iac-test",
identityPolicies: [{
policyId: 1,
policyName: "AdministratorAccess",
policyType: 2,
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
org_identity = tencentcloud.OrganizationOrgIdentity("orgIdentity",
description="iac-test",
identity_alias_name="example-iac-test",
identity_policies=[{
"policy_id": 1,
"policy_name": "AdministratorAccess",
"policy_type": 2,
}])
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.NewOrganizationOrgIdentity(ctx, "orgIdentity", &tencentcloud.OrganizationOrgIdentityArgs{
Description: pulumi.String("iac-test"),
IdentityAliasName: pulumi.String("example-iac-test"),
IdentityPolicies: tencentcloud.OrganizationOrgIdentityIdentityPolicyArray{
&tencentcloud.OrganizationOrgIdentityIdentityPolicyArgs{
PolicyId: pulumi.Float64(1),
PolicyName: pulumi.String("AdministratorAccess"),
PolicyType: pulumi.Float64(2),
},
},
})
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 orgIdentity = new Tencentcloud.OrganizationOrgIdentity("orgIdentity", new()
{
Description = "iac-test",
IdentityAliasName = "example-iac-test",
IdentityPolicies = new[]
{
new Tencentcloud.Inputs.OrganizationOrgIdentityIdentityPolicyArgs
{
PolicyId = 1,
PolicyName = "AdministratorAccess",
PolicyType = 2,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationOrgIdentity;
import com.pulumi.tencentcloud.OrganizationOrgIdentityArgs;
import com.pulumi.tencentcloud.inputs.OrganizationOrgIdentityIdentityPolicyArgs;
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 orgIdentity = new OrganizationOrgIdentity("orgIdentity", OrganizationOrgIdentityArgs.builder()
.description("iac-test")
.identityAliasName("example-iac-test")
.identityPolicies(OrganizationOrgIdentityIdentityPolicyArgs.builder()
.policyId(1)
.policyName("AdministratorAccess")
.policyType(2)
.build())
.build());
}
}
resources:
orgIdentity:
type: tencentcloud:OrganizationOrgIdentity
properties:
description: iac-test
identityAliasName: example-iac-test
identityPolicies:
- policyId: 1
policyName: AdministratorAccess
policyType: 2
Create OrganizationOrgIdentity Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationOrgIdentity(name: string, args: OrganizationOrgIdentityArgs, opts?: CustomResourceOptions);
@overload
def OrganizationOrgIdentity(resource_name: str,
args: OrganizationOrgIdentityArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationOrgIdentity(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity_alias_name: Optional[str] = None,
identity_policies: Optional[Sequence[OrganizationOrgIdentityIdentityPolicyArgs]] = None,
description: Optional[str] = None,
organization_org_identity_id: Optional[str] = None)
func NewOrganizationOrgIdentity(ctx *Context, name string, args OrganizationOrgIdentityArgs, opts ...ResourceOption) (*OrganizationOrgIdentity, error)
public OrganizationOrgIdentity(string name, OrganizationOrgIdentityArgs args, CustomResourceOptions? opts = null)
public OrganizationOrgIdentity(String name, OrganizationOrgIdentityArgs args)
public OrganizationOrgIdentity(String name, OrganizationOrgIdentityArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationOrgIdentity
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 OrganizationOrgIdentityArgs
- 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 OrganizationOrgIdentityArgs
- 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 OrganizationOrgIdentityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationOrgIdentityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationOrgIdentityArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OrganizationOrgIdentity 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 OrganizationOrgIdentity resource accepts the following input properties:
- Identity
Alias stringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- Identity
Policies List<OrganizationOrg Identity Identity Policy> - Identity policy list.
- Description string
- Identity description.
- Organization
Org stringIdentity Id - ID of the resource.
- Identity
Alias stringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- Identity
Policies []OrganizationOrg Identity Identity Policy Args - Identity policy list.
- Description string
- Identity description.
- Organization
Org stringIdentity Id - ID of the resource.
- identity
Alias StringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- identity
Policies List<OrganizationOrg Identity Identity Policy> - Identity policy list.
- description String
- Identity description.
- organization
Org StringIdentity Id - ID of the resource.
- identity
Alias stringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- identity
Policies OrganizationOrg Identity Identity Policy[] - Identity policy list.
- description string
- Identity description.
- organization
Org stringIdentity Id - ID of the resource.
- identity_
alias_ strname - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- identity_
policies Sequence[OrganizationOrg Identity Identity Policy Args] - Identity policy list.
- description str
- Identity description.
- organization_
org_ stridentity_ id - ID of the resource.
- identity
Alias StringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- identity
Policies List<Property Map> - Identity policy list.
- description String
- Identity description.
- organization
Org StringIdentity Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationOrgIdentity 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 OrganizationOrgIdentity Resource
Get an existing OrganizationOrgIdentity 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?: OrganizationOrgIdentityState, opts?: CustomResourceOptions): OrganizationOrgIdentity
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
identity_alias_name: Optional[str] = None,
identity_policies: Optional[Sequence[OrganizationOrgIdentityIdentityPolicyArgs]] = None,
organization_org_identity_id: Optional[str] = None) -> OrganizationOrgIdentity
func GetOrganizationOrgIdentity(ctx *Context, name string, id IDInput, state *OrganizationOrgIdentityState, opts ...ResourceOption) (*OrganizationOrgIdentity, error)
public static OrganizationOrgIdentity Get(string name, Input<string> id, OrganizationOrgIdentityState? state, CustomResourceOptions? opts = null)
public static OrganizationOrgIdentity get(String name, Output<String> id, OrganizationOrgIdentityState state, CustomResourceOptions options)
resources: _: type: tencentcloud:OrganizationOrgIdentity 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.
- Description string
- Identity description.
- Identity
Alias stringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- Identity
Policies List<OrganizationOrg Identity Identity Policy> - Identity policy list.
- Organization
Org stringIdentity Id - ID of the resource.
- Description string
- Identity description.
- Identity
Alias stringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- Identity
Policies []OrganizationOrg Identity Identity Policy Args - Identity policy list.
- Organization
Org stringIdentity Id - ID of the resource.
- description String
- Identity description.
- identity
Alias StringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- identity
Policies List<OrganizationOrg Identity Identity Policy> - Identity policy list.
- organization
Org StringIdentity Id - ID of the resource.
- description string
- Identity description.
- identity
Alias stringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- identity
Policies OrganizationOrg Identity Identity Policy[] - Identity policy list.
- organization
Org stringIdentity Id - ID of the resource.
- description str
- Identity description.
- identity_
alias_ strname - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- identity_
policies Sequence[OrganizationOrg Identity Identity Policy Args] - Identity policy list.
- organization_
org_ stridentity_ id - ID of the resource.
- description String
- Identity description.
- identity
Alias StringName - Identity name.Supports English letters and numbers, the length cannot exceed 40 characters.
- identity
Policies List<Property Map> - Identity policy list.
- organization
Org StringIdentity Id - ID of the resource.
Supporting Types
OrganizationOrgIdentityIdentityPolicy, OrganizationOrgIdentityIdentityPolicyArgs
- Policy
Document string - Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
- Policy
Id double - CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
- Policy
Name string - CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
- Policy
Type double - Policy type. Value 1-custom policy 2-preset policy; default value 2.
- Policy
Document string - Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
- Policy
Id float64 - CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
- Policy
Name string - CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
- Policy
Type float64 - Policy type. Value 1-custom policy 2-preset policy; default value 2.
- policy
Document String - Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
- policy
Id Double - CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
- policy
Name String - CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
- policy
Type Double - Policy type. Value 1-custom policy 2-preset policy; default value 2.
- policy
Document string - Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
- policy
Id number - CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
- policy
Name string - CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
- policy
Type number - Policy type. Value 1-custom policy 2-preset policy; default value 2.
- policy_
document str - Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
- policy_
id float - CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
- policy_
name str - CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
- policy_
type float - Policy type. Value 1-custom policy 2-preset policy; default value 2.
- policy
Document String - Customize policy content and follow CAM policy syntax. Valid and required when PolicyType is the 1-custom policy.
- policy
Id Number - CAM default policy ID. Valid and required when PolicyType is the 2-preset policy.
- policy
Name String - CAM default policy name. Valid and required when PolicyType is the 2-preset policy.
- policy
Type Number - Policy type. Value 1-custom policy 2-preset policy; default value 2.
Import
organization org_identity can be imported using the id, e.g.
$ pulumi import tencentcloud:index/organizationOrgIdentity:OrganizationOrgIdentity org_identity org_identity_id
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.