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

konnect.AuditLogDestination

Explore with Pulumi AI

AuditLogDestination Resource

Example Usage

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

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

my_auditlogdestination = konnect.AuditLogDestination("myAuditlogdestination",
    authorization="Bearer sometoken",
    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.NewAuditLogDestination(ctx, "myAuditlogdestination", &konnect.AuditLogDestinationArgs{
			Authorization:       pulumi.String("Bearer sometoken"),
			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 myAuditlogdestination = new Konnect.AuditLogDestination("myAuditlogdestination", new()
    {
        Authorization = "Bearer sometoken",
        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.AuditLogDestination;
import com.pulumi.konnect.AuditLogDestinationArgs;
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 myAuditlogdestination = new AuditLogDestination("myAuditlogdestination", AuditLogDestinationArgs.builder()
            .authorization("Bearer sometoken")
            .endpoint("https://example.com/audit-logs")
            .logFormat("cef")
            .skipSslVerification(false)
            .build());

    }
}
Copy
resources:
  myAuditlogdestination:
    type: konnect:AuditLogDestination
    properties:
      authorization: Bearer sometoken
      endpoint: https://example.com/audit-logs
      logFormat: cef
      skipSslVerification: false
Copy

Create AuditLogDestination Resource

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

Constructor syntax

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

@overload
def AuditLogDestination(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        endpoint: Optional[str] = None,
                        log_format: Optional[str] = None,
                        authorization: Optional[str] = None,
                        name: Optional[str] = None,
                        skip_ssl_verification: Optional[bool] = None)
func NewAuditLogDestination(ctx *Context, name string, args AuditLogDestinationArgs, opts ...ResourceOption) (*AuditLogDestination, error)
public AuditLogDestination(string name, AuditLogDestinationArgs args, CustomResourceOptions? opts = null)
public AuditLogDestination(String name, AuditLogDestinationArgs args)
public AuditLogDestination(String name, AuditLogDestinationArgs args, CustomResourceOptions options)
type: konnect:AuditLogDestination
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 This property is required. AuditLogDestinationArgs
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 This property is required. AuditLogDestinationArgs
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 This property is required. AuditLogDestinationArgs
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 This property is required. AuditLogDestinationArgs
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. AuditLogDestinationArgs
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 auditLogDestinationResource = new Konnect.AuditLogDestination("auditLogDestinationResource", new()
{
    Endpoint = "string",
    LogFormat = "string",
    Authorization = "string",
    Name = "string",
    SkipSslVerification = false,
});
Copy
example, err := konnect.NewAuditLogDestination(ctx, "auditLogDestinationResource", &konnect.AuditLogDestinationArgs{
Endpoint: pulumi.String("string"),
LogFormat: pulumi.String("string"),
Authorization: pulumi.String("string"),
Name: pulumi.String("string"),
SkipSslVerification: pulumi.Bool(false),
})
Copy
var auditLogDestinationResource = new AuditLogDestination("auditLogDestinationResource", AuditLogDestinationArgs.builder()
    .endpoint("string")
    .logFormat("string")
    .authorization("string")
    .name("string")
    .skipSslVerification(false)
    .build());
Copy
audit_log_destination_resource = konnect.AuditLogDestination("auditLogDestinationResource",
    endpoint="string",
    log_format="string",
    authorization="string",
    name="string",
    skip_ssl_verification=False)
Copy
const auditLogDestinationResource = new konnect.AuditLogDestination("auditLogDestinationResource", {
    endpoint: "string",
    logFormat: "string",
    authorization: "string",
    name: "string",
    skipSslVerification: false,
});
Copy
type: konnect:AuditLogDestination
properties:
    authorization: string
    endpoint: string
    logFormat: string
    name: string
    skipSslVerification: false
Copy

AuditLogDestination 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 AuditLogDestination resource accepts the following input properties:

Endpoint This property is required. string
The endpoint that will receive audit log messages.
LogFormat This property is required. string
The output format of each log message. must be one of ["cef", "json"]
Authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
Name string
The name of the audit log destination.
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.
Endpoint This property is required. string
The endpoint that will receive audit log messages.
LogFormat This property is required. string
The output format of each log message. must be one of ["cef", "json"]
Authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
Name string
The name of the audit log destination.
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.
endpoint This property is required. String
The endpoint that will receive audit log messages.
logFormat This property is required. String
The output format of each log message. must be one of ["cef", "json"]
authorization String
The value to include in the Authorization header when sending audit logs to the webhook.
name String
The name of the audit log destination.
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.
endpoint This property is required. string
The endpoint that will receive audit log messages.
logFormat This property is required. string
The output format of each log message. must be one of ["cef", "json"]
authorization string
The value to include in the Authorization header when sending audit logs to the webhook.
name string
The name of the audit log destination.
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.
endpoint This property is required. str
The endpoint that will receive audit log messages.
log_format This property is required. str
The output format of each log message. must be one of ["cef", "json"]
authorization str
The value to include in the Authorization header when sending audit logs to the webhook.
name str
The name of the audit log destination.
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.
endpoint This property is required. String
The endpoint that will receive audit log messages.
logFormat This property is required. String
The output format of each log message. must be one of ["cef", "json"]
authorization String
The value to include in the Authorization header when sending audit logs to the webhook.
name String
The name of the audit log destination.
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 AuditLogDestination resource produces the following output properties:

CreatedAt string
Timestamp when this webhook was created.
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.
CreatedAt string
Timestamp when this webhook was created.
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.
createdAt String
Timestamp when this webhook was created.
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.
createdAt string
Timestamp when this webhook was created.
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.
created_at str
Timestamp when this webhook was created.
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.
createdAt String
Timestamp when this webhook was created.
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 AuditLogDestination Resource

Get an existing AuditLogDestination 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?: AuditLogDestinationState, opts?: CustomResourceOptions): AuditLogDestination
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        authorization: Optional[str] = None,
        created_at: Optional[str] = None,
        endpoint: Optional[str] = None,
        log_format: Optional[str] = None,
        name: Optional[str] = None,
        skip_ssl_verification: Optional[bool] = None,
        updated_at: Optional[str] = None) -> AuditLogDestination
func GetAuditLogDestination(ctx *Context, name string, id IDInput, state *AuditLogDestinationState, opts ...ResourceOption) (*AuditLogDestination, error)
public static AuditLogDestination Get(string name, Input<string> id, AuditLogDestinationState? state, CustomResourceOptions? opts = null)
public static AuditLogDestination get(String name, Output<String> id, AuditLogDestinationState state, CustomResourceOptions options)
resources:  _:    type: konnect:AuditLogDestination    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.
CreatedAt string
Timestamp when this webhook was created.
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"]
Name string
The name of the audit log destination.
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.
CreatedAt string
Timestamp when this webhook was created.
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"]
Name string
The name of the audit log destination.
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.
createdAt String
Timestamp when this webhook was created.
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"]
name String
The name of the audit log destination.
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.
createdAt string
Timestamp when this webhook was created.
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"]
name string
The name of the audit log destination.
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.
created_at str
Timestamp when this webhook was created.
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"]
name str
The name of the audit log destination.
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.
createdAt String
Timestamp when this webhook was created.
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"]
name String
The name of the audit log destination.
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.

Import

$ pulumi import konnect:index/auditLogDestination:AuditLogDestination my_konnect_audit_log_destination ""
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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