1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. OssScanConfig
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.threatdetection.OssScanConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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
    		}
    		_, 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,
                      bucket_name_lists: Optional[Sequence[str]] = None,
                      enable: Optional[int] = None,
                      end_time: Optional[str] = None,
                      key_suffix_lists: Optional[Sequence[str]] = None,
                      scan_day_lists: Optional[Sequence[int]] = None,
                      start_time: Optional[str] = None,
                      all_key_prefix: Optional[bool] = None,
                      key_prefix_lists: Optional[Sequence[str]] = None,
                      oss_scan_config_name: Optional[str] = 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()
    {
        BucketNameLists = new[]
        {
            "string",
        },
        Enable = 0,
        EndTime = "string",
        KeySuffixLists = new[]
        {
            "string",
        },
        ScanDayLists = new[]
        {
            0,
        },
        StartTime = "string",
        AllKeyPrefix = false,
        KeyPrefixLists = new[]
        {
            "string",
        },
        OssScanConfigName = "string",
    });
    
    example, err := threatdetection.NewOssScanConfig(ctx, "ossScanConfigResource", &threatdetection.OssScanConfigArgs{
    	BucketNameLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Enable:  pulumi.Int(0),
    	EndTime: pulumi.String("string"),
    	KeySuffixLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ScanDayLists: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	StartTime:    pulumi.String("string"),
    	AllKeyPrefix: pulumi.Bool(false),
    	KeyPrefixLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OssScanConfigName: pulumi.String("string"),
    })
    
    var ossScanConfigResource = new OssScanConfig("ossScanConfigResource", OssScanConfigArgs.builder()
        .bucketNameLists("string")
        .enable(0)
        .endTime("string")
        .keySuffixLists("string")
        .scanDayLists(0)
        .startTime("string")
        .allKeyPrefix(false)
        .keyPrefixLists("string")
        .ossScanConfigName("string")
        .build());
    
    oss_scan_config_resource = alicloud.threatdetection.OssScanConfig("ossScanConfigResource",
        bucket_name_lists=["string"],
        enable=0,
        end_time="string",
        key_suffix_lists=["string"],
        scan_day_lists=[0],
        start_time="string",
        all_key_prefix=False,
        key_prefix_lists=["string"],
        oss_scan_config_name="string")
    
    const ossScanConfigResource = new alicloud.threatdetection.OssScanConfig("ossScanConfigResource", {
        bucketNameLists: ["string"],
        enable: 0,
        endTime: "string",
        keySuffixLists: ["string"],
        scanDayLists: [0],
        startTime: "string",
        allKeyPrefix: false,
        keyPrefixLists: ["string"],
        ossScanConfigName: "string",
    });
    
    type: alicloud:threatdetection:OssScanConfig
    properties:
        allKeyPrefix: false
        bucketNameLists:
            - string
        enable: 0
        endTime: string
        keyPrefixLists:
            - string
        keySuffixLists:
            - string
        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>
    Bucket List.
    Enable int
    Enable configuration.
    EndTime string
    End time, hours, minutes and seconds.
    KeySuffixLists List<string>
    File Suffix List.
    ScanDayLists List<int>
    Scan cycle.
    StartTime string
    Start time, hours, minutes and seconds.
    AllKeyPrefix bool
    Match all prefixes.
    KeyPrefixLists List<string>
    File prefix list.
    OssScanConfigName string
    Configuration Name.
    BucketNameLists []string
    Bucket List.
    Enable int
    Enable configuration.
    EndTime string
    End time, hours, minutes and seconds.
    KeySuffixLists []string
    File Suffix List.
    ScanDayLists []int
    Scan cycle.
    StartTime string
    Start time, hours, minutes and seconds.
    AllKeyPrefix bool
    Match all prefixes.
    KeyPrefixLists []string
    File prefix list.
    OssScanConfigName string
    Configuration Name.
    bucketNameLists List<String>
    Bucket List.
    enable Integer
    Enable configuration.
    endTime String
    End time, hours, minutes and seconds.
    keySuffixLists List<String>
    File Suffix List.
    scanDayLists List<Integer>
    Scan cycle.
    startTime String
    Start time, hours, minutes and seconds.
    allKeyPrefix Boolean
    Match all prefixes.
    keyPrefixLists List<String>
    File prefix list.
    ossScanConfigName String
    Configuration Name.
    bucketNameLists string[]
    Bucket List.
    enable number
    Enable configuration.
    endTime string
    End time, hours, minutes and seconds.
    keySuffixLists string[]
    File Suffix List.
    scanDayLists number[]
    Scan cycle.
    startTime string
    Start time, hours, minutes and seconds.
    allKeyPrefix boolean
    Match all prefixes.
    keyPrefixLists string[]
    File prefix list.
    ossScanConfigName string
    Configuration Name.
    bucket_name_lists Sequence[str]
    Bucket List.
    enable int
    Enable configuration.
    end_time str
    End time, hours, minutes and seconds.
    key_suffix_lists Sequence[str]
    File Suffix List.
    scan_day_lists Sequence[int]
    Scan cycle.
    start_time str
    Start time, hours, minutes and seconds.
    all_key_prefix bool
    Match all prefixes.
    key_prefix_lists Sequence[str]
    File prefix list.
    oss_scan_config_name str
    Configuration Name.
    bucketNameLists List<String>
    Bucket List.
    enable Number
    Enable configuration.
    endTime String
    End time, hours, minutes and seconds.
    keySuffixLists List<String>
    File Suffix List.
    scanDayLists List<Number>
    Scan cycle.
    startTime String
    Start time, hours, minutes and seconds.
    allKeyPrefix Boolean
    Match all prefixes.
    keyPrefixLists List<String>
    File prefix list.
    ossScanConfigName String
    Configuration 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,
            enable: Optional[int] = None,
            end_time: Optional[str] = None,
            key_prefix_lists: Optional[Sequence[str]] = None,
            key_suffix_lists: Optional[Sequence[str]] = 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)
    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:
    AllKeyPrefix bool
    Match all prefixes.
    BucketNameLists List<string>
    Bucket List.
    Enable int
    Enable configuration.
    EndTime string
    End time, hours, minutes and seconds.
    KeyPrefixLists List<string>
    File prefix list.
    KeySuffixLists List<string>
    File Suffix List.
    OssScanConfigName string
    Configuration Name.
    ScanDayLists List<int>
    Scan cycle.
    StartTime string
    Start time, hours, minutes and seconds.
    AllKeyPrefix bool
    Match all prefixes.
    BucketNameLists []string
    Bucket List.
    Enable int
    Enable configuration.
    EndTime string
    End time, hours, minutes and seconds.
    KeyPrefixLists []string
    File prefix list.
    KeySuffixLists []string
    File Suffix List.
    OssScanConfigName string
    Configuration Name.
    ScanDayLists []int
    Scan cycle.
    StartTime string
    Start time, hours, minutes and seconds.
    allKeyPrefix Boolean
    Match all prefixes.
    bucketNameLists List<String>
    Bucket List.
    enable Integer
    Enable configuration.
    endTime String
    End time, hours, minutes and seconds.
    keyPrefixLists List<String>
    File prefix list.
    keySuffixLists List<String>
    File Suffix List.
    ossScanConfigName String
    Configuration Name.
    scanDayLists List<Integer>
    Scan cycle.
    startTime String
    Start time, hours, minutes and seconds.
    allKeyPrefix boolean
    Match all prefixes.
    bucketNameLists string[]
    Bucket List.
    enable number
    Enable configuration.
    endTime string
    End time, hours, minutes and seconds.
    keyPrefixLists string[]
    File prefix list.
    keySuffixLists string[]
    File Suffix List.
    ossScanConfigName string
    Configuration Name.
    scanDayLists number[]
    Scan cycle.
    startTime string
    Start time, hours, minutes and seconds.
    all_key_prefix bool
    Match all prefixes.
    bucket_name_lists Sequence[str]
    Bucket List.
    enable int
    Enable configuration.
    end_time str
    End time, hours, minutes and seconds.
    key_prefix_lists Sequence[str]
    File prefix list.
    key_suffix_lists Sequence[str]
    File Suffix List.
    oss_scan_config_name str
    Configuration Name.
    scan_day_lists Sequence[int]
    Scan cycle.
    start_time str
    Start time, hours, minutes and seconds.
    allKeyPrefix Boolean
    Match all prefixes.
    bucketNameLists List<String>
    Bucket List.
    enable Number
    Enable configuration.
    endTime String
    End time, hours, minutes and seconds.
    keyPrefixLists List<String>
    File prefix list.
    keySuffixLists List<String>
    File Suffix List.
    ossScanConfigName String
    Configuration Name.
    scanDayLists List<Number>
    Scan cycle.
    startTime String
    Start time, hours, minutes and seconds.

    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.66.0 published on Friday, Nov 15, 2024 by Pulumi