Class Auditing
mongodbatlas..Auditing provides an Auditing resource. This allows auditing to be created.
Example Usage
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var test = new Mongodbatlas.Auditing("test", new Mongodbatlas.AuditingArgs
{
AuditAuthorizationSuccess = false,
AuditFilter = "{ 'atype': 'authenticate', 'param': { 'user': 'auditAdmin', 'db': 'admin', 'mechanism': 'SCRAM-SHA-1' }}",
Enabled = true,
ProjectId = "<project-id>",
});
}
}
Inherited Members
Namespace: Pulumi.Mongodbatlas
Assembly: Pulumi.Mongodbatlas.dll
Syntax
public class Auditing : CustomResource
Constructors
View SourceAuditing(String, AuditingArgs, CustomResourceOptions)
Create a Auditing resource with the given unique name, arguments, and options.
Declaration
public Auditing(string name, AuditingArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AuditingArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAuditAuthorizationSuccess
JSON-formatted audit filter used by the project
Declaration
public Output<bool> AuditAuthorizationSuccess { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
AuditFilter
Indicates whether the auditing system captures successful authentication attempts for audit filters using the "atype" : "authCheck" auditing event. For more information, see auditAuthorizationSuccess
Declaration
public Output<string> AuditFilter { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ConfigurationType
Denotes the configuration method for the audit filter. Possible values are:
- NONE - auditing not configured for the project.
- FILTER_BUILDER - auditing configured via Atlas UI filter builder.
- FILTER_JSON - auditing configured via Atlas custom filter or API.
Declaration
public Output<string> ConfigurationType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Enabled
Denotes whether or not the project associated with the {project_id} has database auditing enabled.
Declaration
public Output<bool> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
ProjectId
The unique ID for the project to configure auditing.
Declaration
public Output<string> ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AuditingState, CustomResourceOptions)
Get an existing Auditing resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Auditing Get(string name, Input<string> id, AuditingState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AuditingState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Auditing |