published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Provides a Threat Detection Rd Default Sync List resource. The default synchronization list of resource directory folders for Threat Detection. The resource is account-level (singleton): each Alibaba Cloud account holds at most one such list, and applying a new configuration replaces the previous folder list in full (set/replace semantics). Setting an empty folder list clears the synchronized folders, which is equivalent to disabling the default synchronization.
For information about Threat Detection Rd Default Sync List and how to use it, see CreateRdDefaultSyncList and ListRdDefaultSyncList.
NOTE: Available since v1.292.0.
NOTE: The resource folder ids can be obtained via the
GetRdTreeAPI. A resource directory management account or a Threat Detection delegated administrator account is required to call these APIs.
NOTE: This resource is account-level (singleton): each account holds at most one synchronization list. When adopting an account that already holds a list (for example after
pulumi import), declarefolderIdsin the configuration with the current folder ids. OmittingfolderIdson create will not send theFolderIdsparameter, so the existing synchronized list is not wiped out; to clear the list intentionally, setfolderIds = [].
NOTE: Declaring multiple
alicloud.threatdetection.RdDefaultSyncListresources for the same account is not recommended. Each apply replaces the entire folder list (set/replace semantics), so the last applied configuration wins and resources created earlier will show drift on the next plan. Always pass the full set offolderIdson every update; omitting them clears the existing list.
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") || "terraform-example";
const _default = new alicloud.threatdetection.RdDefaultSyncList("default", {folderIds: [
"fd-xxxxx",
"fd-yyyyy",
]});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.threatdetection.RdDefaultSyncList("default", folder_ids=[
"fd-xxxxx",
"fd-yyyyy",
])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
"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 := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := threatdetection.NewRdDefaultSyncList(ctx, "default", &threatdetection.RdDefaultSyncListArgs{
FolderIds: pulumi.StringArray{
pulumi.String("fd-xxxxx"),
pulumi.String("fd-yyyyy"),
},
})
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") ?? "terraform-example";
var @default = new AliCloud.ThreatDetection.RdDefaultSyncList("default", new()
{
FolderIds = new[]
{
"fd-xxxxx",
"fd-yyyyy",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.threatdetection.RdDefaultSyncList;
import com.pulumi.alicloud.threatdetection.RdDefaultSyncListArgs;
import java.util.ArrayList;
import java.util.Arrays;
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("terraform-example");
var default_ = new RdDefaultSyncList("default", RdDefaultSyncListArgs.builder()
.folderIds(
"fd-xxxxx",
"fd-yyyyy")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:threatdetection:RdDefaultSyncList
properties:
folderIds:
- fd-xxxxx
- fd-yyyyy
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
resource "alicloud_threatdetection_rddefaultsynclist" "default" {
folder_ids = ["fd-xxxxx", "fd-yyyyy"]
}
variable "name" {
type = string
default = "terraform-example"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create RdDefaultSyncList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RdDefaultSyncList(name: string, args?: RdDefaultSyncListArgs, opts?: CustomResourceOptions);@overload
def RdDefaultSyncList(resource_name: str,
args: Optional[RdDefaultSyncListArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RdDefaultSyncList(resource_name: str,
opts: Optional[ResourceOptions] = None,
folder_ids: Optional[Sequence[str]] = None)func NewRdDefaultSyncList(ctx *Context, name string, args *RdDefaultSyncListArgs, opts ...ResourceOption) (*RdDefaultSyncList, error)public RdDefaultSyncList(string name, RdDefaultSyncListArgs? args = null, CustomResourceOptions? opts = null)
public RdDefaultSyncList(String name, RdDefaultSyncListArgs args)
public RdDefaultSyncList(String name, RdDefaultSyncListArgs args, CustomResourceOptions options)
type: alicloud:threatdetection:RdDefaultSyncList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_threatdetection_rd_default_sync_list" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RdDefaultSyncListArgs
- 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 RdDefaultSyncListArgs
- 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 RdDefaultSyncListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RdDefaultSyncListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RdDefaultSyncListArgs
- 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 rdDefaultSyncListResource = new AliCloud.ThreatDetection.RdDefaultSyncList("rdDefaultSyncListResource", new()
{
FolderIds = new[]
{
"string",
},
});
example, err := threatdetection.NewRdDefaultSyncList(ctx, "rdDefaultSyncListResource", &threatdetection.RdDefaultSyncListArgs{
FolderIds: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "alicloud_threatdetection_rd_default_sync_list" "rdDefaultSyncListResource" {
lifecycle {
create_before_destroy = true
}
folder_ids = ["string"]
}
var rdDefaultSyncListResource = new RdDefaultSyncList("rdDefaultSyncListResource", RdDefaultSyncListArgs.builder()
.folderIds("string")
.build());
rd_default_sync_list_resource = alicloud.threatdetection.RdDefaultSyncList("rdDefaultSyncListResource", folder_ids=["string"])
const rdDefaultSyncListResource = new alicloud.threatdetection.RdDefaultSyncList("rdDefaultSyncListResource", {folderIds: ["string"]});
type: alicloud:threatdetection:RdDefaultSyncList
properties:
folderIds:
- string
RdDefaultSyncList 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 RdDefaultSyncList resource accepts the following input properties:
- Folder
Ids List<string> - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- Folder
Ids []string - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder_
ids list(string) - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder
Ids List<String> - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder
Ids string[] - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder_
ids Sequence[str] - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder
Ids List<String> - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
Outputs
All input properties are implicitly available as output properties. Additionally, the RdDefaultSyncList 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 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 RdDefaultSyncList Resource
Get an existing RdDefaultSyncList 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?: RdDefaultSyncListState, opts?: CustomResourceOptions): RdDefaultSyncList@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
folder_ids: Optional[Sequence[str]] = None) -> RdDefaultSyncListfunc GetRdDefaultSyncList(ctx *Context, name string, id IDInput, state *RdDefaultSyncListState, opts ...ResourceOption) (*RdDefaultSyncList, error)public static RdDefaultSyncList Get(string name, Input<string> id, RdDefaultSyncListState? state, CustomResourceOptions? opts = null)public static RdDefaultSyncList get(String name, Output<String> id, RdDefaultSyncListState state, CustomResourceOptions options)resources: _: type: alicloud:threatdetection:RdDefaultSyncList get: id: ${id}import {
to = alicloud_threatdetection_rd_default_sync_list.example
id = "${id}"
}
- 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.
- Folder
Ids List<string> - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- Folder
Ids []string - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder_
ids list(string) - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder
Ids List<String> - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder
Ids string[] - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder_
ids Sequence[str] - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
- folder
Ids List<String> - The list of resource directory folder ids to be synchronized by Threat Detection. Setting an empty list clears the synchronized folders (disables the default synchronization). Folder ids can be obtained via the
GetRdTreeAPI.
Import
Threat Detection Rd Default Sync List can be imported using the id, e.g. the Alibaba Cloud account id, or an empty string to import the current account’s list:
$ terraform import alicloud_threat_detection_rd_default_sync_list.example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Thursday, Sep 17, 2026 by Pulumi