volcengine.cloud_identity.UserProvisioning
Explore with Pulumi AI
Provides a resource to manage cloud identity user provisioning
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cloud_identity.User;
import com.pulumi.volcengine.cloud_identity.UserArgs;
import com.pulumi.volcengine.cloud_identity.UserProvisioning;
import com.pulumi.volcengine.cloud_identity.UserProvisioningArgs;
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 fooUser = new User("fooUser", UserArgs.builder()
.userName("acc-test-user")
.displayName("tf-test-user")
.description("tf")
.email("88@qq.com")
.phone("181")
.build());
var fooUserProvisioning = new UserProvisioning("fooUserProvisioning", UserProvisioningArgs.builder()
.principalType("User")
.principalId(fooUser.id())
.targetId("210026****")
.description("tf")
.identitySourceStrategy("Ignore")
.duplicationStrategy("KeepBoth")
.duplicationSuffix("-tf")
.deletionStrategy("Delete")
.policyName("AdministratorAccess")
.build());
}
}
Coming soon!
Coming soon!
resources:
fooUser:
type: volcengine:cloud_identity:User
properties:
userName: acc-test-user
displayName: tf-test-user
description: tf
email: 88@qq.com
phone: '181'
fooUserProvisioning:
type: volcengine:cloud_identity:UserProvisioning
properties:
principalType: User
principalId: ${fooUser.id}
targetId: 210026****
description: tf
identitySourceStrategy: Ignore
duplicationStrategy: KeepBoth
duplicationSuffix: -tf
deletionStrategy: Delete
policyName:
- AdministratorAccess
Create UserProvisioning Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserProvisioning(name: string, args: UserProvisioningArgs, opts?: CustomResourceOptions);
@overload
def UserProvisioning(resource_name: str,
args: UserProvisioningArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UserProvisioning(resource_name: str,
opts: Optional[ResourceOptions] = None,
deletion_strategy: Optional[str] = None,
duplication_strategy: Optional[str] = None,
identity_source_strategy: Optional[str] = None,
principal_id: Optional[str] = None,
principal_type: Optional[str] = None,
target_id: Optional[str] = None,
description: Optional[str] = None,
duplication_suffix: Optional[str] = None,
policy_name: Optional[str] = None)
func NewUserProvisioning(ctx *Context, name string, args UserProvisioningArgs, opts ...ResourceOption) (*UserProvisioning, error)
public UserProvisioning(string name, UserProvisioningArgs args, CustomResourceOptions? opts = null)
public UserProvisioning(String name, UserProvisioningArgs args)
public UserProvisioning(String name, UserProvisioningArgs args, CustomResourceOptions options)
type: volcengine:cloud_identity:UserProvisioning
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 UserProvisioningArgs
- 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 UserProvisioningArgs
- 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 UserProvisioningArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserProvisioningArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserProvisioningArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var userProvisioningResource = new Volcengine.Cloud_identity.UserProvisioning("userProvisioningResource", new()
{
DeletionStrategy = "string",
DuplicationStrategy = "string",
IdentitySourceStrategy = "string",
PrincipalId = "string",
PrincipalType = "string",
TargetId = "string",
Description = "string",
DuplicationSuffix = "string",
PolicyName = "string",
});
example, err := cloud_identity.NewUserProvisioning(ctx, "userProvisioningResource", &cloud_identity.UserProvisioningArgs{
DeletionStrategy: pulumi.String("string"),
DuplicationStrategy: pulumi.String("string"),
IdentitySourceStrategy: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
PrincipalType: pulumi.String("string"),
TargetId: pulumi.String("string"),
Description: pulumi.String("string"),
DuplicationSuffix: pulumi.String("string"),
PolicyName: pulumi.String("string"),
})
var userProvisioningResource = new UserProvisioning("userProvisioningResource", UserProvisioningArgs.builder()
.deletionStrategy("string")
.duplicationStrategy("string")
.identitySourceStrategy("string")
.principalId("string")
.principalType("string")
.targetId("string")
.description("string")
.duplicationSuffix("string")
.policyName("string")
.build());
user_provisioning_resource = volcengine.cloud_identity.UserProvisioning("userProvisioningResource",
deletion_strategy="string",
duplication_strategy="string",
identity_source_strategy="string",
principal_id="string",
principal_type="string",
target_id="string",
description="string",
duplication_suffix="string",
policy_name="string")
const userProvisioningResource = new volcengine.cloud_identity.UserProvisioning("userProvisioningResource", {
deletionStrategy: "string",
duplicationStrategy: "string",
identitySourceStrategy: "string",
principalId: "string",
principalType: "string",
targetId: "string",
description: "string",
duplicationSuffix: "string",
policyName: "string",
});
type: volcengine:cloud_identity:UserProvisioning
properties:
deletionStrategy: string
description: string
duplicationStrategy: string
duplicationSuffix: string
identitySourceStrategy: string
policyName: string
principalId: string
principalType: string
targetId: string
UserProvisioning 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 UserProvisioning resource accepts the following input properties:
- Deletion
Strategy string - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - Duplication
Strategy string - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - Identity
Source stringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - Principal
Id string - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - Principal
Type string - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - Target
Id string - The target account id of the cloud identity user provisioning.
- Description string
- The description of the cloud identity user provisioning.
- Duplication
Suffix string - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - Policy
Name string - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
.
- Deletion
Strategy string - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - Duplication
Strategy string - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - Identity
Source stringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - Principal
Id string - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - Principal
Type string - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - Target
Id string - The target account id of the cloud identity user provisioning.
- Description string
- The description of the cloud identity user provisioning.
- Duplication
Suffix string - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - Policy
Name string - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
.
- deletion
Strategy String - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - duplication
Strategy String - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - identity
Source StringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - principal
Id String - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - principal
Type String - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - target
Id String - The target account id of the cloud identity user provisioning.
- description String
- The description of the cloud identity user provisioning.
- duplication
Suffix String - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - policy
Name String - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
.
- deletion
Strategy string - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - duplication
Strategy string - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - identity
Source stringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - principal
Id string - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - principal
Type string - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - target
Id string - The target account id of the cloud identity user provisioning.
- description string
- The description of the cloud identity user provisioning.
- duplication
Suffix string - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - policy
Name string - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
.
- deletion_
strategy str - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - duplication_
strategy str - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - identity_
source_ strstrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - principal_
id str - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - principal_
type str - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - target_
id str - The target account id of the cloud identity user provisioning.
- description str
- The description of the cloud identity user provisioning.
- duplication_
suffix str - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - policy_
name str - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
.
- deletion
Strategy String - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - duplication
Strategy String - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - identity
Source StringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - principal
Id String - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - principal
Type String - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - target
Id String - The target account id of the cloud identity user provisioning.
- description String
- The description of the cloud identity user provisioning.
- duplication
Suffix String - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - policy
Name String - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserProvisioning resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Name string - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - Provision
Status string - The status of the cloud identity user provisioning.
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Name string - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - Provision
Status string - The status of the cloud identity user provisioning.
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Name String - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - provision
Status String - The status of the cloud identity user provisioning.
- id string
- The provider-assigned unique ID for this managed resource.
- principal
Name string - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - provision
Status string - The status of the cloud identity user provisioning.
- id str
- The provider-assigned unique ID for this managed resource.
- principal_
name str - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - provision_
status str - The status of the cloud identity user provisioning.
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Name String - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - provision
Status String - The status of the cloud identity user provisioning.
Look up Existing UserProvisioning Resource
Get an existing UserProvisioning 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?: UserProvisioningState, opts?: CustomResourceOptions): UserProvisioning
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
deletion_strategy: Optional[str] = None,
description: Optional[str] = None,
duplication_strategy: Optional[str] = None,
duplication_suffix: Optional[str] = None,
identity_source_strategy: Optional[str] = None,
policy_name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_name: Optional[str] = None,
principal_type: Optional[str] = None,
provision_status: Optional[str] = None,
target_id: Optional[str] = None) -> UserProvisioning
func GetUserProvisioning(ctx *Context, name string, id IDInput, state *UserProvisioningState, opts ...ResourceOption) (*UserProvisioning, error)
public static UserProvisioning Get(string name, Input<string> id, UserProvisioningState? state, CustomResourceOptions? opts = null)
public static UserProvisioning get(String name, Output<String> id, UserProvisioningState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Deletion
Strategy string - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - Description string
- The description of the cloud identity user provisioning.
- Duplication
Strategy string - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - Duplication
Suffix string - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - Identity
Source stringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - Policy
Name string - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
. - Principal
Id string - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - Principal
Name string - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - Principal
Type string - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - Provision
Status string - The status of the cloud identity user provisioning.
- Target
Id string - The target account id of the cloud identity user provisioning.
- Deletion
Strategy string - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - Description string
- The description of the cloud identity user provisioning.
- Duplication
Strategy string - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - Duplication
Suffix string - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - Identity
Source stringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - Policy
Name string - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
. - Principal
Id string - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - Principal
Name string - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - Principal
Type string - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - Provision
Status string - The status of the cloud identity user provisioning.
- Target
Id string - The target account id of the cloud identity user provisioning.
- deletion
Strategy String - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - description String
- The description of the cloud identity user provisioning.
- duplication
Strategy String - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - duplication
Suffix String - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - identity
Source StringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - policy
Name String - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
. - principal
Id String - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - principal
Name String - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - principal
Type String - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - provision
Status String - The status of the cloud identity user provisioning.
- target
Id String - The target account id of the cloud identity user provisioning.
- deletion
Strategy string - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - description string
- The description of the cloud identity user provisioning.
- duplication
Strategy string - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - duplication
Suffix string - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - identity
Source stringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - policy
Name string - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
. - principal
Id string - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - principal
Name string - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - principal
Type string - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - provision
Status string - The status of the cloud identity user provisioning.
- target
Id string - The target account id of the cloud identity user provisioning.
- deletion_
strategy str - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - description str
- The description of the cloud identity user provisioning.
- duplication_
strategy str - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - duplication_
suffix str - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - identity_
source_ strstrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - policy_
name str - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
. - principal_
id str - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - principal_
name str - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - principal_
type str - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - provision_
status str - The status of the cloud identity user provisioning.
- target_
id str - The target account id of the cloud identity user provisioning.
- deletion
Strategy String - The deletion strategy of the cloud identity user provisioning. Valid values:
Keep
,Delete
. - description String
- The description of the cloud identity user provisioning.
- duplication
Strategy String - The duplication strategy of the cloud identity user provisioning. Valid values:
KeepBoth
,Takeover
. - duplication
Suffix String - The duplication suffix of the cloud identity user provisioning. When the
duplication_strategy
isKeepBoth
, this field must be specified. - identity
Source StringStrategy - The identity source strategy of the cloud identity user provisioning. Valid values:
Create
,Ignore
. - policy
Name String - A list of policy name. Valid values:
AdministratorAccess
. This field is valid when theprincipal_type
isUser
. - principal
Id String - The principal id of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserId
. When theprincipal_type
isGroup
, this field is specified toGroupId
. - principal
Name String - The principal name of the cloud identity user provisioning. When the
principal_type
isUser
, this field is specified toUserName
. When theprincipal_type
isGroup
, this field is specified toGroupName
. - principal
Type String - The principal type of the cloud identity user provisioning. Valid values:
User
,Group
. - provision
Status String - The status of the cloud identity user provisioning.
- target
Id String - The target account id of the cloud identity user provisioning.
Import
CloudIdentityUserProvisioning can be imported using the id, e.g.
$ pulumi import volcengine:cloud_identity/userProvisioning:UserProvisioning default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.