alicloud.oss.BucketWorm
Explore with Pulumi AI
Import
OSS Bucket Worm can be imported using the id, e.g.
$ pulumi import alicloud:oss/bucketWorm:BucketWorm example <bucket>:<worm_id>
Create BucketWorm Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BucketWorm(name: string, args: BucketWormArgs, opts?: CustomResourceOptions);
@overload
def BucketWorm(resource_name: str,
args: BucketWormArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BucketWorm(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
retention_period_in_days: Optional[int] = None,
status: Optional[str] = None)
func NewBucketWorm(ctx *Context, name string, args BucketWormArgs, opts ...ResourceOption) (*BucketWorm, error)
public BucketWorm(string name, BucketWormArgs args, CustomResourceOptions? opts = null)
public BucketWorm(String name, BucketWormArgs args)
public BucketWorm(String name, BucketWormArgs args, CustomResourceOptions options)
type: alicloud:oss:BucketWorm
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 BucketWormArgs
- 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 BucketWormArgs
- 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 BucketWormArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketWormArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketWormArgs
- 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 bucketWormResource = new AliCloud.Oss.BucketWorm("bucketWormResource", new()
{
Bucket = "string",
RetentionPeriodInDays = 0,
Status = "string",
});
example, err := oss.NewBucketWorm(ctx, "bucketWormResource", &oss.BucketWormArgs{
Bucket: pulumi.String("string"),
RetentionPeriodInDays: pulumi.Int(0),
Status: pulumi.String("string"),
})
var bucketWormResource = new BucketWorm("bucketWormResource", BucketWormArgs.builder()
.bucket("string")
.retentionPeriodInDays(0)
.status("string")
.build());
bucket_worm_resource = alicloud.oss.BucketWorm("bucketWormResource",
bucket="string",
retention_period_in_days=0,
status="string")
const bucketWormResource = new alicloud.oss.BucketWorm("bucketWormResource", {
bucket: "string",
retentionPeriodInDays: 0,
status: "string",
});
type: alicloud:oss:BucketWorm
properties:
bucket: string
retentionPeriodInDays: 0
status: string
BucketWorm 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 BucketWorm resource accepts the following input properties:
- Bucket string
- The name of the bucket
- Retention
Period intIn Days - The specified number of days to retain the Object.
- Status string
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- Bucket string
- The name of the bucket
- Retention
Period intIn Days - The specified number of days to retain the Object.
- Status string
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- bucket String
- The name of the bucket
- retention
Period IntegerIn Days - The specified number of days to retain the Object.
- status String
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- bucket string
- The name of the bucket
- retention
Period numberIn Days - The specified number of days to retain the Object.
- status string
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- bucket str
- The name of the bucket
- retention_
period_ intin_ days - The specified number of days to retain the Object.
- status str
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- bucket String
- The name of the bucket
- retention
Period NumberIn Days - The specified number of days to retain the Object.
- status String
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketWorm resource produces the following output properties:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Worm
Id string - The ID of the retention policy.
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Worm
Id string - The ID of the retention policy.
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- worm
Id String - The ID of the retention policy.
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- worm
Id string - The ID of the retention policy.
- create_
time str - The creation time of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- worm_
id str - The ID of the retention policy.
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- worm
Id String - The ID of the retention policy.
Look up Existing BucketWorm Resource
Get an existing BucketWorm 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?: BucketWormState, opts?: CustomResourceOptions): BucketWorm
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
create_time: Optional[str] = None,
retention_period_in_days: Optional[int] = None,
status: Optional[str] = None,
worm_id: Optional[str] = None) -> BucketWorm
func GetBucketWorm(ctx *Context, name string, id IDInput, state *BucketWormState, opts ...ResourceOption) (*BucketWorm, error)
public static BucketWorm Get(string name, Input<string> id, BucketWormState? state, CustomResourceOptions? opts = null)
public static BucketWorm get(String name, Output<String> id, BucketWormState state, CustomResourceOptions options)
resources: _: type: alicloud:oss:BucketWorm 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
- The name of the bucket
- Create
Time string - The creation time of the resource
- Retention
Period intIn Days - The specified number of days to retain the Object.
- Status string
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- Worm
Id string - The ID of the retention policy.
- Bucket string
- The name of the bucket
- Create
Time string - The creation time of the resource
- Retention
Period intIn Days - The specified number of days to retain the Object.
- Status string
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- Worm
Id string - The ID of the retention policy.
- bucket String
- The name of the bucket
- create
Time String - The creation time of the resource
- retention
Period IntegerIn Days - The specified number of days to retain the Object.
- status String
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- worm
Id String - The ID of the retention policy.
- bucket string
- The name of the bucket
- create
Time string - The creation time of the resource
- retention
Period numberIn Days - The specified number of days to retain the Object.
- status string
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- worm
Id string - The ID of the retention policy.
- bucket str
- The name of the bucket
- create_
time str - The creation time of the resource
- retention_
period_ intin_ days - The specified number of days to retain the Object.
- status str
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- worm_
id str - The ID of the retention policy.
- bucket String
- The name of the bucket
- create
Time String - The creation time of the resource
- retention
Period NumberIn Days - The specified number of days to retain the Object.
- status String
- The status of the compliance retention policy. Optional values:
InProgress
: After a compliance retention policy is created, the policy is in the InProgress status by default, and the validity period of this status is 24 hours.Locked
: The compliance retention policy is Locked.
- worm
Id String - The ID of the retention policy.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.