upcloud.ManagedObjectStorageUserAccessKey
Explore with Pulumi AI
This resource represents an UpCloud Managed Object Storage user access key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as upcloud from "@upcloud/pulumi-upcloud";
const _this = new upcloud.ManagedObjectStorage("this", {
name: "example",
region: "europe-1",
configuredStatus: "started",
});
const thisManagedObjectStorageUser = new upcloud.ManagedObjectStorageUser("this", {
username: "example",
serviceUuid: _this.id,
});
const thisManagedObjectStorageUserAccessKey = new upcloud.ManagedObjectStorageUserAccessKey("this", {
username: thisManagedObjectStorageUser.username,
serviceUuid: _this.id,
status: "Active",
});
import pulumi
import pulumi_upcloud as upcloud
this = upcloud.ManagedObjectStorage("this",
name="example",
region="europe-1",
configured_status="started")
this_managed_object_storage_user = upcloud.ManagedObjectStorageUser("this",
username="example",
service_uuid=this.id)
this_managed_object_storage_user_access_key = upcloud.ManagedObjectStorageUserAccessKey("this",
username=this_managed_object_storage_user.username,
service_uuid=this.id,
status="Active")
package main
import (
"github.com/UpCloudLtd/pulumi-upcloud/sdk/go/upcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
this, err := upcloud.NewManagedObjectStorage(ctx, "this", &upcloud.ManagedObjectStorageArgs{
Name: pulumi.String("example"),
Region: pulumi.String("europe-1"),
ConfiguredStatus: pulumi.String("started"),
})
if err != nil {
return err
}
thisManagedObjectStorageUser, err := upcloud.NewManagedObjectStorageUser(ctx, "this", &upcloud.ManagedObjectStorageUserArgs{
Username: pulumi.String("example"),
ServiceUuid: this.ID(),
})
if err != nil {
return err
}
_, err = upcloud.NewManagedObjectStorageUserAccessKey(ctx, "this", &upcloud.ManagedObjectStorageUserAccessKeyArgs{
Username: thisManagedObjectStorageUser.Username,
ServiceUuid: this.ID(),
Status: pulumi.String("Active"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using UpCloud = UpCloud.Pulumi.UpCloud;
return await Deployment.RunAsync(() =>
{
var @this = new UpCloud.ManagedObjectStorage("this", new()
{
Name = "example",
Region = "europe-1",
ConfiguredStatus = "started",
});
var thisManagedObjectStorageUser = new UpCloud.ManagedObjectStorageUser("this", new()
{
Username = "example",
ServiceUuid = @this.Id,
});
var thisManagedObjectStorageUserAccessKey = new UpCloud.ManagedObjectStorageUserAccessKey("this", new()
{
Username = thisManagedObjectStorageUser.Username,
ServiceUuid = @this.Id,
Status = "Active",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.upcloud.ManagedObjectStorage;
import com.pulumi.upcloud.ManagedObjectStorageArgs;
import com.pulumi.upcloud.ManagedObjectStorageUser;
import com.pulumi.upcloud.ManagedObjectStorageUserArgs;
import com.pulumi.upcloud.ManagedObjectStorageUserAccessKey;
import com.pulumi.upcloud.ManagedObjectStorageUserAccessKeyArgs;
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 this_ = new ManagedObjectStorage("this", ManagedObjectStorageArgs.builder()
.name("example")
.region("europe-1")
.configuredStatus("started")
.build());
var thisManagedObjectStorageUser = new ManagedObjectStorageUser("thisManagedObjectStorageUser", ManagedObjectStorageUserArgs.builder()
.username("example")
.serviceUuid(this_.id())
.build());
var thisManagedObjectStorageUserAccessKey = new ManagedObjectStorageUserAccessKey("thisManagedObjectStorageUserAccessKey", ManagedObjectStorageUserAccessKeyArgs.builder()
.username(thisManagedObjectStorageUser.username())
.serviceUuid(this_.id())
.status("Active")
.build());
}
}
resources:
this:
type: upcloud:ManagedObjectStorage
properties:
name: example
region: europe-1
configuredStatus: started
thisManagedObjectStorageUser:
type: upcloud:ManagedObjectStorageUser
name: this
properties:
username: example
serviceUuid: ${this.id}
thisManagedObjectStorageUserAccessKey:
type: upcloud:ManagedObjectStorageUserAccessKey
name: this
properties:
username: ${thisManagedObjectStorageUser.username}
serviceUuid: ${this.id}
status: Active
Create ManagedObjectStorageUserAccessKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedObjectStorageUserAccessKey(name: string, args: ManagedObjectStorageUserAccessKeyArgs, opts?: CustomResourceOptions);
@overload
def ManagedObjectStorageUserAccessKey(resource_name: str,
args: ManagedObjectStorageUserAccessKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedObjectStorageUserAccessKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
service_uuid: Optional[str] = None,
status: Optional[str] = None,
username: Optional[str] = None)
func NewManagedObjectStorageUserAccessKey(ctx *Context, name string, args ManagedObjectStorageUserAccessKeyArgs, opts ...ResourceOption) (*ManagedObjectStorageUserAccessKey, error)
public ManagedObjectStorageUserAccessKey(string name, ManagedObjectStorageUserAccessKeyArgs args, CustomResourceOptions? opts = null)
public ManagedObjectStorageUserAccessKey(String name, ManagedObjectStorageUserAccessKeyArgs args)
public ManagedObjectStorageUserAccessKey(String name, ManagedObjectStorageUserAccessKeyArgs args, CustomResourceOptions options)
type: upcloud:ManagedObjectStorageUserAccessKey
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 ManagedObjectStorageUserAccessKeyArgs
- 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 ManagedObjectStorageUserAccessKeyArgs
- 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 ManagedObjectStorageUserAccessKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedObjectStorageUserAccessKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedObjectStorageUserAccessKeyArgs
- 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 managedObjectStorageUserAccessKeyResource = new UpCloud.ManagedObjectStorageUserAccessKey("managedObjectStorageUserAccessKeyResource", new()
{
ServiceUuid = "string",
Status = "string",
Username = "string",
});
example, err := upcloud.NewManagedObjectStorageUserAccessKey(ctx, "managedObjectStorageUserAccessKeyResource", &upcloud.ManagedObjectStorageUserAccessKeyArgs{
ServiceUuid: pulumi.String("string"),
Status: pulumi.String("string"),
Username: pulumi.String("string"),
})
var managedObjectStorageUserAccessKeyResource = new ManagedObjectStorageUserAccessKey("managedObjectStorageUserAccessKeyResource", ManagedObjectStorageUserAccessKeyArgs.builder()
.serviceUuid("string")
.status("string")
.username("string")
.build());
managed_object_storage_user_access_key_resource = upcloud.ManagedObjectStorageUserAccessKey("managedObjectStorageUserAccessKeyResource",
service_uuid="string",
status="string",
username="string")
const managedObjectStorageUserAccessKeyResource = new upcloud.ManagedObjectStorageUserAccessKey("managedObjectStorageUserAccessKeyResource", {
serviceUuid: "string",
status: "string",
username: "string",
});
type: upcloud:ManagedObjectStorageUserAccessKey
properties:
serviceUuid: string
status: string
username: string
ManagedObjectStorageUserAccessKey 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 ManagedObjectStorageUserAccessKey resource accepts the following input properties:
- Service
Uuid string - Managed Object Storage service UUID.
- Status string
- Status of the key. Valid values:
Active
|Inactive
- Username string
- Username.
- Service
Uuid string - Managed Object Storage service UUID.
- Status string
- Status of the key. Valid values:
Active
|Inactive
- Username string
- Username.
- service
Uuid String - Managed Object Storage service UUID.
- status String
- Status of the key. Valid values:
Active
|Inactive
- username String
- Username.
- service
Uuid string - Managed Object Storage service UUID.
- status string
- Status of the key. Valid values:
Active
|Inactive
- username string
- Username.
- service_
uuid str - Managed Object Storage service UUID.
- status str
- Status of the key. Valid values:
Active
|Inactive
- username str
- Username.
- service
Uuid String - Managed Object Storage service UUID.
- status String
- Status of the key. Valid values:
Active
|Inactive
- username String
- Username.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedObjectStorageUserAccessKey resource produces the following output properties:
- Access
Key stringId - Access key id.
- Created
At string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Used stringAt - Last used.
- Secret
Access stringKey - Secret access key.
- Access
Key stringId - Access key id.
- Created
At string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Used stringAt - Last used.
- Secret
Access stringKey - Secret access key.
- access
Key StringId - Access key id.
- created
At String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Used StringAt - Last used.
- secret
Access StringKey - Secret access key.
- access
Key stringId - Access key id.
- created
At string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Used stringAt - Last used.
- secret
Access stringKey - Secret access key.
- access_
key_ strid - Access key id.
- created_
at str - Creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
used_ strat - Last used.
- secret_
access_ strkey - Secret access key.
- access
Key StringId - Access key id.
- created
At String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Used StringAt - Last used.
- secret
Access StringKey - Secret access key.
Look up Existing ManagedObjectStorageUserAccessKey Resource
Get an existing ManagedObjectStorageUserAccessKey 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?: ManagedObjectStorageUserAccessKeyState, opts?: CustomResourceOptions): ManagedObjectStorageUserAccessKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_key_id: Optional[str] = None,
created_at: Optional[str] = None,
last_used_at: Optional[str] = None,
secret_access_key: Optional[str] = None,
service_uuid: Optional[str] = None,
status: Optional[str] = None,
username: Optional[str] = None) -> ManagedObjectStorageUserAccessKey
func GetManagedObjectStorageUserAccessKey(ctx *Context, name string, id IDInput, state *ManagedObjectStorageUserAccessKeyState, opts ...ResourceOption) (*ManagedObjectStorageUserAccessKey, error)
public static ManagedObjectStorageUserAccessKey Get(string name, Input<string> id, ManagedObjectStorageUserAccessKeyState? state, CustomResourceOptions? opts = null)
public static ManagedObjectStorageUserAccessKey get(String name, Output<String> id, ManagedObjectStorageUserAccessKeyState state, CustomResourceOptions options)
resources: _: type: upcloud:ManagedObjectStorageUserAccessKey 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.
- Access
Key stringId - Access key id.
- Created
At string - Creation time.
- Last
Used stringAt - Last used.
- Secret
Access stringKey - Secret access key.
- Service
Uuid string - Managed Object Storage service UUID.
- Status string
- Status of the key. Valid values:
Active
|Inactive
- Username string
- Username.
- Access
Key stringId - Access key id.
- Created
At string - Creation time.
- Last
Used stringAt - Last used.
- Secret
Access stringKey - Secret access key.
- Service
Uuid string - Managed Object Storage service UUID.
- Status string
- Status of the key. Valid values:
Active
|Inactive
- Username string
- Username.
- access
Key StringId - Access key id.
- created
At String - Creation time.
- last
Used StringAt - Last used.
- secret
Access StringKey - Secret access key.
- service
Uuid String - Managed Object Storage service UUID.
- status String
- Status of the key. Valid values:
Active
|Inactive
- username String
- Username.
- access
Key stringId - Access key id.
- created
At string - Creation time.
- last
Used stringAt - Last used.
- secret
Access stringKey - Secret access key.
- service
Uuid string - Managed Object Storage service UUID.
- status string
- Status of the key. Valid values:
Active
|Inactive
- username string
- Username.
- access_
key_ strid - Access key id.
- created_
at str - Creation time.
- last_
used_ strat - Last used.
- secret_
access_ strkey - Secret access key.
- service_
uuid str - Managed Object Storage service UUID.
- status str
- Status of the key. Valid values:
Active
|Inactive
- username str
- Username.
- access
Key StringId - Access key id.
- created
At String - Creation time.
- last
Used StringAt - Last used.
- secret
Access StringKey - Secret access key.
- service
Uuid String - Managed Object Storage service UUID.
- status String
- Status of the key. Valid values:
Active
|Inactive
- username String
- Username.
Package Details
- Repository
- upcloud UpCloudLtd/pulumi-upcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upcloud
Terraform Provider.