GetSpacesBucket
Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question is not managed by this provider or you need to utilize any of the bucket’s data.
Example Usage
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(DigitalOcean.GetSpacesBucket.InvokeAsync(new DigitalOcean.GetSpacesBucketArgs
{
Name = "my-spaces-bucket",
Region = "nyc3",
}));
this.BucketDomainName = example.Apply(example => example.BucketDomainName);
}
[Output("bucketDomainName")]
public Output<string> BucketDomainName { get; set; }
}
Coming soon!
import pulumi
import pulumi_digitalocean as digitalocean
example = digitalocean.get_spaces_bucket(name="my-spaces-bucket",
region="nyc3")
pulumi.export("bucketDomainName", example.bucket_domain_name)import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const example = digitalocean.getSpacesBucket({
name: "my-spaces-bucket",
region: "nyc3",
});
export const bucketDomainName = example.then(example => example.bucketDomainName);Using GetSpacesBucket
function getSpacesBucket(args: GetSpacesBucketArgs, opts?: InvokeOptions): Promise<GetSpacesBucketResult>function get_spaces_bucket(name=None, region=None, opts=None)func LookupSpacesBucket(ctx *Context, args *LookupSpacesBucketArgs, opts ...InvokeOption) (*LookupSpacesBucketResult, error)Note: This function is named
LookupSpacesBucketin the Go SDK.
public static class GetSpacesBucket {
public static Task<GetSpacesBucketResult> InvokeAsync(GetSpacesBucketArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetSpacesBucket Result
The following output properties are available:
- Bucket
Domain stringName The FQDN of the bucket (e.g. bucket-name.nyc3.digitaloceanspaces.com)
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The name of the Spaces bucket
- Region string
The slug of the region where the bucket is stored.
- Urn string
The uniform resource name of the bucket
- Bucket
Domain stringName The FQDN of the bucket (e.g. bucket-name.nyc3.digitaloceanspaces.com)
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The name of the Spaces bucket
- Region string
The slug of the region where the bucket is stored.
- Urn string
The uniform resource name of the bucket
- bucket
Domain stringName The FQDN of the bucket (e.g. bucket-name.nyc3.digitaloceanspaces.com)
- id string
The provider-assigned unique ID for this managed resource.
- name string
The name of the Spaces bucket
- region string
The slug of the region where the bucket is stored.
- urn string
The uniform resource name of the bucket
Package Details
- Repository
- https://github.com/pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.