Class AuditLogConfig (1.11.0)

AuditLogConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
exempted_members MutableSequence[str]
Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
ignore_child_exemptions bool
This is deprecated and has no effect. Do not use. This field is a member of oneof_ _ignore_child_exemptions.
log_type str
The log type that this config enables. Check the LogType enum for the list of possible values. This field is a member of oneof_ _log_type.

Classes

LogType

LogType(value)

The log type that this config enables.

Values: UNDEFINED_LOG_TYPE (0): A value indicating that the enum field is not set. ADMIN_READ (128951462): Admin reads. Example: CloudIAM getIamPolicy DATA_READ (305224971): Data reads. Example: CloudSQL Users list DATA_WRITE (340181738): Data writes. Example: CloudSQL Users create LOG_TYPE_UNSPECIFIED (154527053): Default case. Should never be this.