1. Packages
  2. Konnect Provider
  3. API Docs
  4. AuditLog
konnect 2.4.1 published on Thursday, Mar 13, 2025 by kong

konnect.AuditLog

Explore with Pulumi AI

AuditLog Resource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";

const myAuditlog = new konnect.AuditLog("myAuditlog", {
    authorization: "Bearer sometoken",
    enabled: true,
    endpoint: "https://example.com/audit-logs",
    logFormat: "cef",
    skipSslVerification: false,
});
Copy
import pulumi
import pulumi_konnect as konnect

my_auditlog = konnect.AuditLog("myAuditlog",
    authorization="Bearer sometoken",
    enabled=True,
    endpoint="https://example.com/audit-logs",
    log_format="cef",
    skip_ssl_verification=False)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v2/konnect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := konnect.NewAuditLog(ctx, "myAuditlog", &konnect.AuditLogArgs{
			Authorization:       pulumi.String("Bearer sometoken"),
			Enabled:             pulumi.Bool(true),
			Endpoint:            pulumi.String("https://example.com/audit-logs"),
			LogFormat:           pulumi.String("cef"),
			SkipSslVerification: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;

return await Deployment.RunAsync(() => 
{
    var myAuditlog = new Konnect.AuditLog("myAuditlog", new()
    {
        Authorization = "Bearer sometoken",
        Enabled = true,
        Endpoint = "https://example.com/audit-logs",
        LogFormat = "cef",
        SkipSslVerification = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.AuditLog;
import com.pulumi.konnect.AuditLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var myAuditlog = new AuditLog("myAuditlog", AuditLogArgs.builder()
            .authorization("Bearer sometoken")
            .enabled(true)
            .endpoint("https://example.com/audit-logs")
            .logFormat("cef")
            .skipSslVerification(false)
            .build());

    }
}
Copy
resources:
  myAuditlog:
    type: konnect:AuditLog
    properties:
      authorization: Bearer sometoken
      enabled: true
      endpoint: https://example.com/audit-logs
      logFormat: cef
      skipSslVerification: false
Copy

Create AuditLog Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AuditLog(name: string, args?: AuditLogArgs, opts?: CustomResourceOptions);
@overload
def AuditLog(resource_name: str,
             args: Optional[AuditLogArgs] = None,
             opts: Optional[ResourceOptions] = None)

@overload
def AuditLog(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             authorization: Optional[str] = None,
             enabled: Optional[bool] = None,
             endpoint: Optional[str] = None,
             log_format: Optional[str] = None,
             skip_ssl_verification: Optional[bool] = None)
func NewAuditLog(ctx *Context, name string, args *AuditLogArgs, opts ...ResourceOption) (*AuditLog, error)
public AuditLog(string name, AuditLogArgs? args = null, CustomResourceOptions? opts = null)
public AuditLog(String name, AuditLogArgs args)
public AuditLog(String name, AuditLogArgs args, CustomResourceOptions options)
type: konnect:AuditLog
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args AuditLogArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args AuditLogArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args AuditLogArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args AuditLogArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AuditLogArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var auditLogResource = new Konnect.AuditLog("auditLogResource", new()
{
    Authorization = "string",
    Enabled = false,
    Endpoint = "string",
    LogFormat = "string",
    SkipSslVerification = false,
});
Copy
example, err := konnect.NewAuditLog(ctx, "auditLogResource", &konnect.AuditLogArgs{
Authorization: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Endpoint: pulumi.String("string"),
LogFormat: pulumi.String("string"),
SkipSslVerification: pulumi.Bool(false),
})
Copy
var auditLogResource = new AuditLog("auditLogResource", AuditLogArgs.builder()
    .authorization("string")
    .enabled(false)
    .endpoint("string")
    .logFormat("string")
    .skipSslVerification(false)
    .build());
Copy
audit_log_resource = konnect.AuditLog("auditLogResource",
    authorization="string",
    enabled=False,
    endpoint="string",
    log_format="string",
    skip_ssl_verification=False)
Copy
const auditLogResource = new konnect.AuditLog("auditLogResource", {
    authorization: "string",
    enabled: false,
    endpoint: "string",
    logFormat: "string",
    skipSslVerification: false,
});
Copy
type: konnect:AuditLog
properties:
    authorization: string
    enabled: false
    endpoint: string
    logFormat: string
    skipSslVerification: false
Copy

AuditLog Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AuditLog resource accepts the following input properties:

Authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
Enabled bool
Indicates if the data should be sent to the webhook.
Endpoint string
The endpoint that will receive audit log messages.
LogFormat string
The output format of each log message. must be one of ["cef", "json"]
SkipSslVerification bool
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
Authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
Enabled bool
Indicates if the data should be sent to the webhook.
Endpoint string
The endpoint that will receive audit log messages.
LogFormat string
The output format of each log message. must be one of ["cef", "json"]
SkipSslVerification bool
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
authorization String
The value to include in the Authorization header when sending audit logs to the webhook.
enabled Boolean
Indicates if the data should be sent to the webhook.
endpoint String
The endpoint that will receive audit log messages.
logFormat String
The output format of each log message. must be one of ["cef", "json"]
skipSslVerification Boolean
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
enabled boolean
Indicates if the data should be sent to the webhook.
endpoint string
The endpoint that will receive audit log messages.
logFormat string
The output format of each log message. must be one of ["cef", "json"]
skipSslVerification boolean
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
authorization str
The value to include in the Authorization header when sending audit logs to the webhook.
enabled bool
Indicates if the data should be sent to the webhook.
endpoint str
The endpoint that will receive audit log messages.
log_format str
The output format of each log message. must be one of ["cef", "json"]
skip_ssl_verification bool
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
authorization String
The value to include in the Authorization header when sending audit logs to the webhook.
enabled Boolean
Indicates if the data should be sent to the webhook.
endpoint String
The endpoint that will receive audit log messages.
logFormat String
The output format of each log message. must be one of ["cef", "json"]
skipSslVerification Boolean
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.

Outputs

All input properties are implicitly available as output properties. Additionally, the AuditLog resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt string
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt string
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
id String
The provider-assigned unique ID for this managed resource.
updatedAt String
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
id string
The provider-assigned unique ID for this managed resource.
updatedAt string
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
id str
The provider-assigned unique ID for this managed resource.
updated_at str
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
id String
The provider-assigned unique ID for this managed resource.
updatedAt String
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.

Look up Existing AuditLog Resource

Get an existing AuditLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AuditLogState, opts?: CustomResourceOptions): AuditLog
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        authorization: Optional[str] = None,
        enabled: Optional[bool] = None,
        endpoint: Optional[str] = None,
        log_format: Optional[str] = None,
        skip_ssl_verification: Optional[bool] = None,
        updated_at: Optional[str] = None) -> AuditLog
func GetAuditLog(ctx *Context, name string, id IDInput, state *AuditLogState, opts ...ResourceOption) (*AuditLog, error)
public static AuditLog Get(string name, Input<string> id, AuditLogState? state, CustomResourceOptions? opts = null)
public static AuditLog get(String name, Output<String> id, AuditLogState state, CustomResourceOptions options)
resources:  _:    type: konnect:AuditLog    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
Enabled bool
Indicates if the data should be sent to the webhook.
Endpoint string
The endpoint that will receive audit log messages.
LogFormat string
The output format of each log message. must be one of ["cef", "json"]
SkipSslVerification bool
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
UpdatedAt string
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
Authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
Enabled bool
Indicates if the data should be sent to the webhook.
Endpoint string
The endpoint that will receive audit log messages.
LogFormat string
The output format of each log message. must be one of ["cef", "json"]
SkipSslVerification bool
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
UpdatedAt string
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
authorization String
The value to include in the Authorization header when sending audit logs to the webhook.
enabled Boolean
Indicates if the data should be sent to the webhook.
endpoint String
The endpoint that will receive audit log messages.
logFormat String
The output format of each log message. must be one of ["cef", "json"]
skipSslVerification Boolean
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
updatedAt String
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
enabled boolean
Indicates if the data should be sent to the webhook.
endpoint string
The endpoint that will receive audit log messages.
logFormat string
The output format of each log message. must be one of ["cef", "json"]
skipSslVerification boolean
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
updatedAt string
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
authorization str
The value to include in the Authorization header when sending audit logs to the webhook.
enabled bool
Indicates if the data should be sent to the webhook.
endpoint str
The endpoint that will receive audit log messages.
log_format str
The output format of each log message. must be one of ["cef", "json"]
skip_ssl_verification bool
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
updated_at str
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.
authorization String
The value to include in the Authorization header when sending audit logs to the webhook.
enabled Boolean
Indicates if the data should be sent to the webhook.
endpoint String
The endpoint that will receive audit log messages.
logFormat String
The output format of each log message. must be one of ["cef", "json"]
skipSslVerification Boolean
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads. We strongly recommend not setting this to 'true' as you are subject to man-in-the-middle and other attacks. This option should be considered only for self-signed SSL certificates used in a non-production environment.
updatedAt String
Timestamp when this webhook was last updated. Initial value is 0001-01-01T00:00:0Z.

Package Details

Repository
konnect kong/terraform-provider-konnect
License
Notes
This Pulumi package is based on the konnect Terraform Provider.