Class ObjectStorageKey
Provides a Linode Object Storage Key resource. This can be used to create, modify, and delete Linodes Object Storage Keys.
Example Usage
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var foo = new Linode.ObjectStorageKey("foo", new Linode.ObjectStorageKeyArgs
{
Label = "image-access",
});
}
}
Attributes
This resource exports the following attributes:
access_key- This keypair's access key. This is not secret.secret_key- This keypair's secret key.
Inherited Members
Namespace: Pulumi.Linode
Assembly: Pulumi.Linode.dll
Syntax
public class ObjectStorageKey : CustomResource
Constructors
View SourceObjectStorageKey(String, ObjectStorageKeyArgs, CustomResourceOptions)
Create a ObjectStorageKey resource with the given unique name, arguments, and options.
Declaration
public ObjectStorageKey(string name, ObjectStorageKeyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ObjectStorageKeyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccessKey
This keypair's access key. This is not secret.
Declaration
public Output<string> AccessKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Label
The label given to this key. For display purposes only.
Declaration
public Output<string> Label { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecretKey
This keypair's secret key.
Declaration
public Output<string> SecretKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ObjectStorageKeyState, CustomResourceOptions)
Get an existing ObjectStorageKey resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ObjectStorageKey Get(string name, Input<string> id, ObjectStorageKeyState 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. |
| ObjectStorageKeyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ObjectStorageKey |