Show / Hide Table of Contents

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>",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Auditing
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Mongodbatlas
Assembly: Pulumi.Mongodbatlas.dll
Syntax
public class Auditing : CustomResource

Constructors

View Source

Auditing(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 Source

AuditAuthorizationSuccess

JSON-formatted audit filter used by the project

Declaration
public Output<bool> AuditAuthorizationSuccess { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

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>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.