1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. kvstore
  5. AuditLogConfig
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.kvstore.AuditLogConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides a Redis And Memcache (KVStore) Audit Log Config resource.

    NOTE: Available since v1.130.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const defaultZones = alicloud.kvstore.getZones({});
    const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
        status: "OK",
    });
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "10.4.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "10.4.0.0/24",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    });
    const defaultInstance = new alicloud.kvstore.Instance("defaultInstance", {
        dbInstanceName: name,
        vswitchId: defaultSwitch.id,
        resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.ids?.[0]),
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
        instanceClass: "redis.master.large.default",
        instanceType: "Redis",
        engineVersion: "5.0",
        securityIps: ["10.23.12.24"],
        config: {
            appendonly: "yes",
            "lazyfree-lazy-eviction": "yes",
        },
        tags: {
            Created: "TF",
            For: "example",
        },
    });
    const example = new alicloud.kvstore.AuditLogConfig("example", {
        instanceId: defaultInstance.id,
        dbAudit: true,
        retention: 1,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default_zones = alicloud.kvstore.get_zones()
    default_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="10.4.0.0/16")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="10.4.0.0/24",
        vpc_id=default_network.id,
        zone_id=default_zones.zones[0].id)
    default_instance = alicloud.kvstore.Instance("defaultInstance",
        db_instance_name=name,
        vswitch_id=default_switch.id,
        resource_group_id=default_resource_groups.ids[0],
        zone_id=default_zones.zones[0].id,
        instance_class="redis.master.large.default",
        instance_type="Redis",
        engine_version="5.0",
        security_ips=["10.23.12.24"],
        config={
            "appendonly": "yes",
            "lazyfree-lazy-eviction": "yes",
        },
        tags={
            "Created": "TF",
            "For": "example",
        })
    example = alicloud.kvstore.AuditLogConfig("example",
        instance_id=default_instance.id,
        db_audit=True,
        retention=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kvstore"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := kvstore.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
    			Status: pulumi.StringRef("OK"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.4.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.4.0.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := kvstore.NewInstance(ctx, "defaultInstance", &kvstore.InstanceArgs{
    			DbInstanceName:  pulumi.String(name),
    			VswitchId:       defaultSwitch.ID(),
    			ResourceGroupId: pulumi.String(defaultResourceGroups.Ids[0]),
    			ZoneId:          pulumi.String(defaultZones.Zones[0].Id),
    			InstanceClass:   pulumi.String("redis.master.large.default"),
    			InstanceType:    pulumi.String("Redis"),
    			EngineVersion:   pulumi.String("5.0"),
    			SecurityIps: pulumi.StringArray{
    				pulumi.String("10.23.12.24"),
    			},
    			Config: pulumi.Map{
    				"appendonly":             pulumi.Any("yes"),
    				"lazyfree-lazy-eviction": pulumi.Any("yes"),
    			},
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("TF"),
    				"For":     pulumi.Any("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = kvstore.NewAuditLogConfig(ctx, "example", &kvstore.AuditLogConfigArgs{
    			InstanceId: defaultInstance.ID(),
    			DbAudit:    pulumi.Bool(true),
    			Retention:  pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var defaultZones = AliCloud.KVStore.GetZones.Invoke();
    
        var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
        {
            Status = "OK",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "10.4.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "10.4.0.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultInstance = new AliCloud.KVStore.Instance("defaultInstance", new()
        {
            DbInstanceName = name,
            VswitchId = defaultSwitch.Id,
            ResourceGroupId = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            InstanceClass = "redis.master.large.default",
            InstanceType = "Redis",
            EngineVersion = "5.0",
            SecurityIps = new[]
            {
                "10.23.12.24",
            },
            Config = 
            {
                { "appendonly", "yes" },
                { "lazyfree-lazy-eviction", "yes" },
            },
            Tags = 
            {
                { "Created", "TF" },
                { "For", "example" },
            },
        });
    
        var example = new AliCloud.KVStore.AuditLogConfig("example", new()
        {
            InstanceId = defaultInstance.Id,
            DbAudit = true,
            Retention = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.kvstore.KvstoreFunctions;
    import com.pulumi.alicloud.kvstore.inputs.GetZonesArgs;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.kvstore.Instance;
    import com.pulumi.alicloud.kvstore.InstanceArgs;
    import com.pulumi.alicloud.kvstore.AuditLogConfig;
    import com.pulumi.alicloud.kvstore.AuditLogConfigArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var defaultZones = KvstoreFunctions.getZones();
    
            final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
                .status("OK")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("10.4.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("10.4.0.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()        
                .dbInstanceName(name)
                .vswitchId(defaultSwitch.id())
                .resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.ids()[0]))
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .instanceClass("redis.master.large.default")
                .instanceType("Redis")
                .engineVersion("5.0")
                .securityIps("10.23.12.24")
                .config(Map.ofEntries(
                    Map.entry("appendonly", "yes"),
                    Map.entry("lazyfree-lazy-eviction", "yes")
                ))
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "example")
                ))
                .build());
    
            var example = new AuditLogConfig("example", AuditLogConfigArgs.builder()        
                .instanceId(defaultInstance.id())
                .dbAudit(true)
                .retention(1)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.4.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 10.4.0.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.zones[0].id}
      defaultInstance:
        type: alicloud:kvstore:Instance
        properties:
          dbInstanceName: ${name}
          vswitchId: ${defaultSwitch.id}
          resourceGroupId: ${defaultResourceGroups.ids[0]}
          zoneId: ${defaultZones.zones[0].id}
          instanceClass: redis.master.large.default
          instanceType: Redis
          engineVersion: '5.0'
          securityIps:
            - 10.23.12.24
          config:
            appendonly: yes
            lazyfree-lazy-eviction: yes
          tags:
            Created: TF
            For: example
      example:
        type: alicloud:kvstore:AuditLogConfig
        properties:
          instanceId: ${defaultInstance.id}
          dbAudit: true
          retention: 1
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:kvstore:getZones
          Arguments: {}
      defaultResourceGroups:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments:
            status: OK
    

    Create AuditLogConfig Resource

    new AuditLogConfig(name: string, args: AuditLogConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AuditLogConfig(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       db_audit: Optional[bool] = None,
                       instance_id: Optional[str] = None,
                       retention: Optional[int] = None)
    @overload
    def AuditLogConfig(resource_name: str,
                       args: AuditLogConfigArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewAuditLogConfig(ctx *Context, name string, args AuditLogConfigArgs, opts ...ResourceOption) (*AuditLogConfig, error)
    public AuditLogConfig(string name, AuditLogConfigArgs args, CustomResourceOptions? opts = null)
    public AuditLogConfig(String name, AuditLogConfigArgs args)
    public AuditLogConfig(String name, AuditLogConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:kvstore:AuditLogConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AuditLogConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AuditLogConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AuditLogConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuditLogConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuditLogConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AuditLogConfig Resource Properties

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

    Inputs

    The AuditLogConfig resource accepts the following input properties:

    InstanceId string
    Instance ID, Call the Describeinstances Get.
    DbAudit bool

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    Retention int

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    InstanceId string
    Instance ID, Call the Describeinstances Get.
    DbAudit bool

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    Retention int

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    instanceId String
    Instance ID, Call the Describeinstances Get.
    dbAudit Boolean

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    retention Integer

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    instanceId string
    Instance ID, Call the Describeinstances Get.
    dbAudit boolean

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    retention number

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    instance_id str
    Instance ID, Call the Describeinstances Get.
    db_audit bool

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    retention int

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    instanceId String
    Instance ID, Call the Describeinstances Get.
    dbAudit Boolean

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    retention Number

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    Outputs

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

    CreateTime string
    Instance Creation Time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    CreateTime string
    Instance Creation Time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    createTime String
    Instance Creation Time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.
    createTime string
    Instance Creation Time.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the resource.
    create_time str
    Instance Creation Time.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the resource.
    createTime String
    Instance Creation Time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.

    Look up Existing AuditLogConfig Resource

    Get an existing AuditLogConfig 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?: AuditLogConfigState, opts?: CustomResourceOptions): AuditLogConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            db_audit: Optional[bool] = None,
            instance_id: Optional[str] = None,
            retention: Optional[int] = None,
            status: Optional[str] = None) -> AuditLogConfig
    func GetAuditLogConfig(ctx *Context, name string, id IDInput, state *AuditLogConfigState, opts ...ResourceOption) (*AuditLogConfig, error)
    public static AuditLogConfig Get(string name, Input<string> id, AuditLogConfigState? state, CustomResourceOptions? opts = null)
    public static AuditLogConfig get(String name, Output<String> id, AuditLogConfigState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    CreateTime string
    Instance Creation Time.
    DbAudit bool

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    InstanceId string
    Instance ID, Call the Describeinstances Get.
    Retention int

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    Status string
    The status of the resource.
    CreateTime string
    Instance Creation Time.
    DbAudit bool

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    InstanceId string
    Instance ID, Call the Describeinstances Get.
    Retention int

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    Status string
    The status of the resource.
    createTime String
    Instance Creation Time.
    dbAudit Boolean

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    instanceId String
    Instance ID, Call the Describeinstances Get.
    retention Integer

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    status String
    The status of the resource.
    createTime string
    Instance Creation Time.
    dbAudit boolean

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    instanceId string
    Instance ID, Call the Describeinstances Get.
    retention number

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    status string
    The status of the resource.
    create_time str
    Instance Creation Time.
    db_audit bool

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    instance_id str
    Instance ID, Call the Describeinstances Get.
    retention int

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    status str
    The status of the resource.
    createTime String
    Instance Creation Time.
    dbAudit Boolean

    Indicates Whether to Enable the Audit Log. Valid value:

    • true: Default Value, Open.
    • false: Closed.

    Note: When the Instance for the Cluster Architecture Or Read/Write Split Architecture, at the Same Time to Open Or Close the Data Node and the Proxy Node of the Audit Log Doesn't Support Separate Open.

    instanceId String
    Instance ID, Call the Describeinstances Get.
    retention Number

    Audit Log Retention Period Value: 1~365.

    NOTE: When the Instance dbaudit Value Is Set to True, This Parameter Entry into Force. The Parameter Setting of the Current Region of All an Apsaradb for Redis Instance for a Data Entry into Force.

    status String
    The status of the resource.

    Import

    Redis And Memcache (KVStore) Audit Log Config can be imported using the id, e.g.

    $ pulumi import alicloud:kvstore/auditLogConfig:AuditLogConfig example <instance_id>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi