tencentcloud.DlcDetachUserPolicyOperation
Explore with Pulumi AI
Create DlcDetachUserPolicyOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DlcDetachUserPolicyOperation(name: string, args: DlcDetachUserPolicyOperationArgs, opts?: CustomResourceOptions);
@overload
def DlcDetachUserPolicyOperation(resource_name: str,
args: DlcDetachUserPolicyOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DlcDetachUserPolicyOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
user_id: Optional[str] = None,
dlc_detach_user_policy_operation_id: Optional[str] = None,
policy_sets: Optional[Sequence[DlcDetachUserPolicyOperationPolicySetArgs]] = None)
func NewDlcDetachUserPolicyOperation(ctx *Context, name string, args DlcDetachUserPolicyOperationArgs, opts ...ResourceOption) (*DlcDetachUserPolicyOperation, error)
public DlcDetachUserPolicyOperation(string name, DlcDetachUserPolicyOperationArgs args, CustomResourceOptions? opts = null)
public DlcDetachUserPolicyOperation(String name, DlcDetachUserPolicyOperationArgs args)
public DlcDetachUserPolicyOperation(String name, DlcDetachUserPolicyOperationArgs args, CustomResourceOptions options)
type: tencentcloud:DlcDetachUserPolicyOperation
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 DlcDetachUserPolicyOperationArgs
- 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 DlcDetachUserPolicyOperationArgs
- 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 DlcDetachUserPolicyOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlcDetachUserPolicyOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlcDetachUserPolicyOperationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlcDetachUserPolicyOperation 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 DlcDetachUserPolicyOperation resource accepts the following input properties:
- User
Id string - User ID, which matches Uin on the CAM side.
- Dlc
Detach stringUser Policy Operation Id - Policy
Sets List<DlcDetach User Policy Operation Policy Set> - Collection of unbound permissions.
- User
Id string - User ID, which matches Uin on the CAM side.
- Dlc
Detach stringUser Policy Operation Id - Policy
Sets []DlcDetach User Policy Operation Policy Set Args - Collection of unbound permissions.
- user
Id String - User ID, which matches Uin on the CAM side.
- dlc
Detach StringUser Policy Operation Id - policy
Sets List<DlcDetach User Policy Operation Policy Set> - Collection of unbound permissions.
- user
Id string - User ID, which matches Uin on the CAM side.
- dlc
Detach stringUser Policy Operation Id - policy
Sets DlcDetach User Policy Operation Policy Set[] - Collection of unbound permissions.
- user_
id str - User ID, which matches Uin on the CAM side.
- dlc_
detach_ struser_ policy_ operation_ id - policy_
sets Sequence[DlcDetach User Policy Operation Policy Set Args] - Collection of unbound permissions.
- user
Id String - User ID, which matches Uin on the CAM side.
- dlc
Detach StringUser Policy Operation Id - policy
Sets List<Property Map> - Collection of unbound permissions.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlcDetachUserPolicyOperation 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 DlcDetachUserPolicyOperation Resource
Get an existing DlcDetachUserPolicyOperation 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?: DlcDetachUserPolicyOperationState, opts?: CustomResourceOptions): DlcDetachUserPolicyOperation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dlc_detach_user_policy_operation_id: Optional[str] = None,
policy_sets: Optional[Sequence[DlcDetachUserPolicyOperationPolicySetArgs]] = None,
user_id: Optional[str] = None) -> DlcDetachUserPolicyOperation
func GetDlcDetachUserPolicyOperation(ctx *Context, name string, id IDInput, state *DlcDetachUserPolicyOperationState, opts ...ResourceOption) (*DlcDetachUserPolicyOperation, error)
public static DlcDetachUserPolicyOperation Get(string name, Input<string> id, DlcDetachUserPolicyOperationState? state, CustomResourceOptions? opts = null)
public static DlcDetachUserPolicyOperation get(String name, Output<String> id, DlcDetachUserPolicyOperationState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DlcDetachUserPolicyOperation 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.
- Dlc
Detach stringUser Policy Operation Id - Policy
Sets List<DlcDetach User Policy Operation Policy Set> - Collection of unbound permissions.
- User
Id string - User ID, which matches Uin on the CAM side.
- Dlc
Detach stringUser Policy Operation Id - Policy
Sets []DlcDetach User Policy Operation Policy Set Args - Collection of unbound permissions.
- User
Id string - User ID, which matches Uin on the CAM side.
- dlc
Detach StringUser Policy Operation Id - policy
Sets List<DlcDetach User Policy Operation Policy Set> - Collection of unbound permissions.
- user
Id String - User ID, which matches Uin on the CAM side.
- dlc
Detach stringUser Policy Operation Id - policy
Sets DlcDetach User Policy Operation Policy Set[] - Collection of unbound permissions.
- user
Id string - User ID, which matches Uin on the CAM side.
- dlc_
detach_ struser_ policy_ operation_ id - policy_
sets Sequence[DlcDetach User Policy Operation Policy Set Args] - Collection of unbound permissions.
- user_
id str - User ID, which matches Uin on the CAM side.
- dlc
Detach StringUser Policy Operation Id - policy
Sets List<Property Map> - Collection of unbound permissions.
- user
Id String - User ID, which matches Uin on the CAM side.
Supporting Types
DlcDetachUserPolicyOperationPolicySet, DlcDetachUserPolicyOperationPolicySetArgs
- Catalog string
- The name of the target data source. To grant admin permission, it must be
*
(all resources at this level); to grant data source and database permissions, it must beCOSDataCatalog
or*
; to grant table permissions, it can be a custom data source; if it is left empty,DataLakeCatalog
is used. Note: To grant permissions on a custom data source, the permissions that can be managed in the Data Lake Compute console are subsets of the account permissions granted when you connect the data source to the console. - Database string
- The name of the target database.
*
represents all databases in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any database. - Operation string
- The target permissions, which vary by permission level. Admin:
ALL
(default); data connection:CREATE
; database:ALL
,CREATE
,ALTER
, andDROP
; table:ALL
,SELECT
,INSERT
,ALTER
,DELETE
,DROP
, andUPDATE
. Note: For table permissions, if a data source other thanCOSDataCatalog
is specified, only theSELECT
permission can be granted here. - Table string
- The name of the target table.
*
represents all tables in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any table. - Column string
- The name of the target column.
*
represents all columns. To grant admin permissions, it must be*
. - Create
Time string - The permission policy creation time, which is not required as an input parameter.
- Data
Engine string - The name of the target data engine.
*
represents all engines. To grant admin permissions, it must be*
. - Function string
- The name of the target function.
*
represents all functions in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any function. - Id double
- The policy ID.
- Mode string
- The grant mode, which is not required as an input parameter. Valid values:
COMMON
andSENIOR
. - Operator string
- The operator, which is not required as an input parameter.
- Policy
Type string - The permission type. Valid values:
ADMIN
,DATASOURCE
,DATABASE
,TABLE
,VIEW
,FUNCTION
,COLUMN
, andENGINE
. Note: If it is left empty,ADMIN
is used. - Re
Auth bool - Whether the grantee is allowed to further grant the permissions. Valid values:
false
(default) andtrue
(the grantee can grant permissions gained here to other sub-users). - Source string
- The permission source, which is not required when input parameters are passed in. Valid values:
USER
(from the user) andWORKGROUP
(from one or more associated work groups). - Source
Id double - The ID of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - Source
Name string - The name of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - View string
- The name of the target view.
*
represents all views in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any view.
- Catalog string
- The name of the target data source. To grant admin permission, it must be
*
(all resources at this level); to grant data source and database permissions, it must beCOSDataCatalog
or*
; to grant table permissions, it can be a custom data source; if it is left empty,DataLakeCatalog
is used. Note: To grant permissions on a custom data source, the permissions that can be managed in the Data Lake Compute console are subsets of the account permissions granted when you connect the data source to the console. - Database string
- The name of the target database.
*
represents all databases in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any database. - Operation string
- The target permissions, which vary by permission level. Admin:
ALL
(default); data connection:CREATE
; database:ALL
,CREATE
,ALTER
, andDROP
; table:ALL
,SELECT
,INSERT
,ALTER
,DELETE
,DROP
, andUPDATE
. Note: For table permissions, if a data source other thanCOSDataCatalog
is specified, only theSELECT
permission can be granted here. - Table string
- The name of the target table.
*
represents all tables in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any table. - Column string
- The name of the target column.
*
represents all columns. To grant admin permissions, it must be*
. - Create
Time string - The permission policy creation time, which is not required as an input parameter.
- Data
Engine string - The name of the target data engine.
*
represents all engines. To grant admin permissions, it must be*
. - Function string
- The name of the target function.
*
represents all functions in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any function. - Id float64
- The policy ID.
- Mode string
- The grant mode, which is not required as an input parameter. Valid values:
COMMON
andSENIOR
. - Operator string
- The operator, which is not required as an input parameter.
- Policy
Type string - The permission type. Valid values:
ADMIN
,DATASOURCE
,DATABASE
,TABLE
,VIEW
,FUNCTION
,COLUMN
, andENGINE
. Note: If it is left empty,ADMIN
is used. - Re
Auth bool - Whether the grantee is allowed to further grant the permissions. Valid values:
false
(default) andtrue
(the grantee can grant permissions gained here to other sub-users). - Source string
- The permission source, which is not required when input parameters are passed in. Valid values:
USER
(from the user) andWORKGROUP
(from one or more associated work groups). - Source
Id float64 - The ID of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - Source
Name string - The name of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - View string
- The name of the target view.
*
represents all views in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any view.
- catalog String
- The name of the target data source. To grant admin permission, it must be
*
(all resources at this level); to grant data source and database permissions, it must beCOSDataCatalog
or*
; to grant table permissions, it can be a custom data source; if it is left empty,DataLakeCatalog
is used. Note: To grant permissions on a custom data source, the permissions that can be managed in the Data Lake Compute console are subsets of the account permissions granted when you connect the data source to the console. - database String
- The name of the target database.
*
represents all databases in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any database. - operation String
- The target permissions, which vary by permission level. Admin:
ALL
(default); data connection:CREATE
; database:ALL
,CREATE
,ALTER
, andDROP
; table:ALL
,SELECT
,INSERT
,ALTER
,DELETE
,DROP
, andUPDATE
. Note: For table permissions, if a data source other thanCOSDataCatalog
is specified, only theSELECT
permission can be granted here. - table String
- The name of the target table.
*
represents all tables in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any table. - column String
- The name of the target column.
*
represents all columns. To grant admin permissions, it must be*
. - create
Time String - The permission policy creation time, which is not required as an input parameter.
- data
Engine String - The name of the target data engine.
*
represents all engines. To grant admin permissions, it must be*
. - function String
- The name of the target function.
*
represents all functions in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any function. - id Double
- The policy ID.
- mode String
- The grant mode, which is not required as an input parameter. Valid values:
COMMON
andSENIOR
. - operator String
- The operator, which is not required as an input parameter.
- policy
Type String - The permission type. Valid values:
ADMIN
,DATASOURCE
,DATABASE
,TABLE
,VIEW
,FUNCTION
,COLUMN
, andENGINE
. Note: If it is left empty,ADMIN
is used. - re
Auth Boolean - Whether the grantee is allowed to further grant the permissions. Valid values:
false
(default) andtrue
(the grantee can grant permissions gained here to other sub-users). - source String
- The permission source, which is not required when input parameters are passed in. Valid values:
USER
(from the user) andWORKGROUP
(from one or more associated work groups). - source
Id Double - The ID of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - source
Name String - The name of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - view String
- The name of the target view.
*
represents all views in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any view.
- catalog string
- The name of the target data source. To grant admin permission, it must be
*
(all resources at this level); to grant data source and database permissions, it must beCOSDataCatalog
or*
; to grant table permissions, it can be a custom data source; if it is left empty,DataLakeCatalog
is used. Note: To grant permissions on a custom data source, the permissions that can be managed in the Data Lake Compute console are subsets of the account permissions granted when you connect the data source to the console. - database string
- The name of the target database.
*
represents all databases in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any database. - operation string
- The target permissions, which vary by permission level. Admin:
ALL
(default); data connection:CREATE
; database:ALL
,CREATE
,ALTER
, andDROP
; table:ALL
,SELECT
,INSERT
,ALTER
,DELETE
,DROP
, andUPDATE
. Note: For table permissions, if a data source other thanCOSDataCatalog
is specified, only theSELECT
permission can be granted here. - table string
- The name of the target table.
*
represents all tables in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any table. - column string
- The name of the target column.
*
represents all columns. To grant admin permissions, it must be*
. - create
Time string - The permission policy creation time, which is not required as an input parameter.
- data
Engine string - The name of the target data engine.
*
represents all engines. To grant admin permissions, it must be*
. - function string
- The name of the target function.
*
represents all functions in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any function. - id number
- The policy ID.
- mode string
- The grant mode, which is not required as an input parameter. Valid values:
COMMON
andSENIOR
. - operator string
- The operator, which is not required as an input parameter.
- policy
Type string - The permission type. Valid values:
ADMIN
,DATASOURCE
,DATABASE
,TABLE
,VIEW
,FUNCTION
,COLUMN
, andENGINE
. Note: If it is left empty,ADMIN
is used. - re
Auth boolean - Whether the grantee is allowed to further grant the permissions. Valid values:
false
(default) andtrue
(the grantee can grant permissions gained here to other sub-users). - source string
- The permission source, which is not required when input parameters are passed in. Valid values:
USER
(from the user) andWORKGROUP
(from one or more associated work groups). - source
Id number - The ID of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - source
Name string - The name of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - view string
- The name of the target view.
*
represents all views in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any view.
- catalog str
- The name of the target data source. To grant admin permission, it must be
*
(all resources at this level); to grant data source and database permissions, it must beCOSDataCatalog
or*
; to grant table permissions, it can be a custom data source; if it is left empty,DataLakeCatalog
is used. Note: To grant permissions on a custom data source, the permissions that can be managed in the Data Lake Compute console are subsets of the account permissions granted when you connect the data source to the console. - database str
- The name of the target database.
*
represents all databases in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any database. - operation str
- The target permissions, which vary by permission level. Admin:
ALL
(default); data connection:CREATE
; database:ALL
,CREATE
,ALTER
, andDROP
; table:ALL
,SELECT
,INSERT
,ALTER
,DELETE
,DROP
, andUPDATE
. Note: For table permissions, if a data source other thanCOSDataCatalog
is specified, only theSELECT
permission can be granted here. - table str
- The name of the target table.
*
represents all tables in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any table. - column str
- The name of the target column.
*
represents all columns. To grant admin permissions, it must be*
. - create_
time str - The permission policy creation time, which is not required as an input parameter.
- data_
engine str - The name of the target data engine.
*
represents all engines. To grant admin permissions, it must be*
. - function str
- The name of the target function.
*
represents all functions in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any function. - id float
- The policy ID.
- mode str
- The grant mode, which is not required as an input parameter. Valid values:
COMMON
andSENIOR
. - operator str
- The operator, which is not required as an input parameter.
- policy_
type str - The permission type. Valid values:
ADMIN
,DATASOURCE
,DATABASE
,TABLE
,VIEW
,FUNCTION
,COLUMN
, andENGINE
. Note: If it is left empty,ADMIN
is used. - re_
auth bool - Whether the grantee is allowed to further grant the permissions. Valid values:
false
(default) andtrue
(the grantee can grant permissions gained here to other sub-users). - source str
- The permission source, which is not required when input parameters are passed in. Valid values:
USER
(from the user) andWORKGROUP
(from one or more associated work groups). - source_
id float - The ID of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - source_
name str - The name of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - view str
- The name of the target view.
*
represents all views in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any view.
- catalog String
- The name of the target data source. To grant admin permission, it must be
*
(all resources at this level); to grant data source and database permissions, it must beCOSDataCatalog
or*
; to grant table permissions, it can be a custom data source; if it is left empty,DataLakeCatalog
is used. Note: To grant permissions on a custom data source, the permissions that can be managed in the Data Lake Compute console are subsets of the account permissions granted when you connect the data source to the console. - database String
- The name of the target database.
*
represents all databases in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any database. - operation String
- The target permissions, which vary by permission level. Admin:
ALL
(default); data connection:CREATE
; database:ALL
,CREATE
,ALTER
, andDROP
; table:ALL
,SELECT
,INSERT
,ALTER
,DELETE
,DROP
, andUPDATE
. Note: For table permissions, if a data source other thanCOSDataCatalog
is specified, only theSELECT
permission can be granted here. - table String
- The name of the target table.
*
represents all tables in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any table. - column String
- The name of the target column.
*
represents all columns. To grant admin permissions, it must be*
. - create
Time String - The permission policy creation time, which is not required as an input parameter.
- data
Engine String - The name of the target data engine.
*
represents all engines. To grant admin permissions, it must be*
. - function String
- The name of the target function.
*
represents all functions in the current catalog. To grant admin permissions, it must be*
; to grant data connection permissions, it must be null; to grant other permissions, it can be any function. - id Number
- The policy ID.
- mode String
- The grant mode, which is not required as an input parameter. Valid values:
COMMON
andSENIOR
. - operator String
- The operator, which is not required as an input parameter.
- policy
Type String - The permission type. Valid values:
ADMIN
,DATASOURCE
,DATABASE
,TABLE
,VIEW
,FUNCTION
,COLUMN
, andENGINE
. Note: If it is left empty,ADMIN
is used. - re
Auth Boolean - Whether the grantee is allowed to further grant the permissions. Valid values:
false
(default) andtrue
(the grantee can grant permissions gained here to other sub-users). - source String
- The permission source, which is not required when input parameters are passed in. Valid values:
USER
(from the user) andWORKGROUP
(from one or more associated work groups). - source
Id Number - The ID of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - source
Name String - The name of the work group, which applies only when the value of the
Source
field isWORKGROUP
. - view String
- The name of the target view.
*
represents all views in the current database. To grant admin permissions, it must be*
; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any view.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.