# PasswordSecret

[Snowflake Documentation](https://docs.snowflake.com/en/sql-reference/sql/create-secret)

A Secret defines a set of sensitive data that can be used for authentication or other purposes. This class defines a password secret.

## Examples

### Python

```python
secret = PasswordSecret(
    name="some_secret",
    username="some_username",
    password="some_password",
    comment="some_comment",
    owner="SYSADMIN",
)
```

### YAML

```yaml
secrets:
  - name: some_secret
    secret_type: PASSWORD
    username: some_username
    password: some_password
    comment: some_comment
    owner: SYSADMIN
```

## Fields

* `name` (string, required) - The name of the secret.
* `username` (string) - The username for the secret.
* `password` (string) - The password for the secret.
* `comment` (string) - A comment for the secret.
* `owner` (string or [Role](https://titan-core.gitbook.io/titan-core/resources/role)) - The owner of the secret. Defaults to SYSADMIN.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://titan-core.gitbook.io/titan-core/resources/password_secret.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
