- database_name
- user_name
- Optional name of a database or user other than the current or default in which the authorization being defined or replaced is to be contained.
- authorization_name
- A name for the authorization so you can specify the authorization in an external routine definition or function mapping.
- DEFINER
- Specify DEFINER to share an authorization object with multiple users of the database in which it resides. You can create the authorization in any database.
- DEFAULT
- An optional keyword modifier for the DEFINER keyword that associates this authorization with all external routines that do not specify the authorization name in the EXTERNAL SECURITY DEFINER clause of the following statements.
- INVOKER
- Specify INVOKER to allow exclusive access by a user. You must create the authorization in the database of the current user.
- TRUSTED
- Required keyword.
- user_name
- A clause that specifies a string literal that is the name of the database user to whom this authorization is being assigned.
- password
- A clause that specifies a string literal that is the name of the operating system platform password assigned to user_name.
The following table shows the supported credentials for USER and PASSWORD:
System/Scheme | USER | PASSWORD |
---|---|---|
AWS | Access Key ID | Access Key Secret |
Azure / Shared Key | Storage Account Name | Storage Account Key |
Azure Shared Access Signature (SAS) | Storage Account Name | Account SAS Token |
Google Cloud (S3 interop mode) | Access Key ID | Access Key Secret |
Google Cloud (native) | Client Email | Private Key |
On-premises object stores | Access Key ID | Access Key Secret |
Public access object stores | <empty string> Enclose the empty string in single straight quotes: USER '' |
<empty string> Enclose the empty string in single straight quotes: PASSWORD '' |
Amazon Identity and Access Management (IAM) is an alternative to using an access key and password to secure S3 buckets.