Class ObjectStorageBucket
Provides a Linode Object Storage Bucket resource. This can be used to create, modify, and delete Linodes Object Storage Buckets.
Example Usage
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var primary = Output.Create(Linode.GetObjectStorageCluster.InvokeAsync(new Linode.GetObjectStorageClusterArgs
{
Id = "us-east-1",
}));
var foobar = new Linode.ObjectStorageBucket("foobar", new Linode.ObjectStorageBucketArgs
{
Cluster = primary.Apply(primary => primary.Id),
Label = "%s",
});
}
}
Inherited Members
Namespace: Pulumi.Linode
Assembly: Pulumi.Linode.dll
Syntax
public class ObjectStorageBucket : CustomResource
Constructors
View SourceObjectStorageBucket(String, ObjectStorageBucketArgs, CustomResourceOptions)
Create a ObjectStorageBucket resource with the given unique name, arguments, and options.
Declaration
public ObjectStorageBucket(string name, ObjectStorageBucketArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ObjectStorageBucketArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCluster
The cluster of the Linode Object Storage Bucket.
Declaration
public Output<string> Cluster { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Label
The label of the Linode Object Storage Bucket.
Declaration
public Output<string> Label { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ObjectStorageBucketState, CustomResourceOptions)
Get an existing ObjectStorageBucket resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ObjectStorageBucket Get(string name, Input<string> id, ObjectStorageBucketState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ObjectStorageBucketState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ObjectStorageBucket |