Show / Hide Table of Contents

Class GetBucketObject

Inheritance
System.Object
GetBucketObject
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Storage
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetBucketObject

Methods

View Source

InvokeAsync(GetBucketObjectArgs, InvokeOptions)

Gets an existing object inside an existing bucket in Google Cloud Storage service (GCS). See the official documentation and API.

{{% examples %}}

Example Usage

{{% example %}}

Example picture stored within a folder.

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var picture = Output.Create(Gcp.Storage.GetBucketObject.InvokeAsync(new Gcp.Storage.GetBucketObjectArgs
    {
        Bucket = "image-store",
        Name = "folder/butterfly01.jpg",
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetBucketObjectResult> InvokeAsync(GetBucketObjectArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetBucketObjectArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetBucketObjectResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.