Unless otherwise noted, every syntax element that is a name must follow the rules for naming database objects. See Object Names.
- database_name
- user_name
- [Optional] Name of a database or user in which the authorization being defined or replaced is to reside.
- authorization_name
- Name for the authorization, to specify in an external routine definition or function mapping.
- DEFINER
- [Optional] Specify DEFINER to share an authorization object with multiple users of the database in which it resides.
- DEFAULT
- [Optional] Modifier for DEFINER 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
- [Optional] Specify INVOKER to allow exclusive access by a user (this is the default).
- TRUSTED
- [Optional] Creates the associated authorization object as TRUSTED.
- USER user_name
- Name of the database user to whom this authorization is being assigned.
- PASSWORD password
- Name of the operating system platform password assigned to user_name.
- SESSION_TOKEN session_token_value
- If your S3 user account requires the use of physical or virtual security, you can use a session token with Access_ID and Access_KEY in this syntax:
AUTHORIZATION = '{"Access_ID":"access_id", "Access_Key":"secret_key", "Session_Token":"session_token" }'
- AUTHSERVICETYPE
- Authorization for the storage service. For example, ASSUME_ROLE, AZURE_SERVICE_PRINCIPAL, and so on. For AUTHSERVICETYPE values, see AuthorizationsV[X] .
- ROLENAME 'resource_name'
- Amazon Resource Name (ARN) of the role to assume. Applicable only for ASSUME_ROLE.
- EXTERNALID 'external_id'
- External identification that assumes the role. Applicable only for ASSUME_ROLE.
- DURATION_SECONDS 'duration_seconds_value'
- [Optional] Specify the duration of the AUTHSERVICETYPE 'ASSUME_ROLE' and supports only numeric values. The range is from 900-43200 seconds.
- CLIENT_ID 'client_id'
- Application identification for the Azure service principal.
- CLIENT_SECRET 'client_secret'
- Password associated with the Azure service principal.
- TENANT_ID 'tenant_id'
- Identifier of Microsoft Entra ID instance. For example:
391c8c4c-6a2a-40fd-ab98-226b6baa5155
- KEYID 'key_id'
- Authorization key identification. Set to the storage account name.
- KEYVAULTNAME 'key_vault_name'
- Name of the Azure key vault. The key vault allows access to Azure external object storage through public IP addresses.
- APPID 'app_id'
- Application identification.
- APPSECRET 'app_secret_password'
- Application password.