Scaleway
DatabasePrivilege
Create a DatabasePrivilege Resource
new DatabasePrivilege(name: string, args: DatabasePrivilegeArgs, opts?: CustomResourceOptions);
@overload
def DatabasePrivilege(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_name: Optional[str] = None,
instance_id: Optional[str] = None,
permission: Optional[str] = None,
user_name: Optional[str] = None)
@overload
def DatabasePrivilege(resource_name: str,
args: DatabasePrivilegeArgs,
opts: Optional[ResourceOptions] = None)
func NewDatabasePrivilege(ctx *Context, name string, args DatabasePrivilegeArgs, opts ...ResourceOption) (*DatabasePrivilege, error)
public DatabasePrivilege(string name, DatabasePrivilegeArgs args, CustomResourceOptions? opts = null)
public DatabasePrivilege(String name, DatabasePrivilegeArgs args)
public DatabasePrivilege(String name, DatabasePrivilegeArgs args, CustomResourceOptions options)
type: scaleway:DatabasePrivilege
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabasePrivilegeArgs
- 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 DatabasePrivilegeArgs
- 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 DatabasePrivilegeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabasePrivilegeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabasePrivilegeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DatabasePrivilege Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DatabasePrivilege resource accepts the following input properties:
- Database
Name string Database name
- Instance
Id string Instance on which the database is created
- Permission string
Privilege
- User
Name string User name
- Database
Name string Database name
- Instance
Id string Instance on which the database is created
- Permission string
Privilege
- User
Name string User name
- database
Name String Database name
- instance
Id String Instance on which the database is created
- permission String
Privilege
- user
Name String User name
- database
Name string Database name
- instance
Id string Instance on which the database is created
- permission string
Privilege
- user
Name string User name
- database_
name str Database name
- instance_
id str Instance on which the database is created
- permission str
Privilege
- user_
name str User name
- database
Name String Database name
- instance
Id String Instance on which the database is created
- permission String
Privilege
- user
Name String User name
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabasePrivilege 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 an Existing DatabasePrivilege Resource
Get an existing DatabasePrivilege 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?: DatabasePrivilegeState, opts?: CustomResourceOptions): DatabasePrivilege
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
database_name: Optional[str] = None,
instance_id: Optional[str] = None,
permission: Optional[str] = None,
user_name: Optional[str] = None) -> DatabasePrivilege
func GetDatabasePrivilege(ctx *Context, name string, id IDInput, state *DatabasePrivilegeState, opts ...ResourceOption) (*DatabasePrivilege, error)
public static DatabasePrivilege Get(string name, Input<string> id, DatabasePrivilegeState? state, CustomResourceOptions? opts = null)
public static DatabasePrivilege get(String name, Output<String> id, DatabasePrivilegeState 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.
- Database
Name string Database name
- Instance
Id string Instance on which the database is created
- Permission string
Privilege
- User
Name string User name
- Database
Name string Database name
- Instance
Id string Instance on which the database is created
- Permission string
Privilege
- User
Name string User name
- database
Name String Database name
- instance
Id String Instance on which the database is created
- permission String
Privilege
- user
Name String User name
- database
Name string Database name
- instance
Id string Instance on which the database is created
- permission string
Privilege
- user
Name string User name
- database_
name str Database name
- instance_
id str Instance on which the database is created
- permission str
Privilege
- user_
name str User name
- database
Name String Database name
- instance
Id String Instance on which the database is created
- permission String
Privilege
- user
Name String User name
Package Details
- Repository
- https://github.com/jaxxstorm/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.