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 LookupSpacesBucket in the Go SDK.

public static class GetSpacesBucket {
    public static Task<GetSpacesBucketResult> InvokeAsync(GetSpacesBucketArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Spaces bucket.

Region string

The slug of the region where the bucket is stored.

Name string

The name of the Spaces bucket.

Region string

The slug of the region where the bucket is stored.

name string

The name of the Spaces bucket.

region string

The slug of the region where the bucket is stored.

name str

The name of the Spaces bucket.

region str

The slug of the region where the bucket is stored.

GetSpacesBucket Result

The following output properties are available:

BucketDomainName string

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

BucketDomainName string

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

bucketDomainName string

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_name str

The FQDN of the bucket (e.g. bucket-name.nyc3.digitaloceanspaces.com)

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the Spaces bucket

region str

The slug of the region where the bucket is stored.

urn str

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 digitalocean Terraform Provider.