1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. getS3Bucket
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.getS3Bucket

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.getS3Bucket({
        name: "example",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.get_s3_bucket(name="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ionoscloud.LookupS3Bucket(ctx, &ionoscloud.LookupS3BucketArgs{
    			Name: "example",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.GetS3Bucket.Invoke(new()
        {
            Name = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.IonoscloudFunctions;
    import com.pulumi.ionoscloud.inputs.GetS3BucketArgs;
    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 example = IonoscloudFunctions.getS3Bucket(GetS3BucketArgs.builder()
                .name("example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:getS3Bucket
          arguments:
            name: example
    

    Using getS3Bucket

    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 getS3Bucket(args: GetS3BucketArgs, opts?: InvokeOptions): Promise<GetS3BucketResult>
    function getS3BucketOutput(args: GetS3BucketOutputArgs, opts?: InvokeOptions): Output<GetS3BucketResult>
    def get_s3_bucket(name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetS3BucketResult
    def get_s3_bucket_output(name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetS3BucketResult]
    func LookupS3Bucket(ctx *Context, args *LookupS3BucketArgs, opts ...InvokeOption) (*LookupS3BucketResult, error)
    func LookupS3BucketOutput(ctx *Context, args *LookupS3BucketOutputArgs, opts ...InvokeOption) LookupS3BucketResultOutput

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

    public static class GetS3Bucket 
    {
        public static Task<GetS3BucketResult> InvokeAsync(GetS3BucketArgs args, InvokeOptions? opts = null)
        public static Output<GetS3BucketResult> Invoke(GetS3BucketInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetS3BucketResult> getS3Bucket(GetS3BucketArgs args, InvokeOptions options)
    public static Output<GetS3BucketResult> getS3Bucket(GetS3BucketArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:index/getS3Bucket:getS3Bucket
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    [string] The bucket name. [ 3 .. 63 ] characters
    Name string
    [string] The bucket name. [ 3 .. 63 ] characters
    name String
    [string] The bucket name. [ 3 .. 63 ] characters
    name string
    [string] The bucket name. [ 3 .. 63 ] characters
    name str
    [string] The bucket name. [ 3 .. 63 ] characters
    name String
    [string] The bucket name. [ 3 .. 63 ] characters

    getS3Bucket Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Region string
    The region where the bucket is located.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Region string
    The region where the bucket is located.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    region String
    The region where the bucket is located.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    region string
    The region where the bucket is located.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    region str
    The region where the bucket is located.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    region String
    The region where the bucket is located.

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud