Audit

SLS log audit exists in the form of log service app.

In addition to inheriting all SLS functions, it also enhances the real-time automatic centralized collection of audit related logs across multi cloud products under multi accounts, and provides support for storage, query and information summary required by audit. It covers actiontrail, OSS, NAS, SLB, API gateway, RDS, WAF, cloud firewall, cloud security center and other products.

NOTE: Available in 1.81.0

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.Log.Audit("example", new AliCloud.Log.AuditArgs
        {
            Aliuid = "12345678",
            DisplayName = "tf-audit-test",
            VariableMap = 
            {
                { "actiontrail_enabled", "true" },
                { "actiontrail_ttl", "180" },
                { "oss_access_enabled", "true" },
                { "oss_access_ttl", "180" },
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.log.Audit("example",
    aliuid="12345678",
    display_name="tf-audit-test",
    variable_map={
        "actiontrail_enabled": "true",
        "actiontrail_ttl": "180",
        "oss_access_enabled": "true",
        "oss_access_ttl": "180",
    })
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.log.Audit("example", {
    aliuid: "12345678",
    displayName: "tf-audit-test",
    variableMap: {
        actiontrail_enabled: "true",
        actiontrail_ttl: "180",
        oss_access_enabled: "true",
        oss_access_ttl: "180",
    },
});

Create a Audit Resource

new Audit(name: string, args: AuditArgs, opts?: CustomResourceOptions);
def Audit(resource_name, opts=None, aliuid=None, display_name=None, multi_accounts=None, variable_map=None, __props__=None);
func NewAudit(ctx *Context, name string, args AuditArgs, opts ...ResourceOption) (*Audit, error)
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:

Aliuid string

Aliuid value of your account.

DisplayName string

Name of SLS log audit.

MultiAccounts List<string>

Multi-account configuration, please fill in multiple aliuid.

VariableMap Dictionary<string, object>

Log audit detailed configuration.

Aliuid string

Aliuid value of your account.

DisplayName string

Name of SLS log audit.

MultiAccounts []string

Multi-account configuration, please fill in multiple aliuid.

VariableMap map[string]interface{}

Log audit detailed configuration.

aliuid string

Aliuid value of your account.

displayName string

Name of SLS log audit.

multiAccounts string[]

Multi-account configuration, please fill in multiple aliuid.

variableMap {[key: string]: any}

Log audit detailed configuration.

aliuid str

Aliuid value of your account.

display_name str

Name of SLS log audit.

multi_accounts List[str]

Multi-account configuration, please fill in multiple aliuid.

variable_map Dict[str, Any]

Log audit detailed configuration.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

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): Audit
static get(resource_name, id, opts=None, aliuid=None, display_name=None, multi_accounts=None, variable_map=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:

Aliuid string

Aliuid value of your account.

DisplayName string

Name of SLS log audit.

MultiAccounts List<string>

Multi-account configuration, please fill in multiple aliuid.

VariableMap Dictionary<string, object>

Log audit detailed configuration.

Aliuid string

Aliuid value of your account.

DisplayName string

Name of SLS log audit.

MultiAccounts []string

Multi-account configuration, please fill in multiple aliuid.

VariableMap map[string]interface{}

Log audit detailed configuration.

aliuid string

Aliuid value of your account.

displayName string

Name of SLS log audit.

multiAccounts string[]

Multi-account configuration, please fill in multiple aliuid.

variableMap {[key: string]: any}

Log audit detailed configuration.

aliuid str

Aliuid value of your account.

display_name str

Name of SLS log audit.

multi_accounts List[str]

Multi-account configuration, please fill in multiple aliuid.

variable_map Dict[str, Any]

Log audit detailed configuration.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.