opentelekomcloud.ObsBucketInventory
Explore with Pulumi AI
Up-to-date reference of API arguments for OBS bucket inventory you can get at documentation portal
Configures OBS bucket inventory resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const bucket = new opentelekomcloud.ObsBucket("bucket", {bucket: "my-tf-test-bucket"});
const inventory = new opentelekomcloud.ObsBucketInventory("inventory", {
bucket: bucket.bucket,
configurationId: "test-id",
isEnabled: true,
frequency: "Weekly",
destination: {
bucket: bucket.bucket,
format: "CSV",
prefix: "test-",
},
filterPrefix: "test-filter-prefix",
includedObjectVersions: "Current",
optionalFields: [
"Size",
"LastModifiedDate",
"ReplicationStatus",
],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
bucket = opentelekomcloud.ObsBucket("bucket", bucket="my-tf-test-bucket")
inventory = opentelekomcloud.ObsBucketInventory("inventory",
bucket=bucket.bucket,
configuration_id="test-id",
is_enabled=True,
frequency="Weekly",
destination={
"bucket": bucket.bucket,
"format": "CSV",
"prefix": "test-",
},
filter_prefix="test-filter-prefix",
included_object_versions="Current",
optional_fields=[
"Size",
"LastModifiedDate",
"ReplicationStatus",
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
bucket, err := opentelekomcloud.NewObsBucket(ctx, "bucket", &opentelekomcloud.ObsBucketArgs{
Bucket: pulumi.String("my-tf-test-bucket"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewObsBucketInventory(ctx, "inventory", &opentelekomcloud.ObsBucketInventoryArgs{
Bucket: bucket.Bucket,
ConfigurationId: pulumi.String("test-id"),
IsEnabled: pulumi.Bool(true),
Frequency: pulumi.String("Weekly"),
Destination: &opentelekomcloud.ObsBucketInventoryDestinationArgs{
Bucket: bucket.Bucket,
Format: pulumi.String("CSV"),
Prefix: pulumi.String("test-"),
},
FilterPrefix: pulumi.String("test-filter-prefix"),
IncludedObjectVersions: pulumi.String("Current"),
OptionalFields: pulumi.StringArray{
pulumi.String("Size"),
pulumi.String("LastModifiedDate"),
pulumi.String("ReplicationStatus"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var bucket = new Opentelekomcloud.ObsBucket("bucket", new()
{
Bucket = "my-tf-test-bucket",
});
var inventory = new Opentelekomcloud.ObsBucketInventory("inventory", new()
{
Bucket = bucket.Bucket,
ConfigurationId = "test-id",
IsEnabled = true,
Frequency = "Weekly",
Destination = new Opentelekomcloud.Inputs.ObsBucketInventoryDestinationArgs
{
Bucket = bucket.Bucket,
Format = "CSV",
Prefix = "test-",
},
FilterPrefix = "test-filter-prefix",
IncludedObjectVersions = "Current",
OptionalFields = new[]
{
"Size",
"LastModifiedDate",
"ReplicationStatus",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ObsBucket;
import com.pulumi.opentelekomcloud.ObsBucketArgs;
import com.pulumi.opentelekomcloud.ObsBucketInventory;
import com.pulumi.opentelekomcloud.ObsBucketInventoryArgs;
import com.pulumi.opentelekomcloud.inputs.ObsBucketInventoryDestinationArgs;
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) {
var bucket = new ObsBucket("bucket", ObsBucketArgs.builder()
.bucket("my-tf-test-bucket")
.build());
var inventory = new ObsBucketInventory("inventory", ObsBucketInventoryArgs.builder()
.bucket(bucket.bucket())
.configurationId("test-id")
.isEnabled(true)
.frequency("Weekly")
.destination(ObsBucketInventoryDestinationArgs.builder()
.bucket(bucket.bucket())
.format("CSV")
.prefix("test-")
.build())
.filterPrefix("test-filter-prefix")
.includedObjectVersions("Current")
.optionalFields(
"Size",
"LastModifiedDate",
"ReplicationStatus")
.build());
}
}
resources:
bucket:
type: opentelekomcloud:ObsBucket
properties:
bucket: my-tf-test-bucket
inventory:
type: opentelekomcloud:ObsBucketInventory
properties:
bucket: ${bucket.bucket}
configurationId: test-id
isEnabled: true
frequency: Weekly
destination:
bucket: ${bucket.bucket}
format: CSV
prefix: test-
filterPrefix: test-filter-prefix
includedObjectVersions: Current
optionalFields:
- Size
- LastModifiedDate
- ReplicationStatus
Create ObsBucketInventory Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObsBucketInventory(name: string, args: ObsBucketInventoryArgs, opts?: CustomResourceOptions);
@overload
def ObsBucketInventory(resource_name: str,
args: ObsBucketInventoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObsBucketInventory(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
configuration_id: Optional[str] = None,
destination: Optional[ObsBucketInventoryDestinationArgs] = None,
frequency: Optional[str] = None,
included_object_versions: Optional[str] = None,
is_enabled: Optional[bool] = None,
filter_prefix: Optional[str] = None,
obs_bucket_inventory_id: Optional[str] = None,
optional_fields: Optional[Sequence[str]] = None)
func NewObsBucketInventory(ctx *Context, name string, args ObsBucketInventoryArgs, opts ...ResourceOption) (*ObsBucketInventory, error)
public ObsBucketInventory(string name, ObsBucketInventoryArgs args, CustomResourceOptions? opts = null)
public ObsBucketInventory(String name, ObsBucketInventoryArgs args)
public ObsBucketInventory(String name, ObsBucketInventoryArgs args, CustomResourceOptions options)
type: opentelekomcloud:ObsBucketInventory
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 ObsBucketInventoryArgs
- 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 ObsBucketInventoryArgs
- 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 ObsBucketInventoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObsBucketInventoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObsBucketInventoryArgs
- 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 obsBucketInventoryResource = new Opentelekomcloud.ObsBucketInventory("obsBucketInventoryResource", new()
{
Bucket = "string",
ConfigurationId = "string",
Destination = new Opentelekomcloud.Inputs.ObsBucketInventoryDestinationArgs
{
Bucket = "string",
Format = "string",
Prefix = "string",
},
Frequency = "string",
IncludedObjectVersions = "string",
IsEnabled = false,
FilterPrefix = "string",
ObsBucketInventoryId = "string",
OptionalFields = new[]
{
"string",
},
});
example, err := opentelekomcloud.NewObsBucketInventory(ctx, "obsBucketInventoryResource", &opentelekomcloud.ObsBucketInventoryArgs{
Bucket: pulumi.String("string"),
ConfigurationId: pulumi.String("string"),
Destination: &opentelekomcloud.ObsBucketInventoryDestinationArgs{
Bucket: pulumi.String("string"),
Format: pulumi.String("string"),
Prefix: pulumi.String("string"),
},
Frequency: pulumi.String("string"),
IncludedObjectVersions: pulumi.String("string"),
IsEnabled: pulumi.Bool(false),
FilterPrefix: pulumi.String("string"),
ObsBucketInventoryId: pulumi.String("string"),
OptionalFields: pulumi.StringArray{
pulumi.String("string"),
},
})
var obsBucketInventoryResource = new ObsBucketInventory("obsBucketInventoryResource", ObsBucketInventoryArgs.builder()
.bucket("string")
.configurationId("string")
.destination(ObsBucketInventoryDestinationArgs.builder()
.bucket("string")
.format("string")
.prefix("string")
.build())
.frequency("string")
.includedObjectVersions("string")
.isEnabled(false)
.filterPrefix("string")
.obsBucketInventoryId("string")
.optionalFields("string")
.build());
obs_bucket_inventory_resource = opentelekomcloud.ObsBucketInventory("obsBucketInventoryResource",
bucket="string",
configuration_id="string",
destination={
"bucket": "string",
"format": "string",
"prefix": "string",
},
frequency="string",
included_object_versions="string",
is_enabled=False,
filter_prefix="string",
obs_bucket_inventory_id="string",
optional_fields=["string"])
const obsBucketInventoryResource = new opentelekomcloud.ObsBucketInventory("obsBucketInventoryResource", {
bucket: "string",
configurationId: "string",
destination: {
bucket: "string",
format: "string",
prefix: "string",
},
frequency: "string",
includedObjectVersions: "string",
isEnabled: false,
filterPrefix: "string",
obsBucketInventoryId: "string",
optionalFields: ["string"],
});
type: opentelekomcloud:ObsBucketInventory
properties:
bucket: string
configurationId: string
destination:
bucket: string
format: string
prefix: string
filterPrefix: string
frequency: string
includedObjectVersions: string
isEnabled: false
obsBucketInventoryId: string
optionalFields:
- string
ObsBucketInventory 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 ObsBucketInventory resource accepts the following input properties:
- Bucket string
- Name of the bucket for saving inventories.
- Configuration
Id string - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- Destination
Obs
Bucket Inventory Destination - Destination bucket settings of an inventory. The structure is documented below.
- Frequency string
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- Included
Object stringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- Is
Enabled bool - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - Filter
Prefix string - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- Obs
Bucket stringInventory Id - Optional
Fields List<string> - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- Bucket string
- Name of the bucket for saving inventories.
- Configuration
Id string - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- Destination
Obs
Bucket Inventory Destination Args - Destination bucket settings of an inventory. The structure is documented below.
- Frequency string
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- Included
Object stringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- Is
Enabled bool - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - Filter
Prefix string - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- Obs
Bucket stringInventory Id - Optional
Fields []string - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- bucket String
- Name of the bucket for saving inventories.
- configuration
Id String - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- destination
Obs
Bucket Inventory Destination - Destination bucket settings of an inventory. The structure is documented below.
- frequency String
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- included
Object StringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- is
Enabled Boolean - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - filter
Prefix String - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- obs
Bucket StringInventory Id - optional
Fields List<String> - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- bucket string
- Name of the bucket for saving inventories.
- configuration
Id string - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- destination
Obs
Bucket Inventory Destination - Destination bucket settings of an inventory. The structure is documented below.
- frequency string
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- included
Object stringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- is
Enabled boolean - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - filter
Prefix string - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- obs
Bucket stringInventory Id - optional
Fields string[] - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- bucket str
- Name of the bucket for saving inventories.
- configuration_
id str - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- destination
Obs
Bucket Inventory Destination Args - Destination bucket settings of an inventory. The structure is documented below.
- frequency str
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- included_
object_ strversions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- is_
enabled bool - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - filter_
prefix str - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- obs_
bucket_ strinventory_ id - optional_
fields Sequence[str] - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- bucket String
- Name of the bucket for saving inventories.
- configuration
Id String - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- destination Property Map
- Destination bucket settings of an inventory. The structure is documented below.
- frequency String
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- included
Object StringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- is
Enabled Boolean - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - filter
Prefix String - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- obs
Bucket StringInventory Id - optional
Fields List<String> - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
Outputs
All input properties are implicitly available as output properties. Additionally, the ObsBucketInventory resource produces the following output properties:
Look up Existing ObsBucketInventory Resource
Get an existing ObsBucketInventory 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?: ObsBucketInventoryState, opts?: CustomResourceOptions): ObsBucketInventory
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
configuration_id: Optional[str] = None,
destination: Optional[ObsBucketInventoryDestinationArgs] = None,
filter_prefix: Optional[str] = None,
frequency: Optional[str] = None,
included_object_versions: Optional[str] = None,
is_enabled: Optional[bool] = None,
obs_bucket_inventory_id: Optional[str] = None,
optional_fields: Optional[Sequence[str]] = None,
region: Optional[str] = None) -> ObsBucketInventory
func GetObsBucketInventory(ctx *Context, name string, id IDInput, state *ObsBucketInventoryState, opts ...ResourceOption) (*ObsBucketInventory, error)
public static ObsBucketInventory Get(string name, Input<string> id, ObsBucketInventoryState? state, CustomResourceOptions? opts = null)
public static ObsBucketInventory get(String name, Output<String> id, ObsBucketInventoryState state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:ObsBucketInventory 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.
- Bucket string
- Name of the bucket for saving inventories.
- Configuration
Id string - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- Destination
Obs
Bucket Inventory Destination - Destination bucket settings of an inventory. The structure is documented below.
- Filter
Prefix string - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- Frequency string
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- Included
Object stringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- Is
Enabled bool - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - Obs
Bucket stringInventory Id - Optional
Fields List<string> - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- Region string
- Specifies the bucket region.
- Bucket string
- Name of the bucket for saving inventories.
- Configuration
Id string - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- Destination
Obs
Bucket Inventory Destination Args - Destination bucket settings of an inventory. The structure is documented below.
- Filter
Prefix string - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- Frequency string
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- Included
Object stringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- Is
Enabled bool - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - Obs
Bucket stringInventory Id - Optional
Fields []string - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- Region string
- Specifies the bucket region.
- bucket String
- Name of the bucket for saving inventories.
- configuration
Id String - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- destination
Obs
Bucket Inventory Destination - Destination bucket settings of an inventory. The structure is documented below.
- filter
Prefix String - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- frequency String
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- included
Object StringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- is
Enabled Boolean - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - obs
Bucket StringInventory Id - optional
Fields List<String> - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- region String
- Specifies the bucket region.
- bucket string
- Name of the bucket for saving inventories.
- configuration
Id string - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- destination
Obs
Bucket Inventory Destination - Destination bucket settings of an inventory. The structure is documented below.
- filter
Prefix string - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- frequency string
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- included
Object stringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- is
Enabled boolean - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - obs
Bucket stringInventory Id - optional
Fields string[] - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- region string
- Specifies the bucket region.
- bucket str
- Name of the bucket for saving inventories.
- configuration_
id str - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- destination
Obs
Bucket Inventory Destination Args - Destination bucket settings of an inventory. The structure is documented below.
- filter_
prefix str - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- frequency str
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- included_
object_ strversions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- is_
enabled bool - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - obs_
bucket_ strinventory_ id - optional_
fields Sequence[str] - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- region str
- Specifies the bucket region.
- bucket String
- Name of the bucket for saving inventories.
- configuration
Id String - ID of the inventory configuration. Valid characters: letters, digits, hyphens (-), periods (.) and underscores (_).
- destination Property Map
- Destination bucket settings of an inventory. The structure is documented below.
- filter
Prefix String - Filtering by name prefix. Only objects with the specified name prefix are included in the inventory.
- frequency String
- Intervals when inventories are generated.
An inventory is generated within one hour after it is configured for the first time. Then it is generated at the specified intervals.
Possible values:
Daily
Weekly
- included
Object StringVersions - Indicates whether versions of objects are included in an inventory.
Possible values:
All
Current
- is
Enabled Boolean - Indicates whether the rule is enabled. If this parameter is set to
true
, the inventory is generated. - obs
Bucket StringInventory Id - optional
Fields List<String> - Extra metadata fields that can be added to an inventory. If this parameter is configured,
fields specified in this parameter are contained in the inventory.
Possible values:
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
EncryptionStatus
- region String
- Specifies the bucket region.
Supporting Types
ObsBucketInventoryDestination, ObsBucketInventoryDestinationArgs
Import
Inventories can be imported using related bucket
and their configuration_id
separated by the slashes, e.g.
bash
$ pulumi import opentelekomcloud:index/obsBucketInventory:ObsBucketInventory inv <bucket>/<configuration_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.