1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. OssScanConfig
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

alicloud.threatdetection.OssScanConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

    Provides a Threat Detection Oss Scan Config resource.

    Oss detection configuration.

    For information about Threat Detection Oss Scan Config and how to use it, see What is Oss Scan Config.

    NOTE: Available since v1.214.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const bucketRandom = _default.result;
    const default8j4t1R = new alicloud.oss.Bucket("default8j4t1R", {
        bucket: `${name}-1-${bucketRandom}`,
        storageClass: "Standard",
    });
    const default9HMqfT = new alicloud.oss.Bucket("default9HMqfT", {
        bucket: `${name}-2-${bucketRandom}`,
        storageClass: "Standard",
    });
    const defaultxBXqFQ = new alicloud.oss.Bucket("defaultxBXqFQ", {
        bucket: `${name}-3-${bucketRandom}`,
        storageClass: "Standard",
    });
    const defaulthZvCmR = new alicloud.oss.Bucket("defaulthZvCmR", {
        bucket: `${name}-4-${bucketRandom}`,
        storageClass: "Standard",
    });
    const defaultOssScanConfig = new alicloud.threatdetection.OssScanConfig("default", {
        keySuffixLists: [
            ".jsp",
            ".php",
            ".k",
        ],
        scanDayLists: [
            2,
            5,
            4,
            3,
        ],
        ossScanConfigName: name,
        endTime: "00:00:02",
        startTime: "00:00:01",
        enable: 1,
        allKeyPrefix: false,
        bucketNameLists: [
            default8j4t1R.bucket,
            default9HMqfT.bucket,
            defaultxBXqFQ.bucket,
        ],
        keyPrefixLists: [
            "/root",
            "/usr",
            "/123",
        ],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = random.index.Integer("default",
        min=10000,
        max=99999)
    bucket_random = default["result"]
    default8j4t1_r = alicloud.oss.Bucket("default8j4t1R",
        bucket=f"{name}-1-{bucket_random}",
        storage_class="Standard")
    default9_h_mqf_t = alicloud.oss.Bucket("default9HMqfT",
        bucket=f"{name}-2-{bucket_random}",
        storage_class="Standard")
    defaultx_b_xq_fq = alicloud.oss.Bucket("defaultxBXqFQ",
        bucket=f"{name}-3-{bucket_random}",
        storage_class="Standard")
    defaulth_zv_cm_r = alicloud.oss.Bucket("defaulthZvCmR",
        bucket=f"{name}-4-{bucket_random}",
        storage_class="Standard")
    default_oss_scan_config = alicloud.threatdetection.OssScanConfig("default",
        key_suffix_lists=[
            ".jsp",
            ".php",
            ".k",
        ],
        scan_day_lists=[
            2,
            5,
            4,
            3,
        ],
        oss_scan_config_name=name,
        end_time="00:00:02",
        start_time="00:00:01",
        enable=1,
        all_key_prefix=False,
        bucket_name_lists=[
            default8j4t1_r.bucket,
            default9_h_mqf_t.bucket,
            defaultx_b_xq_fq.bucket,
        ],
        key_prefix_lists=[
            "/root",
            "/usr",
            "/123",
        ])
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"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
    		}
    		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		bucketRandom := _default.Result
    		default8j4t1R, err := oss.NewBucket(ctx, "default8j4t1R", &oss.BucketArgs{
    			Bucket:       pulumi.Sprintf("%v-1-%v", name, bucketRandom),
    			StorageClass: pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		default9HMqfT, err := oss.NewBucket(ctx, "default9HMqfT", &oss.BucketArgs{
    			Bucket:       pulumi.Sprintf("%v-2-%v", name, bucketRandom),
    			StorageClass: pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultxBXqFQ, err := oss.NewBucket(ctx, "defaultxBXqFQ", &oss.BucketArgs{
    			Bucket:       pulumi.Sprintf("%v-3-%v", name, bucketRandom),
    			StorageClass: pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = oss.NewBucket(ctx, "defaulthZvCmR", &oss.BucketArgs{
    			Bucket:       pulumi.Sprintf("%v-4-%v", name, bucketRandom),
    			StorageClass: pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = threatdetection.NewOssScanConfig(ctx, "default", &threatdetection.OssScanConfigArgs{
    			KeySuffixLists: pulumi.StringArray{
    				pulumi.String(".jsp"),
    				pulumi.String(".php"),
    				pulumi.String(".k"),
    			},
    			ScanDayLists: pulumi.IntArray{
    				pulumi.Int(2),
    				pulumi.Int(5),
    				pulumi.Int(4),
    				pulumi.Int(3),
    			},
    			OssScanConfigName: pulumi.String(name),
    			EndTime:           pulumi.String("00:00:02"),
    			StartTime:         pulumi.String("00:00:01"),
    			Enable:            pulumi.Int(1),
    			AllKeyPrefix:      pulumi.Bool(false),
    			BucketNameLists: pulumi.StringArray{
    				default8j4t1R.Bucket,
    				default9HMqfT.Bucket,
    				defaultxBXqFQ.Bucket,
    			},
    			KeyPrefixLists: pulumi.StringArray{
    				pulumi.String("/root"),
    				pulumi.String("/usr"),
    				pulumi.String("/123"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var bucketRandom = @default.Result;
    
        var default8j4t1R = new AliCloud.Oss.Bucket("default8j4t1R", new()
        {
            BucketName = $"{name}-1-{bucketRandom}",
            StorageClass = "Standard",
        });
    
        var default9HMqfT = new AliCloud.Oss.Bucket("default9HMqfT", new()
        {
            BucketName = $"{name}-2-{bucketRandom}",
            StorageClass = "Standard",
        });
    
        var defaultxBXqFQ = new AliCloud.Oss.Bucket("defaultxBXqFQ", new()
        {
            BucketName = $"{name}-3-{bucketRandom}",
            StorageClass = "Standard",
        });
    
        var defaulthZvCmR = new AliCloud.Oss.Bucket("defaulthZvCmR", new()
        {
            BucketName = $"{name}-4-{bucketRandom}",
            StorageClass = "Standard",
        });
    
        var defaultOssScanConfig = new AliCloud.ThreatDetection.OssScanConfig("default", new()
        {
            KeySuffixLists = new[]
            {
                ".jsp",
                ".php",
                ".k",
            },
            ScanDayLists = new[]
            {
                2,
                5,
                4,
                3,
            },
            OssScanConfigName = name,
            EndTime = "00:00:02",
            StartTime = "00:00:01",
            Enable = 1,
            AllKeyPrefix = false,
            BucketNameLists = new[]
            {
                default8j4t1R.BucketName,
                default9HMqfT.BucketName,
                defaultxBXqFQ.BucketName,
            },
            KeyPrefixLists = new[]
            {
                "/root",
                "/usr",
                "/123",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.Integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.oss.Bucket;
    import com.pulumi.alicloud.oss.BucketArgs;
    import com.pulumi.alicloud.threatdetection.OssScanConfig;
    import com.pulumi.alicloud.threatdetection.OssScanConfigArgs;
    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("terraform-example");
            var default_ = new Integer("default", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            final var bucketRandom = default_.result();
    
            var default8j4t1R = new Bucket("default8j4t1R", BucketArgs.builder()
                .bucket(String.format("%s-1-%s", name,bucketRandom))
                .storageClass("Standard")
                .build());
    
            var default9HMqfT = new Bucket("default9HMqfT", BucketArgs.builder()
                .bucket(String.format("%s-2-%s", name,bucketRandom))
                .storageClass("Standard")
                .build());
    
            var defaultxBXqFQ = new Bucket("defaultxBXqFQ", BucketArgs.builder()
                .bucket(String.format("%s-3-%s", name,bucketRandom))
                .storageClass("Standard")
                .build());
    
            var defaulthZvCmR = new Bucket("defaulthZvCmR", BucketArgs.builder()
                .bucket(String.format("%s-4-%s", name,bucketRandom))
                .storageClass("Standard")
                .build());
    
            var defaultOssScanConfig = new OssScanConfig("defaultOssScanConfig", OssScanConfigArgs.builder()
                .keySuffixLists(            
                    ".jsp",
                    ".php",
                    ".k")
                .scanDayLists(            
                    2,
                    5,
                    4,
                    3)
                .ossScanConfigName(name)
                .endTime("00:00:02")
                .startTime("00:00:01")
                .enable(1)
                .allKeyPrefix(false)
                .bucketNameLists(            
                    default8j4t1R.bucket(),
                    default9HMqfT.bucket(),
                    defaultxBXqFQ.bucket())
                .keyPrefixLists(            
                    "/root",
                    "/usr",
                    "/123")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: random:Integer
        properties:
          min: 10000
          max: 99999
      default8j4t1R:
        type: alicloud:oss:Bucket
        properties:
          bucket: ${name}-1-${bucketRandom}
          storageClass: Standard
      default9HMqfT:
        type: alicloud:oss:Bucket
        properties:
          bucket: ${name}-2-${bucketRandom}
          storageClass: Standard
      defaultxBXqFQ:
        type: alicloud:oss:Bucket
        properties:
          bucket: ${name}-3-${bucketRandom}
          storageClass: Standard
      defaulthZvCmR:
        type: alicloud:oss:Bucket
        properties:
          bucket: ${name}-4-${bucketRandom}
          storageClass: Standard
      defaultOssScanConfig:
        type: alicloud:threatdetection:OssScanConfig
        name: default
        properties:
          keySuffixLists:
            - .jsp
            - .php
            - .k
          scanDayLists:
            - '2'
            - '5'
            - '4'
            - '3'
          ossScanConfigName: ${name}
          endTime: 00:00:02
          startTime: 00:00:01
          enable: '1'
          allKeyPrefix: 'false'
          bucketNameLists:
            - ${default8j4t1R.bucket}
            - ${default9HMqfT.bucket}
            - ${defaultxBXqFQ.bucket}
          keyPrefixLists:
            - /root
            - /usr
            - /123
    variables:
      bucketRandom: ${default.result}
    

    Create OssScanConfig Resource

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

    Constructor syntax

    new OssScanConfig(name: string, args: OssScanConfigArgs, opts?: CustomResourceOptions);
    @overload
    def OssScanConfig(resource_name: str,
                      args: OssScanConfigArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def OssScanConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      end_time: Optional[str] = None,
                      bucket_name_lists: Optional[Sequence[str]] = None,
                      start_time: Optional[str] = None,
                      scan_day_lists: Optional[Sequence[int]] = None,
                      key_suffix_lists: Optional[Sequence[str]] = None,
                      enable: Optional[int] = None,
                      decompress_max_layer: Optional[int] = None,
                      key_prefix_lists: Optional[Sequence[str]] = None,
                      decryption_lists: Optional[Sequence[str]] = None,
                      last_modified_start_time: Optional[int] = None,
                      oss_scan_config_name: Optional[str] = None,
                      all_key_prefix: Optional[bool] = None,
                      decompress_max_file_count: Optional[int] = None)
    func NewOssScanConfig(ctx *Context, name string, args OssScanConfigArgs, opts ...ResourceOption) (*OssScanConfig, error)
    public OssScanConfig(string name, OssScanConfigArgs args, CustomResourceOptions? opts = null)
    public OssScanConfig(String name, OssScanConfigArgs args)
    public OssScanConfig(String name, OssScanConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:threatdetection:OssScanConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OssScanConfigArgs
    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 OssScanConfigArgs
    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 OssScanConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OssScanConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OssScanConfigArgs
    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 ossScanConfigResource = new AliCloud.ThreatDetection.OssScanConfig("ossScanConfigResource", new()
    {
        EndTime = "string",
        BucketNameLists = new[]
        {
            "string",
        },
        StartTime = "string",
        ScanDayLists = new[]
        {
            0,
        },
        KeySuffixLists = new[]
        {
            "string",
        },
        Enable = 0,
        DecompressMaxLayer = 0,
        KeyPrefixLists = new[]
        {
            "string",
        },
        DecryptionLists = new[]
        {
            "string",
        },
        LastModifiedStartTime = 0,
        OssScanConfigName = "string",
        AllKeyPrefix = false,
        DecompressMaxFileCount = 0,
    });
    
    example, err := threatdetection.NewOssScanConfig(ctx, "ossScanConfigResource", &threatdetection.OssScanConfigArgs{
    	EndTime: pulumi.String("string"),
    	BucketNameLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	StartTime: pulumi.String("string"),
    	ScanDayLists: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	KeySuffixLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Enable:             pulumi.Int(0),
    	DecompressMaxLayer: pulumi.Int(0),
    	KeyPrefixLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DecryptionLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LastModifiedStartTime:  pulumi.Int(0),
    	OssScanConfigName:      pulumi.String("string"),
    	AllKeyPrefix:           pulumi.Bool(false),
    	DecompressMaxFileCount: pulumi.Int(0),
    })
    
    var ossScanConfigResource = new OssScanConfig("ossScanConfigResource", OssScanConfigArgs.builder()
        .endTime("string")
        .bucketNameLists("string")
        .startTime("string")
        .scanDayLists(0)
        .keySuffixLists("string")
        .enable(0)
        .decompressMaxLayer(0)
        .keyPrefixLists("string")
        .decryptionLists("string")
        .lastModifiedStartTime(0)
        .ossScanConfigName("string")
        .allKeyPrefix(false)
        .decompressMaxFileCount(0)
        .build());
    
    oss_scan_config_resource = alicloud.threatdetection.OssScanConfig("ossScanConfigResource",
        end_time="string",
        bucket_name_lists=["string"],
        start_time="string",
        scan_day_lists=[0],
        key_suffix_lists=["string"],
        enable=0,
        decompress_max_layer=0,
        key_prefix_lists=["string"],
        decryption_lists=["string"],
        last_modified_start_time=0,
        oss_scan_config_name="string",
        all_key_prefix=False,
        decompress_max_file_count=0)
    
    const ossScanConfigResource = new alicloud.threatdetection.OssScanConfig("ossScanConfigResource", {
        endTime: "string",
        bucketNameLists: ["string"],
        startTime: "string",
        scanDayLists: [0],
        keySuffixLists: ["string"],
        enable: 0,
        decompressMaxLayer: 0,
        keyPrefixLists: ["string"],
        decryptionLists: ["string"],
        lastModifiedStartTime: 0,
        ossScanConfigName: "string",
        allKeyPrefix: false,
        decompressMaxFileCount: 0,
    });
    
    type: alicloud:threatdetection:OssScanConfig
    properties:
        allKeyPrefix: false
        bucketNameLists:
            - string
        decompressMaxFileCount: 0
        decompressMaxLayer: 0
        decryptionLists:
            - string
        enable: 0
        endTime: string
        keyPrefixLists:
            - string
        keySuffixLists:
            - string
        lastModifiedStartTime: 0
        ossScanConfigName: string
        scanDayLists:
            - 0
        startTime: string
    

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

    BucketNameLists List<string>
    The names of the buckets.
    Enable int
    Indicates whether the check policy is enabled. Valid values:
    EndTime string
    The end time of the check. The time is in the HH:mm:ss format.
    KeySuffixLists List<string>
    The suffixes of the objects that are checked.
    ScanDayLists List<int>
    The days when the check is performed. The value indicates the days of the week.
    StartTime string
    The start time of the check. The time is in the HH:mm:ss format.
    AllKeyPrefix bool
    Indicates whether the prefixes of all objects are matched.
    DecompressMaxFileCount int
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    DecompressMaxLayer int
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    DecryptionLists List<string>
    The decryption methods.
    KeyPrefixLists List<string>
    The prefixes of the objects.
    LastModifiedStartTime int
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    OssScanConfigName string
    The policy name.
    BucketNameLists []string
    The names of the buckets.
    Enable int
    Indicates whether the check policy is enabled. Valid values:
    EndTime string
    The end time of the check. The time is in the HH:mm:ss format.
    KeySuffixLists []string
    The suffixes of the objects that are checked.
    ScanDayLists []int
    The days when the check is performed. The value indicates the days of the week.
    StartTime string
    The start time of the check. The time is in the HH:mm:ss format.
    AllKeyPrefix bool
    Indicates whether the prefixes of all objects are matched.
    DecompressMaxFileCount int
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    DecompressMaxLayer int
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    DecryptionLists []string
    The decryption methods.
    KeyPrefixLists []string
    The prefixes of the objects.
    LastModifiedStartTime int
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    OssScanConfigName string
    The policy name.
    bucketNameLists List<String>
    The names of the buckets.
    enable Integer
    Indicates whether the check policy is enabled. Valid values:
    endTime String
    The end time of the check. The time is in the HH:mm:ss format.
    keySuffixLists List<String>
    The suffixes of the objects that are checked.
    scanDayLists List<Integer>
    The days when the check is performed. The value indicates the days of the week.
    startTime String
    The start time of the check. The time is in the HH:mm:ss format.
    allKeyPrefix Boolean
    Indicates whether the prefixes of all objects are matched.
    decompressMaxFileCount Integer
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decompressMaxLayer Integer
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decryptionLists List<String>
    The decryption methods.
    keyPrefixLists List<String>
    The prefixes of the objects.
    lastModifiedStartTime Integer
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    ossScanConfigName String
    The policy name.
    bucketNameLists string[]
    The names of the buckets.
    enable number
    Indicates whether the check policy is enabled. Valid values:
    endTime string
    The end time of the check. The time is in the HH:mm:ss format.
    keySuffixLists string[]
    The suffixes of the objects that are checked.
    scanDayLists number[]
    The days when the check is performed. The value indicates the days of the week.
    startTime string
    The start time of the check. The time is in the HH:mm:ss format.
    allKeyPrefix boolean
    Indicates whether the prefixes of all objects are matched.
    decompressMaxFileCount number
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decompressMaxLayer number
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decryptionLists string[]
    The decryption methods.
    keyPrefixLists string[]
    The prefixes of the objects.
    lastModifiedStartTime number
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    ossScanConfigName string
    The policy name.
    bucket_name_lists Sequence[str]
    The names of the buckets.
    enable int
    Indicates whether the check policy is enabled. Valid values:
    end_time str
    The end time of the check. The time is in the HH:mm:ss format.
    key_suffix_lists Sequence[str]
    The suffixes of the objects that are checked.
    scan_day_lists Sequence[int]
    The days when the check is performed. The value indicates the days of the week.
    start_time str
    The start time of the check. The time is in the HH:mm:ss format.
    all_key_prefix bool
    Indicates whether the prefixes of all objects are matched.
    decompress_max_file_count int
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decompress_max_layer int
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decryption_lists Sequence[str]
    The decryption methods.
    key_prefix_lists Sequence[str]
    The prefixes of the objects.
    last_modified_start_time int
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    oss_scan_config_name str
    The policy name.
    bucketNameLists List<String>
    The names of the buckets.
    enable Number
    Indicates whether the check policy is enabled. Valid values:
    endTime String
    The end time of the check. The time is in the HH:mm:ss format.
    keySuffixLists List<String>
    The suffixes of the objects that are checked.
    scanDayLists List<Number>
    The days when the check is performed. The value indicates the days of the week.
    startTime String
    The start time of the check. The time is in the HH:mm:ss format.
    allKeyPrefix Boolean
    Indicates whether the prefixes of all objects are matched.
    decompressMaxFileCount Number
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decompressMaxLayer Number
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decryptionLists List<String>
    The decryption methods.
    keyPrefixLists List<String>
    The prefixes of the objects.
    lastModifiedStartTime Number
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    ossScanConfigName String
    The policy name.

    Outputs

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

    Get an existing OssScanConfig 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?: OssScanConfigState, opts?: CustomResourceOptions): OssScanConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            all_key_prefix: Optional[bool] = None,
            bucket_name_lists: Optional[Sequence[str]] = None,
            decompress_max_file_count: Optional[int] = None,
            decompress_max_layer: Optional[int] = None,
            decryption_lists: Optional[Sequence[str]] = None,
            enable: Optional[int] = None,
            end_time: Optional[str] = None,
            key_prefix_lists: Optional[Sequence[str]] = None,
            key_suffix_lists: Optional[Sequence[str]] = None,
            last_modified_start_time: Optional[int] = None,
            oss_scan_config_name: Optional[str] = None,
            scan_day_lists: Optional[Sequence[int]] = None,
            start_time: Optional[str] = None) -> OssScanConfig
    func GetOssScanConfig(ctx *Context, name string, id IDInput, state *OssScanConfigState, opts ...ResourceOption) (*OssScanConfig, error)
    public static OssScanConfig Get(string name, Input<string> id, OssScanConfigState? state, CustomResourceOptions? opts = null)
    public static OssScanConfig get(String name, Output<String> id, OssScanConfigState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:threatdetection:OssScanConfig    get:      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.
    The following state arguments are supported:
    AllKeyPrefix bool
    Indicates whether the prefixes of all objects are matched.
    BucketNameLists List<string>
    The names of the buckets.
    DecompressMaxFileCount int
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    DecompressMaxLayer int
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    DecryptionLists List<string>
    The decryption methods.
    Enable int
    Indicates whether the check policy is enabled. Valid values:
    EndTime string
    The end time of the check. The time is in the HH:mm:ss format.
    KeyPrefixLists List<string>
    The prefixes of the objects.
    KeySuffixLists List<string>
    The suffixes of the objects that are checked.
    LastModifiedStartTime int
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    OssScanConfigName string
    The policy name.
    ScanDayLists List<int>
    The days when the check is performed. The value indicates the days of the week.
    StartTime string
    The start time of the check. The time is in the HH:mm:ss format.
    AllKeyPrefix bool
    Indicates whether the prefixes of all objects are matched.
    BucketNameLists []string
    The names of the buckets.
    DecompressMaxFileCount int
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    DecompressMaxLayer int
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    DecryptionLists []string
    The decryption methods.
    Enable int
    Indicates whether the check policy is enabled. Valid values:
    EndTime string
    The end time of the check. The time is in the HH:mm:ss format.
    KeyPrefixLists []string
    The prefixes of the objects.
    KeySuffixLists []string
    The suffixes of the objects that are checked.
    LastModifiedStartTime int
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    OssScanConfigName string
    The policy name.
    ScanDayLists []int
    The days when the check is performed. The value indicates the days of the week.
    StartTime string
    The start time of the check. The time is in the HH:mm:ss format.
    allKeyPrefix Boolean
    Indicates whether the prefixes of all objects are matched.
    bucketNameLists List<String>
    The names of the buckets.
    decompressMaxFileCount Integer
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decompressMaxLayer Integer
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decryptionLists List<String>
    The decryption methods.
    enable Integer
    Indicates whether the check policy is enabled. Valid values:
    endTime String
    The end time of the check. The time is in the HH:mm:ss format.
    keyPrefixLists List<String>
    The prefixes of the objects.
    keySuffixLists List<String>
    The suffixes of the objects that are checked.
    lastModifiedStartTime Integer
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    ossScanConfigName String
    The policy name.
    scanDayLists List<Integer>
    The days when the check is performed. The value indicates the days of the week.
    startTime String
    The start time of the check. The time is in the HH:mm:ss format.
    allKeyPrefix boolean
    Indicates whether the prefixes of all objects are matched.
    bucketNameLists string[]
    The names of the buckets.
    decompressMaxFileCount number
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decompressMaxLayer number
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decryptionLists string[]
    The decryption methods.
    enable number
    Indicates whether the check policy is enabled. Valid values:
    endTime string
    The end time of the check. The time is in the HH:mm:ss format.
    keyPrefixLists string[]
    The prefixes of the objects.
    keySuffixLists string[]
    The suffixes of the objects that are checked.
    lastModifiedStartTime number
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    ossScanConfigName string
    The policy name.
    scanDayLists number[]
    The days when the check is performed. The value indicates the days of the week.
    startTime string
    The start time of the check. The time is in the HH:mm:ss format.
    all_key_prefix bool
    Indicates whether the prefixes of all objects are matched.
    bucket_name_lists Sequence[str]
    The names of the buckets.
    decompress_max_file_count int
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decompress_max_layer int
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decryption_lists Sequence[str]
    The decryption methods.
    enable int
    Indicates whether the check policy is enabled. Valid values:
    end_time str
    The end time of the check. The time is in the HH:mm:ss format.
    key_prefix_lists Sequence[str]
    The prefixes of the objects.
    key_suffix_lists Sequence[str]
    The suffixes of the objects that are checked.
    last_modified_start_time int
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    oss_scan_config_name str
    The policy name.
    scan_day_lists Sequence[int]
    The days when the check is performed. The value indicates the days of the week.
    start_time str
    The start time of the check. The time is in the HH:mm:ss format.
    allKeyPrefix Boolean
    Indicates whether the prefixes of all objects are matched.
    bucketNameLists List<String>
    The names of the buckets.
    decompressMaxFileCount Number
    The maximum number of objects that can be extracted during decompression. Valid values: 1 to 1000. If the maximum number of objects that can be extracted is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decompressMaxLayer Number
    The maximum number of decompression levels when multi-level packages are decompressed. Valid values: 1 to 5. If the maximum number of decompression levels is reached, the decompression operation immediately ends and the detection of extracted objects is not affected.
    decryptionLists List<String>
    The decryption methods.
    enable Number
    Indicates whether the check policy is enabled. Valid values:
    endTime String
    The end time of the check. The time is in the HH:mm:ss format.
    keyPrefixLists List<String>
    The prefixes of the objects.
    keySuffixLists List<String>
    The suffixes of the objects that are checked.
    lastModifiedStartTime Number
    The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
    ossScanConfigName String
    The policy name.
    scanDayLists List<Number>
    The days when the check is performed. The value indicates the days of the week.
    startTime String
    The start time of the check. The time is in the HH:mm:ss format.

    Import

    Threat Detection Oss Scan Config can be imported using the id, e.g.

    $ pulumi import alicloud:threatdetection/ossScanConfig:OssScanConfig example <id>
    

    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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi
      AI Agentic Workflows: Register now