Audit
Example Usage (file audit device)
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const test = new vault.Audit("test", {
options: {
file_path: "C:/temp/audit.txt",
},
type: "file",
});import pulumi
import pulumi_vault as vault
test = vault.Audit("test",
options={
"file_path": "C:/temp/audit.txt",
},
type="file")using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var test = new Vault.Audit("test", new Vault.AuditArgs
{
Options =
{
{ "file_path", "C:/temp/audit.txt" },
},
Type = "file",
});
}
}
Example Usage (socket audit device)
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const test = new vault.Audit("test", {
options: {
address: "127.0.0.1:8000",
description: "application x socket",
socket_type: "tcp",
},
path: "app_socket",
type: "socket",
});import pulumi
import pulumi_vault as vault
test = vault.Audit("test",
options={
"address": "127.0.0.1:8000",
"description": "application x socket",
"socket_type": "tcp",
},
path="app_socket",
type="socket")using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var test = new Vault.Audit("test", new Vault.AuditArgs
{
Options =
{
{ "address", "127.0.0.1:8000" },
{ "description", "application x socket" },
{ "socket_type", "tcp" },
},
Path = "app_socket",
Type = "socket",
});
}
}
Create a Audit Resource
new Audit(name: string, args: AuditArgs, opts?: CustomResourceOptions);def Audit(resource_name, opts=None, description=None, options=None, path=None, type=None, __props__=None);public Audit(string name, AuditArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AuditArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AuditArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuditArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Audit Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Audit resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Audit resource produces the following output properties:
Look up an Existing Audit Resource
Get an existing Audit 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?: AuditState, opts?: CustomResourceOptions): Auditstatic get(resource_name, id, opts=None, description=None, options=None, path=None, type=None, __props__=None);func GetAudit(ctx *Context, name string, id IDInput, state *AuditState, opts ...ResourceOption) (*Audit, error)public static Audit Get(string name, Input<string> id, AuditState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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:
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.