1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getStorageS3Bucket
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.getStorageS3Bucket

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent storage s3 bucket resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const exampleS3Bucket = edgecenter.getStorageS3Bucket({
        name: "example1bucket2name",
        storageId: 1,
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    example_s3_bucket = edgecenter.get_storage_s3_bucket(name="example1bucket2name",
        storage_id=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.LookupStorageS3Bucket(ctx, &edgecenter.LookupStorageS3BucketArgs{
    			Name:      "example1bucket2name",
    			StorageId: 1,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleS3Bucket = Edgecenter.GetStorageS3Bucket.Invoke(new()
        {
            Name = "example1bucket2name",
            StorageId = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetStorageS3BucketArgs;
    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) {
            final var exampleS3Bucket = EdgecenterFunctions.getStorageS3Bucket(GetStorageS3BucketArgs.builder()
                .name("example1bucket2name")
                .storageId(1)
                .build());
    
        }
    }
    
    variables:
      exampleS3Bucket:
        fn::invoke:
          function: edgecenter:getStorageS3Bucket
          arguments:
            name: example1bucket2name
            storageId: 1
    

    Using getStorageS3Bucket

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getStorageS3Bucket(args: GetStorageS3BucketArgs, opts?: InvokeOptions): Promise<GetStorageS3BucketResult>
    function getStorageS3BucketOutput(args: GetStorageS3BucketOutputArgs, opts?: InvokeOptions): Output<GetStorageS3BucketResult>
    def get_storage_s3_bucket(id: Optional[str] = None,
                              name: Optional[str] = None,
                              storage_id: Optional[float] = None,
                              opts: Optional[InvokeOptions] = None) -> GetStorageS3BucketResult
    def get_storage_s3_bucket_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              storage_id: Optional[pulumi.Input[float]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetStorageS3BucketResult]
    func LookupStorageS3Bucket(ctx *Context, args *LookupStorageS3BucketArgs, opts ...InvokeOption) (*LookupStorageS3BucketResult, error)
    func LookupStorageS3BucketOutput(ctx *Context, args *LookupStorageS3BucketOutputArgs, opts ...InvokeOption) LookupStorageS3BucketResultOutput

    > Note: This function is named LookupStorageS3Bucket in the Go SDK.

    public static class GetStorageS3Bucket 
    {
        public static Task<GetStorageS3BucketResult> InvokeAsync(GetStorageS3BucketArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageS3BucketResult> Invoke(GetStorageS3BucketInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageS3BucketResult> getStorageS3Bucket(GetStorageS3BucketArgs args, InvokeOptions options)
    public static Output<GetStorageS3BucketResult> getStorageS3Bucket(GetStorageS3BucketArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getStorageS3Bucket:getStorageS3Bucket
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    A name of storage bucket resource.
    StorageId double
    An id of existing storage resource.
    Id string
    The ID of this resource.
    Name string
    A name of storage bucket resource.
    StorageId float64
    An id of existing storage resource.
    Id string
    The ID of this resource.
    name String
    A name of storage bucket resource.
    storageId Double
    An id of existing storage resource.
    id String
    The ID of this resource.
    name string
    A name of storage bucket resource.
    storageId number
    An id of existing storage resource.
    id string
    The ID of this resource.
    name str
    A name of storage bucket resource.
    storage_id float
    An id of existing storage resource.
    id str
    The ID of this resource.
    name String
    A name of storage bucket resource.
    storageId Number
    An id of existing storage resource.
    id String
    The ID of this resource.

    getStorageS3Bucket Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    A name of storage bucket resource.
    StorageId double
    An id of existing storage resource.
    Id string
    The ID of this resource.
    Name string
    A name of storage bucket resource.
    StorageId float64
    An id of existing storage resource.
    id String
    The ID of this resource.
    name String
    A name of storage bucket resource.
    storageId Double
    An id of existing storage resource.
    id string
    The ID of this resource.
    name string
    A name of storage bucket resource.
    storageId number
    An id of existing storage resource.
    id str
    The ID of this resource.
    name str
    A name of storage bucket resource.
    storage_id float
    An id of existing storage resource.
    id String
    The ID of this resource.
    name String
    A name of storage bucket resource.
    storageId Number
    An id of existing storage resource.

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center