alicloud.threatdetection.OssScanConfig
Explore with Pulumi AI
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:
- Bucket
Name List<string>Lists - The names of the buckets.
- Enable int
- Indicates whether the check policy is enabled. Valid values:
- End
Time string - The end time of the check. The time is in the HH:mm:ss format.
- Key
Suffix List<string>Lists - The suffixes of the objects that are checked.
- Scan
Day List<int>Lists - The days when the check is performed. The value indicates the days of the week.
- Start
Time string - The start time of the check. The time is in the HH:mm:ss format.
- All
Key boolPrefix - Indicates whether the prefixes of all objects are matched.
- Decompress
Max intFile Count - 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 intLayer - 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 List<string> - The decryption methods.
- Key
Prefix List<string>Lists - The prefixes of the objects.
- Last
Modified intStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- Oss
Scan stringConfig Name - The policy name.
- Bucket
Name []stringLists - The names of the buckets.
- Enable int
- Indicates whether the check policy is enabled. Valid values:
- End
Time string - The end time of the check. The time is in the HH:mm:ss format.
- Key
Suffix []stringLists - The suffixes of the objects that are checked.
- Scan
Day []intLists - The days when the check is performed. The value indicates the days of the week.
- Start
Time string - The start time of the check. The time is in the HH:mm:ss format.
- All
Key boolPrefix - Indicates whether the prefixes of all objects are matched.
- Decompress
Max intFile Count - 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 intLayer - 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 []string - The decryption methods.
- Key
Prefix []stringLists - The prefixes of the objects.
- Last
Modified intStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- Oss
Scan stringConfig Name - The policy name.
- bucket
Name List<String>Lists - The names of the buckets.
- enable Integer
- Indicates whether the check policy is enabled. Valid values:
- end
Time String - The end time of the check. The time is in the HH:mm:ss format.
- key
Suffix List<String>Lists - The suffixes of the objects that are checked.
- scan
Day List<Integer>Lists - The days when the check is performed. The value indicates the days of the week.
- start
Time String - The start time of the check. The time is in the HH:mm:ss format.
- all
Key BooleanPrefix - Indicates whether the prefixes of all objects are matched.
- decompress
Max IntegerFile Count - 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 IntegerLayer - 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 List<String> - The decryption methods.
- key
Prefix List<String>Lists - The prefixes of the objects.
- last
Modified IntegerStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- oss
Scan StringConfig Name - The policy name.
- bucket
Name string[]Lists - The names of the buckets.
- enable number
- Indicates whether the check policy is enabled. Valid values:
- end
Time string - The end time of the check. The time is in the HH:mm:ss format.
- key
Suffix string[]Lists - The suffixes of the objects that are checked.
- scan
Day number[]Lists - The days when the check is performed. The value indicates the days of the week.
- start
Time string - The start time of the check. The time is in the HH:mm:ss format.
- all
Key booleanPrefix - Indicates whether the prefixes of all objects are matched.
- decompress
Max numberFile Count - 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 numberLayer - 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 string[] - The decryption methods.
- key
Prefix string[]Lists - The prefixes of the objects.
- last
Modified numberStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- oss
Scan stringConfig Name - The policy name.
- bucket_
name_ Sequence[str]lists - 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_ Sequence[str]lists - The suffixes of the objects that are checked.
- scan_
day_ Sequence[int]lists - 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_ boolprefix - Indicates whether the prefixes of all objects are matched.
- decompress_
max_ intfile_ count - 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_ intlayer - 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_ Sequence[str]lists - The prefixes of the objects.
- last_
modified_ intstart_ time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- oss_
scan_ strconfig_ name - The policy name.
- bucket
Name List<String>Lists - The names of the buckets.
- enable Number
- Indicates whether the check policy is enabled. Valid values:
- end
Time String - The end time of the check. The time is in the HH:mm:ss format.
- key
Suffix List<String>Lists - The suffixes of the objects that are checked.
- scan
Day List<Number>Lists - The days when the check is performed. The value indicates the days of the week.
- start
Time String - The start time of the check. The time is in the HH:mm:ss format.
- all
Key BooleanPrefix - Indicates whether the prefixes of all objects are matched.
- decompress
Max NumberFile Count - 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 NumberLayer - 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 List<String> - The decryption methods.
- key
Prefix List<String>Lists - The prefixes of the objects.
- last
Modified NumberStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- oss
Scan StringConfig Name - 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.
- All
Key boolPrefix - Indicates whether the prefixes of all objects are matched.
- Bucket
Name List<string>Lists - The names of the buckets.
- Decompress
Max intFile Count - 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 intLayer - 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 List<string> - The decryption methods.
- Enable int
- Indicates whether the check policy is enabled. Valid values:
- End
Time string - The end time of the check. The time is in the HH:mm:ss format.
- Key
Prefix List<string>Lists - The prefixes of the objects.
- Key
Suffix List<string>Lists - The suffixes of the objects that are checked.
- Last
Modified intStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- Oss
Scan stringConfig Name - The policy name.
- Scan
Day List<int>Lists - The days when the check is performed. The value indicates the days of the week.
- Start
Time string - The start time of the check. The time is in the HH:mm:ss format.
- All
Key boolPrefix - Indicates whether the prefixes of all objects are matched.
- Bucket
Name []stringLists - The names of the buckets.
- Decompress
Max intFile Count - 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 intLayer - 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 []string - The decryption methods.
- Enable int
- Indicates whether the check policy is enabled. Valid values:
- End
Time string - The end time of the check. The time is in the HH:mm:ss format.
- Key
Prefix []stringLists - The prefixes of the objects.
- Key
Suffix []stringLists - The suffixes of the objects that are checked.
- Last
Modified intStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- Oss
Scan stringConfig Name - The policy name.
- Scan
Day []intLists - The days when the check is performed. The value indicates the days of the week.
- Start
Time string - The start time of the check. The time is in the HH:mm:ss format.
- all
Key BooleanPrefix - Indicates whether the prefixes of all objects are matched.
- bucket
Name List<String>Lists - The names of the buckets.
- decompress
Max IntegerFile Count - 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 IntegerLayer - 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 List<String> - The decryption methods.
- enable Integer
- Indicates whether the check policy is enabled. Valid values:
- end
Time String - The end time of the check. The time is in the HH:mm:ss format.
- key
Prefix List<String>Lists - The prefixes of the objects.
- key
Suffix List<String>Lists - The suffixes of the objects that are checked.
- last
Modified IntegerStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- oss
Scan StringConfig Name - The policy name.
- scan
Day List<Integer>Lists - The days when the check is performed. The value indicates the days of the week.
- start
Time String - The start time of the check. The time is in the HH:mm:ss format.
- all
Key booleanPrefix - Indicates whether the prefixes of all objects are matched.
- bucket
Name string[]Lists - The names of the buckets.
- decompress
Max numberFile Count - 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 numberLayer - 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 string[] - The decryption methods.
- enable number
- Indicates whether the check policy is enabled. Valid values:
- end
Time string - The end time of the check. The time is in the HH:mm:ss format.
- key
Prefix string[]Lists - The prefixes of the objects.
- key
Suffix string[]Lists - The suffixes of the objects that are checked.
- last
Modified numberStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- oss
Scan stringConfig Name - The policy name.
- scan
Day number[]Lists - The days when the check is performed. The value indicates the days of the week.
- start
Time string - The start time of the check. The time is in the HH:mm:ss format.
- all_
key_ boolprefix - Indicates whether the prefixes of all objects are matched.
- bucket_
name_ Sequence[str]lists - The names of the buckets.
- decompress_
max_ intfile_ count - 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_ intlayer - 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_ Sequence[str]lists - The prefixes of the objects.
- key_
suffix_ Sequence[str]lists - The suffixes of the objects that are checked.
- last_
modified_ intstart_ time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- oss_
scan_ strconfig_ name - The policy name.
- scan_
day_ Sequence[int]lists - 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 BooleanPrefix - Indicates whether the prefixes of all objects are matched.
- bucket
Name List<String>Lists - The names of the buckets.
- decompress
Max NumberFile Count - 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 NumberLayer - 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 List<String> - The decryption methods.
- enable Number
- Indicates whether the check policy is enabled. Valid values:
- end
Time String - The end time of the check. The time is in the HH:mm:ss format.
- key
Prefix List<String>Lists - The prefixes of the objects.
- key
Suffix List<String>Lists - The suffixes of the objects that are checked.
- last
Modified NumberStart Time - The timestamp when the object was last modified. The time must be later than the timestamp that you specify. Unit: milliseconds.
- oss
Scan StringConfig Name - The policy name.
- scan
Day List<Number>Lists - The days when the check is performed. The value indicates the days of the week.
- start
Time 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.