alicloud logo
Alibaba Cloud v3.38.0, Jun 2 23

alicloud.sddp.Config

Explore with Pulumi AI

Provides a Data Security Center Config resource.

For information about Data Security Center Config and how to use it, see What is Config.

NOTE: Available in v1.133.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Sddp.Config("default", new()
    {
        Code = "access_failed_cnt",
        Value = "10",
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sddp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sddp.NewConfig(ctx, "default", &sddp.ConfigArgs{
			Code:  pulumi.String("access_failed_cnt"),
			Value: pulumi.String("10"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.sddp.Config;
import com.pulumi.alicloud.sddp.ConfigArgs;
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 default_ = new Config("default", ConfigArgs.builder()        
            .code("access_failed_cnt")
            .value(10)
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.sddp.Config("default",
    code="access_failed_cnt",
    value="10")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.sddp.Config("default", {
    code: "access_failed_cnt",
    value: "10",
});
resources:
  default:
    type: alicloud:sddp:Config
    properties:
      code: access_failed_cnt
      value: 10

Create Config Resource

new Config(name: string, args?: ConfigArgs, opts?: CustomResourceOptions);
@overload
def Config(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           code: Optional[str] = None,
           description: Optional[str] = None,
           lang: Optional[str] = None,
           value: Optional[str] = None)
@overload
def Config(resource_name: str,
           args: Optional[ConfigArgs] = None,
           opts: Optional[ResourceOptions] = None)
func NewConfig(ctx *Context, name string, args *ConfigArgs, opts ...ResourceOption) (*Config, error)
public Config(string name, ConfigArgs? args = null, CustomResourceOptions? opts = null)
public Config(String name, ConfigArgs args)
public Config(String name, ConfigArgs args, CustomResourceOptions options)
type: alicloud:sddp:Config
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ConfigArgs
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 ConfigArgs
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 ConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Code string

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

Description string

Abnormal Alarm General Description of the Configuration Item.

Lang string

The language of the request and response. Valid values: zh,en.

Value string

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

Code string

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

Description string

Abnormal Alarm General Description of the Configuration Item.

Lang string

The language of the request and response. Valid values: zh,en.

Value string

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

code String

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

description String

Abnormal Alarm General Description of the Configuration Item.

lang String

The language of the request and response. Valid values: zh,en.

value String

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

code string

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

description string

Abnormal Alarm General Description of the Configuration Item.

lang string

The language of the request and response. Valid values: zh,en.

value string

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

code str

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

description str

Abnormal Alarm General Description of the Configuration Item.

lang str

The language of the request and response. Valid values: zh,en.

value str

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

code String

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

description String

Abnormal Alarm General Description of the Configuration Item.

lang String

The language of the request and response. Valid values: zh,en.

value String

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

Outputs

All input properties are implicitly available as output properties. Additionally, the Config 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 string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Config Resource

Get an existing Config 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?: ConfigState, opts?: CustomResourceOptions): Config
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        code: Optional[str] = None,
        description: Optional[str] = None,
        lang: Optional[str] = None,
        value: Optional[str] = None) -> Config
func GetConfig(ctx *Context, name string, id IDInput, state *ConfigState, opts ...ResourceOption) (*Config, error)
public static Config Get(string name, Input<string> id, ConfigState? state, CustomResourceOptions? opts = null)
public static Config get(String name, Output<String> id, ConfigState 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:
Code string

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

Description string

Abnormal Alarm General Description of the Configuration Item.

Lang string

The language of the request and response. Valid values: zh,en.

Value string

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

Code string

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

Description string

Abnormal Alarm General Description of the Configuration Item.

Lang string

The language of the request and response. Valid values: zh,en.

Value string

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

code String

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

description String

Abnormal Alarm General Description of the Configuration Item.

lang String

The language of the request and response. Valid values: zh,en.

value String

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

code string

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

description string

Abnormal Alarm General Description of the Configuration Item.

lang string

The language of the request and response. Valid values: zh,en.

value string

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

code str

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

description str

Abnormal Alarm General Description of the Configuration Item.

lang str

The language of the request and response. Valid values: zh,en.

value str

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

code String

Abnormal Alarm General Configuration Module by Using the Encoding. Valid values: access_failed_cnt, access_permission_exprie_max_days, log_datasize_avg_days.

description String

Abnormal Alarm General Description of the Configuration Item.

lang String

The language of the request and response. Valid values: zh,en.

value String

The Specified Exception Alarm Generic by Using the Value. Code Different Values for This Parameter the Specific Meaning of Different:

Import

Data Security Center Config can be imported using the id, e.g.

 $ pulumi import alicloud:sddp/config:Config example <code>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.