1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. yundun
  5. DBAuditInstance
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.yundun.DBAuditInstance

Explore with Pulumi AI

Import

Yundun_dbaudit instance can be imported using the id, e.g.

$ pulumi import alicloud:yundun/dBAuditInstance:DBAuditInstance example dbaudit-exampe123456
Copy

Create DBAuditInstance Resource

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

Constructor syntax

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

@overload
def DBAuditInstance(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    period: Optional[int] = None,
                    plan_code: Optional[str] = None,
                    vswitch_id: Optional[str] = None,
                    resource_group_id: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None)
func NewDBAuditInstance(ctx *Context, name string, args DBAuditInstanceArgs, opts ...ResourceOption) (*DBAuditInstance, error)
public DBAuditInstance(string name, DBAuditInstanceArgs args, CustomResourceOptions? opts = null)
public DBAuditInstance(String name, DBAuditInstanceArgs args)
public DBAuditInstance(String name, DBAuditInstanceArgs args, CustomResourceOptions options)
type: alicloud:yundun:DBAuditInstance
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. DBAuditInstanceArgs
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. DBAuditInstanceArgs
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. DBAuditInstanceArgs
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. DBAuditInstanceArgs
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. DBAuditInstanceArgs
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 dbauditInstanceResource = new AliCloud.Yundun.DBAuditInstance("dbauditInstanceResource", new()
{
    Description = "string",
    Period = 0,
    PlanCode = "string",
    VswitchId = "string",
    ResourceGroupId = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := yundun.NewDBAuditInstance(ctx, "dbauditInstanceResource", &yundun.DBAuditInstanceArgs{
	Description:     pulumi.String("string"),
	Period:          pulumi.Int(0),
	PlanCode:        pulumi.String("string"),
	VswitchId:       pulumi.String("string"),
	ResourceGroupId: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var dbauditInstanceResource = new DBAuditInstance("dbauditInstanceResource", DBAuditInstanceArgs.builder()
    .description("string")
    .period(0)
    .planCode("string")
    .vswitchId("string")
    .resourceGroupId("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
dbaudit_instance_resource = alicloud.yundun.DBAuditInstance("dbauditInstanceResource",
    description="string",
    period=0,
    plan_code="string",
    vswitch_id="string",
    resource_group_id="string",
    tags={
        "string": "string",
    })
Copy
const dbauditInstanceResource = new alicloud.yundun.DBAuditInstance("dbauditInstanceResource", {
    description: "string",
    period: 0,
    planCode: "string",
    vswitchId: "string",
    resourceGroupId: "string",
    tags: {
        string: "string",
    },
});
Copy
type: alicloud:yundun:DBAuditInstance
properties:
    description: string
    period: 0
    planCode: string
    resourceGroupId: string
    tags:
        string: string
    vswitchId: string
Copy

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

Description This property is required. string
Description of the instance. This name can have a string of 1 to 63 characters.
Period This property is required. int

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

PlanCode This property is required. string
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
VswitchId
This property is required.
Changes to this property will trigger replacement.
string
vSwtich ID configured to audit
ResourceGroupId string
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
Description This property is required. string
Description of the instance. This name can have a string of 1 to 63 characters.
Period This property is required. int

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

PlanCode This property is required. string
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
VswitchId
This property is required.
Changes to this property will trigger replacement.
string
vSwtich ID configured to audit
ResourceGroupId string
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
Tags map[string]string
A mapping of tags to assign to the resource.
description This property is required. String
Description of the instance. This name can have a string of 1 to 63 characters.
period This property is required. Integer

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

planCode This property is required. String
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
vswitchId
This property is required.
Changes to this property will trigger replacement.
String
vSwtich ID configured to audit
resourceGroupId String
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
tags Map<String,String>
A mapping of tags to assign to the resource.
description This property is required. string
Description of the instance. This name can have a string of 1 to 63 characters.
period This property is required. number

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

planCode This property is required. string
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
vswitchId
This property is required.
Changes to this property will trigger replacement.
string
vSwtich ID configured to audit
resourceGroupId string
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
tags {[key: string]: string}
A mapping of tags to assign to the resource.
description This property is required. str
Description of the instance. This name can have a string of 1 to 63 characters.
period This property is required. int

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

plan_code This property is required. str
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
vswitch_id
This property is required.
Changes to this property will trigger replacement.
str
vSwtich ID configured to audit
resource_group_id str
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
tags Mapping[str, str]
A mapping of tags to assign to the resource.
description This property is required. String
Description of the instance. This name can have a string of 1 to 63 characters.
period This property is required. Number

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

planCode This property is required. String
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
vswitchId
This property is required.
Changes to this property will trigger replacement.
String
vSwtich ID configured to audit
resourceGroupId String
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
tags Map<String>
A mapping of tags to assign to the resource.

Outputs

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

Get an existing DBAuditInstance 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?: DBAuditInstanceState, opts?: CustomResourceOptions): DBAuditInstance
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        period: Optional[int] = None,
        plan_code: Optional[str] = None,
        resource_group_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        vswitch_id: Optional[str] = None) -> DBAuditInstance
func GetDBAuditInstance(ctx *Context, name string, id IDInput, state *DBAuditInstanceState, opts ...ResourceOption) (*DBAuditInstance, error)
public static DBAuditInstance Get(string name, Input<string> id, DBAuditInstanceState? state, CustomResourceOptions? opts = null)
public static DBAuditInstance get(String name, Output<String> id, DBAuditInstanceState state, CustomResourceOptions options)
resources:  _:    type: alicloud:yundun:DBAuditInstance    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:
Description string
Description of the instance. This name can have a string of 1 to 63 characters.
Period int

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

PlanCode string
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
ResourceGroupId string
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
VswitchId Changes to this property will trigger replacement. string
vSwtich ID configured to audit
Description string
Description of the instance. This name can have a string of 1 to 63 characters.
Period int

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

PlanCode string
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
ResourceGroupId string
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
Tags map[string]string
A mapping of tags to assign to the resource.
VswitchId Changes to this property will trigger replacement. string
vSwtich ID configured to audit
description String
Description of the instance. This name can have a string of 1 to 63 characters.
period Integer

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

planCode String
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
resourceGroupId String
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
tags Map<String,String>
A mapping of tags to assign to the resource.
vswitchId Changes to this property will trigger replacement. String
vSwtich ID configured to audit
description string
Description of the instance. This name can have a string of 1 to 63 characters.
period number

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

planCode string
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
resourceGroupId string
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
tags {[key: string]: string}
A mapping of tags to assign to the resource.
vswitchId Changes to this property will trigger replacement. string
vSwtich ID configured to audit
description str
Description of the instance. This name can have a string of 1 to 63 characters.
period int

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

plan_code str
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
resource_group_id str
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
tags Mapping[str, str]
A mapping of tags to assign to the resource.
vswitch_id Changes to this property will trigger replacement. str
vSwtich ID configured to audit
description String
Description of the instance. This name can have a string of 1 to 63 characters.
period Number

Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".

NOTE: The attribute period is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not effect the resource.

planCode String
Plan code of the Cloud DBAudit to produce. (alpha.professional, alpha.basic, alpha.premium)
resourceGroupId String
The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.
tags Map<String>
A mapping of tags to assign to the resource.
vswitchId Changes to this property will trigger replacement. String
vSwtich ID configured to audit

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.